curl --request POST \
--url https://api.talescria.com/v1/accounts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"currency": "GBP",
"name": "Operations",
"accountType": "operational"
}
'{
"account": {
"status": "ok",
"accountId": "acct_01M2P8GP7RSDXN81CXRFM2HFV7",
"name": "Operations",
"isDefault": true,
"currency": "GBP",
"accountType": "operational",
"posted": {
"minorUnits": "0",
"currency": "GBP"
},
"pending": {
"minorUnits": "0",
"currency": "GBP"
},
"available": {
"minorUnits": "0",
"currency": "GBP"
}
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Accounts
Open an account
Opens a new account in a currency. Its balance starts at zero.
You can hold several accounts in one currency. The first one you open in a currency becomes the default, which is where card payments in that currency land unless you say otherwise. isDefault in the response tells you which you got.
accountType says what the account is for and defaults to operational. An unrecognised value is refused rather than defaulted.
Requires the accounts:write scope.
POST
/
v1
/
accounts
curl --request POST \
--url https://api.talescria.com/v1/accounts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"currency": "GBP",
"name": "Operations",
"accountType": "operational"
}
'{
"account": {
"status": "ok",
"accountId": "acct_01M2P8GP7RSDXN81CXRFM2HFV7",
"name": "Operations",
"isDefault": true,
"currency": "GBP",
"accountType": "operational",
"posted": {
"minorUnits": "0",
"currency": "GBP"
},
"pending": {
"minorUnits": "0",
"currency": "GBP"
},
"available": {
"minorUnits": "0",
"currency": "GBP"
}
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Authorizations
Headers
Body
application/json