If the customer did not purchase protection during checkout, you can merchant-protect an order after-the-fact with this endpoint. Note: it is very important that you verify the status code of this request as not every order is eligible for protection.
- https://app.useonward.com/api/v1https://app.useonward.com/api/v1/orders/{shopOrderId}/add_protection
curl -i -X PATCH \
'https://app.useonward.com/api/v1/orders/{shopOrderId}/add_protection' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY_HERE'Protection added successfully
Your unique identifier for the Order. Must be unique across your orders and stable over time — Onward uses it to look up and de-duplicate orders, so the same value must always refer to the same order.
Onward's identifier for this Order. Use it to deep-link a customer into the start-a-claim flow at https://app.useonward.com/inquiries/start?uuid={lookup_key}.
Sum of shippable line items that are being protected in shop's currency
Sum of shippable line items that are being protected in customer's currency
When the order was placed in your e-comm platform. Must be a valid ISO 8601 / RFC 3339 timestamp. Send it in UTC with a trailing Z (as in the example); timezone offsets such as -08:00 are also accepted.
The order's financial status. Orders synced from your platform may carry statuses beyond the four accepted when creating or updating an order.
Where the order was sold, as sent on creation. Reads API for orders created without one.
At least one of first_name, last_name, email or phone_number is required.
{ "shop_order_id": "18282", "shop_order_number": "W-94713", "lookup_key": "fa524f69d568a1b2c3d4e5f6", "subtotal_price": { "cents": 1299, "currency": "USD" }, "subtotal_price_presentment": { "cents": 1299, "currency": "USD" }, "total_discounts_price": { "cents": 1299, "currency": "USD" }, "total_discounts_price_presentment": { "cents": 1299, "currency": "USD" }, "total_shipping_price": { "cents": 1299, "currency": "USD" }, "total_shipping_price_presentment": { "cents": 1299, "currency": "USD" }, "total_tax_price": { "cents": 1299, "currency": "USD" }, "total_tax_price_presentment": { "cents": 1299, "currency": "USD" }, "total_price": { "cents": 1299, "currency": "USD" }, "total_price_presentment": { "cents": 1299, "currency": "USD" }, "protection_paid": { "cents": 1299, "currency": "USD" }, "amount_protected": { "cents": 1299, "currency": "USD" }, "amount_protected_presentment": { "cents": 1299, "currency": "USD" }, "created_at": "2024-11-26T17:32:28Z", "financial_status": "paid", "source_name": "phone", "customer": { "shop_customer_id": "6072418623", "first_name": "Sally", "last_name": "Loo", "email": "sally@example.com", "phone_number": "+13105551234", "rewards": [ … ] }, "shipping_address": { "address1": "123 Main St", "address2": "Unit 50", "province_code": "CA", "city": "Los Angeles", "postal_code": "90210", "country_code": "US", "phone_number": "+13105551234" }, "line_items": [ { … } ] }