Excluir layout de checkout
curl --request DELETE \
--url https://api.upag.io/v1/checkout/layouts/{layoutId} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.upag.io/v1/checkout/layouts/{layoutId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://api.upag.io/v1/checkout/layouts/{layoutId}';
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));Layouts de checkout
Excluir layout de checkout
Remove um layout da conta
DELETE
https://api.upag.io
/
v1
/
checkout
/
layouts
/
{layoutId}
Excluir layout de checkout
curl --request DELETE \
--url https://api.upag.io/v1/checkout/layouts/{layoutId} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.upag.io/v1/checkout/layouts/{layoutId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://api.upag.io/v1/checkout/layouts/{layoutId}';
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));Exclusão lógica: o layout deixa de aparecer na listagem.
Permissão:
checkout_layout.write (chave secreta).
Endpoint
curl -X DELETE https://api.upag.dev/v1/checkout/layouts/c1d2e3f4-5a6b-4c7d-8e9f-0a1b2c3d4e5f \
-H "Authorization: Bearer sk_test_your_api_key"
import { Upag } from 'upag';
const upag = new Upag('sk_test_your_api_key');
await upag.checkoutLayouts.delete('c1d2e3f4-5a6b-4c7d-8e9f-0a1b2c3d4e5f');
Em produção use
https://api.upag.io/v1 com sk_live_....Parâmetros
string (uuid)
required
ID do layout.
Resposta
204 No Content — sem corpo em caso de sucesso.
404 (CHECKOUT_LAYOUT_NOT_FOUND) se o layout não existir.