postCommerceStoreByStoreidCheckoutCaptureByOrderidWithHttpInfo method
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.
Note: This method returns the HTTP Response.
Parameters:
Implementation
Future<Response> postCommerceStoreByStoreidCheckoutCaptureByOrderidWithHttpInfo(String storeid, String orderid,) async {
// ignore: prefer_const_declarations
final path = r'/v1/commerce/store/{storeid}/checkout/capture/{orderid}'
.replaceAll('{storeid}', storeid)
.replaceAll('{orderid}', orderid);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}