openbankingspace / tpp-issues

34 stars 1 forks source link

HSBC - invalid DirectDebit amount #181

Open jamesball27 opened 5 years ago

jamesball27 commented 5 years ago

When making a request to https://private.api.hsbc.com/open-banking/v2.0/accounts/{account-id}/direct-debits

HSBC are returning an invalid DirectDebit PreviousPaymentAmount:

"DirectDebit": [{
  "PreviousPaymentAmount": {
    "Amount": ".64",
    "Currency": "GBP"
  },
  // etc.
}]

v2.0.0 of the spec states that the OBReadDirectDebit1/Data/DirectDebit/PreviousPaymentAmount must match the following regex: ^\d{1,13}\.\d{1,5}$. We would expect this amount to be returned as 0.64

logged as OBSD-10505