# connectMasterAccount

Connects the current account as a sub-account of the partner (master) account that owns `promoCode`. Fails when the account already has a master account. Arguments: - `promoCode`: Promo code of the partner account. - `externalId`: Partner-assigned ID of this account. Required when the partner requires it. Stored as `externalId`. - `externalHash`: Hex-encoded HMAC-SHA256 of `externalId`, keyed with the partner's API key. Required with `externalId`.

```
connectMasterAccount(

  promoCode: String!

  externalId: String

  externalHash: String

): Account!
```

### Arguments[​](#arguments "Enlace directo al Arguments")

#### [`connectMasterAccount.promoCode`](#promo-code) ● [`String!`](https://docs.monei.com/es/apis/graphql/types/scalars/string.md) non-null scalar[​](#promo-code "Enlace directo al promo-code")

#### [`connectMasterAccount.externalId`](#external-id) ● [`String`](https://docs.monei.com/es/apis/graphql/types/scalars/string.md) scalar[​](#external-id "Enlace directo al external-id")

#### [`connectMasterAccount.externalHash`](#external-hash) ● [`String`](https://docs.monei.com/es/apis/graphql/types/scalars/string.md) scalar[​](#external-hash "Enlace directo al external-hash")

### Type[​](#type "Enlace directo al Type")

#### [`Account`](https://docs.monei.com/es/apis/graphql/types/objects/account.md) object[​](#account- "Enlace directo al account-")

Merchant account: business details, settings and onboarding status.
