OnTime REST API
OnTime REST API / REST Endpoints Resource Group / api/order/codRequirement (Post)
In This Topic
    Postapi/order/codRequirement
    In This Topic

    Resource Path: /sites/{company-id}/api/order/codRequirement

    Uri: https://secure.ontime360.com/sites/{company-id}/api/order/codRequirement

    Description
    Updates the collect-on-delivery (COD) requirement for an existing Order.
    Parameters
    NameDescriptionData Type
    The unique identifier of the Order as a Guid.string
    The tracking number assigned to the Order as a String.string
    The collect-on-delivery (COD) amount as a Decimalnumber
    The collection collect-on-delivery (COD) requirement of the Order as a Boolean.boolean
    The delivery collect-on-delivery (COD) requirement of the Order as a Boolean.boolean
    Request

    The request body is of type object.

    200 Response

    The response body is of type object.

    Returns true if the Order's collect-on-delivery (COD) requirement was successfully updated. Otherwise, returns false.
    Fault Responses
    FaultDescription
    Request was improperly formatted, contained invalid data, or contained incorrect values. See response body for more information.
    Authorization key is invalid or no longer exists.
    Authorization key does not have permission to perform this action, or does not have permission to access the requested data. See response body for more information.
    See Also