ChannelEngine: how to create a test channel return
About this article
This article describes the process involved in testing a channel return.
Table of contents
Creating a test channel return
- Adding a custom channel
- Creating a test order
- Creating a test shipment (via the web interface)
- Creating a test channel return
Introduction
When integrating a new channel, it is recommended to test the process for receiving returns from a marketplace or channel. The seller must mark the return as received so that the refund can be processed.
This kind of test cannot be done on most live channels, therefore, the best approach is to use a custom channel on ChannelEngine.
Creating a test channel return
If you already have a custom channel or a test order from a custom channel, it is not necessary to complete the steps below. Skip straight to the step which you have not yet taken.
Note that this flow cannot be tested if you do not have any products on ChannelEngine. At least one active product is necessary to create test orders, shipments and returns.
Adding a custom channel
- Go to your dashboard on ChannelEngine.
- Select + Add to add a new channel.
- Select Custom channel from the list of available channels.
- Select Ok to confirm you want to add this channel. The channel appears in your dashboard and there is no need to set it up any further.
- To make the purpose of this custom channel clear, give it an easily identifiable name, such as "Test return channel".
Creating a test order
For a more detailed guide on how to create a test order, consult the ChannelEngine: how to create test orders article.
- Go to your ChannelEngine dashboard.
- Select Settings > Support.
- Under Test order, fill in the information you need.
- Select your test channel from the Channel drop down menu.
- Enter a valid/active product in the Order lines section. This allows orders to be correctly retrieved by your order management system. All other sections are optional and, if left empty, are filled in with dummy data by ChannelEngine.
- Once you have filled in your information, select + Create test order to complete the process.
Creating a test shipment (via the web interface)
- Find the order you have just created in the order overview.
- Select Create shipment (aka the truck icon).
- Enter the shipped quantity, select the Shipment method, and add the Track-and-trace code and the Merchant shipment number. As this is a test, you can enter dummy data as long as the value in the Merchant shipment number is unique.
- Select + Add to save the shipment.
Creating a test channel return
When the test order is in the stage where it can be returned, you can create the channel return.
- In the order details view, select Create return.
- The following pop-up appears:
- In the popup window, select Channel (test) in Created by. Fill in the remaining information, including the Channel return number.
- Select + Add to save the return.
- The new return should be listed just below the shipment in the order details view.
If you retrieve the returns via the GET /v2/returns/merchant
endpoint, the new channel return should now be available. Note that you can also test via the OpenAPI/Swagger documentation or a tool such as Postman.
Call
curl -X GET "https://[youraccount].channelengine.net/api/v2/returns/merchant?fromDate=2020-05-14&apikey=XXXXXXXXXXXXXXXX" -H "accept: text/plain"
Response
"Content": [ { "MerchantOrderNo": null, "Lines": [ { "MerchantProductNo": "B00-601-60", "Quantity": 1 } ], "CreatedAt": "2020-05-15T14:09:03.843+02:00", "UpdatedAt": "2020-05-15T14:09:03.843+02:00", "MerchantReturnNo": "", "ChannelReturnNo": "Test-channelReturn-1493", "Id": 4705, "Reason": "REFUSED_DAMAGED", "CustomerComment": "Product was damaged :(", "MerchantComment": "", "RefundInclVat": 0, "RefundExclVat": 0 } ], "Count": 1, "TotalCount": 1, "ItemsPerPage": 100, "StatusCode": 200, "LogId": null, "Success": true, "Message": null, "ValidationErrors": {} }
Comments
0 comments
Article is closed for comments.