Open rajeshwartiwari opened 4 years ago
Above parameters will be of response and below is of request. Request Parameters will be : { "sort_code": "400023", "account_number": "123456" } @rajeshwartiwari @akankshasuryavanshi
Updated the code according to the schema and have checked in the same. Success- Input request- { "account_number": "783456", "sort_code": "400020" } Output: [ { "_id": "5f034feb93aa9c8265971c58", "id": "src_4vrn6gcjndcevpdbx2bmnwgi3q", "type": "card", "start_month": 7, "start_year": 2020, "expiry_month": 8, "expiry_year": 2022, "currency": "GBP/USD", "name": "Glen Mitchell", "scheme": "VISA", "card_number": "4567123997391500", "CVV": "106", "card_type": "Debit", "card_category": "Consumer/Business", "issuer": "LBG", "issuer_country": "UK", "product_type": "Standard VISA Card", "sort_code": "400020", "account_number": "783456", "active": "Y" } ]
Failure response: a)In case sort code or account no. does not match with the entries present in the table. { "errorcode": "50001", "errormessage": "Data not available in DB" }
b)DB connection issue. { "errorcode": "50003", "errormessage": "Error connecting to DB" }
Have created a simple UI in react to display the data. Input and output images attached.
Please update Card model as per below structure { "id": "src_4vrn6gcjndcevpdbx2bmnwgi3q", "type": "card", "start_month": 8, "start_year": 2020, "expiry_month": 8, "expiry_year": 2025, "currency": "GBP/USD", "name": "Sarah Mitchell", "scheme": "VISA", "card_number": "4567123487391500", "CVV": "146", "card_type": "Debit", "card_category": "Consumer/Business", "issuer": "LBG", "issuer_country": "UK", "product_type": "Standard VISA Card", "sort_code": "400023", "account_number": "123456", "active": "Y" }