capabilities.work

Square New Customer Checkout

A 3-step recipe with Block. We can help you get access.

Recipe · 3 steps

Square New Customer Checkout

with Block

Onboard a customer and take their first payment through an order.

  1. Create the customer profile that the order and payment will be attributed to.
  2. Open an order at the seller location with the supplied line items.
  3. Charge the supplied payment 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.
  • givenName: The customer's first name.
  • familyName: The customer's last name.
  • emailAddress: The customer's email address.
  • phoneNumber: The customer's phone number.
  • 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.
  • customerIdempotencyKey: Idempotency key for the create-customer request.
  • orderIdempotencyKey: Idempotency key for the create-order request.
For your developer

Arazzo workflow block:new-customer-checkout, 3 operations: create-customer → create-order → create-payment. Specs on APIs.io.