Purchase Credits
POST/account/credits/top-up/
Request
- application/json
- application/x-www-form-urlencoded
- multipart/form-data
Body
required
pack_id stringrequired
Possible values: <= 100 characters
Identifier of the credits pack to purchase.
coupon_ids string[]
Possible values: <= 100 characters
Identifiers of the credits coupons to purchase.
Body
required
pack_id stringrequired
Possible values: <= 100 characters
Identifier of the credits pack to purchase.
coupon_ids string[]
Possible values: <= 100 characters
Identifiers of the credits coupons to purchase.
Body
required
pack_id stringrequired
Possible values: <= 100 characters
Identifier of the credits pack to purchase.
coupon_ids string[]
Possible values: <= 100 characters
Identifiers of the credits coupons to purchase.
Responses
- 200
- 400
- 401
- 500
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Array [
]
Array [
]
id string
sub_total integerrequired
total integerrequired
amount_due integerrequired
amount_paid integerrequired
currency_code stringrequired
credits_applied integerrequired
line_items
object[]
required
quantity integerrequired
description stringrequired
unit_amount integerrequired
tax_amount integerrequired
discount_amount integerrequired
amount integerrequired
date_from integerrequired
date_to integerrequired
discounts
object[]
required
description stringrequired
amount integerrequired
taxes
object[]
required
tax_name stringrequired
tax_rate doublerequired
tax_amount integerrequired
{
"id": "string",
"sub_total": 0,
"total": 0,
"amount_due": 0,
"amount_paid": 0,
"currency_code": "string",
"credits_applied": 0,
"line_items": [
{
"quantity": 0,
"description": "string",
"unit_amount": 0,
"tax_amount": 0,
"discount_amount": 0,
"amount": 0,
"date_from": 0,
"date_to": 0
}
],
"discounts": [
{
"description": "string",
"amount": 0
}
],
"taxes": [
{
"tax_name": "string",
"tax_rate": 0,
"tax_amount": 0
}
]
}
- application/json
- Schema
- Example (from schema)
Schema
error string
{
"error": "Invalid JWT."
}
- application/json
- Schema
- Example (from schema)
Schema
detail string
{
"detail": "Incorrect authentication credentials."
}
- application/json
- Schema
- Example (from schema)
Schema
detail string
{
"detail": "Unexpected error while handling your request."
}
Loading...