Donation
This will add a donation to selected campaign from Ayobantu partner.
Create Donation
POST {base_url}/api/v1/partner/donation
Submit new donation to the selected campaign
Headers
Accept
String
application/json
Authorization
String
Bearer <api_token>
Content-Type*
String
application/json
Request Body
name*
String
John Doe (Alpha/Numeric Only)
signature_key*
String
Signature code generated every time you make a request. See more, click here.
Formula:
hash("sha512", name + phone + email + amount + is_anonymous + campaign_id + partner_code + secret_key);
Example Output:
a2a1d0baa527318794f77122e8b35eb19c83498fb535897d58bcf0fc6a00b3c0de5a113a1d53caa748a0bdcf0b0d6fd941d1ffa6801f0bb99d370f1c83aa13db
campaign_id*
Integer
id is obtained from campaign submitted by partners or can be provided by Ayobantu.
phone*
Numeric
0812345678 or 6287812345678
amount*
Numeric
100000 (without any . or ,)
is_anonymous
Numeric
0 or 1 (default 0)
is_fundraiser (Optional)
Boolean
true or false (default false)
{
"status_code": "200",
"message": "Success",
"data": {
"reference_id" : 8181,
"amount" : 100000
}
}{
"status_code": "404",
"message": "The requested resource is not found",
"erros": [
"Partner not found"
]
}Last updated