Skip to main content

list-shared-payers

dci list-shared-payers <customerId>

Lists every shared payer linked to the reseller, including ones still mid-onboarding, with per-payer counts of linked and mapped accounts. Requires the SharedPayersAdmin permission and DoiT API access (platform:externalApi). User API tokens must include the permission in their scope.

  • customerId — Customer ID. Must match the customer resolved from the bearer token - a token scoped to a different customer gets 403.

Output​

OK - Shared payers returned.

By default dci renders the result as a table. Use --output json to get the full structure described below — see Output formats.

FieldTypeDescription
itemsarray of object
items[].payerIdstringAWS account ID of the management (payer) account.
items[].payerNamestringDisplay name of the management (payer) account.
items[].linkedAccountsintegerNumber of AWS accounts under this payer, including the payer's own management account.
items[].mappedAssetsintegerNumber of those accounts already reassigned to an end customer.
items[].totalAssetsintegerSame as linkedAccounts.
items[].completedbooleanWhether the payer has finished onboarding. A payer still mid-onboarding has no accounts yet.
Raw JSON schema
{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"description": "A shared payer linked to the reseller, with its account-mapping progress.",
"properties": {
"payerId": {
"type": "string",
"description": "AWS account ID of the management (payer) account."
},
"payerName": {
"type": "string",
"description": "Display name of the management (payer) account."
},
"linkedAccounts": {
"type": "integer",
"description": "Number of AWS accounts under this payer, including the payer's own management account."
},
"mappedAssets": {
"type": "integer",
"description": "Number of those accounts already reassigned to an end customer."
},
"totalAssets": {
"type": "integer",
"description": "Same as `linkedAccounts`."
},
"completed": {
"type": "boolean",
"description": "Whether the payer has finished onboarding. A payer still mid-onboarding has no accounts yet."
}
}
}
}
}
}

Errors​

On failure, dci prints a single error message — with a hint when one is available — and exits with a typed code your scripts can branch on. See Errors and exit codes for the full contract.

HTTP status to exit code mapping
HTTP statusExit codeError codeMeaning
40030VALIDATION_ERRORThe arguments or request body were rejected. Review the command's flags and payload.
40110AUTHENTICATION_FAILEDNot signed in, or the API token is invalid. Run dci login or check DCI_API_KEY.
40311PERMISSION_DENIEDThe DoiT user or the active customer context does not have access.
50040API_SERVER_ERRORThe API failed to process the request. Retryable; contact DoiT support if it persists.

Aliases: listsharedpayers