Show / Hide Table of Contents

    400 - Invalid Metadata Type

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

    The invalid_metadata_type error code will be returned if you provide an invalid type value when creating or updating an object containing metadata.

    This error code would be returned, for example, if you provided an invalid type value of str when creating a shipment:

    {
      "metadata": [
        {
          "key": "my_key",
          "value": "my_value",
          "type": "str"
        }
      ]
    }
    
    Note

    The valid values for type include:

    • string
    • bool
    • date_time_offset
    • integer
    • decimal
    • url

    If in doubt, provide your value with a type of string.

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