Create orders

POST /orders

Body Required

  • cuc string Required
  • customerId string Required
  • partnerId string Required
  • items array[string] Required
  • reinvestiment boolean Required

Responses

  • 200
    Hide response attributes Show response attributes object
    • status string Required
    • message string Required
  • 400
    Hide response attributes Show response attributes object
    • message object Required
    • data object Required
  • 401
    Hide response attributes Show response attributes object
    • message object Required
    • data object Required
POST /orders
curl \
 -X POST https://open-api.hml.soupi.com.br/orders \
 -H "Authorization: $API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"cuc":"string","customerId":"string","partnerId":"string","items":["string"],"reinvestiment":true}'
Request example
{
  "cuc": "string",
  "customerId": "string",
  "partnerId": "string",
  "items": [
    "string"
  ],
  "reinvestiment": true
}
Request examples
{
  "cuc": "string",
  "customerId": "string",
  "partnerId": "string",
  "items": [
    "string"
  ],
  "reinvestiment": true
}
Response examples (200)
{
  "status": "string",
  "message": "string"
}
Response examples (200)
{
  "status": "string",
  "message": "string"
}
Response examples (400)
{
  "message": {},
  "data": {}
}
Response examples (400)
{
  "message": {},
  "data": {}
}
Response examples (401)
{
  "message": {},
  "data": {}
}
Response examples (401)
{
  "message": {},
  "data": {}
}