FileMaster
Search
Toggle Dark Mode
Home
/
.
/
wp-content
/
plugins
/
ameliabooking
/
vendor
/
square
/
square
/
doc
/
models
Edit File: update-invoice-request.md
# Update Invoice Request Describes a `UpdateInvoice` request. ## Structure `UpdateInvoiceRequest` ## Fields | Name | Type | Tags | Description | Getter | Setter | | --- | --- | --- | --- | --- | --- | | `invoice` | [`Invoice`](../../doc/models/invoice.md) | Required | Stores information about an invoice. You use the Invoices API to create and manage<br>invoices. For more information, see [Invoices API Overview](https://developer.squareup.com/docs/invoices-api/overview). | getInvoice(): Invoice | setInvoice(Invoice invoice): void | | `idempotencyKey` | `?string` | Optional | A unique string that identifies the `UpdateInvoice` request. If you do not<br>provide `idempotency_key` (or provide an empty string as the value), the endpoint<br>treats each request as independent.<br><br>For more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency).<br>**Constraints**: *Maximum Length*: `128` | getIdempotencyKey(): ?string | setIdempotencyKey(?string idempotencyKey): void | | `fieldsToClear` | `?(string[])` | Optional | The list of fields to clear. Although this field is currently supported, we<br>recommend using null values or the `remove` field when possible. For examples, see<br>[Update an Invoice](https://developer.squareup.com/docs/invoices-api/update-invoices). | getFieldsToClear(): ?array | setFieldsToClear(?array fieldsToClear): void | ## Example (as JSON) ```json { "idempotency_key": "4ee82288-0910-499e-ab4c-5d0071dad1be", "invoice": { "payment_requests": [ { "reminders": null, "tipping_enabled": false, "uid": "2da7964f-f3d2-4f43-81e8-5aa220bf3355" } ], "version": 1, "id": "id6", "location_id": "location_id0", "order_id": "order_id0", "primary_recipient": { "customer_id": "customer_id2", "given_name": "given_name6", "family_name": "family_name8", "email_address": "email_address2", "address": { "address_line_1": "address_line_16", "address_line_2": "address_line_26", "address_line_3": "address_line_32", "locality": "locality6", "sublocality": "sublocality6" } } }, "fields_to_clear": [ "fields_to_clear1", "fields_to_clear2", "fields_to_clear3" ] } ```
Save
Back