Skip to main content
POST
Create a User Credit Transaction
See Errors for the common errors every v2 endpoint can return.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Idempotency-Key
string
required

A unique key for this request, up to 255 characters. Retrying with the same key and request returns the original response instead of performing the operation again. See Idempotency. A unique key for this request, up to 255 characters. Retrying with the same key and body returns the original response instead of performing the operation again.

Required string length: 1 - 255
Example:

"3f1c9a52-7d4e-4b8a-9c21-6e0f5d2a8b14"

Body

application/json

Request body for creating a new User Credit Transaction.

user_credit_balance_id
string
required

The ID of the User Credit Balance to create the transaction against.

Pattern: ^user_credit_balance_[0-9A-Za-z]{27}$
Example:

"user_credit_balance_1HCpXwx2EK9oYluWbacgeCnFcLf"

type
enum<string>
required

The type of the User Credit Transaction, which determines how the transaction affects the associated User Credit Balance.

Available options:
card,
funding,
fee,
fee_earned,
dispute_provisional,
dispute_won,
dispute_lost,
charge_off,
charge_off_recovery,
rewards_earned,
rewards_spent,
rewards_redeemed,
interest_accrued,
adjustment,
reallocation,
payment,
cancellation,
partner_credit
Example:

"card"

description
string
required

A client-provided description of the transaction. Limited to 120 characters.

Maximum string length: 120
Example:

"Monthly card fee"

currency
enum<string>
required

A three-letter currency code as defined in ISO 4217. USD is the only supported value.

Available options:
USD
Example:

"USD"

amount
integer<int64>
required

The transaction amount, represented in minor units. Sign rules and amount_breakdown treatment depend on type:

  • Non-negative (>= 0), rule applies to amount and all of amount_breakdown.principal/.interest/.fees: dispute_lost
  • Non-negative (>= 0), rule applies to amount and amount_breakdown.interest only; amount_breakdown.principal and .fees are forced to 0: funding, interest_accrued
  • Non-negative (>= 0); amount_breakdown.principal and .interest are forced to 0: fee
  • Strictly positive (> 0); amount_breakdown.principal and .interest are forced to 0: fee_earned
  • Non-positive (<= 0), rule applies to amount and all of amount_breakdown.principal/.interest/.fees: payment, dispute_provisional, charge_off, rewards_redeemed, cancellation, partner_credit, dispute_won, charge_off_recovery
  • Exactly 0, and all of amount_breakdown.principal/.interest/.fees forced to 0: rewards_earned, rewards_spent (the signed rewards value instead lives in rewards.amount)
  • Exactly 0 at the top level only; amount_breakdown components may be nonzero as long as they sum to 0: reallocation
  • Unconstrained: card, adjustment
Example:

1500

amount_breakdown
object
required

A breakdown of amount into its principal, interest, and fee components. The three values must sum to amount.

effective_at
string<date-time>
required

An RFC 3339 timestamp representing when the transaction is effective. Must fall within the current calendar quarter, in UTC. During the first 7 days of a quarter, it can also fall within the previous quarter.

Example:

"2026-09-30T00:00:00Z"

amount_in_usd
integer<int64>

The USD-equivalent value of amount, represented in minor units, signed with the same sign rules as amount.

Example:

1630

card_settlement_date
string<date>

The date on which the transaction is expected to settle with the card network. Required on card-type User Credit Transactions; omitted otherwise. Mutable via the update endpoint.

Example:

"2026-09-30"

card
object

Card network details on a card-type User Credit Transaction. Required when type is card.

fee
object

Fee details on a fee-type User Credit Transaction. Required when type is fee.

rewards
object

Rewards program details associated with the User Credit Transaction. Required when type is rewards_redeemed. Required when type is rewards_earned or rewards_spent and the top-level amount is 0.

funding_id
string

The ID of the associated Funding object. Required when type is funding, or when fee.type is borrower_origination, and must be absent otherwise.

Pattern: ^funding_[0-9A-Za-z]{27}$
Example:

