Start a token top-up the Vizbl Shopify app charges through Shopify Billing: returns the intent and the exact appPurchaseOneTimeCreate parameters. Charges nothing; tokens are credited only when Shopify reports the charge paid. A store key needs developer:account:read, an account-wide key developer:billing:checkout and a store_id
bearerAuthorizationBearer <secret_api_key>Use Authorization: Bearer <secret_api_key>.
application/json- body
package_id?stringA package of token_catalog.packages. Pass this or tokens.
1 <= lengthtokens?integerA custom amount between token_catalog.min_tokens and max_tokens. Pass this or package_id.
0 < value <= 9007199254740991store_id?stringThe connected Shopify store to charge through; an account-wide key only — a store key always uses its own store.
1 <= lengthInvalid request
application/json- response
status*number100101102103200201202203204205206207208210300301302303304307308400401402403404405406407408409410411412413414415416417418421422423424428429456500501502503504505507508code*stringMachine-readable error id (i18n dictionary key), e.g. shopify.ERROR_ID_TOKEN_INVALID; http_error.<STATUS> when there is no specific one.
error*array<string>retryAfterSeconds?integer0 <= value <= 9007199254740991manageUrl?stringWhere this account pays instead: the Vizbl app billing page in the Shopify admin (subscription.ERROR_PAYMENTS_THROUGH_SHOPIFY_APP).
urimanage_url?stringDeprecatedDeprecated: the same as manageUrl, kept for the clients that still read it.
uristack?stringcurl -X POST 'https://api.vizbl.com/developer-api/billing/top_ups' \ -H 'Content-Type: application/json' \ -d '{ "package_id": "tokens-5000"}'{ "status": 100, "code": "string", "error": [ "string" ], "retryAfterSeconds": 0, "manageUrl": "http://example.com", "manage_url": "http://example.com", "stack": "string"}What the Vizbl Shopify app may sell to the account (token packages, plans assigned to it) and where its billing stands. Read only. A store key reads it with developer:account:read, an account-wide key needs developer:billing:read GET
Previous Page
Start an app subscription the Vizbl Shopify app creates through Shopify Billing — auto top-up (a usage charge with a cap the merchant approves once) or a plan assigned to the account (monthly, optionally with auto top-up), by plan_id or by the plan link the merchant came by (plan_link): returns the intent and the exact appSubscriptionCreate parameters (result=checkout), or, for a plan link that cannot be charged, result=blocked with the reason and nothing created. Charges and activates nothing; that happens only when Shopify reports the subscription approved. A store key needs developer:account:read, an account-wide key developer:billing:checkout and a store_id POST
Next Page