Skip to main content
POST
Create refund
POST////
Create a new refund, which you can issue to the account holder if their credit account balance is negative.

URL path parameters

Request body

Sample request body

JSON

Response body

Sample response body

JSON

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 create a balance refund.

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

Body

application/json

Specifies the details of a refund creation request.

type
enum<string>
required

Type of refund.

Available options:
PAYMENT_REFUND,
CREDIT_BALANCE_REFUND
method
enum<string>
required

Payment instrument used to issue the refund.

Available options:
ACH,
CHECK
token
string

Unique identifier of the refund.

amount
number

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.

Required range: x >= 0.01
description
string

Description of the refund.

currency_code
enum<string>
default:USD

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

Available options:
USD
payment_source_token
string

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

Maximum string length: 36

Response

Expected response.

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