Synthesis VR API – Gift Cards

Table of Contents

How Can We Help?

You are here:

1. Create a new API rule (similarly to https://synthesisvr.com/knowledge-base/reading-leaderboard-through-api/) or edit an existing one and assign the following permission:

  • Gift Cards

Important — SynthesisVR RECOMMEND using the “Strict Access” option and limit the endpoint access to your trusted IP addresses.
 
Generate new Gift Card:
2. Get the key for the rule and construct an HTTP GET request like this:

  • https://api.synthesisvr.com/data/giftcard/<KEY>/generate/<AMOUNT>/<EXPIRE_PERIOD>

Example:

  • https://api.synthesisvr.com/data/giftcard/11111111-1111-1111-1111-111111111111/generate/15.50/2 months

Response data:

  • {
    "code": "REO6CUWR",
    "valid": "2018-02-22T00:00:00",
    "amount": 15.50,
    "status": 1
    }

 
Delete an unused Gift Card:
3. Construct an HTTP GET request:

  • https://api.synthesisvr.com/data/giftcard/<KEY>/delete/<CODE>

Example:

  • https://api.synthesisvr.com/data/giftcard/11111111-1111-1111-1111-111111111111/delete/REO6CUWR

 

Sign Up For Your Trial