Fundraiser

This will create a link fundraiser to selected campaign from Ayobantu partner.

Create Fundraiser

POST {base_url}/api/v1/partner/fundraiser

Register the user/customer and make them as a fundraiser from one of the campaign

Headers

NameTypeDescription

Accept

String

application/json

Authorization

String

Bearer <api_token>

Content-Type*

String

application/json

Request Body

NameTypeDescription

name*

String

John Doe (Alpha/Numeric Only)

email*

Email

johndoe@ayobantu.com

phone*

Numeric

0812345678 (6-20 digit)

partner_code*

String

Provided by Ayobantu. See more, click here

signature_key*

String

Signature code generated every time you make a request. See more, click here.

Formula:

hash("sha512", name + phone + email + campaign_id + partner_code + secret_key);

Output: a2a1d0baa527318794f77122e8b35eb19c83498fb535897d58bcf0fc6a00b3c0de5a113a1d53caa748a0bdcf0b0d6fd941d1ffa6801f0bb99d370f1c83aa13db

campaign_id*

Numeric

id is obtained from campaign submitted by partners or can be provided by Ayobantu.

{ 
   "status_code": "200", 
   "message": "Success", 
   "data": "" 
}
// Example Generate Signature Key 
//secret_key = '353656da-1695-434b-9f61-a3c9ff90894f';
hash("sha512", 'John Doe0812345678johndoe@example.com12345AYB12345353656da-1695-434b-9f61-a3c9ff90894f')

//Result
d30afd4aff9ff16ddbd93c147abf9799e9fdb1510d3538b1eca3262b229ec0634e888afb9582cd16a21f3c3b5babbe55c5f98b6c04d30b979bc93946c82cd470
curl -X POST \
  {base_url}/api/v1/partner/fundraiser \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer A67354CD62E2D7F8B5652483816F2' \
  -H 'Content-Type: application/json' \
  -H 'cache-control: no-cache' \
  -d '{
	"name" : "John Doe",
	"email" : "johndoe@example.com",
	"phone" : "0812345678",
	"partner_code": "AYB12345",
	"signature_key": "a2a1d0baa527318794f77122e8b35eb19c83498fb535897d58bcf0fc6a00b3c0de5a113a1d53caa748a0bdcf0b0d6fd941d1ffa6801f0bb99d370f1c83aa13db",
	"campaign_id": "12345"
}'

Last updated