Transaction History

This method retrieves information about transactions and their statuses. use gateway.[msdomain]

Request (GET)

/gateway/financials/{version}/transactions/{brand_id}/{from}/{to}

Parameters:

Name In Type Required Description
version path string true The API version to use.
brand_id path string true The ID of the casino.
from path string true The start date for the time range.
to path string true The end date for the time range.
type query string false Filters transactions by type. (withdraw/deposit)
status query string false Filters transactions by transaction status.(accepted/rejected/pending)
x-auth-token header string false player login session

Response

Status 200

{
  "all_transactions": [
    {
      "date": "2015-08-05T08:40:51.620Z",
      "transaction_id": "1",
      "transaction_type": "deposit",
      "method": "visa",
      "amount": "1000",
      "status": "Approved"
    }
  ],
  "total_deposits": "0",
  "total_withdrawals": "0",
  "net_deposits": "0"
}

Status 207 (player has pending withdraw)

{
  "pending_withdrawl": {
    "date": "2015-08-05T08:40:51.620Z",
    "transaction_id": "1",
    "transaction_type": "withdrawl",
    "method": "visa",
    "amount": "1000",
    "status": "pending"
  },
  "all_transactions": [
    {
      "date": "2015-08-05T08:40:51.620Z",
      "transaction_id": "1",
      "transaction_type": "deposit",
      "method": "visa",
      "amount": "1000",
      "status": "Approved"
    }
  ],
  "total_deposits": "0",
  "total_withdrawals": "0",
  "net_deposits": "0"
}

Status 400

{
  "errMsg": "invalid input - invalid brand id"
}

Status 500

{
  "result": "internal server error"
}

Response Parameters:

Name Description
all_transactions.date Date of transaction.
all_transactions.transaction_id id of transaction.
all_transactions.transaction_type type of transaction.
all_transactions.method method of transaction.
all_transactions.amount amount of transaction.
all_transactions.status status of transaction.
pending_withdrawl.date Date of transaction.
pending_withdrawl.transaction_id id of transaction.
pending_withdrawl.transaction_type type of transaction.
pending_withdrawl.method method of transaction.
pending_withdrawl.amount amount of transaction.
pending_withdrawl.status status of transaction.
total_deposits total amount of deposits.
total_withdrawals total amount of withdrawals.