cURL
curl --request DELETE \ --url https://garu.com.br/api/subscription-prices/{id} \ --header 'Authorization: Bearer <token>'
Exclua um preço de assinatura
isActive: false
curl -X DELETE https://garu.com.br/api/subscription-prices/456 \ -H "Authorization: Bearer sk_test_sua_chave"
curl -X PATCH https://garu.com.br/api/subscription-prices/456 \ -H "Authorization: Bearer sk_test_sua_chave" \ -H "Content-Type: application/json" \ -d '{"isActive": false}'
400 - Preço possui assinaturas ativas
{ "statusCode": 400, "message": "Cannot delete price with active subscriptions" }
404 - Preço não encontrado
{ "statusCode": 404, "message": "Subscription price not found" }
Was this page helpful?