Pular para o conteúdo 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": {}
}
'

Autorizações

x-api-key
string
header
obrigatório

API Key da Credential (gerada no Backoffice)

Cabeçalhos

Idempotency-Key
string

Unique key for request idempotency

Corpo

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

Resposta

Plan created