Skip to main content

Addresses

The Addresses API allows you to manage shipping and billing addresses for your account.

List Shipping Addresses

GET/api/v1/address/shipping/

Get all shipping addresses for the current user

Example Request

curl -X GET https://api.axro.com/api/v1/address/shipping/ \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Example Response

[
{
"id": "a1b2c3d4-e5f6-7890-abcd-1234567890ab",
"company": "Example Corp",
"department": "Warehouse",
"street": "123 Shipping St",
"zip": "10001",
"city": "New York",
"country": "US",
"status": "approved",
"info": null
}
]

Create Shipping Address

GET/api/v1/address/shipping/

Get all shipping addresses for the current user

NameTypeRequiredDescription
companystringCompany name
departmentstringDepartment name
streetstringStreet and number
zipstringZIP/Postal code
citystringCity
countrystringCountry code (ISO 3166-1 alpha-2)

Example Request

curl -X POST https://api.axro.com/api/v1/address/shipping/ \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"company": "Example Corp",
"department": "Warehouse",
"street": "123 Shipping St",
"zip": "10001",
"city": "New York",
"country": "US"
}'

Example Response

{
"id": "a1b2c3d4-e5f6-7890-abcd-1234567890ab",
"company": "Example Corp",
"department": "Warehouse",
"street": "123 Shipping St",
"zip": "10001",
"city": "New York",
"country": "US",
"status": "pending",
"info": null
}

List Billing Address

GET/api/v1/address/billing/

Get the billing address for the current user

Example Request

curl -X GET https://api.axro.com/api/v1/address/billing/ \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Example Response

{
"company": "Example Corp",
"department": "Accounting",
"street": "456 Billing Ave",
"zip": "10002",
"city": "New York",
"country": "US"
}