postCommerceStoreByStoreidCheckoutAuthorize method
Authorize a new order against a storefront, holding the funds — the checkout spelling
Authorizes a new order for the addressed store and holds the funds, answering the saved order with a Location header. It binds the identical handler as the shorter authorize address, so the two are ONE operation at two spellings and not two behaviours; the checkout prefix is the newer one. Every rule carries over: admin or published scope on the token, the store loaded first with its currency overriding the body, items reserved before the processor call, and reservations released with the order persisted cancelled on failure. Nothing is settled here.
Parameters:
- String storeid (required):
Implementation
Future<void> postCommerceStoreByStoreidCheckoutAuthorize(String storeid,) async {
final response = await postCommerceStoreByStoreidCheckoutAuthorizeWithHttpInfo(storeid,);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
}