snake_case in both. XML uses the namespace https://partners.inra.co.th/schema/v1.
This is easy to miss on a first integration: resource responses default to XML. If you send no Accept header, you will get XML.
If
Accept and format disagree, the API returns 406 with the code not_acceptable.
POST /oauth/token is always JSON and ignores this negotiation.
XML requests
When you POST a JSON body, useContent-Type: application/json. An XML body uses the same namespace and a root that matches the operation, for example database_report_request or the equivalent offline request root. XSD files live at /v1/schemas/:
/v1/schemas/— index (XML by default, or JSON withAccept: application/json)/v1/schemas/company.xsd/v1/schemas/order.xsd/v1/schemas/report.xsd/v1/schemas/error.xsd/v1/schemas/dictionary.xsd
Errors
The error envelope is the same in both formats. See Errors for the catalogue ofcode values.
