Payezydevelopers
Sandbox

API reference / Sandbox

Advance a sandbox payment

POST/v1/sandbox/orgs/{orgId}/payments/{paymentId}/advance

Moves a payment to its next status, or straight to failed or returned, and fires payment.updated.

Before you call it

  • NoteProposed. Not on the sandbox API yet.

Parameters

ParameterWhat it does
orgIdpath, uuidrequiredThe organization the call acts on. For platform calls, your platform's id; for customer calls, the customer's organization id. Get them from getMe or the customer list.
paymentIdpath, uuidrequiredA payment from createPayment or listPayments.

Request body

FieldWhat it does
toenumnext moves one step: approved -> processing -> completed.

One of next completed failed returned

Default "next"

Response 200

FieldWhat it does
idstringNo description in the spec yet.
statusstringNo description in the spec yet.

Events it causes

Used in guided journeys