Describes the scopes being shared from a subject account to a principal account.
import { ShareScopes } from "@moovio/sdk/models/components";
let value: ShareScopes = {
principalAccountID: "c520f1b9-0ba7-42f5-b977-248cdbe41c69",
allowScopes: [
"transfers.write",
"payment-methods.read",
],
};| Field | Type | Required | Description | Example |
|---|---|---|---|---|
principalAccountID |
string | ✔️ | The account ID that will receive access to the scopes. | c520f1b9-0ba7-42f5-b977-248cdbe41c69 |
allowScopes |
components.ApplicationScope[] | ➖ | The list of scopes to share with the principal account. If none are provided, all intersecting scopes are added. | [ "transfers.write", "payment-methods.read" ] |