v0.8.4

MasLogistics Error Catalogue

All errors returned by the MasLogistics API follow a common structure:

json

[
  {
    "code": "MLOG_0001",
    "title": "OUT_OF_STOCK",
    "details": "Out of stock"
  }
]

400 Bad Request — Validation

CodeTitleDescriptionPossible actions
MLOG_0003MISSING_MANDATORY_FIELDSMissing mandatory fieldsCheck all required fields are present in the request
MLOG_0005VALUE_NOT_VALIDValue not validCheck the value format and allowed values for the field
MLOG_0010VALIDATION_FIELDSField not validReview the field value against the API specification
MLOG_0018VALIDATION_FIELDS_SIZEField size not validCheck minLength / maxLength constraints for the field
MLOG_0019VALIDATION_FIELDS_FORMATField format not validCheck the field matches the required pattern
MLOG_0020BAD_REQUESTBad requestReview the full request structure and parameters

400 Bad Request — Business Rules

CodeTitleDescriptionPossible actions
MLOG_0008RESERVATION_INVALIDReservation invalidCheck the reservation exists and belongs to the correct order
MLOG_0009TRANSITION_NOT_VALIDThe current status does not allow the transitionReview the allowed status transitions for the resource
MLOG_0014DEVICE_NOT_VALIDThe device is not validVerify the device reference and its current state
MLOG_0015ORDER_STATUS_NOT_VALIDOrder status not validCheck the order is in a status that allows the requested operation

404 Not Found

CodeTitleDescriptionPossible actions
MLOG_0006PRODUCT_NOT_EXISTProduct not existsVerify the product reference exists in the catalogue
MLOG_0011ORDER_NOT_FOUNDOrder not foundCheck the order ID is correct and belongs to the organisation
MLOG_0017SERIAL_NUMBER_NOT_EXISTSSerialNumber not existsVerify the serial number is registered in the system

409 Conflict

CodeTitleDescriptionPossible actions
MLOG_0001OUT_OF_STOCKOut of stockCheck stock availability before retrying
MLOG_0007DUPLICATE_UNIQUE_KEYDuplicate unique keyThe resource already exists; check for an existing record before creating
MLOG_0012RESERVATION_EXPIREDReservation already cancelled due to expiration timeCreate a new reservation; the previous one has expired
MLOG_0013PICKING_ALREADY_CONFIRMEDThe picking has already confirmedNo action needed; the picking was already processed
MLOG_0016UNSUBSCRIBE_ALREADY_EXISTSUnsubscribe already existsCheck for an existing unsubscribe request before creating a new one

500 Internal Server Error

CodeTitleDescriptionPossible actions
MLOG_0002UNCONTROLLEDUncontrolled errorRetry the request; if the problem persists contact the logistics team
MLOG_0004THIRD_PARTY_ERRORThird party errorA downstream system failed; retry or contact the logistics team
MLOG_0999THIRD_PARTY_UNKNOWN_ERRORInternal errorAn unexpected internal error occurred; contact the logistics team