pagehive

update_shop_order

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).

ShopsChanges dataPro and upUpdated

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

NameTypeAbout
site_idrequiredstringThe id of the site. list_sites gives the ids of your sites.
order_idstringThe order's id. Send order_id or number.
numberintegerThe order's number, such as 1001.
shippedbooleantrue marks the order sent; false marks it not sent and clears the tracking.
trackingstringThe carrier's tracking number, up to 200 characters.
tracking_urlstringAn https link where the buyer can follow the parcel.
new_linktruetrue 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