postCommerceStoreByStoreidTrialWithHttpInfo method
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.
Note: This method returns the HTTP Response.
Parameters:
- String storeid (required):
Implementation
Future<Response> postCommerceStoreByStoreidTrialWithHttpInfo(String storeid,) async {
// ignore: prefer_const_declarations
final path = r'/v1/commerce/store/{storeid}/trial'
.replaceAll('{storeid}', storeid);
// 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,
);
}