Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 1.67 KB

update-order-request.md

File metadata and controls

28 lines (19 loc) · 1.67 KB

Update Order Request

Defines the fields that are included in requests to the UpdateOrder endpoint.

Structure

UpdateOrderRequest

Fields

Name Type Tags Description
order Order | undefined Optional Contains all information related to a single order to process with Square,
including line items that specify the products to purchase. Order objects also
include information about any associated tenders, refunds, and returns.

All Connect V2 Transactions have all been converted to Orders including all associated
itemization data.
fieldsToClear string[] | undefined Optional The dot notation paths
fields to clear. For example, line_items[uid].note.
For more information, see Deleting fields.
idempotencyKey string | undefined Optional A value you specify that uniquely identifies this update request.

If you are unsure whether a particular update was applied to an order successfully,
you can reattempt it with the same idempotency key without
worrying about creating duplicate updates to the order.
The latest order version is returned.

For more information, see Idempotency.
Constraints: Maximum Length: 192

Example (as JSON)

{
  "order": null,
  "fields_to_clear": null,
  "idempotency_key": null
}