post
https://www.pelcro.com/api/v1/sdk/gift/redeem
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Overview
Redeem a gift subscription for the authenticated customer using its gift_code (required). The gift must be paid and not already redeemed; address_id is required when the gift's product ships. Returns the customer resource with a fresh JWT.
Example:
curl --request POST \
--url 'https://www.pelcro.com/api/v1/sdk/gift/redeem?site_id=1232' \
--header 'Authorization: Bearer <JWT>' \
--header 'Content-Type: application/json' \
--data '{ "gift_code": "GIFT-XXXX-XXXX" }'Notes
- Protected — requires the customer's JWT.
- A missing or unknown
gift_code, or an already-redeemed/unpaid gift, fails with400/404.
