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

Opportunity Create

POST
/http/api/opportunity-create
Use this endpoint to create a CRM opportunity in SAP S/4HANA for a given customer. The opportunity type, sales area, description, and assignment details are determined by the rule configured for the make and model in autoX. If an open opportunity already exists for the customer in the same sales area and make/model combination, the endpoint returns a reference to the existing opportunity rather than creating a duplicate.

Request

Header Params

Body Params application/json

Examples

Responses

🟢200
application/json
OK
Bodyapplication/json

🟠400
🟠401
Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/http/api/opportunity-create' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data '{
    "Customer": "0010000001",
    "Rule": "1",
    "MessageTitle": "Opportunity Created",
    "MessageText": "Your request has been received.",
    "ZaeSCoppItem": [
        {
            "Posnr": "000010",
            "Model": "540C",
            "Trim": "",
            "Color": "X37",
            "Year": "2025",
            "Edition": ""
        }
    ],
    "ZaeSCoppMatqty": [
        {
            "Posnr": "000010",
            "Uepos": "000000",
            "Matnr": "MC540C03",
            "Qty": "1"
        }
    ]
}'
Response Response Example
200 - Success
{
    "Opportunity": "0000010001",
    "Return": [
        {
            "Type": "S",
            "Message": "status: Success; transaction_no: 0000010001"
        }
    ]
}
Previous
Appointment Create
Next
Transaction Push⬩
Built with