Customer Address


The Customer Address resource represents a single postal address in the address book of one customer.

Addresses may be added, updated, deleted and listed by customers and merchant users.

Create a Customer Address

POST/customers/addresses

curl -X POST https://api.pilon.io/customers/addresses \
     -H "Authorization: Bearer ACCESS_TOKEN_GOES_HERE" \
     -H "Content-Type: application/json"

Retrieve a Customer Address

GET/customers/addresses/{id}

curl -X GET https://api.pilon.io/customers/addresses/{id} \
     -H "Authorization: Bearer ACCESS_TOKEN_GOES_HERE" \
     -H "Content-Type: application/json"

Update a Customer Address

PUT/customers/addresses/{id}

curl -X PUT https://api.pilon.io/customers/addresses/{id} \
     -H "Authorization: Bearer ACCESS_TOKEN_GOES_HERE" \
     -H "Content-Type: application/json"

Delete a Customer Address

DELETE/customers/addresses/{id}

curl -X DELETE https://api.pilon.io/customers/addresses/{id} \
     -H "Authorization: Bearer ACCESS_TOKEN_GOES_HERE" \
     -H "Content-Type: application/json"

List All Customer Addresses

GET/customers/addresses

curl -X GET https://api.pilon.io/customers/addresses \
     -H "Authorization: Bearer ACCESS_TOKEN_GOES_HERE" \
     -H "Content-Type: application/json"

List All Addresses For Customer

GET/customers/{id}/addresses

curl -X GET https://api.pilon.io/customers/{id}/addresses \
     -H "Authorization: Bearer ACCESS_TOKEN_GOES_HERE" \
     -H "Content-Type: application/json"