Version de travail · contenus et exemples à affiner Voir les 95 pages ↗
Parlons de votre projet ↗
Référence API / P064

Affecter un catalogue tarifaire

Adaptation éditoriale
Référence de travail. Les routes, schémas, limites et procédures hérités du référentiel sont à aligner avec l’API d’Éric. Ils ne prouvent pas une fonctionnalité livrée. Les hôtes .invalid sont des exemples inertes.

Opération

PUT /partner_api/service_providers/business_links/{merchantBusinessId}/fee_catalog

Authentification

ApiKey``ApiKeyId

X-API-KEY

Emplacement : header

X-API-KEY-ID

Emplacement : header

Paramètres de chemin

merchantBusinessId*string

Formatuuid

Corps de la requête

application/json

Définitions TypeScript

Utilisez le type du corps de requête dans TypeScript.

feeCatalogId*string

Formatuuid

Réponses

200 application/json

401 application/json

403 application/json

404 application/json

422 application/json

500 application/json

cURL

JavaScript

Go

Python

Java

C#

Rust

curl -X PUT "https://api.kelyko.invalid/partner_api/service_providers/business_links/497f6eca-6276-4993-bfeb-53cbbbba6f08/fee_catalog" \
  -H "X-API-KEY: " \
  -H "X-API-KEY-ID: " \
  -H "Content-Type: application/json" \
  -d '{
    "feeCatalogId": "ac5d4a26-250e-4f21-aae3-f821e304fb17"
  }'

200401403404422500

{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "serviceProviderBusinessId": "d9fd5ed9-0f9b-4b0c-b030-b83b3b58501a",
  "merchantBusinessId": "19d467bb-96e1-48c8-88c3-25dccb98467b",
  "serviceProviderFeeCatalogId": "5e7156c1-9014-4ba5-9615-232f3654988f",
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z"
}

Unassign the fee catalog from a linked merchantDELETE\ \ Removes the live fee catalog assignment for a linked merchant. Onboard a new business (plateforme API)POST\ \ Onboards a new merchant business on behalf of a service provider. This endpoint creates a new user, business, and establishes the service provider relationship.\ **Use Cases:**\ - Service providers (like Payme) can onboard merchants through their own platform\ - Automates the business registration process\ - Establishes the service provider relationship automatically\ **What This Endpoint Does:**\ 1. Creates a new user account (if phone number doesn't exist)\ 2. Creates a new business with the provided information\ 3. Sets up the business configuration (enables API access)\ 4. Creates a service provider business member linking the service provider to the merchant\ 5. Sets referral code if provided\ **Important Notes:**\ - The authenticated business must be a service provider (checked via middleware)\ - Phone number must **not** already be associated with any existing user in Kelyko. If a user with this phone number already exists (regardless of their onboarding status), the request fails with an error.\ - The service provider business is automatically linked to the merchant business\ - API access is automatically enabled for the new merchant business\ **Authentication:** Requires API key headers. The authenticated business must be a service provider.

Demander à l'IA ⌘I