Command disabled: backlink

Attach file to order

To attach file to order use order/attach:

svc=order/attach&params={"itemId":<long>,
			 "id":<uint>,
			 "eventHash":<text>}

Parameters

Name Description
itemId resource id
id order id within resource
eventHash event name which will be generated
after processing the data

:!: To attach file to order send POST-request. Example is below:

Request URL:https://hst-api.wialon.com/wialon/ajax.html?svc=order/attach&sid=<sid>
Request Method:POST
Content-Type:multipart/form-data; boundary=----WebKitFormBoundarya38SwBwyXw5BFPQ1


------WebKitFormBoundarya38SwBwyXw5BFPQ1
Content-Disposition: form-data; name="params"

{"itemId":39801,"id":3,"eventHash":"jUploadForm1435580226231"}
------WebKitFormBoundarya38SwBwyXw5BFPQ1
Content-Disposition: form-data; name="eventHash"

jUploadForm1435580226231
------WebKitFormBoundarya38SwBwyXw5BFPQ1
Content-Disposition: form-data; name="file_upload"; filename="attachment.txt"
Content-Type: application/octet-stream


------WebKitFormBoundarya38SwBwyXw5BFPQ1--

Response

{
	"error":0
}
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2024 Gurtam