Shop

GetFreeDailyReward

Purpose: Grant a daily free reward to a player.

URL:

https://api.idosgames.com/api/{titleTemplateId}/{titleId}/Client/Shop/GetFreeDailyReward  

Method: POST

Request Parameters (JSON body):

  • FunctionParameters (object):

    • ItemID (string): The ID of the item to grant as the free daily reward.

Responses:

  • 200 OK: Daily reward granted successfully. Returns the granted reward details.

  • 400 Bad Request: Invalid request parameters or the item ID is null. Returns an error message.

Example Usage:

Request:

fetch('https://api.idosgames.com/api/{titleTemplateId}/{titleId}/Client/Shop/GetFreeDailyReward', {    
    method: 'POST',    
    headers: {    
        'Content-Type': 'application/json'    
    },    
    body: JSON.stringify({    
        FunctionParameters: {    
            ItemID: 'example-item-id'    
        }    
    })    
})    
.then(response => response.json())    
.then(data => console.log(data))    
.catch(error => console.error('Error:', error));  

Response:

BuyItemSpecialOffer

Purpose: Allows a player to buy a special offer item using virtual currency.

URL:

Method: POST

Request Parameters (JSON body):

  • FunctionParameters (object):

    • ItemID (string): The ID of the special offer item to purchase.

Responses:

  • 200 OK: Item purchased successfully. Returns the purchase details.

  • 400 Bad Request: Invalid request parameters or the item ID is null. Returns an error message.

Example Usage:

Request:

Response:

BuyItemForVirtualCurrency

Purpose: Allows a player to purchase an item using virtual currency.

URL:

Method: POST

Request Parameters (JSON body):

  • FunctionParameters (object):

    • ItemID (string): The ID of the item to purchase.

Responses:

  • 200 OK: Item purchased successfully. Returns the purchase details.

  • 400 Bad Request: Invalid request parameters or the item ID is null. Returns an error message.

Example Usage:

Request:

Response:

BuyItemDailyOffer

Purpose: Allows a player to purchase a daily offer item using virtual currency.

URL:

Method: POST

Request Parameters (JSON body):

  • FunctionParameters (object):

    • ItemID (string): The ID of the daily offer item to purchase.

Responses:

  • 200 OK: Item purchased successfully. Returns the purchase details.

  • 400 Bad Request: Invalid request parameters or the item ID is null. Returns an error message.

Example Usage:

Request:

Response:

GrantItemsAfterIAPPurchase

Purpose: Grant items to the user after an In-App Purchase (IAP) is completed.

URL:

Method: POST

Request Parameters (JSON body):

  • FunctionParameters (object):

    • ItemID (string): The ID of the purchased item.

Responses:

  • 200 OK: Items granted successfully. Returns the grant details.

  • 400 Bad Request: Invalid request parameters or the item ID is null. Returns an error message.

Example Usage:

Request:

Response:

Last updated

Was this helpful?