Shipping Address Resource

Shipping Address Resource

Attention
Shipping Address resources are read-only by default. Please contact us at support@versacommerce.de if you need write permissions.



Get Shipping Addresses

GET /api/shipping_addresses.json

  • GET /api/shipping_addresses.json will return the first 150 (default limit) shipping addresses. You can increase the limit to a maximum of 250 shipping addresses.
Example:
$ 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/shipping_addresses.json

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 Shipping Address

GET /api/shipping_addresses/:shipping_address_id.json

  • GET /api/shipping_addresses/:shipping_address_id.json will return the specified shipping address.
Example:
$ 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/shipping_addresses/:shipping_address_id.json

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 Shipping Address Count

GET /api/shipping_addresses/count.json

  • GET /api/shipping_addresses/count.json will return the shipping addresses count.
Example:
$ 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/shipping_addresses/count.json

Status: 200 OK

{
  "count": 45
}

    • Related Articles

    • Address

      Beim Zugriff auf Attribute des Adressobjekts müssen Sie angeben, auf welche Adresse Sie ein Targeting durchführen möchten. Dies erfolgt durch Verwendung von shipping_address oder billing_address vor dem Attribut. ​adresse kann in E-Mail-Vorlagen, auf ...
    • Billing Address

      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 ...
    • Order Resource

      Attention Order resources are read-only by default. Please contact us for access. ​ Order Statuses Order Status English German open new order Neue Bestellung in_progress in progress, started processing Bearbeitung begonnen cancelled order was ...
    • Item Resource

      Those resources are read-only by default. Please contact us if you need write permissions. Get Items GET /api/items.json GET /api/items.json will return the first 150 (default limit) items. You can increase the limit to a maximum of 250 items. GET ...
    • Shipping_type

      shipping_type.delivers_to_* product.shipping_types.first.delivers_to_de product.shipping_types.first.delivers_to_at product.shipping_types.first.delivers_to_ch product.shipping_types.first.delivers_to_uk product.shipping_types.first.delivers_to_us ...