Skip to main content
POST
/
subscriptions
/
cp
/
api
/
customer-account-api
/
initiate
Initiate Customer Account API OAuth flow
curl --request POST \
  --url https://www.myshop.com/apps/subscriptions/cp/api/customer-account-api/initiate \
  --header 'Content-Type: application/json' \
  --data '
{
  "returnUrl": "https://myshop.com/account/subscriptions"
}
'
{
  "authorizationUrl": "https://shopify.com/12345/auth/oauth/authorize?client_id=...",
  "state": "random-state-value-for-csrf-protection"
}

Documentation Index

Fetch the complete documentation index at: https://appstleinc-aeca3e0a.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json

OAuth initiation request with return URL

returnUrl
string

Response

OAuth flow initiated successfully