openintegration200+ connectors

Create order in Square

POS API · write, waits for approval · 100% field coverage

Your agent can create order in Square through Apideck's POS API, the same call it makes for every POS app. It changes data in the customer's Square account, so it stops with the exact request until a person approves it. Apideck adds the customer's Square credentials, so no token ever reaches the agent.

Paste into Claude Code, Cursor or any coding agent.

The call

POST https://unify.apideck.com/pos/orders

Headers: x-apideck-service-id: square, plus your app id and the customer's consumer id. Apideck MCP tool: pos-orders-add. Agent operation id: unified.pos.ordersAdd.

Body fields

FieldTypeDescription
idempotency_keystringA value you specify that uniquely identifies this request among requests you have sent.
order_numberstring
order_datestring
closed_datestring
reference_idstringAn optional user-defined reference ID that associates this record with another entity in an external system. For example
statusstringOrder status. Clover specific: If no value is set, the status defaults to hidden, which indicates a hidden order. A hidd
payment_statusstringIs this order paid or not?
currencystringIndicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/
titlestring
notestringA note with information about this order, may be printed on the order receipt and displayed in apps
merchant_id · requiredstring
customer_idstring
employee_idstring
location_id · requiredstring
order_type_idstring
tablestring
seatstring
total_amountinteger
total_tipinteger
total_taxinteger
total_discountinteger
total_refundinteger
total_service_chargeinteger
refundedboolean
customersarray
fulfillmentsarray
line_itemsarray
paymentsarray
service_chargesarrayOptional service charges or gratuity tip applied to the order.
refundsarray
taxesarray
discountsarray
tendersarray
voidedboolean
versionstring

More for orders in Square

list_ordersget_orderupdate_orderdelete_order

Create order in other POS apps

The same call works for each of these; only the service id changes.

Clover