Open petermcd opened 2 years ago
As with #42 the reason this is failing Monzo allows you to create a receipt that is inadvertantly invalid. The actual output is:
{"code":"bad_response.marshaling","message":"Failed to marshal proto receipt to DTO","params":{"amount_currency":"GBP","client_id":"xxx","external_id":"ABC123","tax_currency":"","user_id":"xxx"},"retryable":{}}
It appears the created receipt is good enough to show in the Monzo app but not return using the get API or the delete using the Delete API.
The issue seems to be related to creating invalid receipt items, however even after fixing a receipt and being able to fetch it delete does not work, further invetigation ongoing
Describe the bug When trying to delete a receipt the response received is a 400 bad requerst.
To Reproduce
Expected behavior Receipt to be deleted
Environment (please complete the following information):
Additional context N/A