Hi All,
I am integrating Square POS APIs with our ordering platform and would like to clarify whether it is possible to create an order and process its payment in a single API call.
Currently, my integration follows these three steps:
-
Create Order API (
POST /v2/orders) – Create the order with line items, taxes, discounts, service charges, and fulfillment details. -
Create Payment API (
POST /v2/payments) – Process the customer’s payment using the relevant payment source. -
Pay Order API (
POST /v2/orders/{order_id}/pay) – Associate the processed payment with the previously created order.
I would like to know whether Square provides a way to achieve this entire process with a single API call.
Specifically:
-
Is there any option in the Create Order API to process or capture the payment while creating the order?
-
Can payment details or a payment source be included directly in the Create Order API request?
-
Alternatively, is there another Square API that allows us to create an order, process the payment, and associate the payment with the order in one request?
-
If a single API call is not supported, is the current three-step approach (Create Order → Create Payment → Pay Order) the recommended implementation?
I would appreciate any guidance on the recommended approach and whether there are any API limitations or alternative workflows I should consider.
Thank you!