Изменения

Перейти к: навигация, поиск

API Documentation

2706 байт добавлено, 08:39, 28 июля 2021
м
Canceling Order
</source>
'''Status Request Order Cancelation Fields'''
'''cancelorder''' — root container. It is a mandatory elementRequired.* '''auth''' — authorization. It is a mandatory elementRequired.* '''order''' — container of the order being canceled. It is a mandatory elementRequired. The request can contain more than one '''order'''. It has the following attributes:
:* '''''orderno''''' — order code.
:* '''''ordercode''''' — internal order code.
Either '''''orderno''''' or '''''ordercode''''' is required.
'''Response Example'''
</cancelorder>
</source>
 
== Adding Files to Order ==
 
'''Request Example'''
<source lang="xml">
<?xml version="1.0" encoding="UTF-8" ?>
<addattachments>
<auth extra="8" login="login" pass="pass" />
<orderno>1234567</orderno>
<attachments>
<item name="photo1.jpg">JVBERi0xLjMN1wb25lbnQgMQ
JUBQREYwMTIzNDU2Nzg5IDI NMyAwIG9iag08PA0vVHlwZSA
U3VidHlwZSAvSW1hZ2UNL1d pZHRoIDE4MDgNL0hlaWdodCA
ggNCAwIFINL0JpdHNQZXJDb 21wb25lbnQgMQ0vRGVjb2RlU
ENL0NvbHVtbnMgMTgwOA0+P g0vSW1hZ2VNYXNrIHRydWUNL
XhEZWNvZGUNPj4Nc3RyZWFt DQ</item>
<item name="photo2.jpg">VBERi0xLjMNAwIG9iag0HRoJ
JUBQREYwMTIzNDU2Nzg5IDI NMyAwIG9iag08PA0vVHlwZSA
vWE9iamVjdA0vU3VidHlwZS AvSW1hZ2UNL1dpZHRoIDEzNj
gNL0hlaWdodCAxMzMzDS9MZ W5ndGggNCAwIFINL0JpdHNQZ
XJDb21wb25lbnQgMQ0vRGVj b2RlUGFybXMgPDwNL0sgLTEN
L0NvbHVtbnMgMTM2OA0+Pg0 vSW</item>
</attachments>
</addattachments>
</source>
 
 
'''Fields Description'''
 
'''addattachments''' — root container. Required.
*'''auth''' — authorization. Required.
*'''orderno''' — order number. Required. You can use tag <code>ordercode</code> to specify order internal code.
*'''attachments''' — file data. Required.
**'''item''' — base64 encoded binary file data. Required.
***'''name''' — an '''item''' attribute that contains the file name. Required.
 
 
'''Response Example'''
<source lang="xml">
<?xml version="1.0" encoding="UTF-8"?>
<addattachments>
<attachments>
<item name="photo1.jpg" error="0" errormsg="OK" />
<item name="photo2.jpg" error="0" errormsg="OK" />
</attachments>
</addattachments>
</source>
 
== Getting Order Files ==
 
'''Request Example'''
<source lang="xml">
<?xml version="1.0" encoding="UTF-8" ?>
<attachments>
<auth extra="8" login="login" pass="pass" />
<orderno>1234567</orderno>
</attachments>
</source>
 
'''Fileds Description'''
 
'''attachments''' — Root container. Required.
*'''auth''' — authorization. Required.
*'''orderno''' — order number or code. Required.
 
 
'''Response Example'''
<source lang="xml">
<?xml version="1.0" encoding="UTF-8"?>
<attachments>
<item name="doc1.docx" size="35654">JVBERi0xLjMN
JUBQREYwMTIzNDU2Nzg5IDI NMyAwIG9iag08PA0vVHlwZSA
U3VidHlwZSAvSW1hZ2UNL1d pZHRoIDE4MDgNL0hlaWdodCA
ggNCAwIFINL0JpdHNQZXJDb 21wb25lbnQgMQ0vRGVjb2RlU
ENL0NvbHVtbnMgMTgwOA0+P g0vSW1hZ2VNYXNrIHRydWUNL
XhEZWNvZGUNPj4Nc3RyZWFt DQ</item>
<item name="photo2.jpg" size="74861">VBERi0xLjMN
JUBQREYwMTIzNDU2Nzg5IDI NMyAwIG9iag08PA0vVHlwZSA
vWE9iamVjdA0vU3VidHlwZS AvSW1hZ2UNL1dpZHRoIDEzNj
gNL0hlaWdodCAxMzMzDS9MZ W5ndGggNCAwIFINL0JpdHNQZ
XJDb21wb25lbnQgMQ0vRGVj b2RlUGFybXMgPDwNL0sgLTEN
L0NvbHVtbnMgMTM2OA0+Pg0 vSW</item>
</attachments>
</source>
 
The <code>item</code> tag contains base 64 encoded binary data (files).
== Status change by agent ==

Навигация