"funding_0o5Fs0EELR0fUjHjbCnEtdUwQe3"

metadata
object

A set of key-value pairs that can be used to store additional information related to this object.

Response

The created User Credit Transaction object.

id
string
required

The ID of the User Credit Transaction object.

Pattern: ^user_credit_transaction_[0-9A-Za-z]{27}$
Example:

"user_credit_transaction_2JdQyVm8LpT4nWxZ7aBcEfGhKjR"

user_credit_balance_id
string
required

The ID of the User Credit Balance that this transaction belongs to.

Pattern: ^user_credit_balance_[0-9A-Za-z]{27}$
Example:

"user_credit_balance_1HCpXwx2EK9oYluWbacgeCnFcLf"

type
enum<string>
required

The type of the User Credit Transaction, which determines how the transaction affects the associated User Credit Balance.

Available options:
card,
funding,
fee,
fee_earned,
dispute_provisional,
dispute_won,
dispute_lost,
charge_off,
charge_off_recovery,
rewards_earned,
rewards_spent,
rewards_redeemed,
interest_accrued,
adjustment,
reallocation,
payment,
cancellation,
partner_credit
Example:

"card"

currency
enum<string>
required

A three-letter currency code as defined in ISO 4217. USD is the only supported value.

Available options:
USD
Example:

"USD"

amount
integer<int64>
required

The transaction amount, represented in minor units. See CreateUserCreditTransactionRequest.amount for the per-type sign rules. On a transaction created by a reverse action, this is the negation of the original transaction's amount.

Example:

1500

amount_breakdown
object
required

A breakdown of amount into its principal, interest, and fee components. The three values must sum to amount.

effective_at
string<date-time>
required

An RFC 3339 timestamp representing when the transaction is effective.

Example:

"2026-09-30T00:00:00Z"

metadata
object
required

A set of key-value pairs that can be used to store additional information related to this object.

created_at
string<date-time>
required

An ISO-8601 timestamp at which the User Credit Transaction was created.

Example:

"2026-09-30T11:01:36Z"

core_transaction_id
string

The core transaction on the settlement (FBO) account side of this transaction's posting. Present once the transaction posts; omitted otherwise.

Pattern: ^core_transaction_.+~\d+$
Example:

"core_transaction_xyz123"

counterparty_core_transaction_id
string

The core transaction on the counterparty side of this transaction's posting. Present once the transaction posts, and only when the counterparty is an account under your program; omitted otherwise.

Pattern: ^core_transaction_.+~\d+$
Example:

"core_transaction_xyz123"

description
string

A client-provided description of the transaction.

Maximum string length: 120
Example:

"Monthly card fee"

amount_in_usd
integer<int64>

The transaction amount converted to USD, represented in minor units. On a transaction created by a reverse action, this is the negation of the original transaction's amount_in_usd.

Example:

1500

card_settlement_date
string<date>

The date on which the transaction is expected to settle with the card network. Mutable via the update endpoint. Present only on card-type User Credit Transactions; omitted otherwise.

Example:

"2026-09-30"

card
object

Card network details on a card-type User Credit Transaction. Required when type is card.

fee
object

Fee details on a fee-type User Credit Transaction. Required when type is fee.

rewards
object

Rewards program details associated with the User Credit Transaction. Required when type is rewards_redeemed. Required when type is rewards_earned or rewards_spent and the top-level amount is 0.

original_user_credit_transaction_id
string

The User Credit Transaction this one reverses. Present only on a transaction created by a reverse action; omitted otherwise.

Pattern: ^user_credit_transaction_[0-9A-Za-z]{27}$
Example:

"user_credit_transaction_2JdQyVm8LpT4nWxZ7aBcEfGhKjR"

funding_id
string

The ID of the associated Funding object. Present when type is funding, or when type is fee and fee.type is borrower_origination; omitted otherwise.

Pattern: ^funding_[0-9A-Za-z]{27}$
Example:

"funding_0o5Fs0EELR0fUjHjbCnEtdUwQe3"