Testing Deposit Events

Users can examine the system's behavior without making an actual deposit. By using this endpoint, customers can initiate a mock deposit. This type of deposit does not impact the balance and is intended for quick testing and integration.

Before calling this endpoint, the customers must create a deposit tracking session for their users.

Creating A Fake Deposit For Testing Callback Url API Endpoint

POST https://api-prod.alfa-instap-cpt.uk/pgpub/mock/deposit

By using this endpoint, one can simulate a deposit and activate the customer's webhook URL.

Headers

Name
Type
Description

content-type*

string

application/json

x-api-key*

string

Replace your API key

x-payload-hash*

string

Replace your calculated HMAC hash. See API Security.

Request Body

Name
Type
Description

userId*

string

STRING [Min 1,Max 4000] Characters The unique ID of the user. Mock/fake deposit will be triggered for this user.

blockChainCurrency*

string

STRING 3 Characters The payment is mocked for this blockchain. Supported values are BTC,LTC,USDT_TRON,DOGE, XRP, TRX or ETH.

blockChainAmount*

number

NUMBER The amount of the fake payment.

{
    "mockDepositResult": {
        "relatedSessionToken": "TOKEN",
        "detailedLogs": [
            "DETAILED LOG 1",
            "DETAILED LOG 2",
            "DETAILED LOG 3",
            "SUCCESS.",
        ]
    }
}

The system successfully created a mock deposit and pushed it to our event source. With detailed logs, one can gain insight into the operation status.

Last updated

Was this helpful?