Skip to content

Lead conversion

This endpoint is used to notify AfriForum Roep Toep of lead to member conversions

Method and endpoint

POST /v1/lead-conversion

Headers

Header name Header value
Authorization Basic base64(username:password)
Content-type application-json

Company

Within the body of the request message is a company field that requires the specification of the organisation the lead was converted for.

Company name Field value
AfriForum afriforum
AfriForum International afriforum-international
FAK fak
Voortrekker Monument vtm
Kaapse Forum kaapseforum
SAAI Suider-Afrika Agri Inisiatief (SAAI)

Body

Request schema

{
  "result": true,
  "data": {
    "lead_id": "string",
    "campaign": "string",
    "lead_source": "string",
    "membership_number": "string",
    "product_name": "string",
    "product_amount": 0,
    "payment_frequency": "string"
  }
}

Sample request

{
  "result": true,
  "data":
  {
      "company": "afriforum",
      "lead_id": "000000000140702",
      "campaign": "Roep Toep",
      "lead_source": "610166123",
      "membership_number": "610155431",
      "product_name": "Widget X",
      "product_amount": 50,
      "payment_frequency": "Monthly"
  }
}

Sample response

{"message":"success"}