Dokumentation Entwickler API

Billing Address

Aktualisiert am 16.03.2017

Billing Address

Attention

Those resources are read-only by default. Please contact us if you need write permissions

Get Billing Adresses

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.

Syntax:
$ curl -s
-H 'Accept: application/json'
-H 'Content-Type: application/json'
-u APP_API_KEY:APP_API_PASSWORD
-X GET
http://SHOP_SUBDOMAIN.versacommerce.de/api/billing_addresses.json
Beispiel:
Status: 200 OK

[
{
"address": {
"city": "Welver",
"company": "d1 group, e-business GmbH",
"country": "DE",
"customer_id": 1000,
"email": "customer1@versacommerce.de",
"extension": "",
"firstname": "Eduard",
"id": 100,
"lastname": "Siebert",
"option_01": "",
"option_02": "",
"option_03": "",
"order_id": 28761,
"phone": "+49 511 1659 800",
"state": "unbekannt",
"street": "Zwischen den Hölzern",
"streetnumber": "1a",
"title": "Herr",
"zipcode": 59514
}
},
{
"address": {
"city": "Welver",
"company": "d1 group, e-business GmbH",
"country": "DE",
"customer_id": 1001,
"email": "customer2@versacommerce.de",
"extension": "",
"firstname": "Björn",
"id": 101,
"lastname": "Dorra",
"option_01": "",
"option_02": "",
"option_03": "",
"order_id": 28761,
"phone": "+49 511 1659 800",
"state": "unbekannt",
"street": "Zwischen den Hölzern",
"streetnumber": "1a",
"title": "Herr",
"zipcode": 59514
}
}
]

Get Billing Address

GET /api/billing_addresses/:billing_address_id.json will return the specified billing address.

Syntax:
$ curl -s \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-u APP_API_KEY:APP_API_PASSWORD \
-X GET \
http://SHOP_SUBDOMAIN.versacommerce.de/api/billing_addresses/:billing_address_id.json
Beispiel:
Status: 200 OK

{
"address": {
"city": "Welver",
"company": "d1 group, e-business GmbH",
"country": "DE",
"customer_id": 1000,
"email": "customer1@versacommerce.de",
"extension": "",
"firstname": "Eduard",
"id": 100,
"lastname": "Siebert",
"option_01": "",
"option_02": "",
"option_03": "",
"order_id": 28761,
"phone": "+49 511 1659 800",
"state": "unbekannt",
"street": "Zwischen den Hölzern",
"streetnumber": "1a",
"title": "Herr",
zipcode": "59514
}
}

Get Billing Adresses Count

GET /api/billing_addresses/count.json will return the billing addresses count.

Syntax:
$ curl -s \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-u APP_API_KEY:APP_API_PASSWORD \
-X GET \
http://SHOP_SUBDOMAIN.versacommerce.de/api/billing_addresses/count.json
Beispiel:
status: 200 OK

{
"count": 45
}