cURL
curl --request GET \ --url https://garu.com.br/api/subscription-prices/{id} \ --header 'Authorization: Bearer <token>'
{ "id": 123, "uuid": "<string>", "productId": "<string>", "name": "<string>", "amount": 123, "billingInterval": "<string>", "trialDays": 123, "isActive": true }
Consulte os detalhes de um preço de assinatura específico
curl -X GET https://garu.com.br/api/subscription-prices/456 \ -H "Authorization: Bearer sk_test_sua_chave"
daily
weekly
monthly
annually
{ "id": "price_def456uvw", "productId": "prod_abc123xyz", "sellerId": 1, "name": "Plano Mensal", "amount": 49.90, "currency": "BRL", "billingInterval": "monthly", "trialDays": 7, "isActive": true, "createdAt": "2024-01-15T10:35:00.000Z", "updatedAt": "2024-01-15T10:35:00.000Z" }
404 - Preço não encontrado
{ "statusCode": 404, "message": "Subscription price not found" }
Was this page helpful?