Square Catalog Driven Order
A 3-step recipe with Block. We can help you get access.
Recipe · 3 steps
Square Catalog Driven Order
with Block
List catalog items, create an order, and take payment for it.
- List catalog ITEM objects to source the products for the order.
- Open an order at the seller location with the supplied line items.
- Charge the supplied source for the order amount at the location.
What you'll need to have ready
- accessToken: Square access token presented as a Bearer credential.
- locationId: The seller location the order and payment are associated with.
- 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:catalog-driven-order, 3 operations: list-catalog → create-order → create-payment. Specs on APIs.io.