POST
/
subscriptions
curl --request POST \
  --url https://sandbox-api.superpagamentos.com/subscriptions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "customerId": "536feaf7-014b-4ad3-a2db-f14897bc2275",
  "tokenizedCardId": "10aaa074-dd95-4bdb-9618-f81e6fdc1e17",
  "title": "Plano Premium Mensal",
  "amount": 2990,
  "setupAmount": 1000,
  "frequency": 30,
  "duration": 12,
  "dueDate": "2025-06-04",
  "expirationDate": "2026-06-04",
  "tolerancePeriod": 5,
  "split": [
    {
      "subaccountId": "c873d310-d2eb-41da-adaa-36fc8900fb99",
      "splitType": "percentage",
      "splitPercentage": 80,
      "splitAmount": 80,
      "chargebackLiable": true
    }
  ]
}'
{
"data": {
"id": "0b756e37-d852-4aa6-ae10-80e4b35e5cd7",
"customerId": "536feaf7-014b-4ad3-a2db-f14897bc2275",
"cardId": "10aaa074-dd95-4bdb-9618-f81e6fdc1e17",
"title": "Plano Premium Mensal",
"amount": 2990,
"setupAmount": 1000,
"frequency": 30,
"duration": 12,
"dueDate": "2025-06-04",
"expirationDate": "2026-06-04",
"tolerancePeriod": 5,
"status": "ACTIVE",
"createdAt": "2025-06-04T23:00:54.887Z",
"updatedAt": "2025-06-04T23:00:54.887Z",
"canceledAt": null,
"splits": [
{
"subaccountId": "c873d310-d2eb-41da-adaa-36fc8900fb99",
"splitType": "percentage",
"splitPercentage": 80,
"splitAmount": null,
"liquidAmount": 2392,
"chargebackLiable": true
}
]
},
"message": "Assinatura criada com sucesso"
}

Authorizations

Authorization
string
header
required

Token JWT gerado na rota de autenticação (/auth). Deve ser enviado no formato: Bearer <token>

Body

application/json

Response

200
application/json

Assinatura criada com sucesso

The response is of type object.