Square Location First Sale
A 3-step recipe with Block. We can help you get access.
Recipe · 3 steps
Square Location First Sale
with Block
Discover a seller location, create an order, and capture payment for it.
- Retrieve the seller's locations and pick the first one for the sale.
- Open an order at the resolved location with the supplied line items.
- Charge the supplied source for the order amount at the resolved location.
What you'll need to have ready
- accessToken: Square access token presented as a Bearer credential.
- lineItems: Order line items, each with a name, quantity, and base_price_money.
- sourceId: The payment source id (card nonce or token) to charge.
- amount: The amount to charge in the smallest currency denomination.
- currency: The ISO 4217 currency code for the charge.
- orderIdempotencyKey: Idempotency key for the create-order request.
- paymentIdempotencyKey: Idempotency key for the create-payment request.
For your developer
Arazzo workflow block:location-first-sale, 3 operations: list-locations → create-order → create-payment. Specs on APIs.io.