Skip to main content
POST
Transition account refund status
POST//////
Use the /accounts/{account_token}/refunds/{refund_token}/transitions endpoint to transition a credit account refund’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 refund status. Send a GET request to /credit/accounts to retrieve existing credit account tokens.

refund_token
string
required

Unique identifier of the refund whose status you want to transition. Send a GET request to /credit/accounts/{account_token}/refunds endpoint to retrieve existing refund tokens for a given account.

Body

application/json

Request used to transition the status of a refund.

status
enum<string>
required

Current status of the refund.

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

Unique identifier of the refund status transition.

Maximum string length: 36

Response

Refund Response object.

Detailed refund response object.

type
enum<string>
required

Type of refund.

Available options:
PAYMENT_REFUND,
CREDIT_BALANCE_REFUND
token
string
required

Unique identifier of the refund.

amount
number
required

Amount of the refund.

The maximum refund amount is the amount that brings the account balance to $0. For example, $4000 is the maximum refund amount for a -$4000 account balance.

method
enum<string>
required

Payment instrument used to issue the refund.

Available options:
ACH,
CHECK
status
enum<string>
required

Current status of the refund.

Available options:
INITIATED,
PENDING,
PROCESSING,
SUBMITTED,
CANCELLED,
COMPLETED,
RETURNED
created_time
string<date-time>
required

Date and time when the refund was created.

updated_time
string<date-time>
required

Date and time when the refund was last updated.

account_token
string
required

Unique identifier of the account for which the refund is issued.

Maximum string length: 36
currency_code
enum<string>
default:USD
required

Valid three-digit link:https://www.iso.org/iso-4217-currency-codes.html[ISO 4217 currency code, window="_blank"].

Available options:
USD
description
string

Description of the refund.

payment_source_token
string

Unique identifier of the payment source that receives the refunded amount.

Maximum string length: 36