Skip to main content
POST
Create account adjustment
POST////
Create an adjustment for an existing credit account.

URL path parameters

Request body

Sample request body

JSON

Response body

Sample response body

JSON

Path Parameters

account_token
string
required

Unique identifier of the credit account for which you want to create an adjustment.

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

Body

application/json

Contains information relevant to creating an account adjustment.

amount
number
required

Amount of the adjustment.

Value must be negative if original_ledger_entry_token is not passed.

Required range: x <= 1000000
description
string
required

Description of the adjustment.

Required string length: 1 - 255
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
note
string

Additional information on the adjustment.

Maximum string length: 255
token
string

Unique identifier of the adjustment.

Maximum string length: 36
reason
enum<string>

Reason for the adjustment.

  • DISPUTE - The adjustment occurred because a dispute was initiated.
  • DISPUTE_RESOLUTION - The adjustment occurred because of the result of a dispute resolution.
  • RETURNED_OR_CANCELED_PAYMENT - The adjustment occurred because a payment was returned or canceled.
  • OTHER - Any other reason the adjustment occurred. For example, a waived fee or account write-off.
Available options:
DISPUTE,
DISPUTE_RESOLUTION,
RETURNED_OR_CANCELED_PAYMENT,
OTHER
source_account_type
enum<string>

The source account type.

Available options:
NETWORK,
SPONSOR_BANK,
MQ_RESERVE,
PROGRAM_FUNDING
external_adjustment_id
string<uuid>

Unique identifier you provide of an associated external adjustment that exists outside Marqeta's credit platform.

original_ledger_entry_token
string<uuid>

Unique identifier of the original journal entry needing the adjustment.

Required when adjusting an existing journal entry.

Response

Expected response

Contains information returned for account adjustment.

type
enum<string>
required

Type of adjustment.

The adjustment is made on its correlating amount (for example, purchase adjustments are made on purchase amounts). You can use general adjustments for standalone adjustments made on the credit account balance itself, which includes account write-offs, credits, and more.

Available options:
PURCHASE,
FEE,
REWARD,
INTEREST,
GENERAL
token
string
required

Unique identifier of the adjustment.

If in the detail_object, unique identifier of the detail object.

amount
number
required

Amount of the adjustment.

reason
enum<string>
required

Reason for the adjustment.

  • DISPUTE - The adjustment occurred because a dispute was initiated.
  • DISPUTE_RESOLUTION - The adjustment occurred because of the result of a dispute resolution.
  • RETURNED_OR_CANCELED_PAYMENT - The adjustment occurred because a payment was returned or canceled.
  • LATE_FEE - The adjustment occurred because of a late fee.
  • OTHER - Any other reason the adjustment occurred. For example, a waived fee.
Available options:
DISPUTE,
DISPUTE_RESOLUTION,
RETURNED_OR_CANCELED_PAYMENT,
LATE_FEE,
OTHER
description
string
required

Description of the adjustment.

Minimum string length: 1
account_token
string
required

Unique identifier of the credit account on which the adjustment was made.

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
source_account_type
enum<string>
required

The source account type.

Available options:
NETWORK,
SPONSOR_BANK,
MQ_RESERVE,
PROGRAM_FUNDING
note
string | null

Additional information on the adjustment.

created_time
string<date-time>

Date and time when the account adjustment was applied, in UTC.

detail_token
string | null

Unique identifier of the adjustment detail. For example, the token of the dispute, the interest charge, or the returned payment that prompted the adjustment.

Returned when the system automatically applies an adjustment.

Maximum string length: 36

Unique identifier of the dispute or returned payment that prompted the interest adjustment.

This field is returned for interest adjustments only.

Maximum string length: 36

Contains full details of the related dispute or returned payment.

The fields returned in this object depend on whether a dispute or returned payment led to the interest adjustment. A dispute returns dispute details; a returned payment returns payment details.

For more on the dispute details returned, see the <</core-api/credit-account-disputes#retrieveDispute, dispute response fields>>.

For more on the returned payment details returned, see the <</core-api/credit-account-payments#retrievePayment, payment response fields>>.

This field is returned for interest adjustments only.

external_adjustment_id
string<uuid> | null

Unique identifier you provide of an associated external adjustment that exists outside Marqeta's credit platform.

adjustment_detail_object
object | null

Contains the adjustment's full details.

The fields returned in this object depend on the adjustment type.

Interest returns interest details. For the specific fields returned, see the detail_object fields marked "Returned for interest journal entries" in the <</core-api/credit-account-journal-entries#getAccountJournalEntry, account journal entry response fields>>.

Disputes return dispute details. For the specific fields returned, see the <</core-api/credit-account-disputes#retrieveDispute, dispute response fields>>.

original_ledger_entry_token
string<uuid>

Unique identifier of the original journal entry needing the adjustment.