POST
/
customers
curl --request POST \
  --url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/customers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "business": {
    "business_type": "<string>",
    "name": "<string>",
    "pan_number": "<string>",
    "gstin": "<string>"
  },
  "address": {
    "id": "<string>",
    "first_name": "<string>",
    "last_name": "<string>",
    "country_code": "<string>",
    "phone": "<string>",
    "email": "<string>",
    "address_line1": "<string>",
    "address_line2": "<string>",
    "landmark": "<string>",
    "pincode": "<string>",
    "city": "<string>",
    "state": "<string>",
    "country": "<string>",
    "tax_identification_number": "123456789",
    "business_name": "<string>"
  }
}'
{
  "message": "<string>",
  "success": true,
  "content": {
    "customer_detail": {
      "id": "<string>",
      "first_name": "<string>",
      "last_name": "<string>",
      "country_code": "<string>",
      "phone": "<string>",
      "email": "<string>",
      "is_phone_verified": true,
      "is_email_verified": true,
      "business": {
        "business_type": "<string>",
        "name": "<string>",
        "pan_number": "<string>",
        "gstin": "<string>"
      }
    }
  }
}

Authorizations

Authorization
string
header
required

Access token

Body

application/json
business
object
address
object | null

Response

200
application/json
OK
message
string
success
boolean
content
object