postCommerceStoreByStoreidCheckoutAuthorizeByOrderidWithHttpInfo method
Authorize an existing order, holding the funds — the checkout spelling
Continues the order named in the path rather than minting one, and shares its handler byte for byte with the unprefixed authorize-by-id address. The order is loaded from the caller org's own store, so another tenant's id is a 404, and the body's order object is merged onto the loaded row before the tally — a field sent here overwrites what is stored. Store resolution, the token gate and the currency override behave as on every other authorize address; settle with the capture address and the same order id.
Note: This method returns the HTTP Response.
Parameters:
Implementation
Future<Response> postCommerceStoreByStoreidCheckoutAuthorizeByOrderidWithHttpInfo(String storeid, String orderid,) async {
// ignore: prefer_const_declarations
final path = r'/v1/commerce/store/{storeid}/checkout/authorize/{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,
);
}