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.
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.
When the system triggers the customer's deposit callback URL after calling this endpoint, it sets the deposit value to ZERO for security reasons.
Headers
content-type*
string
application/json
x-api-key*
string
Replace your API key
Request Body
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?