POST /customer-addresses.json

POST /customer-addresses.json
application/json

Body Required

  • addressLineOne string | null

    Address line one

  • addressLineTwo string | null

    Address line two

  • city string | null

    City

  • country string | null

    Country

  • customerId integer(int32) Required

    Customer

  • name string | null

    Name

  • state string | null

    State

  • zip string | null

    Zip

Responses

  • 200 application/json

    Successful response

    Hide response attributes Show response attributes object
    • addressLineOne string | null

      Address line one

    • addressLineTwo string | null

      Address line two

    • city string | null

      City

    • country string | null

      Country

    • createdAt string(date-time)

      Created at

    • customerId integer(int32) Required

      Customer

    • id integer(int32)

      Id

    • name string | null

      Name

    • state string | null

      State

    • updatedAt string(date-time)

      Updated at

    • zip string | null

      Zip

POST /customer-addresses.json
curl \
 --request POST 'http://api.example.com/v1/customer-addresses.json' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"addressLineOne":"string","addressLineTwo":"string","city":"string","country":"string","customerId":42,"name":"string","state":"string","zip":"string"}'
Request examples
{
  "addressLineOne": "string",
  "addressLineTwo": "string",
  "city": "string",
  "country": "string",
  "customerId": 42,
  "name": "string",
  "state": "string",
  "zip": "string"
}
Response examples (200)
{
  "addressLineOne": "string",
  "addressLineTwo": "string",
  "city": "string",
  "country": "string",
  "createdAt": "2025-05-04T09:42:00Z",
  "customerId": 42,
  "id": 42,
  "name": "string",
  "state": "string",
  "updatedAt": "2025-05-04T09:42:00Z",
  "zip": "string"
}