Excluir Sessão de Checkout
curl --request DELETE \
--url https://api.billing.upag.io/v1/checkout-sessions/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.billing.upag.io/v1/checkout-sessions/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://api.billing.upag.io/v1/checkout-sessions/{id}';
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));Sessões de Checkout
Excluir Sessão de Checkout
Exclui uma sessão de checkout
DELETE
https://api.billing.upag.io
/
v1
/
checkout-sessions
/
{id}
Excluir Sessão de Checkout
curl --request DELETE \
--url https://api.billing.upag.io/v1/checkout-sessions/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.billing.upag.io/v1/checkout-sessions/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://api.billing.upag.io/v1/checkout-sessions/{id}';
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));Exclui uma sessão de checkout. Somente sessões com status
open podem ser excluídas.
Endpoint
cURL
curl -X DELETE https://api.billing.upag.io/v1/checkout-sessions/cs_abc123xyz \
-H "Authorization: Bearer {token}"
Parâmetros
string
required
ID único da sessão de checkout, começando com
cs_.Resposta
Sem corpo. HTTP204 No Content em caso de sucesso.