shipments

Resource: shipment

This link relationship returns a collection of shipments. You can paginate through this collection using the hypermedia links provided and the link relationships of first, prev, next, and last.

Required Scopes

Full store_full_access
Read transactions_read
Write transactions_write

Collection Resource

shipment

Actions

GET View a list of shipments
HEAD Get just the header response
OPTIONS Get a response explaining which HTTP methods are supported

Properties (5)

_embedded Object · Read-only

Contains fx:shipments[] — array of shipment resources

total_items String · Read-only

Total number of resources in this collection.

returned_items Number · Read-only

Number of resources returned in this page.

limit Number · Read-only

Maximum number of resources per page.

offset Number · Read-only

Number of resources skipped.

Link Relations (5)

self This Collection
first First Page of this Collection
prev Previous Page of this Collection
next Next Page of this Collection
last Last Page of this Collection
https://api.foxycart.com/transactions/{transaction_id}/shipments
Available via fx:shipments on shipment·fx:shipments on transaction

Example Representation

{
  "_links": {
    "curies": [
      {
        "name": "fx",
        "href": "https://api.foxycart.com/rels/{rel}",
        "templated": true
      }
    ],
    "self": {
      "href": "https://api.foxycart.com/stores/123/shipments",
      "title": "This Collection"
    },
    "first": {
      "href": "https://api.foxycart.com/stores/123/shipments?offset=0",
      "title": "First Page of this Collection"
    },
    "prev": {
      "href": "https://api.foxycart.com/stores/123/shipments?offset=0",
      "title": "Previous Page of this Collection"
    },
    "next": {
      "href": "https://api.foxycart.com/stores/123/shipments?offset=20",
      "title": "Next Page of this Collection"
    },
    "last": {
      "href": "https://api.foxycart.com/stores/123/shipments?offset=20",
      "title": "Last Page of this Collection"
    }
  },
  "_embedded": {
    "fx:shipments": [
      {
        "_links": {
          "curies": [
            {
              "name": "fx",
              "href": "https://api.foxycart.com/rels/{rel}",
              "templated": true
            }
          ],
          "self": {
            "href": "https://api.foxycart.com/shipments/456",
            "title": "This Shipment"
          },
          "fx:store": {
            "href": "https://api.foxycart.com/stores/456",
            "title": "This Store"
          },
          "fx:items": {
            "href": "https://api.foxycart.com/transactions/999/items?shipto={address_name}",
            "title": "Items in this shipment"
          },
          "fx:transaction": {
            "href": "https://api.foxycart.com/transactions/999",
            "title": "This Transaction"
          },
          "fx:shipments": {
            "href": "https://api.foxycart.com/transactions/999/shipments",
            "title": "Shipments for this Transaction"
          },
          "fx:customer": {
            "href": "https://api.foxycart.com/customers/789",
            "title": "This Customer"
          },
          "fx:customer_address": {
            "href": "https://api.foxycart.com/customer_addresses/999",
            "title": "This Customer Address"
          },
          "fx:attributes": {
            "href": "https://api.foxycart.com/shipments/123/attributes",
            "title": "Attributes for this shipment"
          },
          "fx:custom_fields": {
            "href": "https://api.foxycart.com/shipments/123/shipment_custom_fields",
            "title": "Custom Fields for this shipment"
          }
        },
        "address_name": "Default Shipping Address",
        "first_name": "John",
        "last_name": "Doe",
        "company": "",
        "address1": "1234 Anystreet",
        "address2": "",
        "city": "NASHVILLE",
        "region": "TN",
        "postal_code": "37211",
        "country": "US",
        "phone": "555-555-55555",
        "shipping_service_id": 55,
        "shipping_service_description": "FedEx Home Delivery",
        "total_item_price": 10,
        "total_tax": 1.99,
        "total_shipping": 11.29,
        "total_price": 23.28,
        "date_created": "2015-04-15T08:46:39-0700",
        "date_modified": "2015-04-15T08:46:39-0700"
      }
    ]
  },
  "total_items": 1,
  "returned_items": 1,
  "limit": 20,
  "offset": 0
}