Skip to main content
POST
/
customers
/
{customer_id}
/
address
Create or Update a Customer Address
curl --request POST \
  --url https://sandbox-api.prava.space/v1/customers/{customer_id}/address \
  --header 'Api-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'Idempotency-Key: <idempotency-key>' \
  --data '{
  "name": "<string>",
  "address": "<string>",
  "city": "<string>",
  "state": "<string>",
  "postal_code": "<string>",
  "country": "<string>",
  "contact_information": {
    "phone": "<string>",
    "email": "<string>"
  }
}'
{
  "data": {
    "address_id": "a1b2c3d4-e5f6-7890-1234-567890abcdef",
    "customer_id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
    "status": "updated",
    "created_at": "2025-10-15T05:36:43.000Z",
    "updated_at": "2025-10-15T05:36:43.000Z"
  },
  "meta": {
    "request_id": "req_12345",
    "timestamp": "2025-10-15T05:36:43.000Z",
    "idempotency_key": "ee461e0f-1808-4018-9ee1-2744a8e822f7"
  }
}

Authorizations

Api-Key
string
header
required

Headers

Idempotency-Key
string<uuid>
required

A unique key for the request to ensure idempotency.

Path Parameters

customer_id
string<uuid>
required

Body

application/json
name
string
address
string
city
string
state
string
postal_code
string
country
string
contact_information
object

Response

Address created or updated successfully.

The response is of type any.

I