Accountancy practice api - invalid subdomain api while posting a bill


I am trying to post a bill and get below error message.

{“errors”:{“error”:{“message”:“Invalid subdomain”}}}

json bill post string is as below.

{“bill”:{“url”:null,“contact”:“",“category”:“”,“reference”:“323632”,“dated_on”:"01-09-2020 00:00:00”,“due_on”:“30-09-2020 00:00:00”,“comments”:“001 Pencil Quantity - 20.0000”,“total_value”:“400.00”,“paid_value”:null,“due_value”:“400.00”,“sales_tax_status”:“TAXABLE”,“currency”:“GBP”,“sales_tax_rate”:“5.00”,“status”:null,“long_status”:null,“updated_at”:“0001-01-01T00:00:00”,“created_at”:“0001-01-01T00:00:00”,“contact_name”:null,“attachment”:null}}

Please update me regarding the same as soon as possible.

Hi Nishit,

This error normally occurs if the X-Subdomain header is omitted when trying to access a company-specific endpoint through the Accountancy Practice API. Could you make sure that you’re including the X-Subdomain header as described in these instructions and let me know if that doesn’t solve the problem?

Best wishes,