1. Marketing Interface
  • autoX API Reference
    • Introduction
  • Marketing Interface
    • Overview
    • Lead Create
      POST
    • Appointment Create
      POST
    • Opportunity Create
      POST
    • Transaction Push⬩
      POST
    • Transaction Update⬩
      POST
  • Website Interface
    • Overview
    • Get Showroom List
      GET
    • Get Make Data
      GET
    • Get Model Data
      GET
    • Get Sales Org Data
      GET
    • Get Equipment Stock Data
      GET
    • Get Characteristics Data of Equipment
      GET
    • Get Material Addons Data
      GET
    • Get Bill Of Material Data
      GET
    • Get Equipment Price
      POST
    • Vehicle Enquiry Create
      POST
  • Payment Gateway Interface
    • Overview
    • Payment Link Create⬩
      POST
    • Payment Link Cancel⬩
      POST
    • Payment Notification
      POST
    • Payment Status Check⬩
      POST
  • Aftersales Interface
    • Overview
    • Check Workload Capacity
      POST
    • Service Request Push⬩
      POST
    • Get Parts Price & Stock
      POST
    • Work Estimate Create
      POST
    • Service Request Update⬩
      POST
  • Call Center Integration
    • Overview
    • Data Fetch
    • Transaction Sync
    • Queue Upload⬩
  • Survey Interface
    • Overview
    • Update Survey Score
  • OEM Interface
    • Overview
    • Accounts Data
    • Parts Sales Data
    • Parts Stock Data
    • Customer Data
    • Labour Sales Data
    • Vehicle Data
    • Vehicle Sales Data
    • Service History Data
    • Open Repair Orders Data
    • Open Repair Orders Customer Data
    • Workshop Transactions Data
    • Workshop Transactions Customer Data
    • Future Booking Data
  1. Marketing Interface

Lead Create

POST
/http/api/create-lead
Use this endpoint to create a lead in SAP S/4HANA from an external source such as a website, kiosk, or social media. Based on the mobile number provided, autoX checks for an existing Business Partner (BP) in the system. If a match is found, only a lead is created. If no match is found, both a BP and a lead are created automatically. Errors are captured and functionality is available for troubleshooting and manual repost. The source system Lead ID is passed into the lead as a Reference Lead ID in autoX.

Request

Header Params

Body Params application/json

Examples

Responses

🟢201
application/json
Created
Bodyapplication/json

🟠400
Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/http/api/create-lead' \
--header 'Authentication;' \
--header 'Content-Type: application/json' \
--data '{
    "City": "DUBAI",
    "Comments": "I am intrested in your latest offers!",
    "Email": "",
    "Fname": "JAMEEL",
    "Lname": "AHMED",
    "Make": "BEN",
    "MobileNo": "552200099",
    "Model": "",
    "Nationality": "",
    "Region": "DU",
    "SourceSystem": "ZSAP",
    "UtmCampaign": "CEM1234",
    "UtmMedium": "DEFR5",
    "UtmSource": "ABCD12",
    "CampaignId": "119513256",
    "Origin": "Z03"
}'
Response Response Example
201 - Success
{
    "d": {
        "ELeadCreated": "3001031"
    }
}
Previous
Overview
Next
Appointment Create
Built with