Skip to main content
POST

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.

Headers

Idempotency-Key
string

Client-generated unique key for idempotent POST/PATCH/DELETE operations. Alias for the Idempotency parameter. Max 255 chars. On retry with the same key, the original response is returned without re-executing the operation. Keys expire after 24 hours.

Maximum string length: 255

Body

application/json
original_order_id
string<uuid>

The originating sales order. Required unless this is a standalone RMA.

account_id
string<uuid>

Customer account. Derived from the original order when original_order_id is provided.

reason
string

Free-text reason for the return.

refund_amount
number<float>

Total dollar amount to refund before restocking fee deduction.

restocking_fee

Flat number (e.g. 25.00) or object form: { type: 'percentage', value: 10 } or { type: 'flat', value: 30 }.

items
object[]

Inline return line items. Added atomically with the RMA. quantity is accepted as an alias for quantity_authorized.

auto_refund
boolean
default:false

If true, issue the refund immediately after RMA creation. Requires refund_payment_id and payments:write scope. The response includes a 'refund' object.

refund_payment_id
string<uuid>

Required with auto_refund=true. The original payment to refund against.

refund_method
enum<string>
default:original

Refund routing. 'original' refunds to the original payment method.

Available options:
original,
store_credit,
check,
cash
override_window
boolean
default:false

Bypass the entity's return_window_days check. Requires returns:write.

customer_initiated
boolean
default:false

True when return was initiated via the customer portal.

notes
string
metadata
object

Response

Created RMA (hydrated with items[] and refund if inline operations ran)

RMA (return merchandise authorization). Phase A -- refund_amount is readOnly via PATCH; written only by POST /v1/returns/{id}/refund.

id
string<uuid>
object
enum<string>
Available options:
return
entity_id
string<uuid>
read-only
return_number
string
read-only
status
enum<string>
read-only

Use action endpoints to transition status; PATCH cannot write status.

Available options:
authorized,
expected,
received,
inspecting,
restocked,
written_off,
closed,
sent_to_vendor,
cancelled
original_order_id
string<uuid>
account_id
string<uuid>
vendor_id
string<uuid> | null
vendor_rma_number
string | null
inspection_required
boolean
restocking_fee
number | null
refund_amount
number | null
read-only

SSOT: written only by POST /v1/returns/{id}/refund (refundReturn canonical). PATCH cannot write this field.

return_to_vendor
boolean
source
enum<string> | null
Available options:
csr,
customer_portal,
marketplace
notes
string | null
metadata
object | null
received_at
string<date-time> | null
read-only
closed_at
string<date-time> | null
read-only
cancelled_at
string<date-time> | null
read-only
created_at
string<date-time>
read-only
updated_at
string<date-time>
read-only