Confirmation of funds service (PIIS) test cases

Funds confirmations request - POST /funds-confirmations – funds available

REQUEST:

POST https://sandbox.hypo.at/api/psd2-xs2a/rest/v1/funds-confirmations
Authorization: Bearer <Access-Token>
X-Request-ID: 99391c7e-ad88-49ec-a2ad-99ddcb1f7721
Consent-ID: e6151d43-dca8-4fe1-b139-3a89bfeb57a2
{
  "account": {
    "iban": "AT439900000000010017",
    "currency": "EUR"
  },
  "instructedAmount": {
    "amount": "128",
    "currency": "EUR"
  }
}

RESPONSE:

HTTP/1.1 200 OK
{
  "fundsAvailable": true
}

Funds confirmations request – POST /funds-confirmations – funds not available

REQUEST:

POST https://sandbox.hypo.at/api/psd2-xs2a/rest/v1/funds-confirmations
Authorization: Bearer <Access-Token>
X-Request-ID: 99391c7e-ad88-49ec-a2ad-99ddcb1f7721
Consent-ID: e6151d43-dca8-4fe1-b139-3a89bfeb57a2
{
  "account": {
    "iban": "AT439900000000010017",
    "currency": "EUR"
  },
  "instructedAmount": {
    "amount": "49999",
    "currency": "EUR"
  }
}

RESPONSE:

HTTP/1.1 200 OK
{
  "fundsAvailable": false
}