{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"a23c6a65-a099-40ab-9208-4f8cc8f6877f","name":"Printora Partner API","description":"# Printora Partner Integration API\n\nThe Printora Partner API allows partners to create custom print sessions where end-users can design and order personalized products using their own images.\n\n---\n\n## 🚀 Quick Start\n\n### Integration Flow\n\n1. **Create Session** - Partner creates a session with an image URL via API\n    \n2. **User Redirect** - User visits the redirect URL and is automatically logged in\n    \n3. **User Customizes** - User selects products and customizes their design (via Printora frontend)\n    \n4. **Checkout** - User completes checkout, order is created\n    \n5. **Webhook Notification** - Partner receives webhook notification about the order\n    \n6. **Retrieve Orders** - Partner can retrieve order details and tracking via API\n    \n\n---\n\n## 🔐 Authentication\n\nAll API requests require authentication using your Partner API Key in the Authorization header:\n\n``` http\nAuthorization: Bearer sk_test_printora_partner_demo_12345678\n\n ```\n\n**API Key Format:**\n\n- Test mode: `sk_test_xxxxxxxxxxxxxxxxxxxxxxxxxx`\n    \n- Live mode: `sk_live_xxxxxxxxxxxxxxxxxxxxxxxxxx`\n    \n\n---\n\n## 🌍 Base URLs\n\n| Environment | Base URL |\n| --- | --- |\n| **Production** | https://api.printora.ai |\n| **Staging** | https://api-staging.printora.ai |\n\n---\n\n## 📚 Available Endpoints\n\n### Session Management\n\n- **POST** `/api/v1/partner-session` - Create a new partner session\n    \n\n### Order Management\n\n- **GET** `/api/v1/partners/:partnerId/orders` - List all orders for the partner\n    \n\n### Webhook Management\n\n- **GET** `/api/v1/webhooks/logs` - View webhook delivery logs\n    \n- **POST** `/api/v1/webhooks/resend` - Manually resend a webhook\n    \n- **POST** `/api/v1/webhooks/retry` - Retry a failed webhook delivery\n    \n\n---\n\n## ⚠️ Important Notes\n\n### API Scope\n\nThis API is designed **exclusively for partner backend integration**.\n\n**Partners CAN:**\n\n- ✅ Create print sessions for end-users\n    \n- ✅ Retrieve orders created through their sessions\n    \n- ✅ Manage webhook deliveries and view logs\n    \n\n**Partners CANNOT:**\n\n- ❌ Access cart endpoints (internal frontend use only)\n    \n- ❌ Access checkout endpoints (internal frontend use only)\n    \n- ❌ Access user authentication or product management endpoints\n    \n\n### Session Lifecycle\n\n- **Redirect URL expiry:** 15 minutes from creation\n    \n- **Session expiry:** 24 hours after user first accesses the redirect URL\n    \n- **Session statuses:** `pending` → `active` → `completed` / `expired` / `cancelled`\n    \n\n---\n\n## 🔔 Webhooks\n\nPartners receive webhook notifications for the following events:\n\n- `order.created` - When a user completes checkout\n    \n- `order.paid` - When payment is confirmed\n    \n- `order.shipped` - When the order is shipped\n    \n- `order.delivered` - When the order is delivered\n    \n- `order.cancelled` - When an order is cancelled\n    \n\n**Webhook Payload Example:**\n\n```\n{\n  \"sessionId\": \"cc8930e4-621a-xxxxx-xxxxx\",\n  \"event\": \"order.created\",\n  \"data\": {\n    \"order_id\": \"ord_abc123\",\n    \"session_id\": \"sess_x1y2z3\",\n    \"status\": \"pending\",\n    \"total_amount\": 29.99,\n    \"currency\": \"USD\"\n  },\n  \"timestamp\": \"2026-01-30T10:40:00Z\"\n}\n\n ```\n\n---\n\n## 📊 Rate Limits\n\n| Metric | Limit |\n| --- | --- |\n| Requests per minute | 60 |\n| Requests per day | 10,000 |\n\n**Rate limit headers are included in every response:**\n\n```\nX-RateLimit-Limit: 60\nX-RateLimit-Remaining: 45\nX-RateLimit-Reset: 1738234567\n\n ```\n\n---\n\n## 🛠️ Support\n\nNeed help with the integration?\n\n- **Email:** [support@printora.ai](https://mailto:support@printora.ai)\n    \n- **Documentation:** [View complete documentation →](https://docs.printora.ai/partner-api)\n    \n\n---\n\n## 📖 Getting Started\n\n1. **Set up your environment** - Select the appropriate environment (Staging/Production) from the dropdown\n    \n2. **Configure your API key** - Update the `PARTNER_API_KEY` variable in the collection\n    \n3. **Test the flow** - Start with \"Create Session\" to test the integration\n    \n4. **Review responses** - Check the response examples to understand the data structure\n    \n5. **Implement webhooks** - Set up your webhook endpoint to receive order notifications\n    \n\n---\n\n**Version:** 1.0  \n**Last Updated:** February 2026  \n**Status:** ✅ Production Ready","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"31908428","team":5927452,"collectionId":"a23c6a65-a099-40ab-9208-4f8cc8f6877f","publishedId":"2sBXcHhJd9","public":true,"publicUrl":"https://documenter-api.postman.tech/view/31908428/2sBXcHhJd9","privateUrl":"https://go.postman.co/documentation/31908428-a23c6a65-a099-40ab-9208-4f8cc8f6877f","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"documentationLayout":"classic-double-column","customisation":{"metaTags":[{"name":"description","value":""},{"name":"title","value":""}],"appearance":{"default":"dark","themes":[{"name":"dark","logo":"https://content.pstmn.io/e3825358-b729-40af-a733-97b1f565753d/cHJpbnRvcmEtbG9nby5wbmc=","colors":{"top-bar":"212121","right-sidebar":"303030","highlight":"FF6C37"}},{"name":"light","logo":"https://content.pstmn.io/e3825358-b729-40af-a733-97b1f565753d/cHJpbnRvcmEtbG9nby5wbmc=","colors":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"}}]}},"version":"8.10.0","publishDate":"2026-02-27T06:02:29.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{"title":"","description":""},"logos":{"logoLight":"https://content.pstmn.io/e3825358-b729-40af-a733-97b1f565753d/cHJpbnRvcmEtbG9nby5wbmc=","logoDark":"https://content.pstmn.io/e3825358-b729-40af-a733-97b1f565753d/cHJpbnRvcmEtbG9nby5wbmc="}},"statusCode":200},"environments":[],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://res.cloudinary.com/postman/image/upload/t_team_logo_pubdoc/v1/team/0006f8752b6945bd7fbf52e06b40a86482a3809e6970c21479f2cd5f88d1d172","favicon":""},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"}],"canonicalUrl":"https://documenter.gw.postman.com/view/metadata/2sBXcHhJd9"}