Skip to Content
Developer docs
Website orders API

Confirm an order

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

The order is placed. A reserved experience (on a key whose server confirms designs) uses one experience and goes to processing; experience.ready or experience.failed follows on the webhook. You can add your order number and metadata. Confirming again answers the same and changes nothing.

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

Request Body

application/json
  1. body
orderReference?string

Your order number. It is kept with the experience, sent back in every webhook, and you can filter the list by it.

Length1 <= length <= 100
metadata?

Your own string values (up to 200 characters each), added to what your page passed in.

Response Body

Confirmed: the experience as it now stands

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/confirm' \  -H 'Content-Type: application/json' \  -d '{}'
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}