postCommerceStoreByStoreidCheckoutCaptureByOrderid method

Future<void> postCommerceStoreByStoreidCheckoutCaptureByOrderid(
  1. String storeid,
  2. String orderid
)

Capture a previously authorized order and settle it — the checkout spelling

Settles the authorized order named in the path and answers the updated order with a Location header, running the same handler as the unprefixed capture address. Dispatch follows the order's stored payment type. Success is what triggers the downstream work — order and payment updates, redemptions, referral, cart and stats, the confirmation email, and the paid and completed events — while a failure releases the order's inventory reservations and answers 400.

Parameters:

Implementation

Future<void> postCommerceStoreByStoreidCheckoutCaptureByOrderid(String storeid, String orderid,) async {
  final response = await postCommerceStoreByStoreidCheckoutCaptureByOrderidWithHttpInfo(storeid, orderid,);
  if (response.statusCode >= HttpStatus.badRequest) {
    throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  }
}