NetgamingLogo

Refund() API

This API request is made when something goes wrong at the server / game-engine side and a previous debit request needs to be refunded.

POST   /refund

JSON

Content-Type: application/json
Host: https://test-api.netgaming.com/v1/
{
    "token": "cc918a3e4dea45ef5c31d6e3b9dce4afed3c02eb",
    "player_id": "125917",
    "amount": 100,
    "original_transaction_id": "2322",
    "transaction_id": "2322",
    "amount_type": "real",
    "currency": "GBP",
    "game_id": 1,
    "round_id": 198909,
    "game_type": "slots",
    "game_name": "ageofdavinci",
    "note": "refund"
}

 

Parameters Type Description
token String Token(session ID) created created for the player during login
player_id String Id of the player
amount Integer Should be in Cents format(balance = amount x 100
currency String Players currency
game_id Integer Game ID provided by the provider
round_id Integer ID of each play / spin
game_type String Types of game:slots,table_games, promo_freespin
game_name String Name of the game
transaction_id String Unique ID of the transaction
note String Extra information about debit request
original_transaction_id String A transaction ID which is related to debit.
amount_type String indicate type of amount type. It can only be real amount_type in refund transaction.
Response Example
{
    "status": 1,
    "player_id": "125917",
    "token": "3c2ef39d02581e2db3ddf6c713e83e05",
    "currency": "USD",
    "bonus_amount": 100,
    "balance": 1200,
    "transaction_id": "1222445"
}

 

Parameters Type Description
status Integer 0 Indicates fail, 1 indicates success response
player_id String Id of the player
transaction_id String Operators, Unique ID of the transaction
currency String Currency of the player
token String Unique string assigned to each player(session ID)
balance Integer Should be in Cents format(balance = amount x 100)
bonus_amount Integer Should be in Cents format(balance = amount x 100)