Take payments and manage customers, catalog and orders from any Windmill script, flow or app.
Set up in 3 steps
Copy an access token
At developer.squareup.com/apps, open your application and choose Credentials. Take the sandbox token while you build, the production one when you go live.
Add the resource in Windmill
Open Resources, add a resource of type square, and paste the token.
Run your first script
Fork any script below and list locations — most calls need a location id.
Scripts
Building blocks, if none of the projects above fit. Fork one, run it, or call it as a step inside your own flow.
VoidTransaction
V1UpdateOrder
V1RetrieveOrder
V1ListOrders
UpsertSnippet
UpsertOrderCustomAttribute
UpsertMerchantCustomAttribute
UpsertLocationCustomAttribute
UpsertCustomerCustomAttribute
UpsertCatalogObject
UpsertBookingCustomAttribute
UpdateWorkweekConfig
UpdateWebhookSubscriptionSignatureKey
UpdateWebhookSubscription
UpdateWageSetting
UpdateVendor
UpdateTeamMember
UpdateSubscription
UpdateShift
UpdatePaymentLink
UpdatePayment
UpdateOrderCustomAttributeDefinition
UpdateOrder
UpdateMerchantSettings
UpdateMerchantCustomAttributeDefinition
UpdateLocationSettings
UpdateLocationCustomAttributeDefinition
UpdateLocation
UpdateJob
UpdateItemTaxes
Resource type
square — the shape of the credential every script on this page expects.
| Field | Type | Required | What it is |
|---|---|---|---|
| token | string | Yes | Either of personal access token or oauth access token. |
Questions
Sandbox or production?
The token decides, and the two never mix. Keep a resource for each and switch the one a flow points at.
Is my key stored on the hub?
Never. It lives only in your own Windmill workspace, encrypted at rest.