Create wallet account
POST/accounts
Create a new account. The following parameters are required for account creation.
- customerId
- currencyCode
- hasIban
Request
- application/json
Body
required
Possible values: <= 40 characters
Possible values: >= 3 characters
and <= 3 characters
Currency alphabetic code as specified by ISO 4217
Responses
- 201
- 400
- 500
- 503
Created
- application/json
- Schema
- Example (from schema)
- ACCOUNT
Schema
Possible values: <= 20 characters
Account id.
Possible values: <= 20 characters
Possible values: <= 40 characters
Possible values: >= 3 characters
and <= 3 characters
Currency alphabetic code as specified by ISO 4217
Amount in minor units
Amount in minor units
IBAN associated with this account.
Possible values: <= 20 characters
Possible values: <= 40 characters
DKK account number.
Possible values: <= 20 characters
DKK bank code.
{
"id": "string",
"customerId": "5435323362",
"externalId": "string",
"currencyCode": "EUR",
"totalBalance": 0,
"availableBalance": 0,
"iban": "string",
"bic": "string",
"accountNumber": "string",
"bankCode": "string",
"creationTime": "2019-08-24T14:15:22Z",
"hasIban": true
}
{
"id": "509876034",
"externalId": "42342355",
"customerId": "5435323362",
"currencyCode": "GBP",
"totalBalance": 0,
"availableBalance": 0,
"iban": "NL74ABNA1231242344",
"creationTime": "2019-08-24T14:15:22Z",
"hasIban": true,
"bic": "ABNANL2A"
}
Bad Request
- application/json
- Schema
- Example (from schema)
- INVALID_CURRENCY
- UNSUPPORTED_CURRENCY
- NO_SUCH_CUSTOMER
Schema
Array [
]
error
object
Additional details about an error
The error code.
A description of the error.
Details of any parameter value errors.
fieldErrors
object[]
Identifies the JSON request field.
The problem associated with the field.
{
"error": {
"code": "string",
"message": "string",
"details": [
"string"
],
"fieldErrors": [
{
"field": "string",
"error": "string"
}
]
}
}
{
"error": {
"code": "5068",
"message": "Field error(s)",
"details": [
"Either you submitted a request that is missing a mandatory field or the value of a field does not match the format expected."
],
"fieldErrors": [
{
"field": "accounts[0].currencyCode",
"error": "size must be between 3 and 3"
}
]
}
}
{
"error": {
"code": "DW-CUSTOMER-CURRENCY-NOT-SUPPORTED",
"message": "Currency is not supported for the specified country",
"details": [
"The currency code is not supported for the specified country",
"BGN"
]
}
}
{
"error": {
"code": "DW-NO-SUCH-CUSTOMER",
"message": "Customer was not found",
"details": [
"No customer matching the provided customerId was found."
]
}
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
- INTERNAL_SERVER_ERROR
Schema
Array [
]
error
object
Additional details about an error
The error code.
A description of the error.
Details of any parameter value errors.
fieldErrors
object[]
Identifies the JSON request field.
The problem associated with the field.
{
"error": {
"code": "string",
"message": "string",
"details": [
"string"
],
"fieldErrors": [
{
"field": "string",
"error": "string"
}
]
}
}
{
"error": {
"code": "DW-INTERNAL-SERVER-ERROR",
"message": "Internal Server Error",
"details": [
"There was an error while processing the operation"
]
}
}
Service Unavailable. Please try again later.
- application/json
- Schema
- Example (from schema)
- SERVICE_UNAVAILABLE
Schema
Array [
]
error
object
Additional details about an error
The error code.
A description of the error.
Details of any parameter value errors.
fieldErrors
object[]
Identifies the JSON request field.
The problem associated with the field.
{
"error": {
"code": "string",
"message": "string",
"details": [
"string"
],
"fieldErrors": [
{
"field": "string",
"error": "string"
}
]
}
}
{
"error": {
"code": "DW-SERVICE-UNAVAILABLE",
"message": "Service Unavailable",
"details": [
"Service Unavailable"
]
}
}