PUT
/
v2
/
orders
/
{merchant_id}
curl --request PUT \
  --url https://api.loyaltylion.com/v2/orders/{merchant_id} \
  --header 'Content-Type: application/json' \
  --data '{
  "payment_status": "not_paid",
  "refund_status": "not_refunded",
  "cancellation_status": "cancelled",
  "total_paid": "99.99",
  "total_refunded": "59.99"
}'
""

Use this endpoint to update an existing order in LoyaltyLion, using your internal (from your ecommerce platform) merchant_id to identify the order.

This is a full update and must include the order’s current payment, cancellation and refund status, including any relevant totals if required (total_paid and total_refunded).

The update endpoint is idempotent, so it’s safe to call it every time an order is updated in your system.

Path Parameters

merchant_id
string
required
Minimum length: 1

Body

application/json
Body

The body is of type object.

Response

204
application/json
204

The response is of type enum<string>.

Available options: