Processing orders with digital goods
-
Get a list of orders — method GET v2/campaigns/{campaignId}/orders. If the order contains digital goods, in the shipping information
deliveryin the parametertypethe value will returnDIGITAL. -
After the order status changes
PROCESSINGwithin 30 minutes, use the method POST v2/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.