Use only when the address is not to be saved/reused. To use a saved address (i.e. from the Addresses resource), PATCH the shipment's ToAddressID property instead.
- Production sever for Ordercloudhttps://api.ordercloud.io/v1/shipments/{shipmentID}/shipto
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://api.ordercloud.io/v1/shipments/{shipmentID}/shipto' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"ID": "",
"DateCreated": "2018-01-01T00:00:00-06:00",
"CompanyName": "",
"FirstName": "",
"LastName": "",
"Street1": "",
"Street2": "",
"City": "",
"State": "",
"Zip": "",
"Country": "",
"Phone": "",
"AddressName": "",
"xp": {}
}'Use only when the address is not to be saved/reused. To use a saved address (i.e. from the Addresses resource), PATCH the shipment's ToAddressID property instead.
In order to properly trigger OrderShipped emails, this date must be NULL on initial create. Update with the date only when all of the Shipment items have been created. Once all of an order's items exist on a shipment that has a DateShipped populated the OrderShipped message sender will trigger and Order.Status will be updated to Complete.
ID of the organization that owns the shipment. Only the marketplace owner can override the OwnerID on create.
Marketplace owner or supplier AddressID where the product will be shipped from.
{ "ID": "", "DateCreated": "2018-01-01T00:00:00-06:00", "CompanyName": "", "FirstName": "", "LastName": "", "Street1": "", "Street2": "", "City": "", "State": "", "Zip": "", "Country": "", "Phone": "", "AddressName": "", "xp": {} }
{ "ID": "", "BuyerID": "", "Shipper": "", "DateShipped": "2018-01-01T00:00:00-06:00", "DateDelivered": "2018-01-01T00:00:00-06:00", "TrackingNumber": "", "Cost": 0, "OwnerID": "", "xp": {}, "Account": "", "FromAddressID": "", "ToAddressID": "", "FromAddress": { "ID": "", "DateCreated": "2018-01-01T00:00:00-06:00", "CompanyName": "", "FirstName": "", "LastName": "", "Street1": "", "Street2": "", "City": "", "State": "", "Zip": "", "Country": "", "Phone": "", "AddressName": "", "xp": {} }, "ToAddress": { "ID": "", "DateCreated": "2018-01-01T00:00:00-06:00", "CompanyName": "", "FirstName": "", "LastName": "", "Street1": "", "Street2": "", "City": "", "State": "", "Zip": "", "Country": "", "Phone": "", "AddressName": "", "xp": {} } }