Skip to content

Square: Invoices schemas

35 Square schemas with complete fields and constraints.

← Invoices operations · All schemas

Cancel Invoice — request body — body

FieldTypePresenceDescription and constraints
$objectRootDescribes a `CancelInvoice` request.
versionintegerRequired within parentThe version of the [invoice](entity:Invoice) to cancel.
If you do not know the version, you can call
[GetInvoice](api-endpoint:Invoices-GetInvoice) or [ListInvoices](api-endpoint:Invoices-ListInvoices).

Cancel Invoice — response body

FieldTypePresenceDescription and constraints
$objectRootThe response returned by the `CancelInvoice` request.
errorsarrayOptionalInformation about errors encountered during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
invoiceModelOptionalExpand Get Invoice — response body — invoice
The canceled invoice.

Referenced models: Get Shift — response body — errors item, Get Invoice — response body — invoice

Create Invoice Attachment — request body — body request

FieldTypePresenceDescription and constraints
$objectRootRepresents a [CreateInvoiceAttachment](api-endpoint:Invoices-CreateInvoiceAttachment) request.
descriptionstringOptionalThe description of the attachment to display on the invoice.
Maximum length: 128
idempotency_keystringOptionalA unique string that identifies the `CreateInvoiceAttachment` request.
For more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency).
Maximum length: 128

Create Invoice Attachment — response body

FieldTypePresenceDescription and constraints
$objectRootRepresents a [CreateInvoiceAttachment](api-endpoint:Invoices-CreateInvoiceAttachment) response.
attachmentModelOptionalExpand Create Invoice Attachment — response body — attachment
Metadata about the attachment that was added to the invoice.
errorsarrayOptionalInformation about errors encountered during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item

Referenced models: Get Shift — response body — errors item, Create Invoice Attachment — response body — attachment

Create Invoice Attachment — response body — attachment

FieldTypePresenceDescription and constraints
$objectRootRepresents a file attached to an [invoice](entity:Invoice).
descriptionstringOptionalThe description of the attachment, which is displayed on the invoice.
This field maps to the seller-defined **Message** field.
Read only: true
filenamestringOptionalThe file name of the attachment, which is displayed on the invoice.
Read only: true
filesizeJSONOptional
filesize (anyOf 1)integerAlternativeThe file size of the attachment in bytes.
Read only: true
filesize (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
hashstringOptionalThe MD5 hash that was generated from the file contents.
Read only: true
idstringOptionalThe Square-assigned ID of the attachment.
Read only: true
mime_typestringOptionalThe mime type of the attachment.
The following mime types are supported:
image/gif, image/jpeg, image/png, image/tiff, image/bmp, application/pdf.
Read only: true
uploaded_atstringOptionalThe timestamp when the attachment was uploaded, in RFC 3339 format.
Read only: true

Create Invoice — request body — body

FieldTypePresenceDescription and constraints
$objectRootDescribes a `CreateInvoice` request.
idempotency_keystringOptionalA unique string that identifies the `CreateInvoice` request. If you do not
provide `idempotency_key` (or provide an empty string as the value), the endpoint
treats each request as independent.

For more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency).
Maximum length: 128
invoiceModelRequired within parentExpand Create Invoice — request body — body invoice
The invoice to create.

Referenced models: Create Invoice — request body — body invoice

Create Invoice — request body — body invoice

