Skip to main content
POST
Pay an order (embedded Accept.js)

Authorizations

Authorization
string
header
required

API key issued by VitaRelay. Send as Authorization: Bearer vr_live_… (production) or Authorization: Bearer vr_test_… (sandbox).

Path Parameters

id
string<uuid>
required

Order UUID.

Body

application/json
opaque_data
object
required

The Accept.js nonce returned by Accept.dispatchData.

Response

Payment captured (or the order was already paid).

paid
enum<boolean>
Available options:
true
order_id
string<uuid>
transaction_id
string | null
payment_status
enum<string>
Available options:
paid