Search.../
  1. Home
  2. Getting Started
  3. Overview
Generate a test token to explore our APIs

Generate Orders PDF Link

Developer Preview

Generates a link to a PDF file for given orders.

Authorization

This endpoint requires an authorization header - pass the access token from the OAuth installation flow.

Permissions

This endpoint requires the Manage Orders or the Read Orders permission scope.

POST

https://www.wixapis.com/stores/v2/orders/generatePDF

Body Params

NAME
TYPE
DESCRIPTION
orderIds
Required

Array<string>

Order IDs.

Response Object

Returns an empty object.

Status/Error Codes

The response will include an HTTP status code.

Was this helpful?

Request

curl

Copy Code
1curl -X POST https://www.wixapis.com/stores/v2/orders/generatePDF \
2 -H 'Content-Type: application/json' \
3 -H 'Authorization: <AUTH>' \
4 --data-binary '
5 {
6 "orderIds": ["b8e35f08-e8e4-486c-894a-589875bf2a42", "f59d7f41-06aa-4dbd-a2c2-603f3f188711"]
7 }'

Response

json

1
2{"link": "https://wixmp-2a4e9d4a359f928a5977f91b.appspot.com/_api/download/file?downloadToken=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1cm46YXBwOjRjMTRmNzJiOGE0MDRhYjE5YjhmYWZmZmE4ZWViYzhmIiwib2JqIjpudWxsLCJhdWQiOlsidXJuOnNlcnZpY2U6ZmlsZS5kb3dubG9hZCJdLCJpc3MiOiJ1cm46YXBwOjRjMTRmNzJiOGE0MDRhYjE5YjhmYWZmZmE4ZWViYzhmIiwiaWF0IjoxNTg2MDg1NTI1LCJqdGkiOiI3ZjhjMDQ0MmQwNzUiLCJleHAiOjE1ODYwODYxMzYsInBheWxvYWQiOnsicGF0aCI6Ii8yZDNjYjgzMi05YWEyLTRkZGEtOTQ1MS0zOTIyYzU4MWNkYWEvb3JkZXJzXzE1ODYwODU1MzM2NjcucGRmIiwic2F2ZUFzIjoib3JkZXJzXzE1ODYwODU1MzM2NjcucGRmIn19.I01NafJ4jJD6OrqxAb413d2UnXaXIYD6hhzi5B9Obsk"}