Skip to Content
Developer docs
Website orders API

Cancel an order

POST
/embed/server/experiences/{id}/cancel

The order did not go ahead or was cancelled. An unconfirmed experience is removed and uses nothing. A confirmed one stops working (its QR code opens nothing) and its experience stays used.

Authorization

serverKey
headerAuthorizationBearer <sk_live_…>

A website key's secret server key, from Partner › Shops and integrations › Server connection. Keep it on your server.

Path Parameters

id*string

The experienceId your page got from the editor, or that a webhook carried.

Formatuuid

Response Body

Cancelled: status deleted

application/json
  1. response
experienceId*string

The experience ID. Every webhook carries it.

status*string

Where it stands: draft (made through the API, not submitted yet), reserved (waits for your server to confirm it), submitted, processing, ready (scanning the QR code shows it), failed (see processingError) or deleted.

Value in"draft""reserved""submitted""processing""ready""failed""disabled""deleted""replaced"
contentKind?string

video (a hologram), model (3D objects) or info (a page of text and links).

Value in"video""model""info"
scanCode*string

The short code in the QR code and in scanUrl.

scanUrl*string

The address the printed QR code opens.

qrSvgUrl*string

The QR code alone as a vector SVG, ready to print. Public.

qrPngUrl*string

The QR code alone as a 1024 px PNG. Public.

printImageUrl?string

The image with the QR code printed on it, when the experience has an image.

printPdfUrl?string

The same print as a one-page PDF at its printed size, for a label printer.

processingError?string

Why it failed, when status is failed.

orderReference?string

Your order number, when one was sent.

metadata?

The values your page passed in, plus what your server added.

createdAt*number

When it was made, in Unix seconds.

reservedUntil?number

Until when a reserved experience waits for your confirm, in Unix seconds.

confirmedAt?number

When it was confirmed, in Unix seconds.

readyAt?number

When it became ready, in Unix seconds.

pausedAt?number

When it was paused, in Unix seconds. While paused, its QR code shows what the key says a scan shows after the end.

endsAt?number

When it stops showing, in Unix seconds. From then on its QR code shows what the key says a scan shows after the end.

Example Request
curl -X POST 'https://api.public.meishi.cards/embed/server/experiences/3f1c9a52-7d4e-4b8a-9e21-5c6d0f8b2a17/cancel'
Example Response
{  "experienceId": "string",  "status": "draft",  "contentKind": "video",  "scanCode": "string",  "scanUrl": "string",  "qrSvgUrl": "string",  "qrPngUrl": "string",  "printImageUrl": "string",  "printPdfUrl": "string",  "processingError": "string",  "orderReference": "string",  "metadata": {    "property1": "string",    "property2": "string"  },  "createdAt": 0,  "reservedUntil": 0,  "confirmedAt": 0,  "readyAt": 0,  "pausedAt": 0,  "endsAt": 0}