Does the Shopify Plus API allow us to initiate Credit Card capture?

Our Shopify Plus store (in development) is currently set to manually capture at a later date. Is it possible to use the Shopify API to initiate a capture either by telling Shopify what items have been fulfilled and letting Shopify perform the calculation OR by telling Shopify the amount to capture?

If possible - can Shopify return the amount captured via the API?

I’ve read through the payments documentation: https://shopify.dev/docs/api/admin-rest/2023-01/resources/payment#post-checkouts-token-payments

But I’m not clear if the payment mentioned needs to happen at time of checkout or if it can happen at a later date.

For context - we are using Microsoft Business Central to fulfill orders and need to track what orders (and how much) were successfully paid vs payments that were declined. We are planning to use the Business Connector app to integrate but it does not sync payments. From what we’ve discovered in our research, most businesses are authorizing and capturing at time of checkout but that unfortunately does not fit our business model

hello there

  1. it is possible to use the Shopify API to initiate a capture at a later date for a payment. You can do this by using the “Create a payment” API endpoint and specifying the “capture” parameter as “true”. This will initiate the capture of the payment and capture the full authorized amount.
  2. Here is an example of the API request:
POST /admin/api/2023-01/orders/{order_id}/payments.json

{
  "payment": {
    "amount": "100.00",
    "kind": "capture",
    "currency": "USD",
    "test": true
  }
}

Replace “{order_id}” with the ID of the order for which you want to capture the payment. You can also specify the amount to capture in the “amount” field.

Once the payment is captured, Shopify will return the payment details, including the captured amount, in the API response.