POST api/leads

Provide new Leads and update their status from "ready to be sent" to "in progress". Two consecutive calls will always return the same leads. It's necessary to call ValidateGetLeads to confirm the reception.

Request Information

URI Parameters

None.

Body Parameters

integer

Request Formats

application/json, text/json

Sample:
1

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

LeadResponse
NameDescriptionTypeAdditional information
Leads

Collection of Lead

None.

Status

integer

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": 1,
  "Message": "sample string 2",
  "Leads": [
    {
      "IDLeadBank": 1,
      "IDprovider": 2,
      "NameProvider": "sample string 3",
      "IDService": 4,
      "NameService": "sample string 5",
      "State": 0,
      "IDCampaign": "sample string 6",
      "NameCampaign": "sample string 7",
      "BandDealerID": "sample string 8",
      "ExternalLeadID": "sample string 9",
      "QualificationDate": "2024-10-15T05:29:19.5139414+02:00",
      "CreateDate": "2024-10-15T05:29:19.5139414+02:00",
      "Contents": [
        {
          "ID": 1,
          "Key": "sample string 2",
          "Value": "sample string 3",
          "Type": 4
        },
        {
          "ID": 1,
          "Key": "sample string 2",
          "Value": "sample string 3",
          "Type": 4
        }
      ]
    },
    {
      "IDLeadBank": 1,
      "IDprovider": 2,
      "NameProvider": "sample string 3",
      "IDService": 4,
      "NameService": "sample string 5",
      "State": 0,
      "IDCampaign": "sample string 6",
      "NameCampaign": "sample string 7",
      "BandDealerID": "sample string 8",
      "ExternalLeadID": "sample string 9",
      "QualificationDate": "2024-10-15T05:29:19.5139414+02:00",
      "CreateDate": "2024-10-15T05:29:19.5139414+02:00",
      "Contents": [
        {
          "ID": 1,
          "Key": "sample string 2",
          "Value": "sample string 3",
          "Type": 4
        },
        {
          "ID": 1,
          "Key": "sample string 2",
          "Value": "sample string 3",
          "Type": 4
        }
      ]
    }
  ]
}