Cancel Inventory Sale


 DESCRIPTION

Web Service for cancel sales.

Request

Method: POST

Content-Type: application/json

URL:

Test Environment:https://training.logiztikalliance.com:5005/logCloudApiSprint/api/integration/cancelSale
Production Environment:https://cloud.logiztikalliance.com:5005/logCloudApi/api/integration/cancelSale
INPUT PARAMETERS
NameTypeRequiredDescription
AuthenticationTokenstring(50) (Required)YesAlliance cloud security token (Bearer Token).
Body
NameTypeRequiredDescription
housestring(16)YesThe house number.
barcodesstring arrayYesBarcode list.
Barcode number, has to be a unique number per box, maximum 11 digits long. Logiztik Alliance Group provides a 2-letter prefix that should be used together with an alphanumeric sequential.
EXAMPLE
[
    {
      “house”: “LA01010101”,
      “barcodes”: [
        “SU000000001”,
        “SU000000002”,
        “SU000000003”,
        “SU000000004”
      ]
    }
  ]
Response

 

Output Success

 

BODY

NameTypeDescription
isSuccessbooleanOutput Success (True).
messagestring(150)Message Success.
errorobject error 

EXAMPLE

{
  “isSuccess”: true,
  “message”: “Venta cancelada con éxito”,
  “error”: null
}
Output Error

 

BODY

NameTypeDescription
isSuccessbooleanOutput Error (False).
messagestring(150)In case of an error, we return the error message in this field.
errorobject errorErrors list
housestring(16)The house number.
messagestring(150)In case of an error, we return the error message in this field.

EXAMPLE

{
    “isSuccess”: false,
    “message”: null,
    “error”: [
        {
            “house”: “LA01010101”,
            “message”: “The House LA01010101 does not exist in the agency”
        }
    ]
}
ERRORS MESSAGES

 

THE HOUSE DOES NOT EXIST IN THE AGENCY
{
    “isSuccess”: false,
    “message”: null,
    “error”: [
        {
            “house”: “LA01010101”,
            “message”: “The House LA01010101 does not exist in the agency”
        }
    ]
}
THE HOUSE BELONGS TO THE SHIPMENT WITH SHIPMENT DATE
{
    “isSuccess”: false,
    “message”: null,
    “error”: [
        {
            “house”: “LA2083375275”,
            “message”: “The House LA2083375275 belongs to the shipment LOG-0065 7461 with shipment date in the past Fri, 26 Aug 2022”
        }
    ]
}
UNAUTHORIZED

401 Unauthorized