Skip to main content

Map Customer To Merchant

POST {{baseUrl}}/customer/map-customer-merchants

Description

This API is used to associate a customer with a specific merchant.

Request

  • Headers:

    • Content-Type: application/json
    • ApiKey: The platform API key is required to use this endpoint - {{PlatformApiKey}}
  • URL: {{baseUrl}}/customer/map-customer-merchants

  • Query Parameters:

    • params
  • Headers:

    • userId (Required) - <string>
    • tenantId (Required) - <string>
    • countryCode (Required) - <string>
    • Content-Type: application/json
    • Accept: */*
  • Body: Raw (JSON)

Sample Request

curl --location -g '{{baseUrl}}/customer/map-customer-merchants' \
--header 'userId: <string>' \
--header 'tenantId: <string>' \
--header 'countryCode: <string>' \
--header 'Content-Type: application/json' \
--header 'Accept: */*' \
--header 'ApiKey: {{PlatformApiKey}}' \
--data '{
"customerId": "<string>",
"merchantId": "<string>"
}'

Sample Response

{
"message": "Customer mapped to merchant successfully.",
"data": {
"customerId": "<string>",
"merchantId": "<string>",
"createdAt": "<datetime>",
"updatedAt": "<datetime>"
}
}

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


curl --request POST \ 
--url /customer/map-customer-merchants \
--header 'accept: application/json' \
--header 'content-type: application/json'

RESPONSE


Click Try It! to start a request and see the response here!