FieldTypePresenceDescription and constraints
$objectRootStores information about an invoice. You use the Invoices API to create and manage
invoices. For more information, see [Invoices API Overview](https://developer.squareup.com/docs/invoices-api/overview).
accepted_payment_methodsJSONOptional
accepted_payment_methods (anyOf 1)ModelAlternativeExpand Get Invoice — response body — invoice accepted payment methods bank account, buy now pay later, card, cash app pay, square gift card
The payment methods that customers can use to pay the invoice on the Square-hosted
invoice page. This setting is independent of any automatic payment requests for the invoice.

This field is required when creating an invoice and must set at least one payment method to `true`.
accepted_payment_methods (anyOf 2)nullAlternative
attachmentsarrayOptionalMetadata about the attachments on the invoice. Invoice attachments are managed using the
[CreateInvoiceAttachment](api-endpoint:Invoices-CreateInvoiceAttachment) and [DeleteInvoiceAttachment](api-endpoint:Invoices-DeleteInvoiceAttachment) endpoints.
Read only: true
attachments[]ModelEach itemExpand Create Invoice — request body — body invoice attachments item
created_atstringOptionalThe timestamp when the invoice was created, in RFC 3339 format.
Read only: true
creator_team_member_idstringOptionalThe ID of the [team member](entity:TeamMember) who created the invoice.
This field is present only on invoices created in the Square Dashboard or Square Invoices app by a logged-in team member.
Read only: true
custom_fieldsJSONOptional
custom_fields (anyOf 1)arrayAlternativeAdditional seller-defined fields that are displayed on the invoice. For more information, see
[Custom fields](https://developer.squareup.com/docs/invoices-api/overview#custom-fields).

Adding custom fields to an invoice requires an
[Invoices Plus subscription](https://developer.squareup.com/docs/invoices-api/overview#invoices-plus-subscription).

Max: 2 custom fields
custom_fields (anyOf 1)[]ModelEach itemExpand Create Invoice — request body — body invoice custom fields array item
custom_fields (anyOf 2)nullAlternative
delivery_methodJSONOptional
delivery_method (anyOf 1)stringAlternativeIndicates how Square delivers the [invoice](entity:Invoice) to the customer.
The delivery method that Square uses to send the invoice, reminders, and receipts to
the customer. After the invoice is published, Square processes the invoice based on the delivery
method and payment request settings, either immediately or on the `scheduled_at` date, if specified.
For example, Square might send the invoice or receipt for an automatic payment. For invoices with
automatic payments, this field must be set to `EMAIL`.

One of the following is required when creating an invoice:
- (Recommended) This `delivery_method` field. To configure an automatic payment, the
`automatic_payment_source` field of the payment request is also required.
- The deprecated `request_method` field of the payment request. Note that `invoice`
objects returned in responses do not include `request_method`.
See [InvoiceDeliveryMethod](#type-invoicedeliverymethod) for possible values
One of: EMAIL, SHARE_MANUALLY, SMS
delivery_method (anyOf 2)nullAlternative
descriptionJSONOptional
description (anyOf 1)stringAlternativeThe description of the invoice, which is displayed on the invoice.
Maximum length: 65536
Minimum length: 1
description (anyOf 2)nullAlternative
idstringOptionalThe Square-assigned ID of the invoice.
Read only: true
invoice_numberJSONOptional
invoice_number (anyOf 1)stringAlternativeA user-friendly invoice number that is displayed on the invoice. The value is unique within a location.
If not provided when creating an invoice, Square assigns a value.
It increments from 1 and is padded with zeros making it 7 characters long
(for example, 0000001 and 0000002).
Maximum length: 191
Minimum length: 1
invoice_number (anyOf 2)nullAlternative
location_idJSONOptional
location_id (anyOf 1)stringAlternativeThe ID of the location that this invoice is associated with.

If specified in a `CreateInvoice` request, the value must match the `location_id` of the associated order.
Maximum length: 255
Minimum length: 1
location_id (anyOf 2)nullAlternative
next_payment_amount_moneyModelOptionalExpand Create Payment — request body — body tip money
The current amount due for the invoice. In addition to the
amount due on the next payment request, this includes any overdue payment amounts.
Read only: true
order_idJSONOptional
order_id (anyOf 1)stringAlternativeThe ID of the [order](entity:Order) for which the invoice is created.
This field is required when creating an invoice, and the order must be in the `OPEN` state.

To view the line items and other information for the associated order, call the
[RetrieveOrder](api-endpoint:Orders-RetrieveOrder) endpoint using the order ID.
Maximum length: 255
Minimum length: 1
order_id (anyOf 2)nullAlternative
payment_conditionsJSONOptional
payment_conditions (anyOf 1)stringAlternative**France only.** The payment terms and conditions that are displayed on the invoice. For more information,
see [Payment conditions](https://developer.squareup.com/docs/invoices-api/overview#payment-conditions).

For countries other than France, Square returns an `INVALID_REQUEST_ERROR` with a `BAD_REQUEST` code and
"Payment conditions are not supported for this location's country" detail if this field is included in `CreateInvoice` or `UpdateInvoice` requests.
Maximum length: 2000
Minimum length: 1
payment_conditions (anyOf 2)nullAlternative
payment_requestsJSONOptional
payment_requests (anyOf 1)arrayAlternativeThe payment schedule for the invoice, represented by one or more payment requests that
define payment settings, such as amount due and due date. An invoice supports the following payment request combinations:
- One balance
- One deposit with one balance
- 2–12 installments
- One deposit with 2–12 installments

This field is required when creating an invoice. It must contain at least one payment request.
All payment requests for the invoice must equal the total order amount. For more information, see
[Configuring payment requests](https://developer.squareup.com/docs/invoices-api/create-publish-invoices#payment-requests).

Adding `INSTALLMENT` payment requests to an invoice requires an
[Invoices Plus subscription](https://developer.squareup.com/docs/invoices-api/overview#invoices-plus-subscription).
payment_requests (anyOf 1)[]ModelEach itemExpand Create Invoice — request body — body invoice payment requests array item
payment_requests (anyOf 2)nullAlternative
primary_recipientJSONOptional
primary_recipient (anyOf 1)ModelAlternativeExpand Create Invoice — request body — body invoice primary recipient address, company name, customer id, email address, family name, given name, phone number, tax ids
The customer who receives the invoice. This customer data is displayed on the invoice and used by Square to deliver the invoice.

This field is required to publish an invoice, and it must specify the `customer_id`.
primary_recipient (anyOf 2)nullAlternative
public_urlstringOptionalA temporary link to the Square-hosted payment page where the customer can pay the
invoice. If the link expires, customers can provide the email address or phone number
associated with the invoice and request a new link directly from the expired payment page.

This field is added after the invoice is published and reaches the scheduled date
(if one is defined).
Read only: true
sale_or_service_dateJSONOptional
sale_or_service_date (anyOf 1)stringAlternativeThe date of the sale or the date that the service is rendered, in `YYYY-MM-DD` format.
This field can be used to specify a past or future date which is displayed on the invoice.
sale_or_service_date (anyOf 2)nullAlternative
scheduled_atJSONOptional
scheduled_at (anyOf 1)stringAlternativeThe timestamp when the invoice is scheduled for processing, in RFC 3339 format.
After the invoice is published, Square processes the invoice on the specified date,
according to the delivery method and payment request settings.

If the field is not set, Square processes the invoice immediately after it is published.
scheduled_at (anyOf 2)nullAlternative
statusstringOptionalIndicates the status of an [invoice](entity:Invoice).
The status of the invoice.
See [InvoiceStatus](#type-invoicestatus) for possible values
One of: DRAFT, UNPAID, SCHEDULED, PARTIALLY_PAID, PAID, PARTIALLY_REFUNDED, REFUNDED, CANCELED, FAILED, PAYMENT_PENDING
Read only: true
store_payment_method_enabledJSONOptional
store_payment_method_enabled (anyOf 1)booleanAlternativeIndicates whether to allow a customer to save a credit or debit card as a card on file or a bank transfer as a
bank account on file. If `true`, Square displays a __Save my card on file__ or __Save my bank on file__ checkbox on the
invoice payment page. Stored payment information can be used for future automatic payments. The default value is `false`.
store_payment_method_enabled (anyOf 2)nullAlternative
subscription_idstringOptionalThe ID of the [subscription](entity:Subscription) associated with the invoice.
This field is present only on subscription billing invoices.
Read only: true
timezonestringOptionalThe time zone used to interpret calendar dates on the invoice, such as `due_date`.
When an invoice is created, this field is set to the `timezone` specified for the seller
location. The value cannot be changed.

For example, a payment `due_date` of 2021-03-09 with a `timezone` of America/Los\_Angeles
becomes overdue at midnight on March 9 in America/Los\_Angeles (which equals a UTC timestamp
of 2021-03-10T08:00:00Z).
Read only: true
titleJSONOptional
title (anyOf 1)stringAlternativeThe title of the invoice, which is displayed on the invoice.
Maximum length: 255
Minimum length: 1
title (anyOf 2)nullAlternative
updated_atstringOptionalThe timestamp when the invoice was last updated, in RFC 3339 format.
Read only: true
versionintegerOptionalThe Square-assigned version number, which is incremented each time an update is committed to the invoice.

Referenced models: Get Invoice — response body — invoice accepted payment methods bank account, buy now pay later, card, cash app pay, square gift card, Create Invoice — request body — body invoice attachments item, Create Invoice — request body — body invoice custom fields array item, Create Invoice — request body — body invoice payment requests array item, Create Invoice — request body — body invoice primary recipient address, company name, customer id, email address, family name, given name, phone number, tax ids, Create Payment — request body — body tip money

Create Invoice — request body — body invoice attachments item

FieldTypePresenceDescription and constraints
$objectRootRepresents a file attached to an [invoice](entity:Invoice).
descriptionstringOptionalThe description of the attachment, which is displayed on the invoice.
This field maps to the seller-defined **Message** field.
Read only: true
filenamestringOptionalThe file name of the attachment, which is displayed on the invoice.
Read only: true
filesizeintegerOptionalThe file size of the attachment in bytes.
Read only: true
hashstringOptionalThe MD5 hash that was generated from the file contents.
Read only: true
idstringOptionalThe Square-assigned ID of the attachment.
Read only: true
mime_typestringOptionalThe mime type of the attachment.
The following mime types are supported:
image/gif, image/jpeg, image/png, image/tiff, image/bmp, application/pdf.
Read only: true
uploaded_atstringOptionalThe timestamp when the attachment was uploaded, in RFC 3339 format.
Read only: true

Create Invoice — request body — body invoice custom fields array item

FieldTypePresenceDescription and constraints
$objectRootAn additional seller-defined and customer-facing field to include on the invoice. For more information,
see [Custom fields](https://developer.squareup.com/docs/invoices-api/overview#custom-fields).

Adding custom fields to an invoice requires an
[Invoices Plus subscription](https://developer.squareup.com/docs/invoices-api/overview#invoices-plus-subscription).
labelJSONOptional
label (anyOf 1)stringAlternativeThe label or title of the custom field. This field is required for a custom field.
Maximum length: 30
label (anyOf 2)nullAlternative
placementJSONOptional
placement (anyOf 1)stringAlternativeIndicates where to render a custom field on the Square-hosted invoice page and in emailed or PDF
copies of the invoice.
The location of the custom field on the invoice. This field is required for a custom field.
See [InvoiceCustomFieldPlacement](#type-invoicecustomfieldplacement) for possible values
One of: ABOVE_LINE_ITEMS, BELOW_LINE_ITEMS
placement (anyOf 2)nullAlternative
valueJSONOptional
value (anyOf 1)stringAlternativeThe text of the custom field. If omitted, only the label is rendered.
Maximum length: 2000
value (anyOf 2)nullAlternative

Create Invoice — request body — body invoice payment requests array item

FieldTypePresenceDescription and constraints
$objectRootRepresents a payment request for an [invoice](entity:Invoice). Invoices can specify a maximum
of 13 payment requests, with up to 12 `INSTALLMENT` request types. For more information,
see [Configuring payment requests](https://developer.squareup.com/docs/invoices-api/create-publish-invoices#payment-requests).

Adding `INSTALLMENT` payment requests to an invoice requires an
[Invoices Plus subscription](https://developer.squareup.com/docs/invoices-api/overview#invoices-plus-subscription).
automatic_payment_sourceJSONOptional
automatic_payment_source (anyOf 1)stringAlternativeIndicates the automatic payment method for an [invoice payment request](entity:InvoicePaymentRequest).
The payment method for an automatic payment.

The default value is `NONE`.
See [InvoiceAutomaticPaymentSource](#type-invoiceautomaticpaymentsource) for possible values
One of: NONE, CARD_ON_FILE, BANK_ON_FILE
automatic_payment_source (anyOf 2)nullAlternative
card_idJSONOptional
card_id (anyOf 1)stringAlternativeThe ID of the credit or debit card on file to charge for the payment request. To get the cards on file for a customer,
call [ListCards](api-endpoint:Cards-ListCards) and include the `customer_id` of the invoice recipient.
Maximum length: 255
Minimum length: 1
card_id (anyOf 2)nullAlternative
computed_amount_moneyModelOptionalExpand Create Payment — request body — body tip money
The amount of the payment request, computed using the order amount and information from the various payment
request fields (`request_type`, `fixed_amount_requested_money`, and `percentage_requested`).
Read only: true
due_dateJSONOptional
due_date (anyOf 1)stringAlternativeThe due date (in the invoice's time zone) for the payment request, in `YYYY-MM-DD` format. This field
is required to create a payment request. If an `automatic_payment_source` is defined for the request, Square
charges the payment source on this date.

After this date, the invoice becomes overdue. For example, a payment `due_date` of 2021-03-09 with a `timezone`
of America/Los\_Angeles becomes overdue at midnight on March 9 in America/Los\_Angeles (which equals a UTC
timestamp of 2021-03-10T08:00:00Z).
due_date (anyOf 2)nullAlternative
fixed_amount_requested_moneyJSONOptional
fixed_amount_requested_money (anyOf 1)ModelAlternativeExpand Create Payment — request body — body tip money
If the payment request specifies `DEPOSIT` or `INSTALLMENT` as the `request_type`,
this indicates the request amount.
You cannot specify this when `request_type` is `BALANCE` or when the
payment request includes the `percentage_requested` field.
fixed_amount_requested_money (anyOf 2)nullAlternative
percentage_requestedJSONOptional
percentage_requested (anyOf 1)stringAlternativeSpecifies the amount for the payment request in percentage:

- When the payment `request_type` is `DEPOSIT`, it is the percentage of the order's total amount.
- When the payment `request_type` is `INSTALLMENT`, it is the percentage of the order's total less
the deposit, if requested. The sum of the `percentage_requested` in all installment
payment requests must be equal to 100.

You cannot specify this when the payment `request_type` is `BALANCE` or when the
payment request specifies the `fixed_amount_requested_money` field.
percentage_requested (anyOf 2)nullAlternative
remindersJSONOptional
reminders (anyOf 1)arrayAlternativeA list of one or more reminders to send for the payment request.
reminders (anyOf 1)[]ModelEach itemExpand Create Invoice — request body — body invoice payment requests array item reminders array item
reminders (anyOf 2)nullAlternative
request_methodJSONOptional
request_method (anyOf 1)ModelAlternativeExpand Create Invoice — request body — body invoice payment requests array item request method string
Indicates how Square processes the payment request. DEPRECATED at version 2021-01-21. Replaced by the
`Invoice.delivery_method` and `InvoicePaymentRequest.automatic_payment_source` fields.

One of the following is required when creating an invoice:
- (Recommended) The `delivery_method` field of the invoice. To configure an automatic payment, the
`automatic_payment_source` field of the payment request is also required.
- This `request_method` field. Note that `invoice` objects returned in responses do not include `request_method`.
See [InvoiceRequestMethod](#type-invoicerequestmethod) for possible values
request_method (anyOf 2)nullAlternative
request_typeJSONOptional
request_type (anyOf 1)stringAlternativeIndicates the type of the payment request. For more information, see
[Configuring payment requests](https://developer.squareup.com/docs/invoices-api/create-publish-invoices#payment-requests).
Identifies the payment request type. This type defines how the payment request amount is determined.
This field is required to create a payment request.
See [InvoiceRequestType](#type-invoicerequesttype) for possible values
One of: BALANCE, DEPOSIT, INSTALLMENT
request_type (anyOf 2)nullAlternative
rounding_adjustment_included_moneyModelOptionalExpand Create Payment — request body — body tip money
If the most recent payment was a cash payment
in a currency that rounds cash payments (such as, `CAD` or `AUD`) and the payment
is rounded from `computed_amount_money` in the payment request, then this
field specifies the rounding adjustment applied. This amount
might be negative.
Read only: true
tipping_enabledJSONOptional
tipping_enabled (anyOf 1)booleanAlternativeIf set to true, the Square-hosted invoice page (the `public_url` field of the invoice)
provides a place for the customer to pay a tip.

This field is allowed only on the final payment request
and the payment `request_type` must be `BALANCE` or `INSTALLMENT`.
tipping_enabled (anyOf 2)nullAlternative
total_completed_amount_moneyModelOptionalExpand Create Payment — request body — body tip money
The amount of money already paid for the specific payment request.
This amount might include a rounding adjustment if the most recent invoice payment
was in cash in a currency that rounds cash payments (such as, `CAD` or `AUD`).
Read only: true
uidJSONOptional
uid (anyOf 1)stringAlternativeThe Square-generated ID of the payment request in an [invoice](entity:Invoice).
Maximum length: 255
Minimum length: 1
uid (anyOf 2)nullAlternative

Referenced models: Create Invoice — request body — body invoice payment requests array item reminders array item, Create Invoice — request body — body invoice payment requests array item request method string, Create Payment — request body — body tip money

Create Invoice — request body — body invoice payment requests array item reminders array item

FieldTypePresenceDescription and constraints
$objectRootDescribes a payment request reminder (automatic notification) that Square sends
to the customer. You configure a reminder relative to the payment request
`due_date`.
messageJSONOptional
message (anyOf 1)stringAlternativeThe reminder message.
Maximum length: 1000
Minimum length: 1
message (anyOf 2)nullAlternative
relative_scheduled_daysJSONOptional
relative_scheduled_days (anyOf 1)integerAlternativeThe number of days before (a negative number) or after (a positive number)
the payment request `due_date` when the reminder is sent. For example, -3 indicates that
the reminder should be sent 3 days before the payment request `due_date`.
Maximum: 32767
Minimum: -32767
relative_scheduled_days (anyOf 2)nullAlternative
sent_atstringOptionalIf sent, the timestamp when the reminder was sent, in RFC 3339 format.
Read only: true
statusstringOptionalThe status of a payment request reminder.
The status of the reminder.
See [InvoicePaymentReminderStatus](#type-invoicepaymentreminderstatus) for possible values
One of: PENDING, NOT_APPLICABLE, SENT
Read only: true
uidstringOptionalA Square-assigned ID that uniquely identifies the reminder within the
`InvoicePaymentRequest`.
Read only: true

Create Invoice — request body — body invoice payment requests array item request method string

FieldTypePresenceDescription and constraints
$stringRootSpecifies the action for Square to take for processing the invoice. For example,
email the invoice, charge a customer's card on file, or do nothing. DEPRECATED at
version 2021-01-21. The corresponding `request_method` field is replaced by the
`Invoice.delivery_method` and `InvoicePaymentRequest.automatic_payment_source` fields.
One of: EMAIL, CHARGE_CARD_ON_FILE, SHARE_MANUALLY, CHARGE_BANK_ON_FILE, SMS, SMS_CHARGE_CARD_ON_FILE, SMS_CHARGE_BANK_ON_FILE

Create Invoice — request body — body invoice primary recipient address, company name, customer id, email address, family name, given name, phone number, tax ids

FieldTypePresenceDescription and constraints
$objectRootRepresents a snapshot of customer data. This object stores customer data that is displayed on the invoice
and that Square uses to deliver the invoice.

When you provide a customer ID for a draft invoice, Square retrieves the associated customer profile and populates
the remaining `InvoiceRecipient` fields. You cannot update these fields after the invoice is published.
Square updates the customer ID in response to a merge operation, but does not update other fields.
addressModelOptionalExpand Create Customer — request body — body address
The recipient's physical address.
Read only: true
company_namestringOptionalThe name of the recipient's company.
Read only: true
customer_idJSONOptional
customer_id (anyOf 1)stringAlternativeThe ID of the customer. This is the customer profile ID that
you provide when creating a draft invoice.
Maximum length: 255
Minimum length: 1
customer_id (anyOf 2)nullAlternative
email_addressstringOptionalThe recipient's email address.
Read only: true
family_namestringOptionalThe recipient's family (that is, last) name.
Read only: true
given_namestringOptionalThe recipient's given (that is, first) name.
Read only: true
phone_numberstringOptionalThe recipient's phone number.
Read only: true
tax_idsModelOptionalExpand Get Invoice — response body — invoice primary recipient address, company name, customer id, email address, family name, given name, phone number, tax ids tax ids
The recipient's tax IDs. The country of the seller account determines whether this field
is available for the customer. For more information, see [Invoice recipient tax IDs](https://developer.squareup.com/docs/invoices-api/overview#recipient-tax-ids).
Read only: true

Referenced models: Create Customer — request body — body address, Get Invoice — response body — invoice primary recipient address, company name, customer id, email address, family name, given name, phone number, tax ids tax ids

Create Invoice — response body

FieldTypePresenceDescription and constraints
$objectRootThe response returned by the `CreateInvoice` request.
errorsarrayOptionalInformation about errors encountered during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
invoiceModelOptionalExpand Get Invoice — response body — invoice
The newly created invoice.

Referenced models: Get Shift — response body — errors item, Get Invoice — response body — invoice

Delete Invoice Attachment — response body

FieldTypePresenceDescription and constraints
$objectRootRepresents a [DeleteInvoiceAttachment](api-endpoint:Invoices-DeleteInvoiceAttachment) response.
errorsarrayOptionalInformation about errors encountered during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item

Referenced models: Get Shift — response body — errors item

Delete Invoice — response body

FieldTypePresenceDescription and constraints
$objectRootDescribes a `DeleteInvoice` response.
errorsarrayOptionalInformation about errors encountered during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item

Referenced models: Get Shift — response body — errors item

Get Invoice — response body

FieldTypePresenceDescription and constraints
$objectRootDescribes a `GetInvoice` response.
errorsarrayOptionalInformation about errors encountered during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
invoiceModelOptionalExpand Get Invoice — response body — invoice
The invoice requested.

Referenced models: Get Shift — response body — errors item, Get Invoice — response body — invoice

Get Invoice — response body — invoice

FieldTypePresenceDescription and constraints
$objectRootStores information about an invoice. You use the Invoices API to create and manage
invoices. For more information, see [Invoices API Overview](https://developer.squareup.com/docs/invoices-api/overview).
accepted_payment_methodsJSONOptional
accepted_payment_methods (anyOf 1)ModelAlternativeExpand Get Invoice — response body — invoice accepted payment methods bank account, buy now pay later, card, cash app pay, square gift card
The payment methods that customers can use to pay the invoice on the Square-hosted
invoice page. This setting is independent of any automatic payment requests for the invoice.

This field is required when creating an invoice and must set at least one payment method to `true`.
accepted_payment_methods (anyOf 2)nullAlternative
attachmentsarrayOptionalMetadata about the attachments on the invoice. Invoice attachments are managed using the
[CreateInvoiceAttachment](api-endpoint:Invoices-CreateInvoiceAttachment) and [DeleteInvoiceAttachment](api-endpoint:Invoices-DeleteInvoiceAttachment) endpoints.
Read only: true
attachments[]ModelEach itemExpand Create Invoice Attachment — response body — attachment
created_atstringOptionalThe timestamp when the invoice was created, in RFC 3339 format.
Read only: true
creator_team_member_idstringOptionalThe ID of the [team member](entity:TeamMember) who created the invoice.
This field is present only on invoices created in the Square Dashboard or Square Invoices app by a logged-in team member.
Read only: true
custom_fieldsJSONOptional
custom_fields (anyOf 1)arrayAlternativeAdditional seller-defined fields that are displayed on the invoice. For more information, see
[Custom fields](https://developer.squareup.com/docs/invoices-api/overview#custom-fields).

Adding custom fields to an invoice requires an
[Invoices Plus subscription](https://developer.squareup.com/docs/invoices-api/overview#invoices-plus-subscription).

Max: 2 custom fields
custom_fields (anyOf 1)[]ModelEach itemExpand Get Invoice — response body — invoice custom fields array item
custom_fields (anyOf 2)nullAlternative
delivery_methodJSONOptional
delivery_method (anyOf 1)stringAlternativeIndicates how Square delivers the [invoice](entity:Invoice) to the customer.
The delivery method that Square uses to send the invoice, reminders, and receipts to
the customer. After the invoice is published, Square processes the invoice based on the delivery
method and payment request settings, either immediately or on the `scheduled_at` date, if specified.
For example, Square might send the invoice or receipt for an automatic payment. For invoices with
automatic payments, this field must be set to `EMAIL`.

One of the following is required when creating an invoice:
- (Recommended) This `delivery_method` field. To configure an automatic payment, the
`automatic_payment_source` field of the payment request is also required.
- The deprecated `request_method` field of the payment request. Note that `invoice`
objects returned in responses do not include `request_method`.
See [InvoiceDeliveryMethod](#type-invoicedeliverymethod) for possible values
Known values: EMAIL, SHARE_MANUALLY, SMS
delivery_method (anyOf 2)nullAlternative
descriptionJSONOptional
description (anyOf 1)stringAlternativeThe description of the invoice, which is displayed on the invoice.
Maximum length: 65536
Minimum length: 1
description (anyOf 2)nullAlternative
idstringOptionalThe Square-assigned ID of the invoice.
Read only: true
invoice_numberJSONOptional
invoice_number (anyOf 1)stringAlternativeA user-friendly invoice number that is displayed on the invoice. The value is unique within a location.
If not provided when creating an invoice, Square assigns a value.
It increments from 1 and is padded with zeros making it 7 characters long
(for example, 0000001 and 0000002).
Maximum length: 191
Minimum length: 1
invoice_number (anyOf 2)nullAlternative
location_idJSONOptional
location_id (anyOf 1)stringAlternativeThe ID of the location that this invoice is associated with.

If specified in a `CreateInvoice` request, the value must match the `location_id` of the associated order.
Maximum length: 255
Minimum length: 1
location_id (anyOf 2)nullAlternative
next_payment_amount_moneyModelOptionalExpand Pay Order — response body — order total money
The current amount due for the invoice. In addition to the
amount due on the next payment request, this includes any overdue payment amounts.
Read only: true
order_idJSONOptional
order_id (anyOf 1)stringAlternativeThe ID of the [order](entity:Order) for which the invoice is created.
This field is required when creating an invoice, and the order must be in the `OPEN` state.

To view the line items and other information for the associated order, call the
[RetrieveOrder](api-endpoint:Orders-RetrieveOrder) endpoint using the order ID.
Maximum length: 255
Minimum length: 1
order_id (anyOf 2)nullAlternative
payment_conditionsJSONOptional
payment_conditions (anyOf 1)stringAlternative**France only.** The payment terms and conditions that are displayed on the invoice. For more information,
see [Payment conditions](https://developer.squareup.com/docs/invoices-api/overview#payment-conditions).

For countries other than France, Square returns an `INVALID_REQUEST_ERROR` with a `BAD_REQUEST` code and
"Payment conditions are not supported for this location's country" detail if this field is included in `CreateInvoice` or `UpdateInvoice` requests.
Maximum length: 2000
Minimum length: 1
payment_conditions (anyOf 2)nullAlternative
payment_requestsJSONOptional
payment_requests (anyOf 1)arrayAlternativeThe payment schedule for the invoice, represented by one or more payment requests that
define payment settings, such as amount due and due date. An invoice supports the following payment request combinations:
- One balance
- One deposit with one balance
- 2–12 installments
- One deposit with 2–12 installments

This field is required when creating an invoice. It must contain at least one payment request.
All payment requests for the invoice must equal the total order amount. For more information, see
[Configuring payment requests](https://developer.squareup.com/docs/invoices-api/create-publish-invoices#payment-requests).

Adding `INSTALLMENT` payment requests to an invoice requires an
[Invoices Plus subscription](https://developer.squareup.com/docs/invoices-api/overview#invoices-plus-subscription).
payment_requests (anyOf 1)[]ModelEach itemExpand Get Invoice — response body — invoice payment requests array item
payment_requests (anyOf 2)nullAlternative
primary_recipientJSONOptional
primary_recipient (anyOf 1)ModelAlternativeExpand Get Invoice — response body — invoice primary recipient address, company name, customer id, email address, family name, given name, phone number, tax ids
The customer who receives the invoice. This customer data is displayed on the invoice and used by Square to deliver the invoice.

This field is required to publish an invoice, and it must specify the `customer_id`.
primary_recipient (anyOf 2)nullAlternative
public_urlstringOptionalA temporary link to the Square-hosted payment page where the customer can pay the
invoice. If the link expires, customers can provide the email address or phone number
associated with the invoice and request a new link directly from the expired payment page.

This field is added after the invoice is published and reaches the scheduled date
(if one is defined).
Read only: true
sale_or_service_dateJSONOptional
sale_or_service_date (anyOf 1)stringAlternativeThe date of the sale or the date that the service is rendered, in `YYYY-MM-DD` format.
This field can be used to specify a past or future date which is displayed on the invoice.
sale_or_service_date (anyOf 2)nullAlternative
scheduled_atJSONOptional
scheduled_at (anyOf 1)stringAlternativeThe timestamp when the invoice is scheduled for processing, in RFC 3339 format.
After the invoice is published, Square processes the invoice on the specified date,
according to the delivery method and payment request settings.

If the field is not set, Square processes the invoice immediately after it is published.
scheduled_at (anyOf 2)nullAlternative
statusstringOptionalIndicates the status of an [invoice](entity:Invoice).
The status of the invoice.
See [InvoiceStatus](#type-invoicestatus) for possible values
Known values: DRAFT, UNPAID, SCHEDULED, PARTIALLY_PAID, PAID, PARTIALLY_REFUNDED, REFUNDED, CANCELED, FAILED, PAYMENT_PENDING
Read only: true
store_payment_method_enabledJSONOptional
store_payment_method_enabled (anyOf 1)booleanAlternativeIndicates whether to allow a customer to save a credit or debit card as a card on file or a bank transfer as a
bank account on file. If `true`, Square displays a __Save my card on file__ or __Save my bank on file__ checkbox on the
invoice payment page. Stored payment information can be used for future automatic payments. The default value is `false`.
store_payment_method_enabled (anyOf 2)nullAlternative
subscription_idstringOptionalThe ID of the [subscription](entity:Subscription) associated with the invoice.
This field is present only on subscription billing invoices.
Read only: true
timezonestringOptionalThe time zone used to interpret calendar dates on the invoice, such as `due_date`.
When an invoice is created, this field is set to the `timezone` specified for the seller
location. The value cannot be changed.

For example, a payment `due_date` of 2021-03-09 with a `timezone` of America/Los\_Angeles
becomes overdue at midnight on March 9 in America/Los\_Angeles (which equals a UTC timestamp
of 2021-03-10T08:00:00Z).
Read only: true
titleJSONOptional
title (anyOf 1)stringAlternativeThe title of the invoice, which is displayed on the invoice.
Maximum length: 255
Minimum length: 1
title (anyOf 2)nullAlternative
updated_atstringOptionalThe timestamp when the invoice was last updated, in RFC 3339 format.
Read only: true
versionJSONOptional
version (anyOf 1)integerAlternativeThe Square-assigned version number, which is incremented each time an update is committed to the invoice.
version (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Referenced models: Get Invoice — response body — invoice accepted payment methods bank account, buy now pay later, card, cash app pay, square gift card, Create Invoice Attachment — response body — attachment, Get Invoice — response body — invoice custom fields array item, Get Invoice — response body — invoice payment requests array item, Get Invoice — response body — invoice primary recipient address, company name, customer id, email address, family name, given name, phone number, tax ids, Pay Order — response body — order total money

Get Invoice — response body — invoice accepted payment methods bank account, buy now pay later, card, cash app pay, square gift card

FieldTypePresenceDescription and constraints
$objectRootThe payment methods that customers can use to pay an [invoice](entity:Invoice) on the Square-hosted invoice payment page.
bank_accountJSONOptional
bank_account (anyOf 1)booleanAlternativeIndicates whether ACH bank transfer payments are accepted. The default value is `false`.
bank_account (anyOf 2)nullAlternative
buy_now_pay_laterJSONOptional
buy_now_pay_later (anyOf 1)booleanAlternativeIndicates whether Afterpay (also known as Clearpay) payments are accepted. The default value is `false`.

This option is allowed only for invoices that have a single payment request of the `BALANCE` type. This payment method is
supported if the seller account accepts Afterpay payments and the seller location is in a country where Afterpay
invoice payments are supported. As a best practice, consider enabling an additional payment method when allowing
`buy_now_pay_later` payments. For more information, including detailed requirements and processing limits, see
[Buy Now Pay Later payments with Afterpay](https://developer.squareup.com/docs/invoices-api/overview#buy-now-pay-later).
buy_now_pay_later (anyOf 2)nullAlternative
cardJSONOptional
card (anyOf 1)booleanAlternativeIndicates whether credit card or debit card payments are accepted. The default value is `false`.
card (anyOf 2)nullAlternative
cash_app_payJSONOptional
cash_app_pay (anyOf 1)booleanAlternativeIndicates whether Cash App payments are accepted. The default value is `false`.

This payment method is supported only for seller [locations](entity:Location) in the United States.
cash_app_pay (anyOf 2)nullAlternative
square_gift_cardJSONOptional
square_gift_card (anyOf 1)booleanAlternativeIndicates whether Square gift card payments are accepted. The default value is `false`.
square_gift_card (anyOf 2)nullAlternative

Get Invoice — response body — invoice custom fields array item

FieldTypePresenceDescription and constraints
$objectRootAn additional seller-defined and customer-facing field to include on the invoice. For more information,
see [Custom fields](https://developer.squareup.com/docs/invoices-api/overview#custom-fields).

Adding custom fields to an invoice requires an
[Invoices Plus subscription](https://developer.squareup.com/docs/invoices-api/overview#invoices-plus-subscription).
labelJSONOptional
label (anyOf 1)stringAlternativeThe label or title of the custom field. This field is required for a custom field.
Maximum length: 30
label (anyOf 2)nullAlternative
placementJSONOptional
placement (anyOf 1)stringAlternativeIndicates where to render a custom field on the Square-hosted invoice page and in emailed or PDF
copies of the invoice.
The location of the custom field on the invoice. This field is required for a custom field.
See [InvoiceCustomFieldPlacement](#type-invoicecustomfieldplacement) for possible values
Known values: ABOVE_LINE_ITEMS, BELOW_LINE_ITEMS
placement (anyOf 2)nullAlternative
valueJSONOptional
value (anyOf 1)stringAlternativeThe text of the custom field. If omitted, only the label is rendered.
Maximum length: 2000
value (anyOf 2)nullAlternative

Get Invoice — response body — invoice payment requests array item

FieldTypePresenceDescription and constraints
$objectRootRepresents a payment request for an [invoice](entity:Invoice). Invoices can specify a maximum
of 13 payment requests, with up to 12 `INSTALLMENT` request types. For more information,
see [Configuring payment requests](https://developer.squareup.com/docs/invoices-api/create-publish-invoices#payment-requests).

Adding `INSTALLMENT` payment requests to an invoice requires an
[Invoices Plus subscription](https://developer.squareup.com/docs/invoices-api/overview#invoices-plus-subscription).
automatic_payment_sourceJSONOptional
automatic_payment_source (anyOf 1)stringAlternativeIndicates the automatic payment method for an [invoice payment request](entity:InvoicePaymentRequest).
The payment method for an automatic payment.

The default value is `NONE`.
See [InvoiceAutomaticPaymentSource](#type-invoiceautomaticpaymentsource) for possible values
Known values: NONE, CARD_ON_FILE, BANK_ON_FILE
automatic_payment_source (anyOf 2)nullAlternative
card_idJSONOptional
card_id (anyOf 1)stringAlternativeThe ID of the credit or debit card on file to charge for the payment request. To get the cards on file for a customer,
call [ListCards](api-endpoint:Cards-ListCards) and include the `customer_id` of the invoice recipient.
Maximum length: 255
Minimum length: 1
card_id (anyOf 2)nullAlternative
computed_amount_moneyModelOptionalExpand Pay Order — response body — order total money
The amount of the payment request, computed using the order amount and information from the various payment
request fields (`request_type`, `fixed_amount_requested_money`, and `percentage_requested`).
Read only: true
due_dateJSONOptional
due_date (anyOf 1)stringAlternativeThe due date (in the invoice's time zone) for the payment request, in `YYYY-MM-DD` format. This field
is required to create a payment request. If an `automatic_payment_source` is defined for the request, Square
charges the payment source on this date.

After this date, the invoice becomes overdue. For example, a payment `due_date` of 2021-03-09 with a `timezone`
of America/Los\_Angeles becomes overdue at midnight on March 9 in America/Los\_Angeles (which equals a UTC
timestamp of 2021-03-10T08:00:00Z).
due_date (anyOf 2)nullAlternative
fixed_amount_requested_moneyJSONOptional
fixed_amount_requested_money (anyOf 1)ModelAlternativeExpand Pay Order — response body — order total money
If the payment request specifies `DEPOSIT` or `INSTALLMENT` as the `request_type`,
this indicates the request amount.
You cannot specify this when `request_type` is `BALANCE` or when the
payment request includes the `percentage_requested` field.
fixed_amount_requested_money (anyOf 2)nullAlternative
percentage_requestedJSONOptional
percentage_requested (anyOf 1)stringAlternativeSpecifies the amount for the payment request in percentage:

- When the payment `request_type` is `DEPOSIT`, it is the percentage of the order's total amount.
- When the payment `request_type` is `INSTALLMENT`, it is the percentage of the order's total less
the deposit, if requested. The sum of the `percentage_requested` in all installment
payment requests must be equal to 100.

You cannot specify this when the payment `request_type` is `BALANCE` or when the
payment request specifies the `fixed_amount_requested_money` field.
percentage_requested (anyOf 2)nullAlternative
remindersJSONOptional
reminders (anyOf 1)arrayAlternativeA list of one or more reminders to send for the payment request.
reminders (anyOf 1)[]ModelEach itemExpand Get Invoice — response body — invoice payment requests array item reminders array item
reminders (anyOf 2)nullAlternative
request_methodJSONOptional
request_method (anyOf 1)ModelAlternativeExpand Get Invoice — response body — invoice payment requests array item request method string
Indicates how Square processes the payment request. DEPRECATED at version 2021-01-21. Replaced by the
`Invoice.delivery_method` and `InvoicePaymentRequest.automatic_payment_source` fields.

One of the following is required when creating an invoice:
- (Recommended) The `delivery_method` field of the invoice. To configure an automatic payment, the
`automatic_payment_source` field of the payment request is also required.
- This `request_method` field. Note that `invoice` objects returned in responses do not include `request_method`.
See [InvoiceRequestMethod](#type-invoicerequestmethod) for possible values
request_method (anyOf 2)nullAlternative
request_typeJSONOptional
request_type (anyOf 1)stringAlternativeIndicates the type of the payment request. For more information, see
[Configuring payment requests](https://developer.squareup.com/docs/invoices-api/create-publish-invoices#payment-requests).
Identifies the payment request type. This type defines how the payment request amount is determined.
This field is required to create a payment request.
See [InvoiceRequestType](#type-invoicerequesttype) for possible values
Known values: BALANCE, DEPOSIT, INSTALLMENT
request_type (anyOf 2)nullAlternative
rounding_adjustment_included_moneyModelOptionalExpand Pay Order — response body — order total money
If the most recent payment was a cash payment
in a currency that rounds cash payments (such as, `CAD` or `AUD`) and the payment
is rounded from `computed_amount_money` in the payment request, then this
field specifies the rounding adjustment applied. This amount
might be negative.
Read only: true
tipping_enabledJSONOptional
tipping_enabled (anyOf 1)booleanAlternativeIf set to true, the Square-hosted invoice page (the `public_url` field of the invoice)
provides a place for the customer to pay a tip.

This field is allowed only on the final payment request
and the payment `request_type` must be `BALANCE` or `INSTALLMENT`.
tipping_enabled (anyOf 2)nullAlternative
total_completed_amount_moneyModelOptionalExpand Pay Order — response body — order total money
The amount of money already paid for the specific payment request.
This amount might include a rounding adjustment if the most recent invoice payment
was in cash in a currency that rounds cash payments (such as, `CAD` or `AUD`).
Read only: true
uidJSONOptional
uid (anyOf 1)stringAlternativeThe Square-generated ID of the payment request in an [invoice](entity:Invoice).
Maximum length: 255
Minimum length: 1
uid (anyOf 2)nullAlternative

Referenced models: Get Invoice — response body — invoice payment requests array item reminders array item, Get Invoice — response body — invoice payment requests array item request method string, Pay Order — response body — order total money

Get Invoice — response body — invoice payment requests array item reminders array item

FieldTypePresenceDescription and constraints
$objectRootDescribes a payment request reminder (automatic notification) that Square sends
to the customer. You configure a reminder relative to the payment request
`due_date`.
messageJSONOptional
message (anyOf 1)stringAlternativeThe reminder message.
Maximum length: 1000
Minimum length: 1
message (anyOf 2)nullAlternative
relative_scheduled_daysJSONOptional
relative_scheduled_days (anyOf 1)JSONAlternative
relative_scheduled_days (anyOf 1) (anyOf 1)integerAlternativeThe number of days before (a negative number) or after (a positive number)
the payment request `due_date` when the reminder is sent. For example, -3 indicates that
the reminder should be sent 3 days before the payment request `due_date`.
Maximum: 32767
Minimum: -32767
relative_scheduled_days (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
relative_scheduled_days (anyOf 2)nullAlternative
sent_atstringOptionalIf sent, the timestamp when the reminder was sent, in RFC 3339 format.
Read only: true
statusstringOptionalThe status of a payment request reminder.
The status of the reminder.
See [InvoicePaymentReminderStatus](#type-invoicepaymentreminderstatus) for possible values
Known values: PENDING, NOT_APPLICABLE, SENT
Read only: true
uidstringOptionalA Square-assigned ID that uniquely identifies the reminder within the
`InvoicePaymentRequest`.
Read only: true

Get Invoice — response body — invoice payment requests array item request method string

FieldTypePresenceDescription and constraints
$stringRootSpecifies the action for Square to take for processing the invoice. For example,
email the invoice, charge a customer's card on file, or do nothing. DEPRECATED at
version 2021-01-21. The corresponding `request_method` field is replaced by the
`Invoice.delivery_method` and `InvoicePaymentRequest.automatic_payment_source` fields.
Known values: EMAIL, CHARGE_CARD_ON_FILE, SHARE_MANUALLY, CHARGE_BANK_ON_FILE, SMS, SMS_CHARGE_CARD_ON_FILE, SMS_CHARGE_BANK_ON_FILE

Get Invoice — response body — invoice primary recipient address, company name, customer id, email address, family name, given name, phone number, tax ids

FieldTypePresenceDescription and constraints
$objectRootRepresents a snapshot of customer data. This object stores customer data that is displayed on the invoice
and that Square uses to deliver the invoice.

When you provide a customer ID for a draft invoice, Square retrieves the associated customer profile and populates
the remaining `InvoiceRecipient` fields. You cannot update these fields after the invoice is published.
Square updates the customer ID in response to a merge operation, but does not update other fields.
addressModelOptionalExpand Get Payment — response body — payment billing address
The recipient's physical address.
Read only: true
company_namestringOptionalThe name of the recipient's company.
Read only: true
customer_idJSONOptional
customer_id (anyOf 1)stringAlternativeThe ID of the customer. This is the customer profile ID that
you provide when creating a draft invoice.
Maximum length: 255
Minimum length: 1
customer_id (anyOf 2)nullAlternative
email_addressstringOptionalThe recipient's email address.
Read only: true
family_namestringOptionalThe recipient's family (that is, last) name.
Read only: true
given_namestringOptionalThe recipient's given (that is, first) name.
Read only: true
phone_numberstringOptionalThe recipient's phone number.
Read only: true
tax_idsModelOptionalExpand Get Invoice — response body — invoice primary recipient address, company name, customer id, email address, family name, given name, phone number, tax ids tax ids
The recipient's tax IDs. The country of the seller account determines whether this field
is available for the customer. For more information, see [Invoice recipient tax IDs](https://developer.squareup.com/docs/invoices-api/overview#recipient-tax-ids).
Read only: true

Referenced models: Get Invoice — response body — invoice primary recipient address, company name, customer id, email address, family name, given name, phone number, tax ids tax ids, Get Payment — response body — payment billing address

Get Invoice — response body — invoice primary recipient address, company name, customer id, email address, family name, given name, phone number, tax ids tax ids

FieldTypePresenceDescription and constraints
$objectRootRepresents the tax IDs for an invoice recipient. The country of the seller account determines
whether the corresponding `tax_ids` field is available for the customer. For more information,
see [Invoice recipient tax IDs](https://developer.squareup.com/docs/invoices-api/overview#recipient-tax-ids).
eu_vatstringOptionalThe EU VAT identification number for the invoice recipient. For example, `IE3426675K`.
Read only: true

List Invoices — response body

FieldTypePresenceDescription and constraints
$objectRootDescribes a `ListInvoice` response.
cursorstringOptionalWhen a response is truncated, it includes a cursor that you can use in a
subsequent request to retrieve the next set of invoices. If empty, this is the final
response.
For more information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination).
errorsarrayOptionalInformation about errors encountered during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
invoicesarrayOptionalThe invoices retrieved.
invoices[]ModelEach itemExpand Get Invoice — response body — invoice

Referenced models: Get Shift — response body — errors item, Get Invoice — response body — invoice

Publish Invoice — request body — body

FieldTypePresenceDescription and constraints
$objectRootDescribes a `PublishInvoice` request.
idempotency_keyJSONOptional
idempotency_key (anyOf 1)stringAlternativeA unique string that identifies the `PublishInvoice` request. If you do not
provide `idempotency_key` (or provide an empty string as the value), the endpoint
treats each request as independent.

For more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency).
Maximum length: 128
idempotency_key (anyOf 2)nullAlternative
versionintegerRequired within parentThe version of the [invoice](entity:Invoice) to publish.
This must match the current version of the invoice; otherwise, the request is rejected.

Publish Invoice — response body

FieldTypePresenceDescription and constraints
$objectRootDescribes a `PublishInvoice` response.
errorsarrayOptionalInformation about errors encountered during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
invoiceModelOptionalExpand Get Invoice — response body — invoice
The published invoice.

Referenced models: Get Shift — response body — errors item, Get Invoice — response body — invoice

Search Invoices — request body — body

FieldTypePresenceDescription and constraints
$objectRootDescribes a `SearchInvoices` request.
cursorstringOptionalA pagination cursor returned by a previous call to this endpoint.
Provide this cursor to retrieve the next set of results for your original query.

For more information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination).
limitintegerOptionalThe maximum number of invoices to return (200 is the maximum `limit`).
If not provided, the server uses a default limit of 100 invoices.
queryModelRequired within parentExpand Search Invoices — request body — body query
Describes the query criteria for searching invoices.

Referenced models: Search Invoices — request body — body query

Search Invoices — request body — body query

FieldTypePresenceDescription and constraints
$objectRootDescribes query criteria for searching invoices.
filterModelRequired within parentExpand Search Invoices — request body — body query filter
Query filters to apply in searching invoices.
For more information, see [Search for invoices](https://developer.squareup.com/docs/invoices-api/retrieve-list-search-invoices#search-invoices).
sortJSONOptional
sort (anyOf 1)ModelAlternativeExpand SearchInvoices — request body — body / query / sort / field: INVOICE SORT DATE
Describes the sort order for the search result.
sort (anyOf 2)nullAlternative

Referenced models: Search Invoices — request body — body query filter, SearchInvoices — request body — body / query / sort / field: INVOICE SORT DATE

Search Invoices — request body — body query filter

FieldTypePresenceDescription and constraints
$objectRootDescribes query filters to apply.
customer_idsJSONOptional
customer_ids (anyOf 1)arrayAlternativeLimits the search to the specified customers, within the specified locations.
Specifying a customer is optional. In the current implementation,
a maximum of one customer can be specified.
customer_ids (anyOf 1)[]stringEach item
customer_ids (anyOf 2)nullAlternative
location_idsarrayRequired within parentLimits the search to the specified locations. A location is required.
In the current implementation, only one location can be specified.
location_ids[]stringEach item

Search Invoices — response body

FieldTypePresenceDescription and constraints
$objectRootDescribes a `SearchInvoices` response.
cursorstringOptionalWhen a response is truncated, it includes a cursor that you can use in a
subsequent request to fetch the next set of invoices. If empty, this is the final
response.
For more information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination).
errorsarrayOptionalInformation about errors encountered during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
invoicesarrayOptionalThe list of invoices returned by the search.
invoices[]ModelEach itemExpand Get Invoice — response body — invoice

Referenced models: Get Shift — response body — errors item, Get Invoice — response body — invoice

SearchInvoices — request body — body / query / sort / field: INVOICE SORT DATE

FieldTypePresenceDescription and constraints
$objectRootIdentifies the sort field and sort order.
fieldstringRequired within parentThe field to use for sorting.
The field to use for sorting.
See [InvoiceSortField](#type-invoicesortfield) for possible values
One of: INVOICE_SORT_DATE
orderJSONOptional
order (anyOf 1)stringAlternativeThe order (e.g., chronological or alphabetical) in which results from a request are returned.
The order to use for sorting the results.
See [SortOrder](#type-sortorder) for possible values
One of: DESC, ASC
order (anyOf 2)nullAlternative

Update Invoice — request body — body

FieldTypePresenceDescription and constraints
$objectRootDescribes a `UpdateInvoice` request.
fields_to_clearJSONOptional
fields_to_clear (anyOf 1)arrayAlternativeThe list of fields to clear. Although this field is currently supported, we
recommend using null values or the `remove` field when possible. For examples, see
[Update an Invoice](https://developer.squareup.com/docs/invoices-api/update-invoices).
fields_to_clear (anyOf 1)[]stringEach item
fields_to_clear (anyOf 2)nullAlternative
idempotency_keyJSONOptional
idempotency_key (anyOf 1)stringAlternativeA unique string that identifies the `UpdateInvoice` request. If you do not
provide `idempotency_key` (or provide an empty string as the value), the endpoint
treats each request as independent.

For more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency).
Maximum length: 128
idempotency_key (anyOf 2)nullAlternative
invoiceModelRequired within parentExpand Create Invoice — request body — body invoice
The invoice fields to add, change, or clear. Fields can be cleared using
null values or the `remove` field (for individual payment requests or reminders).
The current invoice `version` is also required. For more information, including requirements,
limitations, and more examples, see [Update an Invoice](https://developer.squareup.com/docs/invoices-api/update-invoices).

Referenced models: Create Invoice — request body — body invoice

Update Invoice — response body

FieldTypePresenceDescription and constraints
$objectRootDescribes a `UpdateInvoice` response.
errorsarrayOptionalInformation about errors encountered during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
invoiceModelOptionalExpand Get Invoice — response body — invoice
The updated invoice.

Referenced models: Get Shift — response body — errors item, Get Invoice — response body — invoice

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand how our website, product, and documentation are used.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

Advertising

Shares visits and sign-ups with Meta, Reddit, and X so we can measure which of our ads work.

You can change these choices at any time from Cookie settings.