Developer & APIPartner api
Quickstart
Fast path to your first estimate and RFQ with the Partner API.
المطورdocs1 دقيقة قراءةتمت المراجعة ١٦ أبريل ٢٠٢٦
Quickstart
If you already have approved access and a sandbox key, this is the fastest path to a working Partner API integration.
1. Export your sandbox key
export NOWTOPRINT_API_KEY="ntp_test_your_key"
2. Request an estimate
curl -X POST https://api.nowtoprint.com/api/v1/estimate \
-H "Authorization: Bearer $NOWTOPRINT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"category": "flyer",
"quantity": 1000
}'
3. Create an RFQ
curl -X POST https://api.nowtoprint.com/api/v1/rfq \
-H "Authorization: Bearer $NOWTOPRINT_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: quickstart-rfq-001" \
-d '{
"title": "Quickstart flyer order",
"category": "flyer",
"quantity": 1000,
"deliveryCity": "Istanbul"
}'
Save the returned RFQ ID for the next step.
4. Poll the RFQ
curl https://api.nowtoprint.com/api/v1/rfq/RFQ_ID \
-H "Authorization: Bearer $NOWTOPRINT_API_KEY"
Once you have the quote set you want, continue into acceptance and order flow from the published contract.
5. Wire webhooks before production
Do not ship a polling-only production integration. Add signed webhook handling for quote and order state changes so your downstream systems stay in sync.
Next: Authentication ->
هل كانت هذه المقالة مفيدة؟
مقالات ذات صلة
Edit on GitHub
آخر تحديث