openintegration200+ connectors

Create payment in Square

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

Your agent can create payment 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/payments

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

Body fields

FieldTypeDescription
source_id · requiredstringThe ID for the source of funds for this payment. Square-only: This can be a payment token (card nonce) generated by the
order_id · requiredstring
merchant_idstring
customer_id · requiredstring
employee_idstring
location_idstring
device_idstring
tender_id · requiredstring
external_payment_idstring
idempotency_keystringA value you specify that uniquely identifies this request among requests you have sent.
amount · requirednumber
currency · requiredstringIndicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/
tipnumber
taxnumber
totalnumber
app_feenumberThe amount the developer is taking as a fee for facilitating the payment on behalf of the seller.
change_back_cash_amountnumber
approvednumberThe initial amount of money approved for this payment.
refundednumberThe initial amount of money approved for this payment.
processing_feesarray
sourcestringSource of this payment.
statusstringStatus of this payment.
cashobjectCash details for this payment
card_detailsobject
bank_accountobjectCard details for this payment. This field is currently not available. Reach out to our team for more info.
walletobjectWallet details for this payment. This field is currently not available. Reach out to our team for more info.
external_detailsobjectDetails about an external payment.
service_chargesarrayOptional service charges or gratuity tip applied to the order.

More for payments in Square

list_paymentsget_paymentupdate_payment

Create payment in other POS apps

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

Clover