Show / Hide Table of Contents

    400 - Invalid Shipment State

    • v2
    • validation
    • pro
    • api
    • shipments
    • error
    • 400
    Tip

    The invalid_shipment_state error code is returned if your request includes one or more state values for a shipment but one or more of the provided values is invalid.

    This error code will be returned, for example, if you make an API call to change a shipment state but provide an invalid state value:

    {
      "reference": "sp_00982822462453834198775303766018",
      "state": "not_recognised",
      "reason": "Sample"
    }
    

    In this example, the provided state value is not a valid state.

    Tip

    In situations where a state is technically valid/recognised, but is not valid for the attempted operation, an invalid_state_for_operation error code will be returned.

    Back to top Copyright © Sorted Group 2023. Generated by DocFX