E-Commerce notify
This endpoint is used to create new AfriForum members from a specific payment notification (from Stratcol).
Method and endpoint
POST /v1/e-commerce/notify
Headers
| Header name | Header value |
|---|---|
| Authorization | Basic base64(username:password) |
| Content-type | application-json |
Body
Request schema
{
"otid": 0,
"debtorID": 0,
"userID": 0,
"transactionStatus": 0,
"transactionType": 0,
"transactionReference": "string",
"transactionSubReference": "string",
"surname": "string",
"initials": "string",
"mobileNumber": "string",
"email": "string",
"transactionValue": "string",
"transactionDate": "string",
"transactionDay": "string",
"transactionFinalDate": "string",
"subReference1": "string",
"subReference2": "string",
"productName": "string",
"productDescription": "string",
"payfastPaymentID": 0,
"acbStatus": 0,
"acbReason": "string",
"acbReasonCode": "string",
"acbStatusDate": "string"
}
Sample request
{
"otid": 1148,
"debtor_id": 1167,
"user_id": 10117,
"transaction_status": 354,
"transaction_type": 1134,
"transaction_reference": "ded22afd-3799-427b-b931-772def3977b6",
"transaction_sub_reference": null,
"surname": "Johannes Marais",
"initials": "JH",
"mobile_number": "1234567890",
"email": "email@gmail.com",
"transaction_value": "500.00",
"transaction_date": "01.02.24",
"transaction_day": "01",
"transaction_final_date": "01.01.70",
"sub_reference1": null,
"sub_reference2": null,
"product_name": "International Member/Internasionale Lid - Monthly",
"product_description": "An AfriForum International Member refers to an individual or entity residing outside South Africa who seeks to aid AfriForum through financial contributions via credit card. This support can be provided monthly. The minimum monthly donation is set at R300",
"payfast_payment_id": null,
"acb_status": 1185,
"acb_reason": null,
"acb_reason_code": null,
"acb_status_date": ""
}
Sample response
{
"message": "accepted"
}