comecerodocs

Get shop feature

GET
/shop_features/{feature}

Read one summary under the same token, permission and progress rules as list_shop_features. Needs settings_general read or a relevant resource read permission for a non-customer merchant Secret, Trusted, App or scoped Admin/proxy credential. Settings-only readers see setup intent and cannot infer hidden resource configuration. Limited/customer, platform Admin and Service credentials cannot read it. Denial returns 403 ShopFeatureRead. Unknown names return 404 ShopFeatureMissing. A required read failure returns HTTP 200 with state unavailable. Reads create no intent or resources. No resource API requires Start or a setup document.

Authorization

headerAuthorizationBearer <token>

A secret, trusted or limited token. See Authentication.

Path Parameters

feature*shop_feature_name

Exact lower-case feature name.

Value in"usage_billing""credits""entitlements""license_keys"

Response Body

Setup progress for this caller's readable resources and intent.

application/json
  1. response
object*unknown
account_id*string

Account selected by the authenticated token.

test*boolean

Mode selected by the authenticated token.

feature*shop_feature_name

Exact feature name. Setup is separate for each account and mode.

Value in"usage_billing""credits""entitlements""license_keys"
state*string

Progress from this caller's readable resources and setup intent in this account and mode. not_started means no intent or saved tool was found. started means intent exists without a saved tool. configured means a saved tool exists, including partial or unattached setup; it does not confirm billing admission or validity. unavailable means a required read failed, never an empty shop. A usage key alone does not configure Usage billing.

Value in"not_started""started""configured""unavailable"
restriction*

Safe notice shared by Live and Test. Latest notice persists after delivery and lift. No internal reasons, case, actor or staff history.

actions*
admin_path*string

Fixed local admin destination. Never derived from a request or return URL.

Value in"/usage-billing""/usage-billing/credits""/entitlements""/license-services"
Example Request
curl -X GET 'https://api.comecero.com/api/v1/shop_features/usage_billing'
Example Response
{  "object": "shop_feature",  "account_id": "AB1234",  "test": true,  "feature": "credits",  "state": "started",  "restriction": {    "state": "clear",    "message": null,    "event_id": null,    "date_changed": null,    "scope": "live_and_test",    "resolution_path": "/support"  },  "actions": {    "start": true,    "open": true  },  "admin_path": "/usage-billing/credits"}

List shop features GET

Read setup progress without pagination. Non-customer merchant Secret, Trusted, App and scoped Admin/proxy credentials need settings_general read or a relevant resource read permission. Limited/customer, platform Admin and Service credentials cannot read these summaries. Omit unauthorized features; return 403 ShopFeatureRead if none are authorized. Existing resource-method limits still apply to Apps and proxy credentials. Settings-only readers see intent without inferring hidden resources and have open false. Account and mode come from the token; query parameters cannot select another shop or mode. Reads create no setup intent, resource or repair work. A failed feature read returns HTTP 200 with state unavailable and keeps the other cards. Keep permitted resource links and offer a retry. Usage billing checks readable metrics, rate plans and agreements; a usage key alone does not configure it. Credits checks a named unit or credit grant, including a money balance. Entitlements checks the feature catalog or a saved feature set. License keys checks generated services only; list and remote services do not count.

Start feature setup POST

Ensure setup intent for this token's account, mode and feature. Only non-customer merchant Secret or Trusted credentials with settings_general update permission may Start. Read permission is not required. Apps and Admin/proxy credentials cannot Start, even with all permissions. Limited/customer, platform Admin and Service credentials cannot Start. Start grants no resource permissions and creates no operational resources, customer agreements, grants, attachments, keys or charges. Existing resource APIs do not require Start. Send no body or an empty object. All input fields, nonobjects and invalid JSON return 400 ShopFeatureInput. The body limit is 1024 bytes. Account and mode come only from authentication. No Idempotency-Key is required. First, repeated and concurrent Starts return HTTP 200 and preserve the entire first intent, including its time. Test intent never starts live intent. There is no off state or server wizard draft.