Изменения

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

API Documentation

756 байт добавлено, 09:45, 28 июля 2021
м
Status change by agent
The <code>item</code> tag contains base 64 encoded binary data (files).
== Changing Status change by agent Service Partner ==
Order status change status query request allows finding out to get the final status of the order - "— either '''Delivered" ''' or "'''Not delivered (ReturnReturned/CancellationCanceled)'''."
Besides that, the request gets date and time (in necessary) of status change as well as a type of , if necessary, and the '''Delivery info''' field message in "Information on delivery" field are set.
If necessary, You can attach images can be attached to the order information.
'''The example of a status change requestRequest Example:'''
<source lang="xml">
<?xml version="1.0" encoding="UTF-8" ?>
<setorderinfo>
<auth extra="8" login="login" pass="pass" />
<order ordercode="123456" date> <message>Accepted by Tailor</message> <outstrbarcode>7654312</outstrbarcode> </order> <order ordercode="2018234567"> <status>PICKUPREADY</status> <eventtime>2021-0305-0130 10:20:00</eventtime> <message>Client refused the order</message> <paytype>CASH</paytype> <items> <item code=" time34533" quantity="10:001" messagereason="The customer has refused from the purchase0"/> <order ordercodeitem code="34456" quantity="0" reason="2345670" date/> <item code="2018-03-0134421" timequantity="10:002" messagereason="0"/> </items> <image filename="filename1.jpg">/9j/4AAQSkZJRgABAQAAAQABAAD4AAQSkZJRgA BAQAAAQABAAD/2wBDAA0JCgsKCA0LCgsODg0PEyAVExISEy2wBDAA0JCg sKCA0LCgsODg0PEyAVExISEy ccHhcgLikxMC4pLSwzOko+MzZGNywtQFdBRkxOUlNSMj5aYVpQYEpRUkM zZGNywtQFdBRkxOUlNSMj5aY VpQYEpRUk//2wBDAQ4ODhMREyYVFSZPNS01T09PT09PT09P2wBDAQ4ODhMR EyYVFSZPNS01T09PT09PT09P T09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09 T09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0PT09PT0//wAARCAYACAADASIAwAARCAYACAADAS IA</image>
</order>
</setorderinfo>
'''The description of status response fields:Fields Description'''
'''setorderinfo''' is a root container. Required. *'''auth''' is authorization. Required. *'''order''' is order container. Required. A request can contain more than one '''order''' container. It has the following attributesattribute: :* '''''ordercode''''' is an internal order code of an .*'''status''' — new orderstatus. It can be any [[#Response Fields|status]] excepting AWAITING_SYNC and NEW.:* '''eventtime''' — status change dateand time. Required if status is specified. *'''message''' — delivery info text. *'''outstrbarcode''' — code in service partner system (order code in external system). It is status change dateused in integrations with external systems.*'''paytype''' — order payment type. Possible values are '''CASH''' and '''CARD'''.*'''items''' — container that describes order items. It has the following attributes::* '''''code''''' — item code.:* '''''quantity''''' — quantity of delivered articles. :* '''''timereason''''' — reason for non-delivery. It is selected from the status change timelist.*'''image''' — container for the image being attached. It contains base 64 encoded image file text. The '''order''' container can contain more than one '''image''' container. It has the following attribute: :* '''''messagefilename''''' is message text— file name.
*'''image''' is an attached image container. It contains image file text coded according to ''base64'' standard. '''order''' container may contain more than one '''image''' container. It has the following attribute: :* '''''filename''''' is a file name.'''The example of a response:Response Example'''
<source lang="xml">
<?xml version="1.0" encoding="UTF-8"?>
<setorderinfo>
<order ordercode="123456" error="0" errormsg="OK" errormsgru="Successfully" /> <order ordercode="234567" error="59" errormsg="value [date_put] is already set" errormsgru="The value [Date of delivery] is already set" />
</setorderinfo>
</source>

Навигация