Test webhooks
😬
NOTE
- Only available on test mode.
- Webhooks will be sent to the URL set on your business dashboard.
Credit
This endpoint allows you simulate receiving money via webhook.
Endpoint
POST
https://api.thepeer.co/test/credit
Sample body
{ "amount": 10000, "currency": "USD", "user_reference": "banana-island-ikoyi"}
Field requirements
Field name | Data type | Required | Description |
---|---|---|---|
amount | int | true | amount in units |
currency | string | true | currency code |
user_reference | string | true | any user reference from one of your indexed users |
Sample response
{ "message": "test complete"}
Charge
This endpoint allows you simulate a charge via webhook.
Endpoint
POST
https://api.thepeer.co/test/charge
Sample body
{ "amount": 10000, "from": "some-guy-in-lekki", "to": "some-girl-in-ikoyi", "currency": "NGN", "remark": "test",}
Field requirements
Field name | Data type | Required | Description |
---|---|---|---|
amount | int | true | amount in units |
currency | string | true | currency code |
from | string | true | any user reference from one of your indexed users |
to | string | true | any user reference from one of your indexed users |
remark | string | true | charge remark |
Sample response
{ "message": "hook sent"}
It's not real money
— Stallions