v1
latestOpenAPI 3.0.12026-07-243902.3 MBAdd Shipment Info
This endpoint allows shipping information to be added to an existing order by using the Extend Line Item ID or Line Item Transaction ID (the merchant’s unique identifier for the order line item) of the Shipping Protection Contract line from the existing order.<div class='wrapper important'><h3>Important:</h3>Shipment information is only required when creating an order for shipping protection contracts. Shipments need to be added to an order for products shipped after order creation.</div>
Headers
Used to indicate the original media type of the resource (prior to any content encoding applied for sending).
An Extend private API key used to authenticate requests.
Indicates which content types, expressed as MIME types, the client is able to understand, as well as identifies which API version to use in the request.
Request body
Example request
{
"lineItemId": "07746dc6-53c2-4278-8ba8-0d8905150409",
"productIds": [
"07746dc6-53c2-4278-8ba8-0d8905150409"
],
"shipmentDate": 1652403703000,
"shippingProvider": "ups",
"trackingId": "9999 9999 9999 9999 9999",
"destination": {
"address1": "535 Mission Street",
"address2": "#2",
"city": "San Francisco",
"companyName": "The Cool Company",
"countryCode": "US",
"personName": "John Doe",
"phone": "555-123-4567",
"postalCode": "22210",
"provinceCode": "CA"
},
"source": {
"address1": "535 Mission Street",
"address2": "#2",
"city": "San Francisco",
"companyName": "The Cool Company",
"countryCode": "US",
"personName": "John Doe",
"phone": "555-123-4567",
"postalCode": "22210",
"provinceCode": "CA"
},
"trackingUrl": "www.tracking.com/tracking-id"
}Response
Successful shipment info addition.
Example response
{
"quoteId": "2c034f16-57cc-47ca-bbdb-ba1186360650",
"shipmentInfo": [
{
"destination": {
"address1": "535 Mission Street",
"address2": "#2",
"city": "San Francisco",
"companyName": "The Cool Company",
"countryCode": "US",
"personName": "John Doe",
"phone": "555-123-4567",
"postalCode": "22210",
"provinceCode": "CA"
},
"lineItemId": "07746dc6-53c2-4278-8ba8-0d8905150409",
"lineItemTransactionId": "07746dc6-53c2-4278-8ba8-0d8905150409",
"productIds": [
"07746dc6-53c2-4278-8ba8-0d8905150409"
],
"shipmentDate": 1652403703000,
"shippingProvider": "ups",
"source": {
"address1": "535 Mission Street",
"address2": "#2",
"city": "San Francisco",
"companyName": "The Cool Company",
"countryCode": "US",
"personName": "John Doe",
"phone": "555-123-4567",
"postalCode": "22210",
"provinceCode": "CA"
},
"trackingId": "9999 9999 9999 9999 9999",
"trackingUrl": "www.tracking.com/tracking-id",
"shipmentId": "07746dc6-53c2-4278-8ba8-0d8905150409"
}
],
"contractId": "c57ed096-24ef-49a4-a20a-d1b8bf770980",
"charitableDonation": {
"id": "HUMFND_123",
"donationAmount": 100,
"name": "The Human Fund: Money for People"
},
"lineItemTransactionId": "3f87b162-3462-4c0c-bb9c-af2b14e025c3",
"discountAmount": 399,
"taxCost": 199,
"lineItemIds": [
"3f87b162-3462-4c0c-bb9c-af2b14e025c3"
],
"offerId": "7cdabc72-227d-8f76-a9e7-c91de35c2781",
"offerPlanId": "c57ed096-24ef-49a4-a20a-d1b8bf770980",
"accountId": "3f87b162-3462-4c0c-bb9c-af2b14e025c3",
"orderId": "3f87b162-3462-4c0c-bb9c-af2b14e025c3",
"id": "3f87b162-3462-4c0c-bb9c-af2b14e025c3",
"transactionId": "3f87b162-3462-4c0c-bb9c-af2b14e025c3",
"storeId": "3f87b162-3462-4c0c-bb9c-af2b14e025c3",
"status": "fulfilled",
"fulfilledAt": 1652402394000,
"createdAt": 1652402394000,
"updatedAt": 1652402394000,
"adjustments": {
"adjustedQuoteId": "3f87b162-3462-4c0c-bb9c-af2b14e025c3",
"calculatedListPrice": 5999,
"previousContracts": [
"3f87b162-3462-4c0c-bb9c-af2b14e025c3"
],
"productsRemoved": [
{
"quantity": 1,
"referenceId": "product-id-1"
}
],
"newPremium": 130
},
"contractFailedReasons": [
"Contract line requested more coverage than available quantities on the order for at least one product"
],
"analytics": {
"fulfillmentMethod": "BOPIS"
}
}