Skip to content

Print documents in bulk

POST/documents/bulk/print

Costs 2 rate-limit points · Rate limits

Starts a bulk PDF job for many invoices, quotes, credit notes or pro formas, as the Orders page bulk print / download does: pick documents by id or by the list filters, get one merged PDF (bundle) or a zip of single PDFs (separate). date_basis says what from / to mean: the day the document was created (invoice, default) or the day the Shopify order was placed (order; orders without an invoice get one). Returns 202 with a job id and expected_count, the number of documents (or orders) the job will hold; refuses with nothing_matches when that is 0. Poll GET /documents/bulk/:job_id for progress and the download link.

Asynchronous: only one bulk job may run per shop at a time (429 bulk_action_in_progress). Limited to 5,000 documents. Free text search (q) is not supported here; use ids or date / status filters. An invoice is only created when its order is first opened, printed or sent, so for "invoices for last week's orders" use date_basis 'order'.

document_type values: invoice (Invoices), quote (Quotes), credit_note (Credit notes), pro_forma (Pro forma invoices).

link values: linked (Linked to a Shopify order), not_linked (Not linked to an order), trashed (In the trash).

processing_type values: bundle (One merged PDF), separate (A ZIP file of single PDFs).

delivery_method values: download (Download), print (Print).

date_basis values: invoice (Day the invoice was created), order (Day the order was placed).

Also searched asbulk print invoicesdownload many invoicesexport invoices as pdfprint all invoiceszip of invoicesprint invoices for a date rangedownload last month invoicesbulk download credit notesdownload all credit notesbulk print quotesexport invoices for last week orders

Request body

  • idsarray of integers

    Document ids to include (invoices, quotes, credit notes or pro formas). Without ids the filters below select the documents.

  • document_typestring

    Which documents when filtering: 'invoice' (default), 'quote', 'credit_note' or 'pro_forma'. One of: invoice (Invoices), quote (Quotes), credit_note (Credit notes), pro_forma (Pro forma invoices).

    One of invoicequotecredit_notepro_forma
  • date_basisstring

    What from / to match. 'invoice' (default): the day the document was created. 'order': the day the Shopify order was placed, as the Orders tab filters it; orders without an invoice get one. 'order' works with document_type 'invoice' only, at most one status, and link 'linked' or none. One of: invoice (Day the invoice was created), order (Day the order was placed).

    One of invoiceorder
  • linkstring

    'linked' (created from a Shopify order), 'not_linked' (standalone) or 'trashed'. One of: linked (Linked to a Shopify order), not_linked (Not linked to an order), trashed (In the trash).

    One of linkednot_linkedtrashed
  • processing_typestring

    'bundle' (one merged PDF, default) or 'separate' (zip of single PDFs). One of: bundle (One merged PDF), separate (A ZIP file of single PDFs).

    One of bundleseparate
  • delivery_methodstring

    'download' (default) or 'print', as the dashboard distinguishes them. One of: download (Download), print (Print).

    One of printdownload
  • statusstring

    Shopify financial status of the order, one or many ('paid', 'pending').

  • fromstring

    First day to include, YYYY-MM-DD in the shop time zone (a timestamp keeps only its date). The day the document was created, as the documents list filters it.

  • tostring

    Last day to include, YYYY-MM-DD in the shop time zone (a timestamp keeps only its date).

  • template_namestring

    Template to render with (default 'default': each document type's own default).

Returns

  • job_idinteger
    Example: 12
  • statusstring
    Example: pending
  • countinteger
    Example: 0
  • kindstring
    Example: print

Errors

403
paid_plan_required

v3_required: the shop still runs the previous dashboard. paid_plan_required: API access needs a paid plan.

422

The request failed validation. Nothing was saved.

Any request can also fail with unauthorized (401) or rate_limited (429).

Every error has the same shape: see Errors.

POST/documents/bulk/print
curl -X POST "https://app.invoicefalcon.com/api/v3/external/documents/bulk/print" \
  -H "X-Auth-Token: $INVOICE_FALCON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "ids": [
      48213,
      48190,
      48177
    ]
  }'
Response
{
  "job_id": 12,
  "status": "pending",
  "count": 0,
  "kind": "print"
}