postCommerceStoreByStoreidTrial method

Future<void> postCommerceStoreByStoreidTrial(
  1. String storeid
)

Start this store's no-card trial on the entry plan

Creates a trialing subscription for the addressed store on the entry plan and grants that plan's trial credit, answering 201 when this call actually started one and 200 with a reason otherwise — not_new when the store already has billing history, trial_not_configured when no entry plan is wired. The window is always the SEVEN-DAY no-card trial, because this address never presents a card; the longer card-present window is reached only by adding a card afterwards. Entitlement is per store while the billing subject is the org, so every store an org owns takes its own trial. Admin-gated and namespaced to the caller's org: no resolvable store is 404 with store_required, and a backing-store failure is 503.

Parameters:

Implementation

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