Description Insert customs - This endpoint creates a new manifest. URL TEST https://api-test.mypartner.com/ Endpoint POST /wcf-services/service-customs.svc/customs/insert_customs_dataThe json string is like this (sensitive data was changed):
{ "user_info": { "user_code": 1, "user_key": "ok", "app_key": "ok" }, "customs_header": { "pch_reference": "Document Reference", "country_iso_code": "CL", "pch_charged_datetime": "/Date(1579669200000-0500)/", "pch_items": [ { "trck_nmr_fol": 12345678, "consignee_id": "1234567890", "is_additional": false, "pcc_charges": [ { "pcc_charge_value": 18.80, "pcc_charge_code": 1, "pcc_comment": "Comment for this charge" } ] } ] } }I guess I have advanced a little with this:
loHTTP= CREATEOBJECT("MSXML2.ServerXMLHTTP.6.0") loHTTP.Open("POST", "https://api-test.mypartner.com/", .F.) loHTTP.Setrequestheader("Content-type", "application/x-www-form-urlencoded") loHTTP.Send("json=" + m.lcJsonString)It returns me an html string which says: