Documentation Index
Fetch the complete documentation index at: https://docs.pixcraft.es/llms.txt
Use this file to discover all available pages before exploring further.
Zapier Integration
This guide shows how to set up a Zapier automation that automatically generates a pattern PDF when a new order arrives in your store.Example workflow
Trigger: New WooCommerce order Action: Generate pattern PDF with PixCraft API Action: Email PDF to the customerStep 1: Create a new Zap
- Log in to zapier.com
- Click Create Zap
- Choose your trigger app (WooCommerce, Shopify, or any app that provides orders)
Step 2: Configure the trigger
For WooCommerce:- App: WooCommerce
- Event: New Order
- Account: Connect your WooCommerce store
- Test: Fetch a sample order to use in the next steps
Step 3: Add PixCraft API action
- Click + to add a new step
- Choose Webhooks by Zapier
- Select Custom Request
- Configure:
| Field | Value |
|---|---|
| Method | POST |
| URL | https://www.pixcraft.es/api/v1/generate |
| Headers | Authorization: Bearer px_live_your_key and Content-Type: application/json |
| Body | See below |
Request body
{{order_item_image_url}} with the actual Zapier field from your trigger.
Step 4: Generate PDF (optional)
Add another Webhooks step:| Field | Value |
|---|---|
| Method | POST |
| URL | https://www.pixcraft.es/api/v1/generate/pdf |
| Headers | Same as above |
| Body | Same as above |
- Save it to Google Drive or Dropbox
- Attach it to an email
Step 5: Email the result
Add a final step:- Choose Gmail or Email by Zapier
- Set the recipient to the customer’s email from the order
- Include pattern details from Step 3 in the email body:
Alternative: Use Code by Zapier
For more control, use the Code by Zapier action (JavaScript):Tips
- Check usage before processing: Call
GET /api/v1/usageat the start of your Zap to verify you have credits remaining - Validate first: Use
POST /api/v1/validateto check image quality before spending a generation credit - Handle errors: Add a Zapier Paths step to handle API errors gracefully (send a notification instead of failing silently)