Create an account pair
Create a pair of live and test accounts. The accounts are linked via the sibling_id
property.
Parameters
The account name.
The account's currency.
ISO 4217 3 character currency code.
Note: Lune does not support all currency codes.
- GBP
- EUR
- USD
- SEK
- CHF
- PLN
- DKK
- NOK
- BGN
- INR
- SGD
- AED
- AUD
- HUF
- ISK
- CZK
- CAD
The account beneficiary. Leading and trailing spaces are removed.
handle
is a client defined URL-friendly string that identifies the account.
The handle
is unique per organisation and account type.
Enum to control the visibility of external pages such as sustainability and analytics pages.
- public
- hidden
Returns
The Account's unique identifier
The Account's name
The unique identifier of the organisation this account belongs to
handle
is a client defined URL-friendly string that identifies the account.
The handle
is unique per organisation and account type.
The account's currency.
ISO 4217 3 character currency code.
Note: Lune does not support all currency codes.
- GBP
- EUR
- USD
- SEK
- CHF
- PLN
- DKK
- NOK
- BGN
- INR
- SGD
- AED
- AUD
- HUF
- ISK
- CZK
- CAD
The account's type.
- live
- test
The account logo
Retirement beneficiary
This is the name that appears on future retirements that are made in this account. If none is present, the organisation beneficiary will be used instead.
Bundle portfolio id tied to the account.
Enum to control the visibility of external pages such as sustainability and analytics pages.
- public
- hidden
The Account's unique identifier
The Account's name
The unique identifier of the organisation this account belongs to
handle
is a client defined URL-friendly string that identifies the account.
The handle
is unique per organisation and account type.
The account's currency.
ISO 4217 3 character currency code.
Note: Lune does not support all currency codes.
- GBP
- EUR
- USD
- SEK
- CHF
- PLN
- DKK
- NOK
- BGN
- INR
- SGD
- AED
- AUD
- HUF
- ISK
- CZK
- CAD
The account's type.
- live
- test
The account logo
Retirement beneficiary
This is the name that appears on future retirements that are made in this account. If none is present, the organisation beneficiary will be used instead.
Bundle portfolio id tied to the account.
Enum to control the visibility of external pages such as sustainability and analytics pages.
- public
- hidden
curl 'https://api.lune.co/v1/accounts' \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Content-Type: application/json' \
-X POST \
-d '{
"name": "ACME",
"currency": "USD"
}'
{
"live": {
"id": "ljmkOq7vXd239gAE9WALWQ8ZGVD5ExNz",
"name": "ACME",
"beneficiary": "ACME Inc",
"currency": "USD",
"type": "live",
"organisation_id": "VndoQ0PZjGMzvYOZGwqy6kbgN1eOJx9B",
"logo": null,
"bundle_portfolio_id": null
},
"test": {
"id": "ljmkOq7vXd239gAE9WALWQ8ZGVD5ExNz",
"name": "ACME",
"beneficiary": "ACME Inc",
"currency": "USD",
"type": "live",
"organisation_id": "VndoQ0PZjGMzvYOZGwqy6kbgN1eOJx9B",
"logo": null,
"bundle_portfolio_id": null
}
}