Blocks
Square
Accept payments and manage business operations with Square
Integrate with Square to process payments, manage inventory, create invoices, and handle customer data. Perfect for small businesses and retailers with POS integration using OAuth 2.0 authentication.
Block Preview
Square
Accept payments and manage business operations with Square
Usage
- Add the block to your workflow and connect it to the upstream step.
- Connect the required credentials or OAuth provider before running.
- Fill in required inputs and optional parameters for the run.
- Run a test execution, inspect outputs, and iterate before deploying.
- Deploy the square block with monitoring enabled in production.
Inputs (UI)
Square Account
oauth-inputPlaceholder: Select Square account
Layout: full
Provider: square
Operation
dropdownLayout: full
Options: Create Payment, Get Payment, List Payments, Refund Payment
Amount (in cents)
short-inputPlaceholder: 10000
Layout: half
Condition: operation = ["create_payment","refund_payment"]
Currency
dropdownLayout: half
Condition: operation = ["create_payment","refund_payment","create_order"]
Options: USD, CAD, GBP, EUR
Payment ID
short-inputPlaceholder: Enter payment ID
Layout: full
Condition: operation = ["get_payment","refund_payment"]
Order ID
short-inputPlaceholder: Enter order ID
Layout: full
Condition: operation = ["get_order","update_order"]
Source ID (Card Nonce)
short-inputPlaceholder: cnon:...
Layout: full
Condition: operation = "create_payment"
Note
long-inputPlaceholder: Payment note
Layout: full
Condition: operation = ["create_payment","create_order"]
Inputs (API)
credential
stringRequired
operation
stringRequired
amount
stringOptional
currency
stringOptional
paymentId
stringOptional
orderId
stringOptional
sourceId
stringOptional
note
stringOptional
Outputs
Primary response type:
{
"data": "json"
}