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 nameData typeRequiredDescription
amountinttrueamount in units
currencystringtruecurrency code
user_referencestringtrueany 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 nameData typeRequiredDescription
amountinttrueamount in units
currencystringtruecurrency code
fromstringtrueany user reference from one of your indexed users
tostringtrueany user reference from one of your indexed users
remarkstringtruecharge remark

Sample response

{
"message": "hook sent"
}

It's not real money

— Stallions