Skip to main content
POST
/
orders
/
{id}
/
fulfill
Fulfill all items in an order
curl --request POST \
  --url https://api.autoprintfarm.com/public/v1/orders/{id}/fulfill \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "tracking_number": "<string>",
  "tracking_url": "<string>",
  "notify_customer": false
}
'
{
  "success": true,
  "data": {
    "id": "<string>",
    "order_number": "<string>",
    "platform": "<string>",
    "customer_name": "<string>",
    "customer_email": "<string>",
    "customer_phone": "<string>",
    "order_date": "<string>",
    "status": "<string>",
    "total_revenue": 123,
    "shipping_cost": 123,
    "tax_amount": 123,
    "discount_amount": 123,
    "shipping_street": "<string>",
    "shipping_city": "<string>",
    "shipping_state": "<string>",
    "shipping_zip": "<string>",
    "shipping_country": "<string>",
    "tracking_number": "<string>",
    "tracking_url": "<string>",
    "shipped_at": "<string>",
    "external_id": "<string>",
    "notes": "<string>",
    "created_at": "<string>",
    "updated_at": "<string>",
    "items": [
      {
        "id": "<string>",
        "product_sku_id": "<string>",
        "sku": "<string>",
        "product_name": "<string>",
        "quantity": 123,
        "unit_price": 123,
        "total_price": 123,
        "quantity_fulfilled": 123,
        "fulfillment_status": "<string>",
        "notes": "<string>",
        "created_at": "<string>"
      }
    ],
    "fulfillment_errors": [
      "<string>"
    ]
  }
}

Authorizations

Authorization
string
header
required

API keys are minted in the AutoPrintFarm web app under Settings → API Keys. Send as Authorization: Bearer apf_live_.... Keys are shown exactly once at creation and can be revoked at any time.

Path Parameters

id
string
required

Body

application/json
tracking_number
string
tracking_url
string<uri>
notify_customer
boolean
default:false

Reserved. Accepted but not yet wired — customer email notifications are not sent by the public API.

Response

Order fulfilled

success
enum<boolean>
required
Available options:
true
data
object
required