<- Object

Object

All versions ->

InvoiceBeta

Stores information about an invoice.

Link to section

Properties

Link to section

id

string

Read only The Square-assigned ID of the invoice.

Link to section

version

integer(32-bit)

The version number, which is incremented each time an update is committed to the invoice.

Link to section

location_id

string

The ID of the location that this invoice is associated with. This field is required when creating an invoice.

Link to section

order_id

string

The ID of the order for which the invoice is created.

This order must be in the OPEN state and must belong to the location_id specified for this invoice. This field is required when creating an invoice.

Link to section

primary_recipient

The customer who gets the invoice. Square uses the contact information to deliver the invoice. This field is required when creating an invoice.

Link to section

payment_requests

An array of InvoicePaymentRequest objects. Each object defines a payment request in an invoice payment schedule. It provides information such as when and how Square processes payments. You can specify maximum of nine payment requests. All all the payment requests must specify the same request_method.

This field is required when creating an invoice.

Link to section

invoice_number

string

A user-friendly invoice number. The value is unique within a location. If not provided when creating an invoice, Square assigns a value. It increments from 1 and padded with zeros making it 7 characters long for example, 0000001, 0000002.

Link to section

title

string

The title of the invoice.

Link to section

description

string

The description of the invoice. This is visible the customer receiving the invoice.

Link to section

scheduled_at

string

The timestamp when the invoice is scheduled for processing, in RFC 3339 format. At the specified time, depending on the request_method, Square sends the invoice to the customer's email address or charge the customer's card on file.

If the field is not set, Square processes the invoice immediately after publication.

Examples for January 25th, 2020 6:25:34pm Pacific Standard Time:

UTC: 2020-01-26T02:25:34Z

Pacific Standard Time with UTC offset: 2020-01-25T18:25:34-08:00

Link to section

public_url

string

Read only The URL of the Square-hosted invoice page. After you publish the invoice using the PublishInvoice endpoint, Square hosts the invoice page and returns the page URL in the response.

Link to section

next_payment_amount_money

Read only The current amount due for the invoice. In addition to the amount due on the next payment request, this also includes any overdue payment amounts.

Link to section

status

string

Read only The status of the invoice.

Link to section

timezone

string

Read only The time zone of the date values (for example, due_date) specified in the invoice.

Link to section

created_at

string

Read only The timestamp when the invoice was created, in RFC 3339 format.

Examples for January 25th, 2020 6:25:34pm Pacific Standard Time:

UTC: 2020-01-26T02:25:34Z

Pacific Standard Time with UTC offset: 2020-01-25T18:25:34-08:00

Link to section

updated_at

string

Read only The timestamp when the invoice was last updated, in RFC 3339 format.

Examples for January 25th, 2020 6:25:34pm Pacific Standard Time:

UTC: 2020-01-26T02:25:34Z

Pacific Standard Time with UTC offset: 2020-01-25T18:25:34-08:00