Skip to main content
There are two different editing windows on a Blend order, and confusing them is the most common source of unexpected 400s. Line items — adding products, changing quantities, removing a line — are editable while the order is in received. Once picking begins, the contents are fixed. Address, external_id, and shipping preferences go through PATCH /api/v1/orders/{order_id} and remain editable further into the pipeline. Shipping options, including address, can be edited up until the moment a shipping label has been purchased.

Add products to an existing order

Product references follow the same rules as order creation: Blend id, your sku, or product_code for prescription products.

Change or remove a line

product_type in the path is one of prescription, non_prescription, or order_material.
If the same product appears more than once on an order, you must pass the order_item_id query parameter to say which line you mean. Take the value from the order’s products object. Without it, Blend can’t disambiguate.

Update the address, external ID, or shipping

This is a partial update — send only the fields you’re changing. PUT is accepted with identical merge semantics for backward compatibility.
update_patient=true writes the new address back to the patient record as well as the order. Without it, only this one order moves. Use it for a genuine relocation; omit it for a one-time ship-to-somewhere-else.

Removing a line from an auto-created order

If Blend creates your orders automatically from inbound prescriptions, removing a prescription line is not enough on its own — the order is generated from the prescription, so the line is simply re-added. You also have to decide what happens to the underlying prescription. Cancelling or pausing the prescription is what makes the removal stick.

When editing isn’t the right tool

Orders are editable in the Blend Dashboard under the same rules, which is usually faster for a one-off correction than writing an API call.

Add products to an order

POST /orders/order_id/products

Update order item quantity

PATCH a single line

Remove a product from an order

DELETE a single line

Update an order

Address, external ID, shipping