gift cards Archives - Synthesis VR https://synthesisvr.com/knowledge-base/tag/gift-cards/ VR Location Management and Content Licensing Thu, 07 Sep 2023 19:07:48 +0000 en-US hourly 1 https://wordpress.org/?v=6.2.6 https://synthesisvr.com/wp-content/uploads/2022/11/cropped-Site-Logo-Icon-32x32.png gift cards Archives - Synthesis VR https://synthesisvr.com/knowledge-base/tag/gift-cards/ 32 32 Synthesis VR API – Gift Cards https://synthesisvr.com/knowledge-base/gift-cards-through-api/?utm_source=rss&utm_medium=rss&utm_campaign=gift-cards-through-api Mon, 23 Dec 2019 20:42:31 +0000 https://synthesisvr.com/?post_type=epkb_post_type_1&p=3139 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  

The post Synthesis VR API – Gift Cards appeared first on Synthesis VR.

]]>
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

 

The post Synthesis VR API – Gift Cards appeared first on Synthesis VR.

]]>