Long Description
Create a shipment for an existing order and assign items (ticket groups) to it.
Shipments with a type
of FedEx
cannot be created if the address is a PO Box as FedEx does not ship to PO Boxes.
Parameters
Name | Description | Value Type | Required |
---|---|---|---|
shipments | Array of shipments to be posted | Array | Required |
Shipments Parameters
Name | Description | Value Type | Required | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ID of an existing Client address to use for the recipient | Integer | Use one or the other, but not both. Required when | ||||||||||||||||||||||||||||||||||
An Address object containing the address information. | Object | ||||||||||||||||||||||||||||||||||||
available | Indicates whether the airbill is currently available. | boolean | Required when type is ProvidedAirbill | ||||||||||||||||||||||||||||||||||
carrier | The carrier for the ProvidedAirvill. | String | Required for certain types | ||||||||||||||||||||||||||||||||||
or
| ID of an existing Address to use as the sender. This is usually not necessary when shipping as an office, and is used to override the default. | Integer | Use one or the other, but not both. Neither is required. | ||||||||||||||||||||||||||||||||||
An Address object containing the address information. This is usually not necessary when shipping as an office, and is used to override the default. | Object | ||||||||||||||||||||||||||||||||||||
or
| ID of a phone number to use as the sender. This is usually not necessary when shipping as an office, and is used to override the default. | Integer | Use one or the other, but not both. Neither is required. | ||||||||||||||||||||||||||||||||||
A Phone Number object containing the phone number information. This is usually not necessary when shipping as an office, and is used to override the default. | Object | ||||||||||||||||||||||||||||||||||||
or
| ID of an existing Client phone number for the recipient | Integer | Use one or the other, but not both. Required when | ||||||||||||||||||||||||||||||||||
A Phone Number object containing the phone number information. | Object | ||||||||||||||||||||||||||||||||||||
or
| ID of an existing Client email address for the recipient | Integer | Use one or the other, but not both. Required when | ||||||||||||||||||||||||||||||||||
An Email Address object containing the email address information. | Object | ||||||||||||||||||||||||||||||||||||
type | Type of the shipment. You must enable the ones you wish to allow for each office and API Credential in Settings under Checkout→Shipping. As of 2016-03-15 the delivery type must correspond to the TicketGroup format for the following formats: Eticket, TMMobile, GuestList, Paperless, FlashSeats. Physical ticket groups must be shipped via FedEx or ProvidedAirbill unless the event occurs less than 18 hours from the order time.
| string | Required | ||||||||||||||||||||||||||||||||||
order_items | Array of items to be placed in this shipment. When creating/replacing a shipment for an existing order each array element should be an object with a single property, When creating a shipment at the time of order creation via | Array | Required | ||||||||||||||||||||||||||||||||||
service_type | The Service Type to use when the Shipment Although you are free to specify a specific Service Type we recommend that you always use
See the FedEx Service guide for details and delivery times. | string | Required when type is FedEx | ||||||||||||||||||||||||||||||||||
ship_to_name | Name of recipient | string | Required for certain types | ||||||||||||||||||||||||||||||||||
tracking_number | Input tracking number of shipment if you intend to ship the airbill yourself | string | Optional | ||||||||||||||||||||||||||||||||||
order_id | The order ID to which the shipment will belong | integer | Required | ||||||||||||||||||||||||||||||||||
signature_type | Type of signature required for delivery.
See the FedEx Service guide for additional details. | string | Optional | ||||||||||||||||||||||||||||||||||
residential | Mark FedEx deliveries as residential. Required for signature_type s INDIRECT and NO_SIGNATURE_REQUIRED . Has no effect on other delivery types. | boolean | Optional | ||||||||||||||||||||||||||||||||||
replace_existing | Set to true to replace the existing shipment for the specified item(s). | Boolean | Optional |
Examples
Request | Response |
---|---|
{ "shipments": [ { "address_id": 8172, "cost": "15.0", "order_items": [ { "id": 26117 } ], "order_id": 75106, "phone_number_id": 33432, "replace_existing": true, "service_type": "LEAST_EXPENSIVE", "ship_to_company_name": "", "ship_to_name": "Wallstreet Entertainment - Main Office", "signature_type": "INDIRECT", "residential": true, "type": "FedEx" } ] } | See Shipments / Index. |