Your customers orders, including the information necessary for Onward to insure and handle claims.
Onward API (1.0.0)
URL to courier tracking page
The order line items included in this shipment
Name for the product and variant purchased
Item price in order's currency
Line item total in order's currency
Line item total in customer's currency
URL to an image of the item
Whether the item should be insured by Onward (generally you should set this to true for shippable items and false for digital items). Requires purchase token and amount insured in the Order.
Number of items refunded (for full or partial refunds)
Total refunded amount in order's currency
- https://app.useonward.com/api/v1/shipments
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://app.useonward.com/api/v1/shipments \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY_HERE' \
-d '{
"shop_shipment_id": "3712",
"shop_order_id": "18282",
"tracking_number": "780371515850",
"tracking_url": "https://www.fedex.com/wtrk/track/?trknbr=780371515850",
"tracking_company": "DHL Express",
"line_items": [
{
"shop_line_item_id": "816721",
"shop_product_id": "142",
"shop_variant_id": "7261",
"name": "Cool T-shirt - Red",
"unit_price": {
"cents": 500,
"currency": "USD"
},
"total_price": {
"cents": 1000,
"currency": "USD"
},
"total_price_presentment": {
"cents": 1000,
"currency": "USD"
},
"quantity": 2,
"image_url": "https://placecats.com/neo/300/200.png",
"grams": 24,
"is_insured": true,
"refunded_quantity": 1,
"refunded_price": {
"cents": 500,
"currency": "USD"
},
"refunded_price_presentment": {
"cents": 500,
"currency": "USD"
}
}
],
"created_at": "2024-11-26T17:32:28Z"
}'Shipment created successfully
URL to courier tracking page
The order line items included in this shipment
Name for the product and variant purchased
Item price in order's currency
Line item total in order's currency
Line item total in customer's currency
URL to an image of the item
Whether the item should be insured by Onward (generally you should set this to true for shippable items and false for digital items). Requires purchase token and amount insured in the Order.
Number of items refunded (for full or partial refunds)
Total refunded amount in order's currency
{ "shop_shipment_id": "3712", "shop_order_id": "18282", "tracking_number": "780371515850", "tracking_url": "https://www.fedex.com/wtrk/track/?trknbr=780371515850", "tracking_company": "DHL Express", "line_items": [ { … } ], "created_at": "2024-11-26T17:32:28Z" }
URL to courier tracking page
The order line items included in this shipment
Name for the product and variant purchased
Item price in order's currency
Line item total in order's currency
Line item total in customer's currency
URL to an image of the item
Whether the item should be insured by Onward (generally you should set this to true for shippable items and false for digital items). Requires purchase token and amount insured in the Order.
Number of items refunded (for full or partial refunds)
Total refunded amount in order's currency
- https://app.useonward.com/api/v1/shipments/{shopShipmentId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
'https://app.useonward.com/api/v1/shipments/{shopShipmentId}' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY_HERE' \
-d '{
"shop_shipment_id": "3712",
"shop_order_id": "18282",
"tracking_number": "780371515850",
"tracking_url": "https://www.fedex.com/wtrk/track/?trknbr=780371515850",
"tracking_company": "DHL Express",
"line_items": [
{
"shop_line_item_id": "816721",
"shop_product_id": "142",
"shop_variant_id": "7261",
"name": "Cool T-shirt - Red",
"unit_price": {
"cents": 500,
"currency": "USD"
},
"total_price": {
"cents": 1000,
"currency": "USD"
},
"total_price_presentment": {
"cents": 1000,
"currency": "USD"
},
"quantity": 2,
"image_url": "https://placecats.com/neo/300/200.png",
"grams": 24,
"is_insured": true,
"refunded_quantity": 1,
"refunded_price": {
"cents": 500,
"currency": "USD"
},
"refunded_price_presentment": {
"cents": 500,
"currency": "USD"
}
}
],
"created_at": "2024-11-26T17:32:28Z"
}'Shipment updated successfully
URL to courier tracking page
The order line items included in this shipment
Name for the product and variant purchased
Item price in order's currency
Line item total in order's currency
Line item total in customer's currency
URL to an image of the item
Whether the item should be insured by Onward (generally you should set this to true for shippable items and false for digital items). Requires purchase token and amount insured in the Order.
Number of items refunded (for full or partial refunds)
Total refunded amount in order's currency
{ "shop_shipment_id": "3712", "shop_order_id": "18282", "tracking_number": "780371515850", "tracking_url": "https://www.fedex.com/wtrk/track/?trknbr=780371515850", "tracking_company": "DHL Express", "line_items": [ { … } ], "created_at": "2024-11-26T17:32:28Z" }
- https://app.useonward.com/api/v1/shipments/{shopShipmentId}/events
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://app.useonward.com/api/v1/shipments/{shopShipmentId}/events' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY_HERE' \
-d '{
"shop_shipment_event_id": "817391",
"status": "in_transit",
"message": "string",
"estimated_delivery_at": "2024-11-26T17:32:28Z",
"created_at": "2024-11-26T17:32:28Z"
}'{ "shop_shipment_event_id": "817391", "status": "in_transit", "message": "string", "estimated_delivery_at": "2024-11-26T17:32:28Z", "created_at": "2024-11-26T17:32:28Z" }