POST
/
subscriptions
/
add_split
curl --request POST \
  --url https://sandbox-api.superpagamentos.com/subscriptions/add_split \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "subscriptionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "subaccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "splitType": "amount",
  "splitAmount": 123,
  "splitPercentage": 123,
  "chargebackLiable": true
}'
{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subaccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"splitType": "AMOUNT",
"splitPercentage": 123,
"splitAmount": 123,
"liquidAmount": 123,
"chargebackLiable": true
},
"message": "Split adicionado 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

Dados necessários para adicionar um split à assinatura

The body is of type object.

Response

200
application/json

Split adicionado com sucesso

The response is of type object.