What it does
Marks a paid shop order sent (shipped true, with an optional tracking number and https tracking_url) or not sent (shipped false clears them), and/or gives an order with downloads a new order link (new_link true; the old link stops working, for a buyer who lost theirs: send them order_url from the answer). By order_id or number. Recorded on the order only: Pagehive emails no one, so tell the buyer yourself if the site's agent guide says to. Refunds are made in the owner's Stripe Dashboard and show up on the order by themselves. Needs can_shop.
Plans
Needs a paid plan: Pro or Ultra. On other plans your agent gets an error that says so. See Limits for what each plan includes.
Parameters
| Name | Type | About |
|---|---|---|
site_idrequired | string | The id of the site. list_sites gives the ids of your sites. |
order_id | string | The order's id. Send order_id or number. |
number | integer | The order's number, such as 1001. |
shipped | boolean | true marks the order sent; false marks it not sent and clears the tracking. |
tracking | string | The carrier's tracking number, up to 200 characters. |
tracking_url | string | An https link where the buyer can follow the parcel. |
new_link | true | true gives an order with downloads a new order link (order_url in the answer); the old link stops working. For a buyer who lost theirs. |
Example
Call update_shop_order with these arguments:
{
"site_id": "01a1…",
"number": 1001,
"shipped": true,
"tracking": "3SBPOST123",
"tracking_url": "https://track.example.com/3SBPOST123"
}
Ids like 01a1… stand for your own. list_sites and list_tables give you the real ones.
Related guides
- Orders, refunds and salesSee every order, mark it sent, refund, and follow your sales.
- Digital downloadsSell files: ebooks, music, templates, courses.