Exchange the one-time code for the store key (once; the same client, redirect_uri and the PKCE verifier). When the account had connected this store by consent already and its owner approved again, the keys the store had stop working at this exchange
application/json- body
client_id*stringvizbl-app or vizbl-woocommerce.
1 <= length <= 64client_secret?stringConfidential clients only (vizbl-app); a public client must not send it.
1 <= length <= 256code*string1 <= length <= 256code_verifier*stringRFC 7636: 43–128 characters.
^[A-Za-z0-9._~-]{43,128}$redirect_uri*string1 <= length <= 2048shopify_id_token?stringShopify stores of vizbl-app: a fresh App Bridge session token of the store (they live one minute). With it Vizbl also gets its own offline Shopify token for the store, used to check the charges the app makes; an invalid one is invalid_request, one of another store invalid_grant.
^[\w-]+\.[\w-]+\.[\w-]+$length <= 4096invalid_grant (unknown, expired or used code; client, redirect_uri or verifier mismatch; store disconnected) or invalid_request
application/json- response
error*string"invalid_request""invalid_client""invalid_grant""unauthorized_client"error_description*stringcurl -X POST 'https://api.vizbl.com/developer-api/store-connections/token' \ -H 'Content-Type: application/json' \ -d '{ "client_id": "vizbl-app", "client_secret": "<client secret>", "code": "example-one-time-code", "code_verifier": "dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk", "redirect_uri": "https://app.example.com/store-connection/callback"}'{ "error": "invalid_request", "error_description": "string"}Ask to connect a store: the merchant approves it on the Vizbl page at consent_url (no key; client authentication and PKCE S256). With a Shopify session token, a store that already has its Vizbl account is approved at once (status approved, with the code) POST
Previous Page
Send a request to the Vizbl team: catalog import, model order, upload help, support or sales POST
Next Page