OptionaldefaultLocationId: stringCreate a draft invoice
Invoice creation options
Created invoice (in DRAFT status)
Publish (send) an invoice
Invoice ID
Invoice version (for optimistic concurrency)
Optionaloptions: { idempotencyKey?: string }
OptionalidempotencyKey?: stringReuse the same key when retrying
Published invoice
Search for invoices
Optionaloptions: { cursor?: string; customerId?: string; limit?: number; locationIds?: string[] }
Search options
Matching invoices with pagination
Update an invoice
Invoice ID
Invoice version (for optimistic concurrency)
Update options
OptionalacceptedPaymentMethods?: AcceptedPaymentMethodsInputOptionaldescription?: stringOptionaldueDate?: stringOptionalidempotencyKey?: stringReuse the same key when retrying
Optionaltitle?: stringUpdated invoice
Invoices service for managing Square invoices
Example