Trying to dropship and getting <<None is not of type 'object>>

Hey!

I am trying to POST:
https://...@apiverson.ordoro.com/order/123456/mark_as_dropshipped
where 123456 is a valid " Awaiting Fulfillment" order number.
If I leave the body empty I get

{
    "error_message": "None is not of type 'object'",
    "param": null
}

If I set the body to JSON and send {} then I get

{
    "error_message": "'supplier_id' is a required property",
    "param": null
}

Any idea of what is wrong?

Thanks!

This is an issue with the documentation, supplier_id is required so you can say which supplier the order is sent to.

We can update the documenation, but in the meantime, here is the schema for your reference.

{
    "type": "object",
    "properties": {
        "supplier_id": {
            "type": "integer"
        },
        "shipping_method": {
            "type": "string"
        },
        "instructions": {
            "type": "string"
        },
        "show_price": {
            "type": "boolean",
            "default": false
        },
        "packing_list_id": {
            "type": "integer"
        }
    },
    "required": [
        "supplier_id"
    ]
}

Thaks Sophie. It worked perfectly!

1 Like