API ReferenceInvoices

Overview

Create purchases and checkout sessions, then manage payment and delivery actions.

The /v2/invoices API creates purchases and provides checkout, payment, and delivery actions. It keeps the existing order-level response format. For new integrations that read purchase state, use Orders; for one sale record per purchased variant, use Order line items.

Create an invoice with current-store variant IDs, then create a checkout session when the response does not already contain a checkout URL. Never infer payment success from a browser redirect. Use signed webhooks or retrieve current state.

Manual completion can trigger delivery and should be used only after payment is independently confirmed. Fulfillment retry operations reset existing retryable delivery tasks rather than creating another purchase. Treat deliverables as sensitive.

The OpenAPI-rendered operations are the source of truth for invoice fields and response shapes.

Endpoints

See Create a checkout and Fulfil an order.

On this page