*** # SubaccountsResource * Full name: `\Seven\Api\Resource\Subaccounts\SubaccountsResource` * Parent class: [`\Seven\Api\Resource\Resource`](../Resource.md) ## Methods ### delete ```php public delete(int $id): \Seven\Api\Resource\Subaccounts\SubaccountDelete ``` **Parameters:** | Parameter | Type | Description | |-----------|------|-------------| | `$id` | **int** | | **Throws:** - [`ForbiddenIpException`](../../Exception/ForbiddenIpException.md) - [`InvalidApiKeyException`](../../Exception/InvalidApiKeyException.md) - [`InvalidRequiredArgumentException`](../../Exception/InvalidRequiredArgumentException.md) - [`MissingAccessRightsException`](../../Exception/MissingAccessRightsException.md) - [`RandomException`](../../../../Random/RandomException.md) - [`SigningHashVerificationException`](../../Exception/SigningHashVerificationException.md) - [`UnexpectedApiResponseException`](../../Exception/UnexpectedApiResponseException.md) *** ### read ```php public read(int $id = null): \Seven\Api\Resource\Subaccounts\Subaccount[] ``` **Parameters:** | Parameter | Type | Description | |-----------|------|-------------| | `$id` | **int** | | **Throws:** - [`InvalidRequiredArgumentException`](../../Exception/InvalidRequiredArgumentException.md) - [`RandomException`](../../../../Random/RandomException.md) - [`ForbiddenIpException`](../../Exception/ForbiddenIpException.md) - [`InvalidApiKeyException`](../../Exception/InvalidApiKeyException.md) - [`MissingAccessRightsException`](../../Exception/MissingAccessRightsException.md) - [`SigningHashVerificationException`](../../Exception/SigningHashVerificationException.md) - [`UnexpectedApiResponseException`](../../Exception/UnexpectedApiResponseException.md) *** ### create ```php public create(\Seven\Api\Resource\Subaccounts\CreateParams $params): \Seven\Api\Resource\Subaccounts\SubaccountCreate ``` **Parameters:** | Parameter | Type | Description | |-----------|------|-------------| | `$params` | **\Seven\Api\Resource\Subaccounts\CreateParams** | | **Throws:** - [`ForbiddenIpException`](../../Exception/ForbiddenIpException.md) - [`SigningHashVerificationException`](../../Exception/SigningHashVerificationException.md) - [`RandomException`](../../../../Random/RandomException.md) - [`UnexpectedApiResponseException`](../../Exception/UnexpectedApiResponseException.md) - [`MissingAccessRightsException`](../../Exception/MissingAccessRightsException.md) - [`InvalidApiKeyException`](../../Exception/InvalidApiKeyException.md) *** ### transferCredits ```php public transferCredits(\Seven\Api\Resource\Subaccounts\TransferCreditsParams $params): \Seven\Api\Resource\Subaccounts\SubaccountTransferCredits ``` **Parameters:** | Parameter | Type | Description | |-----------|------|-------------| | `$params` | **\Seven\Api\Resource\Subaccounts\TransferCreditsParams** | | **Throws:** - [`ForbiddenIpException`](../../Exception/ForbiddenIpException.md) - [`SigningHashVerificationException`](../../Exception/SigningHashVerificationException.md) - [`RandomException`](../../../../Random/RandomException.md) - [`UnexpectedApiResponseException`](../../Exception/UnexpectedApiResponseException.md) - [`InvalidApiKeyException`](../../Exception/InvalidApiKeyException.md) - [`MissingAccessRightsException`](../../Exception/MissingAccessRightsException.md) *** ### autoCharge ```php public autoCharge(\Seven\Api\Resource\Subaccounts\AutoChargeParams $params): \Seven\Api\Resource\Subaccounts\SubaccountAutoCharged ``` **Parameters:** | Parameter | Type | Description | |-----------|------|-------------| | `$params` | **\Seven\Api\Resource\Subaccounts\AutoChargeParams** | | **Throws:** - [`ForbiddenIpException`](../../Exception/ForbiddenIpException.md) - [`SigningHashVerificationException`](../../Exception/SigningHashVerificationException.md) - [`RandomException`](../../../../Random/RandomException.md) - [`UnexpectedApiResponseException`](../../Exception/UnexpectedApiResponseException.md) - [`InvalidApiKeyException`](../../Exception/InvalidApiKeyException.md) - [`MissingAccessRightsException`](../../Exception/MissingAccessRightsException.md) *** ## Inherited methods ### __construct ```php public __construct(\Seven\Api\Client $client): mixed ``` **Parameters:** | Parameter | Type | Description | |-----------|------|-------------| | `$client` | **\Seven\Api\Client** | | *** *** > Automatically generated on 2025-02-06