List the tenant's printshop connections
const url = 'https://api.pixonaut.app/v1/printshop-connections';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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://api.pixonaut.app/v1/printshop-connections \ --header 'Authorization: Bearer <token>'Operation ID: printshopConnections.list
Each connection’s id, name, adapter, whether it is active and whether it is the tenant’s default printshop, active first; a member is also answered its counts: the blanks it makes, its open orders and all its orders, blanks null without blanks:read and the order counts null without orders:read. q keeps the connections whose name holds it, case aside.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”The connections, active first, and the adapters available. A key is answered each connection’s id, name, adapter, whether it is active and whether it is the default, and nothing else.
object
object
object
object
object
object
Whether its merchant says it takes an order’s address after the order was sent; read when addressChanges is by_setting.
The printshop’s own address, for its contact details; null for none. Never where an order ships.
object
The city or town.
The company of a business address, which the parcel goes to; the recipient is who receives it.
The country as a two-letter ISO 3166-1 code in capitals, such as SE or US.
The first line of the street address: street and number.
The second line of the address: an apartment, floor or c/o.
The postal code as the country writes it, such as 111 22 or SW1A 1AA. Left out where the country has none; a printshop that needs one refuses the order postal_code_required.
The state, province or county, where the country uses one.
Whether an order’s address may change after it was sent: always for a printshop whose integration tells it, by_setting when acceptsAddressUpdates decides, null for never.
The contact person’s email address; null for none. A delivery step may send to it as {printshop.contact.email}.
Whether mail to contactEmail bounced, so none is sent to it until the address changes.
The name of the person to reach at the printshop. Up to 200 characters; null for none.
The contact person’s phone number as written; null for none.
object
Whether its printshop refused to renew its credentials: it needs its merchant to connect it again through the printshop’s consent.
object
object
Examples
Example
{ "connections": [ { "active": true, "adapter": "printful", "id": "psc_north", "isDefault": true, "name": "Northern Print" }, { "active": true, "adapter": "custom", "id": "psc_south", "isDefault": false, "name": "Southside Print" } ]}Headers
Section titled “Headers”Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.
Refused: unauthorized
object
Examples
unauthorized
{ "error": "unauthorized"}Headers
Section titled “Headers”Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.
Refused: origin_forbidden, forbidden, feature_disabled, workspace_suspended
object
The feature the tenant does not have. Always sent with feature_disabled.
Examples
feature_disabled
{ "error": "feature_disabled", "feature": "api"}forbidden
{ "error": "forbidden"}origin_forbidden
{ "error": "origin_forbidden"}workspace_suspended
{ "error": "workspace_suspended"}Headers
Section titled “Headers”Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.
Refused: invalid_query
object
Examples
invalid_query
{ "error": "invalid_query"}Headers
Section titled “Headers”Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.
Refused: db_error. A request that failed unexpectedly answers as text instead.
object
Examples
db_error
{ "error": "db_error"}Headers
Section titled “Headers”Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.
Questions? Write to [email protected].