Working with the LaaS refund

With the help Yandex Market API You can receive, create, and cancel refunds.

Create a refund

  1. If necessary, request a list of pick-up points using the method POST v1/businesses/{businessId}/logistics-points. Parameter features with the value RETURN_ALLOWED It 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.

  2. 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).

  3. 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.

  1. Start the operation to cancel the refund — POST v1/campaigns/{campaignId}/returns/cancel.

  2. Check the operation status using the method POST v1/businesses/{businessId}/operations.