Account API

Request your account details


Request

Authorization: {your_credentials}
Accept: application/vnd.worldpay.accounts.balance-v1+json

There are two ways you can retrieve the details of your account:

By account number

GET https://try.access.worldpay.com/accounts/balance/

Query string parameters

/accounts/balance/{accountNumber}

Mandatory string parameter

Field NameDescriptionData Type/FormatMin-Max LengthValidation Criteria
accountNumberAccount Number. The first 6 characters indicate the entity (domain ID) of the merchant.The rest determines the specific account number.String16-16Alphanumeric only. Special characters are restricted.

Response

Successful response example

{
"entity": "000055",
“accounts”: [
{
"accountNumber": "0000550000000044",
"accountName": "Envoy Live Test (PLN)",
"currency": "PLN",
"clearedBalance": 1418.64,
"unclearedBalance": 0.0,
"balance": 1418.64
}]
}

Successful response fields

Field NameDescriptionData Type/Format
entityDomain ID of the merchant.AN (Length: 6)
accountsCollection of account details list.
accountNumberAccount Number. The first 6 characters indicate the entity (domain ID) of the merchant. The rest determines the specific account number.AN (Length: 16)
accountNameName of the account (this name is given to an account during on-boarding and is usually the merchant name followed by the currency code).AN
currencyCurrency of the account.AN
clearedBalanceCleared balance.N
unclearedBalanceUncleared balance.N
balanceTotal balance.N

Error response example

{
    "httpStatusCode": 404,
    "customCode": "ACCN15",
    "message": "Could not find details for accountNumber"
}

Error response codes

HTTP codeCustom codeMessageScenario
400ACCB05Schema validation failedSchema Validation Failed - account number not provided, or account number length is incorrect
400ACCU07Invalid accountNumberInternal service error
401ACCU06Authorization has been denied for this requestInternal service error
401ACCU06Authorisation Failed for this DomainToken validation failed
404ACCN15Could not find details for accountNumberThere are no details found for the provided account number
500ACCE11Something went wrongInternal service error
500ACCE11Unexpected Issue. Please try againUnexpected issue. Please try again

By entity

GET https://try.access.worldpay.com/accounts/balance/

Query string parameters

`/accounts/balance/?entity={entity}

Mandatory string parameter

Field NameDescriptionData Type/FormatMin-Max LengthValidation Criteria
entityUnique consumer ID given during the onboarding process.String6-6Alphanumeric only. Special characters are restricted.

Response

Successful response example

{
"entity": "000055",
“accounts”: [
{
"accountNumber": "0000550000000044",
"accountName": "Envoy Live Test (PLN)",
"currency": "PLN",
"clearedBalance": 1418.64,
"unclearedBalance": 0.0,
"balance": 1418.64
},
{
"accountNumber": "0000550000000045",
"accountName": "Envoy Live Test (EUR)",
"currency": "EUR",
"clearedBalance": 9997.01,
"unclearedBalance": 0.0,
"balance": 9997.01
},
{
"accountNumber": "0000550000000046",
"accountName": "Envoy Live Test (USD)",
"currency": "USD",
"clearedBalance": 2235.11,
"unclearedBalance": 0.0,
"balance": 2235.11
}]
}

Successful response fields

Field NameDescriptionData Type/Format
entityDomain ID of the merchant.AN (Length: 6)
accountsCollection of account details list.
accountNumberAccount Number. The first 6 characters indicate the entity (domain ID) of the merchant. The rest determines the specific account number.AN (Length: 16)
accountNameName of the account (this name is given to an account during on-boarding and is usually the merchant name followed by the currency code).AN
currencyCurrency of the account.AN
clearedBalanceCleared balance.N
unclearedBalanceUncleared balance.N
balanceTotal balance.N

Error response example

{
    "httpStatusCode": 400,
    "customCode": "ACCB05",
    "message": "Schema validation failed",
    "errors": {
         "entity":  ["Entity should be 6 characters"]
     }
}

Error response codes

HTTP codeCustom codeMessageScenario
400ACCB05Schema validation failedSchema Validation Failed: Entity not provided, or is of incorrect length
400ACCU07Invalid accountNumberInternal service error
401ACCU06Authorization has been denied for this requestInternal service error
401ACCU06Authorisation Failed for this DomainToken validation failed
404ACCN15Could not find details for accountNumberThere are no details found for provided for the account number
500ACCE11Something went wrongInternal service error
500ACCE11Unexpected Issue. Please try againUnexpected issue. Please try again