Register
Changed onUse /customers endpoint to register user. After registration customer is related with your account and you will see him in Cleeng Dashboard > Customer Accounts. Customers are recognized in Cleeng by customerId, which is encoded in <glossary:JWT>. <br>
🚧 Important
It is recommended that customerIP is passed as it is required for correct price calculation because tax rate depends on the country. If customerIP is NOT given, the price will be calculated for request source IP address.
Please note that when using Cleeng Merchant, customerIP should be available for the purpose of proper tax calculation in the US and Canada. It is recommended that customerIP is passed in the register, login and create order methods.
Request
- Base URLhttps://mediastoreapi-sandbox.cleeng.com
- URLhttps://mediastoreapi-sandbox.cleeng.com/customers
- Authnone required
Request body
Response
200
Example response
{
"responseData": {
"jwt": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJjdXN0b21lcklkIjoiNzc1ODQzMzU4Iiwib2ZmZXJJZCI6IlM1Njc5MjE3NjZfTkwifQ.rh67_MtVAe4ggE3kFALsuAL-XI3bQoOd_VYo1pii3GCNNSMp0-Ewfrg3o0JOWnNYfaZaXo6DaYiJ7TDSGXyiQQPXJpz3LmJhfGgjww_gXcrf_CvQayQlV-ZpcapNPHKS-1zgClLhOz0ACE4FBos9fUsHrwQEcGDDY0hvs4TOLmWiRXGtgyJyK_SHIvUOsFcEe2TQqTnL76hfZp-8JX1NBEi0QVy6ymVlJThdiK8GO4rIF7-6qi5UiXkCIzRb-qIfo5T0qYqHcEHksD3rOFMpC3GdS-1oLRttDO4sfKKFFftTiXZl27XfyRDH8_RseuCizrDGgqGWDC7baKxgTYfwEA",
"refreshToken": "06ec4f290ec432f20dd2718697642920a0f3c334966aafe1d952b447d1ceffaa",
"customerToken": "MZYbftC_e378Vm9dualp1RaQU8XgJFnrSxaFuBZmDdQZ8FyU",
"customerId": 123456789
}
}Changes
- breaking
added the new required request property
- breaking
added the new required request property
- breaking
the request property
became required - breaking
the
request property type changed fromobjecttostring - warning
deleted the
headerrequest parameterContent-Type - warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - info
api operation id
register-customerremoved and replaced withregister - info
added the new optional request property
- info
added the new optional request property
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- breaking