Test webhooks

😬

NOTE

  • Only available on test mode
  • Webhooks would 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 user

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",
"channel": "direct_charge"
}

Field requirements

Field nameData typeRequiredDescription
amountinttrueamount in units
currencystringtruecurrency code
fromstringtrueany user reference from one of your indexed user
tostringtrueany user reference from one of your indexed user
remarkstringtruecharge remark
channelstringtruecharge channel

Sample response

{
"message": "hook sent"
}

It's not real money

— Stallions