Processing orders with digital goods
-
Get a list of orders using the method GET campaigns/{campaignId}/orders. If the order contains digital goods, in the shipping information
delivery
in the parametertype
the value will returnDIGITAL
. -
After the order status changes
PROCESSING
within 30 minutes, use the method POST campaigns/{campaignId}/orders/{orderId}/deliverDigitalGoods.After completing the request, yandex.Market will send the buyer an email with the keys and description. If the email could not be delivered (for example, the buyer provided an incorrect email address), yandex.Market will send the keys to the buyer via chat. The order will be transferred to the final status
DELIVERED
.
Enable API notifications
Yandex.Market will send you a request. POST notification when a new order appears and its status changes.