Skip to main content
POST
cURL
Creates a credit.

Authorizations

Authorization
string
header
required

Token-based authentication with required prefix "Token"

Body

customer_id
string | null
required

The id provided when creating the customer, we suggest matching with your internal customer id in your backend

Minimum string length: 1
amount
number<double>
required
write-only
Required range: -10000000000 < x < 10000000000
currency_code
string
required
write-only
Minimum string length: 1
description
string | null
write-only
effective_at
string<date-time>
write-only
expires_at
string<date-time> | null
write-only
amount_paid
number<double>
Required range: 0 <= x < 10000000000
amount_paid_currency_code
string
write-only
Minimum string length: 1

Response

201 - application/json
credit_id
string
required
customer
object
required
amount
number<double>
required
Required range: 0 <= x < 10000000000
amount_remaining
number<double>
required
read-only
Required range: 0 <= x < 10000000000
currency
object
required
description
string | null
required
read-only
effective_at
string<date-time>
required
read-only
expires_at
string<date-time> | null
required
read-only
status
enum<string>
required
read-only
  • active - Active
  • inactive - Inactive
Available options:
active,
inactive
amount_paid
number<double>
required
read-only
Required range: -10000000000 < x < 10000000000
amount_paid_currency
object | null
required
drawdowns
object[]
required
read-only