Skip to main content
POST
Transition account payment status
POST//////
Transition a credit account payment’s status to a new status.

URL path parameters

Request body

Sample request body

JSON

Response body

Authorizations

Authorization
string
header
required

Token used to verify user identity and also authorize user to use service

Path Parameters

account_token
string
required

Unique identifier of the credit account for which you want to transition a payment status.

Send a GET request to /credit/accounts to retrieve existing credit account tokens.

payment_token
string
required

Unique identifier of the payment whose status you want to transition.

Send a GET request to /credit/accounts/{account_token}/payments endpoint to retrieve existing payment tokens for a given account.

Body

application/json

Request used to transition the status of a payment.

status
enum<string>
required

Current status of the payment or refund.

Available options:
INITIATED,
PENDING,
PROCESSING,
SUBMITTED,
CANCELLED,
COMPLETED,
RETURNED,
REFUNDED,
SYS_ERROR,
ACH_ERROR
token
string

Unique identifier of the payment status transition.

Maximum string length: 36
refund_details
object

Contains details for a refund.

waive_returned_payment_fee
boolean

A value of true indicates that a returned payment fee should not be applied if one is applicable. This is false by default. This field is only considered during a transition to either REFUNDED or RETURNED

Response

Payment Transition Response object.

Response containing payment transition information.

token
string
required

Unique identifier of the payment status transition.

status
enum<string>
required

New status to which the payment is transitioned.

  • (ACH payments only) CANCELLED - The payment is canceled.
  • (Non-ACH payments only) RETURNED - For non-ACH payments, the payment is returned.
Available options:
INITIATED,
PENDING,
PROCESSING,
SUBMITTED,
CANCELLED,
COMPLETED,
RETURNED,
REFUNDED,
SYS_ERROR,
ACH_ERROR
account_token
string
required

Unique identifier of the credit account on which you want to transition a payment status.

payment_token
string
required

Unique identifier of the payment whose status you want to transition.

created_time
string<date-time>

Date and time when the payment transition was created on Marqeta's credit platform, in UTC.