Skip to main content
POST
cURL
Create a new credit pack.

Authorizations

x-api-key
string
header
required

Headers

Idempotency-Key
string

Unique key used to safely retry this write for 24 hours without applying it twice.

Required string length: 1 - 200
Commet-Version
string
default:2026-08-27

API version used by this reference. Send this header to select this contract explicitly.

Body

application/json
name
string
required
Required string length: 1 - 100
credits
integer
required
Required range: 1 <= x <= 9007199254740991
price
integer
required
Required range: 0 <= x <= 9007199254740991
description
string
Maximum string length: 255
isActive
boolean

Response

Success

id
string
required
name
string
required
description
string | null
required
credits
integer
required
Required range: -9007199254740991 <= x <= 9007199254740991
price
integer
required
Required range: -9007199254740991 <= x <= 9007199254740991
isActive
boolean
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
object
string
required
Allowed value: "credit_pack"
livemode
boolean
required