Working with the LaaS refund
With the help Yandex Market API You can receive, create, and cancel refunds.
Create a refund
-
If necessary, request a list of pick-up points using the method POST v1/businesses/{businessId}/logistics-points. Parameter
featureswith the valueRETURN_ALLOWEDIt will be refunded for those PVZS that accept refunds.Request this information regularly to keep up-to-date data in the store's system. For example, once a day.
-
Check if the pick-up points are suitable for returning the specified items. To do this, in the method POST v1/campaigns/{campaignId}/return-delivery-options send the goods and the IDs of the pick-up points that accept refunds (have the attribute
RETURN_ALLOWED). -
Create a refund — POST v1/campaigns/{campaignId}/returns/create.
Cancel refund
Use this method in similar situations.
You have created a refund in which you specified 3 items. But the buyer changed his mind and decided to return only 2. Cancel the refund and create a new one.
-
Start the operation to cancel the refund — POST v1/campaigns/{campaignId}/returns/cancel.
-
Check the operation status using the method POST v1/businesses/{businessId}/operations.