cURL
curl --request POST \ --url https://api.pocketsflow.com/discounts/validate \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "code": "<string>", "productId": "<string>" } '
Check if a discount code is valid
Enter your Pocketsflow API key (format: pk_live_... or pk_test_...)
Discount code
Product ID to check if discount applies
Discount is valid
Was this page helpful?