Test crediting
Test crediting
We have an endpoint that allows you to simulate receiving money via webhooks.
- Only available on test mode.Webhooks will be sent to the URL set on your business dashboard.
Endpoint Post
https://api.thepeer.co/test/credit
Request Body Parameters
Name | Description | Required | Data type |
---|---|---|---|
currency | The currency the transaction should be carried out in. The supported value is NGN . | true | String |
amount | The amount you are debiting the customer. This should be in kobo. The minimum value is 10000 | true | Number |
user_reference | The user reference of one of your indexed users | true | String |
Sample request
{
"currency": "NGN",
"amount": 10000,
"user_reference": "USER_REFERENCE"
}
Note that this endpoint only simulates the actual direct charge feature by transfer of funds between users on test environment.
Sample response
{
"message": "test complete"
}