Read Shopify orders through the integration
AI agents: read /llms.txt; add .md to any page URL. This page as Markdown: /reference/integrations/v1-external-integration-proxy-request.md. Index of every page and the rules for every call: /llms.txt. Guides and concepts in one file: /llms-full.txt. OpenAPI: /openapi.json.
PUT/
Built for YoPrint's web app, to browse orders in a connected Shopify store before importing them. Only Shopify answers it, and only method: fetch_orders is allowed (403 proxy_method_not_allowed otherwise). Other integrations answer 422 invalid_public_action.
Because it lists every order in the store, it needs Manage Settings or permission to view all sales orders. The permission is checked first: a member without Manage Settings gets 403 user_is_not_authorized unless they can view all sales orders and send fetch_orders to a Shopify integration.
It reads from Shopify and changes nothing. The {id} is the integration's id from the list.
Side effects
- Calls Shopify's Admin API.
Path parameters
Your team slug, shown as Team ID next to your API key in Profile.
- Example
your-team
- Example
The Shopify integration. Its hash id from an earlier answer; there is no unique key for it.
- Example
aDFOUrmqetFJaN
- Example
Request body
application/json, required.
- Always
"fetch_orders"
- Always
bodyobject | nullPaging, search and sorting for the order list.
Child fields (7)
cursorstringA cursor from the previous page's
pagination.directionstring- One of:
"forward","backward" - Default
"forward"
- One of:
per_pageinteger- Default
20 - Minimum 1
- Maximum 250
- Default
querystringShopify search text.
saved_search_idstringA Shopify saved search.
sort_directionstring- One of:
"asc","desc"
- One of:
sort_keystring- One of:
"CREATED_AT","TOTAL_PRICE","CUSTOMER_NAME","FINANCIAL_STATUS","FULFILLMENT_STATUS","ORDER_NUMBER"
- One of:
pathstring | nullNot used.
Response
200Successful response.
Child fields (2)
Fields of each item (14)
can_syncbooleancreated_atstring (date-time) | nullcurrency_codestring | nullcustomerobject | nullemailstring | nullfinancial_statusstring | nullfulfillment_statusstring | nullidstringShopify's order id.
is_syncbooleanWhether it is already in YoPrint.
namestring | nullShopify's order name, such as
#1001.sync_blocked_reasonstring | nulltotal_pricestring | nullA decimal string, as Shopify sends it (
"125.00"); parse it as a decimal.updated_atstring (date-time) | nullyoprint_order_idstring | nullThe YoPrint sales order made from it, or null.
Child fields (5)
cursorstring | nullhas_more_pagesbooleanhas_previous_pagesbooleannext_cursorstring | nullprevious_cursorstring | null
Errors
400
- When
- The Shopify integration is turned off:
error.codeintegration_disabled. - Fix
- Turn it on with the
toggleaction.
401The API key is missing or wrong (
unauthenticated).403You are not allowed to do this.
api_access_not_in_plan: your team's plan doesn't include API access (Pro and above, with an active subscription or trial), so every request answers this until the team upgrades. When your role lacks the permission the operation needs, the body is only{"message": "Insufficient Permission"}. Other refusals use the error envelope, withunauthorizedoruser_is_not_authorized.- When
- You are not the owner and have no Manage Settings, and either you can't view all sales orders or the call is not
fetch_orderson a Shopify integration.error.codeuser_is_not_authorized, "Your role does not allow this integration action. Ask your team owner to review your permissions." - Fix
- Ask the team owner to give your permission group view all sales orders, or Manage Settings.
- When
methodis notfetch_orders, sent by the owner or a member with Manage Settings:error.codeproxy_method_not_allowed.- Fix
- Use
fetch_orders.
404Not found.
page_not_found: the team slug is unknown, you are not a member of the team, or an id in the path is not one of this team's.code: null, with a message that starts "No query results for": there is no record with that id.422The request was refused and changed nothing.
validation_failedlists what to fix inerror.fields; other codes name a business rule, explained inerror.message. A few checks answer with only{"message": "..."}. An operation that calls another service (a payment provider, a carrier, an accounting app) can answerconnect_timeout("Please retry again") when that service does not answer in time: the change may or may not have happened there, so read the record back before you retry.- When
- The integration is not Shopify (
invalid_public_action), ormethodis missing (validation_failed). - Fix
- Use the Shopify integration's id.
429
- When
- Shopify's rate limit was hit:
error.codeshopify_rate_limited. - Fix
- Wait a moment and try again.
500A business rule refused the request (see the operation's errors), or something failed inside YoPrint. Refusals use the error envelope with a code such as
action_not_allowed; an unexpected failure answers{"message": "Server Error"}. Repeating a refusal gets the same answer; after an unexpected failure, read the record back before you retry a change.- When
- Something else failed:
error.codeshopify_proxy_error. - Fix
- Try again later.
502
- When
- Shopify answered with an error or could not be reached (
shopify_api_error,shopify_connection_error). - Fix
- Try again later.
Notes
- AI apps (MCP connections) can't call this operation: they get 403
agent_operation_not_available. Use a personal API key.
