Upload client batch

POST /upload/batch

Endpoint to upload a batch of client data for negotiation.

Body Required

Responses

  • Successful operation

    Hide response attribute Show response attribute object
POST /upload/batch
curl \
 -X POST https://addi.api.domu.ai/upload/batch \
 -H "Content-Type: application/json" \
 -d '{"dateUploaded":"2023-08-18T12:00:00Z","clientsNumber":1,"clients":[{"idAddi":"encryptedString","firstName":"John","debtTime":30,"debtValue":1000,"pastInteractions":[{"interactionType":"call","direccion":"in","result":{}}],"carteraType":["preventiva"],"minNegociationDiscount":0.1,"maxNegociationDiscount":0.5,"expectedPaymentDate":"2023-09-18T12:00:00Z","maxInstallments":5}]}'
Request example
{
  "dateUploaded": "2023-08-18T12:00:00Z",
  "clientsNumber": 1,
  "clients": [
    {
      "idAddi": "encryptedString",
      "firstName": "John",
      "debtTime": 30,
      "debtValue": 1000,
      "pastInteractions": [
        {
          "interactionType": "call",
          "direccion": "in",
          "result": {}
        }
      ],
      "carteraType": [
        "preventiva"
      ],
      "minNegociationDiscount": 0.1,
      "maxNegociationDiscount": 0.5,
      "expectedPaymentDate": "2023-09-18T12:00:00Z",
      "maxInstallments": 5
    }
  ]
}
Request examples
{
  "clients": [
    {
      "idAddi": "encryptedString",
      "debtTime": 30,
      "debtValue": 1000,
      "firstName": "John",
      "carteraType": [
        "preventiva"
      ],
      "maxInstallments": 5,
      "pastInteractions": [
        {
          "result": {},
          "direccion": "in",
          "interactionType": "call"
        }
      ],
      "expectedPaymentDate": "2023-09-18T12:00:00Z",
      "maxNegociationDiscount": 0.5,
      "minNegociationDiscount": 0.1
    }
  ],
  "dateUploaded": "2023-08-18T12:00:00Z",
  "clientsNumber": 1
}
Response examples (200)
{
  "batchId": "string"
}
Response examples (200)
{
  "batchId": "string"
}