REST API v2. Authenticate with a Bearer JWT in the Authorization header unless an endpoint is marked public.
Servers​
Payment Processors​
Endpoints to interact with the payment processors
Operations​
Create a Square Mobile Authorization code​
Creates a short-lived Square Mobile Authorization code for the given location. The mobile app uses the returned authorizationCode to initialize Square Reader SDK / mobile payments. Codes are single-use and expire after 60 minutes.
Authorizations​
Request Body​
Responses​
The created mobile authorization code.
Create a Square Terminal device pairing code​
Creates a Square Terminal device pairing code. The operator enters the returned code on the physical Square Terminal to pair it; poll its status via GET /square/device-code/{id}.
Authorizations​
Request Body​
Responses​
The created device pairing code.
Get the status of a Square Terminal device pairing code​
Returns the pairing status of a Square Terminal device code. When status is PAIRED, deviceId is the terminal device used at checkout.
Authorizations​
Parameters​
Path Parameters
Device code id.
Responses​
The current pairing status.
List paired Square Terminal devices​
Lists the paired Square Terminal devices.
Authorizations​
Responses​
The list of paired Square devices.
Get Stripe publishable key​
Returns the active site/venue Stripe publishable key (pk_live_… / pk_test_…) for initialising the client Stripe SDK.
Authorizations​
Responses​
The Stripe publishable key.
Get a Stripe Terminal connection token​
Returns a Stripe Terminal connection token used to initialise the frontend Terminal SDK.
Authorizations​
Responses​
The connection token.
List Stripe Terminal readers​
Lists the Stripe Terminal readers registered on the account.
Authorizations​
Responses​
The list of registered Stripe readers.
Register a Stripe Terminal reader​
Registers a physical Stripe Terminal reader against the configured terminal location using its pairing/registration code.
Authorizations​
Request Body​
Responses​
The reader was registered.
Remove a Stripe Terminal reader​
Simulate a Stripe Terminal reader payment​
Sandbox-only: simulate a card tap on a simulated Stripe Terminal reader so an in-progress card_present PaymentIntent can complete without hardware.
Authorizations​
Parameters​
Path Parameters
Simulated Stripe reader id.
Request Body​
Responses​
The simulated payment method was presented.
