Skip to content

External Accounts

External accounts link your app store accounts so we can import your sales and other data. Use /external_accounts to list, add, update and delete them.

See the integrations page for every store we support.

GET /external_accounts
// GET /external_accounts
{
"50956": {
"id": 50956,
"account_id": 100101,
"nickname": "Main iTunes",
"username": "johnny@me.com",
"auto_import": true,
"store_id": 1,
"store": "apple",
"metadata": {
"vendor_id": 85261205
}
},
"31174": {
"id": 31174,
"account_id": 100101,
"nickname": "Android apps",
"username": "coolapps@gmail.com",
"auto_import": true,
"store_id": 2,
"store": "google_play",
"metadata": {
}
},
...
}
GET /external_accounts/{external_account_id}
// GET /external_accounts/31174
{
"id": 31174,
"account_id": 100101,
"nickname": "Android apps",
"username": "coolapps@gmail.com",
"auto_import": true,
"store_id": 2,
"store": "google_play",
"metadata": {
}
}
POST /external_accounts/

Send arguments as a JSON object in the request body.

Argument Type Description
nickname String A name for this account.
username String The username for the app store account.
password String The password for the app store account.
auto_import Bool (true | false) Whether we import reports for this account automatically.
store String The type of account you’re linking: apple, google_play or amazon.
metadata JSON Extra details for this account. The only supported value is vendor_id, for App Store Connect accounts. Other account types get an empty object.
// POST /external_accounts/31174
{
"nickname": "A new account",
"username": "myusername",
"password": "p455w0rd!",
"auto_import": true,
"store": "apple"
}
// POST /external_accounts/31174
{
"id": 31175,
"account_id": 100101,
"nickname": "A new account",
"username": "myusername",
"auto_import": true,
"store_id": 1,
"store": "apple"
}
PUT /external_accounts/{accountId}

Send arguments as a JSON object in the request body.

Argument Type Description
nickname String A name for this account.
username String The username for the app store account.
password String The password for the app store account.
auto_import String (true | false) Whether we import reports for this account automatically.

The account before the update:

// GET /external_accounts/31175
{
"id": 31175,
"nickname": "Games Account",
"username": "awesomegames@me.com",
"auto_import": true,
"store": "apple"
}

The update request:

// PUT /external_accounts/31175
{
"nickname": "A new Nickname(Games Account)",
"username": "awesomegames+edited@me.com",
"password": "ipl4yallth3timexx",
"auto_import": false,
"store": "apple"
}
// PUT /external_accounts/31175 with above request body
{
"id": 31175,
"nickname": "A new Nickname(Games Account)",
"username": "awesomegames+edited@me.com",
"auto_import": false,
"store": "apple"
}
DELETE /external_account/{id}
Argument Description
id The ID of the external account to delete.
// DELETE /external_accounts/90438
// HTTP 204

Note: Deleting an external account won’t remove its products or data.