If you do not have an Order API for Pay By Group to use or there is certain information related to the purchase that is stored only on your system and required to create the order, you may use the Pay By Group endpoints to accept or reject purchases that are ready to complete.
When any purchase payment is ready for you to confirm, Pay By Group triggers the Payment Authorized webhook. You may use the Pay By Group ID included in the webhook to look up all the details for the purchase from the Get Purchase endpoint at any time. When you receive that webhook and have the purchase information you need to create the order in your system, you should take one of the following actions:
- Once you confirm the purchase details and cost match your order requirements, trigger the Accept payment endpoint.
- If the inventory is unavailable or the price and other details have changed, follow instructions to Modify the Purchase as appropriate.
- If the order cannot complete and there is no inventory alternative you would like to offer / no chance this purchase can become a completed order, then trigger the Cancel purchase endpoint.