arrow_back Back to all endpoints
POST https://test-api.finerworks.com/v3/list_shipping_options_multiple

Shipping Options Multiple

Submit a list of orders to get a list of available shipping options with the required shipping_code needed when submitting an order for each order. This endpoint should be requested under the following conditions. Any changes to the recipient of an order, a product is added or deleted from an order, the quantity of the any product changes.

Body

Requests shipping options by using order details to be submitted via order details object in the body.

Name Description Type Additional information
orders array (order_details) None.
account_key Optional - This will only be accepted for accounts with permission to utilize this parameter, otherwise it will be ignored and any shipping options will be based upon the user's api credentials. Leave as null if not authorized to use this parameter. text None.

Example JSON Body

application/json, text/json

{
  "orders": [
    {
      "order_po": "PO_0001",
      "order_key": null,
      "recipient": {
        "first_name": "Bob",
        "last_name": "Ross",
        "company_name": "Happy Little Trees, Inc",
        "address_1": "742 Evergreen Terrace",
        "address_2": null,
        "address_3": null,
        "city": "Mountain Scene",
        "state_code": "AK",
        "province": null,
        "zip_postal_code": "88888",
        "country_code": "us",
        "phone": "555-555-5555",
        "email": null,
        "address_order_po": "PO_0001"
      },
      "order_items": [
        {
          "product_order_po": "PO_0001",
          "product_qty": 1,
          "product_sku": "AP1234P1234",
          "product_image": null,
          "product_title": "The Big Blue Mountain",
          "template": null,
          "product_guid": "00000000-0000-0000-0000-000000000000",
          "custom_data_1": null,
          "custom_data_2": null,
          "custom_data_3": null
        }
      ],
      "shipping_code": "SD",
      "ship_by_date": null,
      "customs_tax_info": null,
      "gift_message": null,
      "test_mode": false,
      "webhook_order_status_url": null,
      "webhook_url": null,
      "document_url": null,
      "acct_number_ups": null,
      "acct_number_fedex": null,
      "custom_data_1": null,
      "custom_data_2": null,
      "custom_data_3": null,
      "source": null,
      "fulfillment_id": 0
    },
    {
      "order_po": "PO_0002",
      "order_key": null,
      "recipient": {
        "first_name": "Bob",
        "last_name": "Ross",
        "company_name": "Happy Little Trees, Inc",
        "address_1": "742 Evergreen Terrace",
        "address_2": null,
        "address_3": null,
        "city": "Mountain Scene",
        "state_code": "AK",
        "province": null,
        "zip_postal_code": "88888",
        "country_code": "us",
        "phone": "555-555-5555",
        "email": null,
        "address_order_po": "PO_0002"
      },
      "order_items": [
        {
          "product_order_po": "PO_0002",
          "product_qty": 1,
          "product_sku": "AP1234P1234",
          "product_image": null,
          "product_title": "The Big Blue Mountain",
          "template": null,
          "product_guid": "00000000-0000-0000-0000-000000000000",
          "custom_data_1": null,
          "custom_data_2": null,
          "custom_data_3": null
        }
      ],
      "shipping_code": "SD",
      "ship_by_date": null,
      "customs_tax_info": null,
      "gift_message": null,
      "test_mode": false,
      "webhook_order_status_url": null,
      "webhook_url": null,
      "document_url": null,
      "acct_number_ups": null,
      "acct_number_fedex": null,
      "custom_data_1": null,
      "custom_data_2": null,
      "custom_data_3": null,
      "source": null,
      "fulfillment_id": 0
    }
  ],
  "account_key": null
}

Sample Code Library

curl --location --request POST 'https://test-api.finerworks.com/v3/list_shipping_options_multiple' \
--header 'Content-Type: application/json' \
--header 'web_api_key: my-web-api-key-goes-here' \
--header 'app_key: my-app-key-goes-here' \
--data-raw '{
  "orders": [
    {
      "order_po": "PO_0001",
      "order_key": null,
      "recipient": {
        "first_name": "Bob",
        "last_name": "Ross",
        "company_name": "Happy Little Trees, Inc",
        "address_1": "742 Evergreen Terrace",
        "address_2": null,
        "address_3": null,
        "city": "Mountain Scene",
        "state_code": "AK",
        "province": null,
        "zip_postal_code": "88888",
        "country_code": "us",
        "phone": "555-555-5555",
        "email": null,
        "address_order_po": "PO_0001"
      },
      "order_items": [
        {
          "product_order_po": "PO_0001",
          "product_qty": 1,
          "product_sku": "AP1234P1234",
          "product_image": null,
          "product_title": "The Big Blue Mountain",
          "template": null,
          "product_guid": "00000000-0000-0000-0000-000000000000",
          "custom_data_1": null,
          "custom_data_2": null,
          "custom_data_3": null
        }
      ],
      "shipping_code": "SD",
      "ship_by_date": null,
      "customs_tax_info": null,
      "gift_message": null,
      "test_mode": false,
      "webhook_order_status_url": null,
      "webhook_url": null,
      "document_url": null,
      "acct_number_ups": null,
      "acct_number_fedex": null,
      "custom_data_1": null,
      "custom_data_2": null,
      "custom_data_3": null,
      "source": null,
      "fulfillment_id": 0
    },
    {
      "order_po": "PO_0002",
      "order_key": null,
      "recipient": {
        "first_name": "Bob",
        "last_name": "Ross",
        "company_name": "Happy Little Trees, Inc",
        "address_1": "742 Evergreen Terrace",
        "address_2": null,
        "address_3": null,
        "city": "Mountain Scene",
        "state_code": "AK",
        "province": null,
        "zip_postal_code": "88888",
        "country_code": "us",
        "phone": "555-555-5555",
        "email": null,
        "address_order_po": "PO_0002"
      },
      "order_items": [
        {
          "product_order_po": "PO_0002",
          "product_qty": 1,
          "product_sku": "AP1234P1234",
          "product_image": null,
          "product_title": "The Big Blue Mountain",
          "template": null,
          "product_guid": "00000000-0000-0000-0000-000000000000",
          "custom_data_1": null,
          "custom_data_2": null,
          "custom_data_3": null
        }
      ],
      "shipping_code": "SD",
      "ship_by_date": null,
      "customs_tax_info": null,
      "gift_message": null,
      "test_mode": false,
      "webhook_order_status_url": null,
      "webhook_url": null,
      "document_url": null,
      "acct_number_ups": null,
      "acct_number_fedex": null,
      "custom_data_1": null,
      "custom_data_2": null,
      "custom_data_3": null,
      "source": null,
      "fulfillment_id": 0
    }
  ],
  "account_key": null
}'