We have created a
public API collection for RMA module with all available queries and sample data that you can both test via our demo endpoints and copy to run local tests in your Magento environment. More details about using public collections can be found in the following
FAQ post.
Kindly note that the API functionality for RMA is available as part of the Pro and Premium extension plans.
1. Amasty\Rma\Api\StatusRepositoryInterface - class for managing RMA statuses.
- GET /V1/amasty_rma/rma_status/get/:statusId, method="getById" - get info about an RMA status by ID.
2. Amasty\RmaApi\Api\StatusFinderInterface - class for managing RMA statuses.
- GET /V1/amasty_rma/rma_status/list, method="getList" - get a list of RMA statuses.
3. Amasty\Rma\Api\ResolutionRepositoryInterface - class for managing RMA resolutons.
- GET /V1/amasty_rma/rma_resolution/get/:resolutionId, method="getById" - get info about an RMA resolution by ID.
4. Amasty\RmaApi\Api\ResolutionFinderInterface - class for managing RMA resolutions.
- GET /V1/amasty_rma/rma_resolution/list, method="getList" - get a list of RMA resolutions.
5. Amasty\Rma\Api\ConditionRepositoryInterface - class for managing RMA conditions.
- GET /V1/amasty_rma/rma_condition/get/:conditionId, method="getById" - get info about an RMA condition by ID.
6. Amasty\RmaApi\Api\ConditionFinderInterface - class for managing RMA conditions.
- GET /V1/amasty_rma/rma_condition/list, method="getList" - get a list of RMA conditions.
7. Amasty\Rma\Api\ReasonRepositoryInterface - class for managing RMA reasons.
- GET /V1/amasty_rma/rma_reason/get/:reasonId, method="getById" - get info about an RMA reason by ID.
8. Amasty\RmaApi\Api\ReasonFinderInterface - class for managing RMA reasons.
- GET /V1/amasty_rma/rma_reason/list, method="getList" - get a list of RMA reasons.
9. Amasty\Rma\Api\ChatRepositoryInterface - class for managing RMA chat messages.
- GET /V1/amasty_rma/rma_chat/get/:messageId, method="getById" - get a chat message;
- POST /V1/amasty_rma/rma_chat/message, method="save" - create a new chat message.
10. Amasty\RmaApi\Api\ChatMessageFinderInterface - class for managing RMA chat messages.
- GET /V1/amasty_rma/rma_chat/list, method="getList" - get RMA chat messages.
11. Amasty\Rma\Api\RequestRepositoryInterface - class for managing RMA requests.
- GET /V1/amasty_rma/rma_request/get/:requestId, method="getById" - get information about an RMA request by ID;
- PUT /V1/amasty_rma/rma_request/request/:requestId, method="save" - edit an RMA request;
- GET /V1/amasty_rma/rma_request_tracking/get/:trackingId, method="getTrackingById" - get an RMA tracking code;
- PUT /V1/amasty_rma/rma_request_tracking/save/:trackingId, method="saveTracking" - edit an RMA tracking code;
- POST /V1/amasty_rma/rma_request_tracking/create, method="saveTracking" - add a tracking code to an RMA request;
- DELETE /V1/amasty_rma/rma_request_tracking/delete/:trackingId, method="deleteTrackingById" - delete a tracking code from an RMA request.
12. Amasty\RmaApi\Api\RequestFinderInterface - class for managing RMA requests.
- GET /V1/amasty_rma/rma_request/list, method="getList" - get a list of RMA requests.
13. Amasty\Rma\Api\CustomerRequestRepositoryInterface - class for managing RMA requests.
- POST /V1/amasty_rma/rma_request/request, method="create" - create a new customer RMA request;
- POST /V1/amasty_rma/rma_request/cancel/:requestIdHash, method="closeRequest" - cancel an RMA request.
14. Amasty\RmaApi\Api\RequestDeleterInterface - class for managing RMA requests.
- DELETE /V1/amasty_rma/rma_request/request/:requestId, method="deleteById" - delete an RMA request.
15. Amasty\RmaApi\Api\RequestItemRepositoryInterface - class for managing RMA request products.
- GET /V1/amasty_rma/rma_request_item/get/:itemId, method="getById" - get an RMA product by ID;
- PUT V1/amasty_rma/rma_request_item/item/:itemId, method="save" - edit an RMA product;
- POST /V1/amasty_rma/rma_request_item/item, method="save" - add a product to the RMA request;
- DELETE /V1/amasty_rma/rma_request_item/request/:itemId, method="deleteById" - remove a product from an RMA request.
16. Amasty\RmaApi\Api\RequestItemFinderInterface - class for managing RMA request products.
- GET /V1/amasty_rma/rma_request_item/list, method="getList" - get all products from an RMA request.