Create wallet account
POST/v2/customers/:customerId/accounts
Create a new account. The following parameters are required for account creation.
- currencyCode
- hasVirtualInstrument
Request
Path Parameters
- application/json
Body
required
Possible values: <= 40 characters
Possible values: >= 3 characters
and <= 3 characters
Currency alphabetic code as specified by ISO 4217
Create a virtual banking account for this e-money account.
Responses
- 201
- 400
- 500
- 503
Created
- application/json
- Schema
- Example (from schema)
- ACCOUNT
Schema
Array [
- SEPA_BANK_ACCOUNT
- UK_BANK_ACCOUNT
- US_BANK_ACCOUNT
]
Array [
]
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
virtualInstrument
object[]
instrumentType
string
required
Possible values: [SEPA_BANK_ACCOUNT
, UK_BANK_ACCOUNT
, US_BANK_ACCOUNT
]
Instrument type.
The International Bank Account Number (IBAN) of the account.
The Bank Account Bank Identifier Code (BIC) code. Also known as SWIFT code.
A bank account number.
Use our sort code checker to easily find and check UK sort codes.
Possible values: >= 4 characters
and <= 17 characters
This is the bank account number.
Possible values: >= 9 characters
and <= 9 characters
For USD accounts, this is the 9-digit routing number of the bank.
Possible values: [ACTIVE
]
Instrument status.
virtualAccountAssignmentStatus
object[]
Possible values: [SEPA_BANK_ACCOUNT
, UK_BANK_ACCOUNT
, US_BANK_ACCOUNT
]
Instrument type.
Possible values: [ACCEPTED
, PENDING
, COMPLETED
, REJECTED
, FAILED
]
Status of the virtual payment instrument request.
Additional information for the current status of the virtual payment instrument request.
Create a virtual banking account for this e-money account.
{
"id": "string",
"customerId": "5435323362",
"externalId": "string",
"currencyCode": "EUR",
"totalBalance": 0,
"availableBalance": 0,
"virtualInstrument": [
{
"instrumentType": "SEPA_BANK_ACCOUNT",
"status": "ACTIVE"
}
],
"virtualAccountAssignmentStatus": [
{
"instrumentType": "SEPA_BANK_ACCOUNT",
"requestDate": "2019-08-24T14:15:22Z",
"lastChangeDate": "2019-08-24T14:15:22Z",
"status": "COMPLETED",
"statusReason": "Request has been denied by the issuing bank."
}
],
"creationTime": "2019-08-24T14:15:22Z",
"virtualAccountAssignment": false
}
{
"id": "509876034",
"externalId": "42342355",
"customerId": "5435323362",
"currencyCode": "GBP",
"totalBalance": 0,
"availableBalance": 0,
"creationTime": "2019-08-24T14:15:22Z",
"hasVirtualInstrument": false
}
Bad Request
- application/json
- Schema
- Example (from schema)
- INVALID_CURRENCY
- UNSUPPORTED_CURRENCY
- NO_SUCH_CUSTOMER
Schema
Array [
]
error
object
Represents details of an error.
The error code.
The description of the error.
Details for the errors of any parameter value.
fieldErrors
object[]
List of field errors associated with the main error.
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
Represents details of an error.
The error code.
The description of the error.
Details for the errors of any parameter value.
fieldErrors
object[]
List of field errors associated with the main error.
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
Represents details of an error.
The error code.
The description of the error.
Details for the errors of any parameter value.
fieldErrors
object[]
List of field errors associated with the main error.
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"
]
}
}