Commerce Engine is now in beta. We're working hard to make it better for you.
curl --request POST \
--url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/payments/juspay/customers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"user_id": "<string>"
}'
{
"message": "<string>",
"success": true,
"content": {
"data": {
"id": "<string>",
"object": "<any>",
"object_reference_id": "<string>",
"mobile_number": "<string>",
"email_address": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"date_created": "<string>",
"last_updated": "<string>",
"mobile_country_code": "<string>"
}
}
}
Create customer in juspay.
curl --request POST \
--url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/payments/juspay/customers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"user_id": "<string>"
}'
{
"message": "<string>",
"success": true,
"content": {
"data": {
"id": "<string>",
"object": "<any>",
"object_reference_id": "<string>",
"mobile_number": "<string>",
"email_address": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"date_created": "<string>",
"last_updated": "<string>",
"mobile_country_code": "<string>"
}
}
}
Access token
OK
The response is of type object
.