Generate Orders
Follow step-by-step instructions to create, clone, or calculate an order using the Square API.
We'll cover the following...
In this lesson, we'll start our discussion on very useful APIs for processing orders provided by Square. Mainly, we'll explore the following three APIs:
CreateOrderhttps://connect.squareupsandbox.com/v2/ordersCloneOrderhttps://connect.squareupsandbox.com/v2/orders/cloneCalculateOrderhttps://connect.squareupsandbox.com/v2/orders/calculate
The CreateOrder
endpoint creates an order which includes information about the products and the settings to be applied to that purchase.
This endpoint requires an Order
object as a request parameter. This object consists of several fields. Some important fields are described below:
Request Parameters
Parameter | Type | Category | Description |
| String | Required | This is the ID of the location this order is associated with. |
| String | Optional | This is an ID specified by the client for associating an entity with this order in another system. |
| Object[ ] | Optional | It is an array of Each object contains the |
| Object[ ] | Optional | It is an array of Each object contains the |
| Object[ ] | Optional | It is an array of Each object contains the |
In addition to the ...