Redeem subscription

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

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 with 400/404.
Query Params
int32
required
Body Params
string
required
int32
string
enum
Defaults to en
Allowed:
int32
Headers
string
required
Defaults to Bearer <token>
Responses

Language
Credentials
Query
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json