Square: Invoices schemas
35 Square schemas with complete fields and constraints.
← Invoices operations · All schemas
Cancel Invoice — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Describes a `CancelInvoice` request. |
version | integer | Required within parent | The 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The response returned by the `CancelInvoice` request. |
errors | array | Optional | Information about errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
invoice | Model | Optional | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a [CreateInvoiceAttachment](api-endpoint:Invoices-CreateInvoiceAttachment) request. |
description | string | Optional | The description of the attachment to display on the invoice. Maximum length: 128 |
idempotency_key | string | Optional | A 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a [CreateInvoiceAttachment](api-endpoint:Invoices-CreateInvoiceAttachment) response. |
attachment | Model | Optional | Expand Create Invoice Attachment — response body — attachment Metadata about the attachment that was added to the invoice. |
errors | array | Optional | Information about errors encountered during the request. |
errors[] | Model | Each item | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a file attached to an [invoice](entity:Invoice). |
description | string | Optional | The description of the attachment, which is displayed on the invoice. This field maps to the seller-defined **Message** field. Read only: true |
filename | string | Optional | The file name of the attachment, which is displayed on the invoice. Read only: true |
filesize | JSON | Optional | |
filesize (anyOf 1) | integer | Alternative | The file size of the attachment in bytes. Read only: true |
filesize (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
hash | string | Optional | The MD5 hash that was generated from the file contents. Read only: true |
id | string | Optional | The Square-assigned ID of the attachment. Read only: true |
mime_type | string | Optional | The 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_at | string | Optional | The timestamp when the attachment was uploaded, in RFC 3339 format. Read only: true |
Create Invoice — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Describes a `CreateInvoice` request. |
idempotency_key | string | Optional | A 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 |
invoice | Model | Required within parent | Expand Create Invoice — request body — body invoice The invoice to create. |
Referenced models: Create Invoice — request body — body invoice
Create Invoice — request body — body invoice
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Stores 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_methods | JSON | Optional | |
accepted_payment_methods (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
attachments | array | Optional | Metadata 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[] | Model | Each item | Expand Create Invoice — request body — body invoice attachments item |
created_at | string | Optional | The timestamp when the invoice was created, in RFC 3339 format. Read only: true |
creator_team_member_id | string | Optional | The 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_fields | JSON | Optional | |
custom_fields (anyOf 1) | array | Alternative | Additional 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)[] | Model | Each item | Expand Create Invoice — request body — body invoice custom fields array item |
custom_fields (anyOf 2) | null | Alternative | |
delivery_method | JSON | Optional | |
delivery_method (anyOf 1) | string | Alternative | Indicates 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) | null | Alternative | |
description | JSON | Optional | |
description (anyOf 1) | string | Alternative | The description of the invoice, which is displayed on the invoice. Maximum length: 65536 Minimum length: 1 |
description (anyOf 2) | null | Alternative | |
id | string | Optional | The Square-assigned ID of the invoice. Read only: true |
invoice_number | JSON | Optional | |
invoice_number (anyOf 1) | string | Alternative | A 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) | null | Alternative | |
location_id | JSON | Optional | |
location_id (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
next_payment_amount_money | Model | Optional | Expand 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_id | JSON | Optional | |
order_id (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
payment_conditions | JSON | Optional | |
payment_conditions (anyOf 1) | string | Alternative | **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) | null | Alternative | |
payment_requests | JSON | Optional | |
payment_requests (anyOf 1) | array | Alternative | The 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)[] | Model | Each item | Expand Create Invoice — request body — body invoice payment requests array item |
payment_requests (anyOf 2) | null | Alternative | |
primary_recipient | JSON | Optional | |
primary_recipient (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
public_url | string | Optional | A 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_date | JSON | Optional | |
sale_or_service_date (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
scheduled_at | JSON | Optional | |
scheduled_at (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
status | string | Optional | Indicates 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_enabled | JSON | Optional | |
store_payment_method_enabled (anyOf 1) | boolean | Alternative | Indicates 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) | null | Alternative | |
subscription_id | string | Optional | The ID of the [subscription](entity:Subscription) associated with the invoice. This field is present only on subscription billing invoices. Read only: true |
timezone | string | Optional | The 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 |
title | JSON | Optional | |
title (anyOf 1) | string | Alternative | The title of the invoice, which is displayed on the invoice. Maximum length: 255 Minimum length: 1 |
title (anyOf 2) | null | Alternative | |
updated_at | string | Optional | The timestamp when the invoice was last updated, in RFC 3339 format. Read only: true |
version | integer | Optional | The 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a file attached to an [invoice](entity:Invoice). |
description | string | Optional | The description of the attachment, which is displayed on the invoice. This field maps to the seller-defined **Message** field. Read only: true |
filename | string | Optional | The file name of the attachment, which is displayed on the invoice. Read only: true |
filesize | integer | Optional | The file size of the attachment in bytes. Read only: true |
hash | string | Optional | The MD5 hash that was generated from the file contents. Read only: true |
id | string | Optional | The Square-assigned ID of the attachment. Read only: true |
mime_type | string | Optional | The 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_at | string | Optional | The timestamp when the attachment was uploaded, in RFC 3339 format. Read only: true |
Create Invoice — request body — body invoice custom fields array item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | An 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). |
label | JSON | Optional | |
label (anyOf 1) | string | Alternative | The label or title of the custom field. This field is required for a custom field. Maximum length: 30 |
label (anyOf 2) | null | Alternative | |
placement | JSON | Optional | |
placement (anyOf 1) | string | Alternative | Indicates 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) | null | Alternative | |
value | JSON | Optional | |
value (anyOf 1) | string | Alternative | The text of the custom field. If omitted, only the label is rendered. Maximum length: 2000 |
value (anyOf 2) | null | Alternative |
Create Invoice — request body — body invoice payment requests array item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents 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_source | JSON | Optional | |
automatic_payment_source (anyOf 1) | string | Alternative | Indicates 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) | null | Alternative | |
card_id | JSON | Optional | |
card_id (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
computed_amount_money | Model | Optional | Expand 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_date | JSON | Optional | |
due_date (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
fixed_amount_requested_money | JSON | Optional | |
fixed_amount_requested_money (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
percentage_requested | JSON | Optional | |
percentage_requested (anyOf 1) | string | Alternative | Specifies 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) | null | Alternative | |
reminders | JSON | Optional | |
reminders (anyOf 1) | array | Alternative | A list of one or more reminders to send for the payment request. |
reminders (anyOf 1)[] | Model | Each item | Expand Create Invoice — request body — body invoice payment requests array item reminders array item |
reminders (anyOf 2) | null | Alternative | |
request_method | JSON | Optional | |
request_method (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
request_type | JSON | Optional | |
request_type (anyOf 1) | string | Alternative | Indicates 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) | null | Alternative | |
rounding_adjustment_included_money | Model | Optional | Expand 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_enabled | JSON | Optional | |
tipping_enabled (anyOf 1) | boolean | Alternative | If 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) | null | Alternative | |
total_completed_amount_money | Model | Optional | Expand 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 |
uid | JSON | Optional | |
uid (anyOf 1) | string | Alternative | The Square-generated ID of the payment request in an [invoice](entity:Invoice). Maximum length: 255 Minimum length: 1 |
uid (anyOf 2) | null | Alternative |
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Describes a payment request reminder (automatic notification) that Square sends to the customer. You configure a reminder relative to the payment request `due_date`. |
message | JSON | Optional | |
message (anyOf 1) | string | Alternative | The reminder message. Maximum length: 1000 Minimum length: 1 |
message (anyOf 2) | null | Alternative | |
relative_scheduled_days | JSON | Optional | |
relative_scheduled_days (anyOf 1) | integer | Alternative | The 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) | null | Alternative | |
sent_at | string | Optional | If sent, the timestamp when the reminder was sent, in RFC 3339 format. Read only: true |
status | string | Optional | The 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 |
uid | string | Optional | A 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | string | Root | Specifies 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents 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. |
address | Model | Optional | Expand Create Customer — request body — body address The recipient's physical address. Read only: true |
company_name | string | Optional | The name of the recipient's company. Read only: true |
customer_id | JSON | Optional | |
customer_id (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
email_address | string | Optional | The recipient's email address. Read only: true |
family_name | string | Optional | The recipient's family (that is, last) name. Read only: true |
given_name | string | Optional | The recipient's given (that is, first) name. Read only: true |
phone_number | string | Optional | The recipient's phone number. Read only: true |
tax_ids | Model | Optional | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The response returned by the `CreateInvoice` request. |
errors | array | Optional | Information about errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
invoice | Model | Optional | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a [DeleteInvoiceAttachment](api-endpoint:Invoices-DeleteInvoiceAttachment) response. |
errors | array | Optional | Information about errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: Get Shift — response body — errors item
Delete Invoice — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Describes a `DeleteInvoice` response. |
errors | array | Optional | Information about errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: Get Shift — response body — errors item
Get Invoice — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Describes a `GetInvoice` response. |
errors | array | Optional | Information about errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
invoice | Model | Optional | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Stores 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_methods | JSON | Optional | |
accepted_payment_methods (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
attachments | array | Optional | Metadata 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[] | Model | Each item | Expand Create Invoice Attachment — response body — attachment |
created_at | string | Optional | The timestamp when the invoice was created, in RFC 3339 format. Read only: true |
creator_team_member_id | string | Optional | The 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_fields | JSON | Optional | |
custom_fields (anyOf 1) | array | Alternative | Additional 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)[] | Model | Each item | Expand Get Invoice — response body — invoice custom fields array item |
custom_fields (anyOf 2) | null | Alternative | |
delivery_method | JSON | Optional | |
delivery_method (anyOf 1) | string | Alternative | Indicates 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) | null | Alternative | |
description | JSON | Optional | |
description (anyOf 1) | string | Alternative | The description of the invoice, which is displayed on the invoice. Maximum length: 65536 Minimum length: 1 |
description (anyOf 2) | null | Alternative | |
id | string | Optional | The Square-assigned ID of the invoice. Read only: true |
invoice_number | JSON | Optional | |
invoice_number (anyOf 1) | string | Alternative | A 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) | null | Alternative | |
location_id | JSON | Optional | |
location_id (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
next_payment_amount_money | Model | Optional | Expand 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_id | JSON | Optional | |
order_id (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
payment_conditions | JSON | Optional | |
payment_conditions (anyOf 1) | string | Alternative | **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) | null | Alternative | |
payment_requests | JSON | Optional | |
payment_requests (anyOf 1) | array | Alternative | The 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)[] | Model | Each item | Expand Get Invoice — response body — invoice payment requests array item |
payment_requests (anyOf 2) | null | Alternative | |
primary_recipient | JSON | Optional | |
primary_recipient (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
public_url | string | Optional | A 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_date | JSON | Optional | |
sale_or_service_date (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
scheduled_at | JSON | Optional | |
scheduled_at (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
status | string | Optional | Indicates 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_enabled | JSON | Optional | |
store_payment_method_enabled (anyOf 1) | boolean | Alternative | Indicates 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) | null | Alternative | |
subscription_id | string | Optional | The ID of the [subscription](entity:Subscription) associated with the invoice. This field is present only on subscription billing invoices. Read only: true |
timezone | string | Optional | The 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 |
title | JSON | Optional | |
title (anyOf 1) | string | Alternative | The title of the invoice, which is displayed on the invoice. Maximum length: 255 Minimum length: 1 |
title (anyOf 2) | null | Alternative | |
updated_at | string | Optional | The timestamp when the invoice was last updated, in RFC 3339 format. Read only: true |
version | JSON | Optional | |
version (anyOf 1) | integer | Alternative | The Square-assigned version number, which is incremented each time an update is committed to the invoice. |
version (anyOf 2) | string | Alternative | Pattern: ^-?[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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The payment methods that customers can use to pay an [invoice](entity:Invoice) on the Square-hosted invoice payment page. |
bank_account | JSON | Optional | |
bank_account (anyOf 1) | boolean | Alternative | Indicates whether ACH bank transfer payments are accepted. The default value is `false`. |
bank_account (anyOf 2) | null | Alternative | |
buy_now_pay_later | JSON | Optional | |
buy_now_pay_later (anyOf 1) | boolean | Alternative | Indicates 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) | null | Alternative | |
card | JSON | Optional | |
card (anyOf 1) | boolean | Alternative | Indicates whether credit card or debit card payments are accepted. The default value is `false`. |
card (anyOf 2) | null | Alternative | |
cash_app_pay | JSON | Optional | |
cash_app_pay (anyOf 1) | boolean | Alternative | Indicates 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) | null | Alternative | |
square_gift_card | JSON | Optional | |
square_gift_card (anyOf 1) | boolean | Alternative | Indicates whether Square gift card payments are accepted. The default value is `false`. |
square_gift_card (anyOf 2) | null | Alternative |
Get Invoice — response body — invoice custom fields array item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | An 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). |
label | JSON | Optional | |
label (anyOf 1) | string | Alternative | The label or title of the custom field. This field is required for a custom field. Maximum length: 30 |
label (anyOf 2) | null | Alternative | |
placement | JSON | Optional | |
placement (anyOf 1) | string | Alternative | Indicates 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) | null | Alternative | |
value | JSON | Optional | |
value (anyOf 1) | string | Alternative | The text of the custom field. If omitted, only the label is rendered. Maximum length: 2000 |
value (anyOf 2) | null | Alternative |
Get Invoice — response body — invoice payment requests array item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents 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_source | JSON | Optional | |
automatic_payment_source (anyOf 1) | string | Alternative | Indicates 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) | null | Alternative | |
card_id | JSON | Optional | |
card_id (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
computed_amount_money | Model | Optional | Expand 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_date | JSON | Optional | |
due_date (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
fixed_amount_requested_money | JSON | Optional | |
fixed_amount_requested_money (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
percentage_requested | JSON | Optional | |
percentage_requested (anyOf 1) | string | Alternative | Specifies 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) | null | Alternative | |
reminders | JSON | Optional | |
reminders (anyOf 1) | array | Alternative | A list of one or more reminders to send for the payment request. |
reminders (anyOf 1)[] | Model | Each item | Expand Get Invoice — response body — invoice payment requests array item reminders array item |
reminders (anyOf 2) | null | Alternative | |
request_method | JSON | Optional | |
request_method (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
request_type | JSON | Optional | |
request_type (anyOf 1) | string | Alternative | Indicates 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) | null | Alternative | |
rounding_adjustment_included_money | Model | Optional | Expand 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_enabled | JSON | Optional | |
tipping_enabled (anyOf 1) | boolean | Alternative | If 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) | null | Alternative | |
total_completed_amount_money | Model | Optional | Expand 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 |
uid | JSON | Optional | |
uid (anyOf 1) | string | Alternative | The Square-generated ID of the payment request in an [invoice](entity:Invoice). Maximum length: 255 Minimum length: 1 |
uid (anyOf 2) | null | Alternative |
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Describes a payment request reminder (automatic notification) that Square sends to the customer. You configure a reminder relative to the payment request `due_date`. |
message | JSON | Optional | |
message (anyOf 1) | string | Alternative | The reminder message. Maximum length: 1000 Minimum length: 1 |
message (anyOf 2) | null | Alternative | |
relative_scheduled_days | JSON | Optional | |
relative_scheduled_days (anyOf 1) | JSON | Alternative | |
relative_scheduled_days (anyOf 1) (anyOf 1) | integer | Alternative | The 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) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
relative_scheduled_days (anyOf 2) | null | Alternative | |
sent_at | string | Optional | If sent, the timestamp when the reminder was sent, in RFC 3339 format. Read only: true |
status | string | Optional | The 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 |
uid | string | Optional | A 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | string | Root | Specifies 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents 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. |
address | Model | Optional | Expand Get Payment — response body — payment billing address The recipient's physical address. Read only: true |
company_name | string | Optional | The name of the recipient's company. Read only: true |
customer_id | JSON | Optional | |
customer_id (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
email_address | string | Optional | The recipient's email address. Read only: true |
family_name | string | Optional | The recipient's family (that is, last) name. Read only: true |
given_name | string | Optional | The recipient's given (that is, first) name. Read only: true |
phone_number | string | Optional | The recipient's phone number. Read only: true |
tax_ids | Model | Optional | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents 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_vat | string | Optional | The EU VAT identification number for the invoice recipient. For example, `IE3426675K`. Read only: true |
List Invoices — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Describes a `ListInvoice` response. |
cursor | string | Optional | When 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). |
errors | array | Optional | Information about errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
invoices | array | Optional | The invoices retrieved. |
invoices[] | Model | Each item | Expand Get Invoice — response body — invoice |
Referenced models: Get Shift — response body — errors item, Get Invoice — response body — invoice
Publish Invoice — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Describes a `PublishInvoice` request. |
idempotency_key | JSON | Optional | |
idempotency_key (anyOf 1) | string | Alternative | A 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) | null | Alternative | |
version | integer | Required within parent | The 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Describes a `PublishInvoice` response. |
errors | array | Optional | Information about errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
invoice | Model | Optional | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Describes a `SearchInvoices` request. |
cursor | string | Optional | A 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). |
limit | integer | Optional | The maximum number of invoices to return (200 is the maximum `limit`). If not provided, the server uses a default limit of 100 invoices. |
query | Model | Required within parent | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Describes query criteria for searching invoices. |
filter | Model | Required within parent | Expand 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). |
sort | JSON | Optional | |
sort (anyOf 1) | Model | Alternative | Expand SearchInvoices — request body — body / query / sort / field: INVOICE SORT DATE Describes the sort order for the search result. |
sort (anyOf 2) | null | Alternative |
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Describes query filters to apply. |
customer_ids | JSON | Optional | |
customer_ids (anyOf 1) | array | Alternative | Limits 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)[] | string | Each item | |
customer_ids (anyOf 2) | null | Alternative | |
location_ids | array | Required within parent | Limits the search to the specified locations. A location is required. In the current implementation, only one location can be specified. |
location_ids[] | string | Each item |
Search Invoices — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Describes a `SearchInvoices` response. |
cursor | string | Optional | When 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). |
errors | array | Optional | Information about errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
invoices | array | Optional | The list of invoices returned by the search. |
invoices[] | Model | Each item | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Identifies the sort field and sort order. |
field | string | Required within parent | The field to use for sorting. The field to use for sorting. See [InvoiceSortField](#type-invoicesortfield) for possible values One of: INVOICE_SORT_DATE |
order | JSON | Optional | |
order (anyOf 1) | string | Alternative | The 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) | null | Alternative |
Update Invoice — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Describes a `UpdateInvoice` request. |
fields_to_clear | JSON | Optional | |
fields_to_clear (anyOf 1) | array | Alternative | The 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)[] | string | Each item | |
fields_to_clear (anyOf 2) | null | Alternative | |
idempotency_key | JSON | Optional | |
idempotency_key (anyOf 1) | string | Alternative | A 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) | null | Alternative | |
invoice | Model | Required within parent | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Describes a `UpdateInvoice` response. |
errors | array | Optional | Information about errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
invoice | Model | Optional | Expand Get Invoice — response body — invoice The updated invoice. |
Referenced models: Get Shift — response body — errors item, Get Invoice — response body — invoice