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

Autorizaciones

x-api-key
string
header
requerido

Encabezados

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
predeterminado:2026-08-27

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

Cuerpo

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

Respuesta

Success

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