List PCM orders
GET
/api/v1/pcm/orders
const url = 'https://digize.com/api/v1/pcm/orders?page=1';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://digize.com/api/v1/pcm/orders?page=1' \ --header 'x-api-key: <x-api-key>'A page of the PCM Integrations account’s orders, the newest first: each one’s kind of piece, status as PCM says it, recipients and cost. Orders placed from Digize carry a reference starting pcm_.
Needs the crm:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”page
Which page of 50, from 1.
integer
Which page of 50, from 1.
Responses
Section titled “Responses”Done
Media typeapplication/json
object
data
required
Array<object>
object
id
required
string
batchId
required
string | null
status
required
string | null
mailClass
required
string | null
recipients
required
number | null
designId
required
number | null
reference
required
string | null
cost
required
number | null
more
required
boolean
Example
{ "data": [ { "product": "postcard" } ]}What was sent isn’t valid (invalid).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}