POST
/
customers
/
{user_id}
/
addresses
curl --request POST \
  --url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/customers/{user_id}/addresses \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "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>",
  "is_default_billing": true,
  "is_default_shipping": true
}'
{
  "message": "<string>",
  "success": true,
  "content": {
    "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>",
      "is_phone_verified": true,
      "is_email_verified": true
    }
  }
}

Authorizations

Authorization
string
header
required

Access token

Path Parameters

user_id
string
required

User id

Body

application/json
payload for new address

The body is of type object.

Response

200
application/json
OK

The response is of type object.