Skip to main content
POST
Preview a change to a return's fees

Authorizations

Authorization
string
header
required

API key issued per entity via Settings > Developers > API Keys. Each key carries scopes (e.g. orders:read, products:write). Bearer token format: Authorization: Bearer ark_live_ent_Test keys use ark_test_ent_. Both are issued per entity
via Settings > Developers > API Keys.

Path Parameters

id
string<uuid>
required

Body

application/json

One save: the changes to make, one intent each, and the copy of the return they were made from.

intents
object[]
required

The changes, applied in order; told apart by op. A key no intent's op takes is refused 422 intent_invalid (or client_field_forbidden for a field only the server sets, such as source, final_amount or waived).

Required array length: 1 - 50 elements

Adds a saved return fee rule to the return (Settings > Adjustments & Coupons); the rule's own calculation, caps, tax and waiver apply.

expected_updated_at
string<date-time>
required

The return's updated_at as you read it (on GET /returns/{id}, or the updated_at of the last fee change's answer). A save made from an older copy is refused 409 rma_changed; nothing is written.

Response

What the save would do. updated_at is the return's as read, logged is absent and nothing is written.

data
object
required