Attention
Those resources are read-only by default. Please contact us if you need write permissions.
Get Billing Addresses
- GET /api/billing_addresses.json will return the first 150 (default limit) billing addresses. You can increase the limit to a maximum of 250 billing addresses.
Example:
$ curl -s
-H 'Accept: application/json'
-H 'Content-Type: application/json'
-u APP_API_KEY:APP_API_PASSWORD
-X GET
https://shop_subdomain.versacommerce.de/api/billing_addresses.json<br>
Status: 200 OK
[
{
"address": {
"city": "Musterstadt",
"company": "Musterfirma GmbH",
"country": "DE",
"customer_id": 1000,
"email": "<a rel="noopener noreferrer" href="mailto:customer1@example.com" target="_blank">customer1@example.com</a>",
"extension": "",
"firstname": "Max",
"id": 100,
"lastname": "Mustermann",
"option_01": "",
"option_02": "",
"option_03": "",
"order_id": 28761,
"phone": "+49 123 4567890",
"state": "unbekannt",
"street": "Musterstraße",
"streetnumber": "1a",
"title": "Herr",
"zipcode": 12345
}
},
{
"address": {
"city": "Musterstadt",
"company": "Musterfirma GmbH",
"country": "DE",
"customer_id": 1001,
"email": "<a rel="noopener noreferrer" href="mailto:customer2@example.com" target="_blank">customer2@example.com</a>",
"extension": "",
"firstname": "Erika",
"id": 101,
"lastname": "Mustermann",
"option_01": "",
"option_02": "",
"option_03": "",
"order_id": 28761,
"phone": "+49 123 4567890",
"state": "unbekannt",
"street": "Musterstraße",
"streetnumber": "1a",
"title": "Herr",
"zipcode": 12345
}
}
]
Get Billing Address
- GET /api/billingaddresses/:billingaddress_id.json will return the specified billing address.
Example:
$ curl -s
-H 'Accept: application/json'
-H 'Content-Type: application/json'
-u APP_API_KEY:APP_API_PASSWORD
-X GET
https://shop_subdomain.versacommerce.de/api/billing_addresses/:billing_address_id.json<br>
Status: 200 OK
{
"address": {
"city": "Musterstadt",
"company": "Musterfirma GmbH",
"country": "DE",
"customer_id": 1000,
"email": "customer1@example.com",
"extension": "",
"firstname": "Max",
"id": 100,
"lastname": "Mustermann",
"option_01": "",
"option_02": "",
"option_03": "",
"order_id": 28761,
"phone": "+49 123 4567890",
"state": "unbekannt",
"street": "Musterstraße",
"streetnumber": "1a",
"title": "Herr",
zipcode": "12345
}
}
Get Billing Addresses Count
- GET /api/billing_addresses/count.json will return the billing addresses count.
Example:
$ curl -s
-H 'Accept: application/json'
-H 'Content-Type: application/json'
-u APP_API_KEY:APP_API_PASSWORD
-X GET
https://shop_subdomain.versacommerce.de/api/billing_addresses/count.json
status: 200 OK
{
"count": 45
}