Hello,
We are trying to post the following payload to "/vat/666592090/returns"
{"periodKey":"#001","vatDueSales":20000.0,"vatDueAcquisitions":40000.0,"totalVatDue":60000.0,"vatReclaimedCurrPeriod":65000.0,"netVatDue":5000.0,"totalValueSalesExVAT":123131.0,"totalValuePurchasesExVAT":121313.0,"totalValueGoodsSuppliedExVAT":147654654.0,"totalAcquisitionsExVAT":147654654213.0,"finalised":true}
but we are getting the following error:
{"code":"INVALID_REQUEST","message":"Invalid request","errors":[{"code":"MANDATORY_FIELD_MISSING","message":"a mandatory field is missing","path":"/vatReclaimedCurrPeriod"},{"code":"MANDATORY_FIELD_MISSING","message":"a mandatory field is missing","path":"/periodKey"},{"code":"MANDATORY_FIELD_MISSING","message":"a mandatory field is missing","path":"/totalAcquisitionsExVAT"},{"code":"MANDATORY_FIELD_MISSING","message":"a mandatory field is missing","path":"/netVatDue"},{"code":"MANDATORY_FIELD_MISSING","message":"a mandatory field is missing","path":"/totalVatDue"},{"code":"MANDATORY_FIELD_MISSING","message":"a mandatory field is missing","path":"/totalValueGoodsSuppliedExVAT"},{"code":"MANDATORY_FIELD_MISSING","message":"a mandatory field is missing","path":"/totalValuePurchasesExVAT"},{"code":"MANDATORY_FIELD_MISSING","message":"a mandatory field is missing","path":"/finalised"},{"code":"MANDATORY_FIELD_MISSING","message":"a mandatory field is missing","path":"/totalValueSalesExVAT"},{"code":"MANDATORY_FIELD_MISSING","message":"a mandatory field is missing","path":"/vatDueAcquisitions"},{"code":"MANDATORY_FIELD_MISSING","message":"a mandatory field is missing","path":"/vatDueSales"}]}
All the fields are available in the payload and we don't have a clue about this error. Can you please tell us where are we doing wrong?