Developer API
Automate your PDF cropping workflow. Integrate with Zapier, Make, or custom backends.
Crop Shipping Label API
POST
https://yourdomain.com/api/v1/tools/crop
Headers
| Header | Value |
|---|---|
Authorization |
Bearer {YOUR_API_TOKEN} |
Accept |
application/json |
Form Data (multipart/form-data)
| Field | Type | Description |
|---|---|---|
file |
File | Required. The raw PDF file to crop. (Max 25MB) |
marketplace |
String | Required. Allowed values: flipkart, meesho, amazon. |
paper_type |
String | Optional. Default: thermal. Allowed: thermal, a4. |
Example Request (cURL)
curl -X POST https://yourdomain.com/api/v1/tools/crop \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json" \
-F "file=@/path/to/invoice.pdf" \
-F "marketplace=flipkart" \
-F "paper_type=thermal"
Example Response
{
"success": true,
"data": {
"job_id": "9b1c7c98-1e42-4b2a-a9e9-1234567890ab",
"status": "completed",
"marketplace": "flipkart",
"pages_processed": 1,
"download_url": "https://yourdomain.com/pdf/download/YOUR_SECURE_TOKEN"
}
}
Note: Send a GET request to the provided download_url to download the generated PDF. The file is temporarily stored and automatically purged after 2 hours.