Saltar al contenido principal
POST
/
plans
Create plan
curl --request POST \
  --url https://billing-api.sandbox.z2pay.com/plans \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "code": "<string>",
  "name": "<string>",
  "description": "<string>",
  "metadata": {}
}
'

Autorizaciones

x-api-key
string
header
requerido

API Key da Credential (gerada no Backoffice)

Encabezados

Idempotency-Key
string

Unique key for request idempotency

Cuerpo

application/json
code
string
requerido
Required string length: 1 - 100
Pattern: ^[a-z0-9-_]+$
name
string
requerido
Required string length: 1 - 255
description
string
Maximum string length: 1000
metadata
object

Respuesta

Plan created