Skip to content

Mark an order's protection as refunded

Request

When you refund the customer for the protection amount in your e-comm platform, update the order's protection status in Onward.

Security
api_key
Path
shopOrderIdstringrequired

Your unique ID for the Order (the same shop_order_id you sent when creating it)

Headers
Content-Typestringrequired

Content-Type must be application/json

Example:application/json
Acceptstringrequired

Accept must be application/json

Example:application/json
curl -i -X PATCH \
  'https://app.useonward.com/api/v1/orders/{shopOrderId}/refund_protection' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'X-API-Key: YOUR_API_KEY_HERE'

Responses

Protection refunded successfully

Response
No content