To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
HTTP + CSV
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /csv/reply/SaveRsInvoiceDet HTTP/1.1
Host: axfuel.apex.ge
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"specinvoicedet":{"id":0,"p_inv_id":0,"p_goods":"String","p_g_unit":"String","p_g_number":0,"p_un_price":0,"p_drg_amount":0,"p_aqcizi_amount":0,"p_aqcizi_id":"String","p_aqcizi_rate":0,"p_dgg_rate":0,"p_g_number_alt":0,"p_good_id":0,"p_drg_type":0}}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"result":0}