Merchant API: testing flow
About this article
This article describes the process of testing your integration with ChannelEngine's Merchant API.
Table of contents
Introduction
It is recommended that you start testing your integration with ChannelEngine's Merchant API as early as possible in the process. This helps identify and resolve any issues or errors that arise before going live with the integration. If you do not already have a dev environment (e.g.: account-name-dev.channelengine.net), make sure to request one.
Below you can find the ChannelEngine standard testing flow, divided per resource: product data, product offers, orders, shipments, cancelations, and returns.
Product content
- Create a single product via
POST /v2/products
. - Update the product’s content via
POST /v2/products
. - Update a specific attribute for that product (e.g.:
Description
) viaPATCH /v2/products/{merchantProductNo}
. - Delete the product via
DELETE /v2/products/{merchantProductNo}
. - Create multiple products at once via
POST /v2/products
. - Update multiple products at once via
POST /v2/products
. - Update a specific attribute for multiple products (e.g.:
Name
) viaPATCH /v2/products
. - Add extra data (custom fields) for the products via
PATCH /v2/products/extra-data/bulk
. Specify the operation as 'add'. - Delete products’ extra data via
PATCH /v2/products/extra-data/bulk
. Specify the operation as 'remove'. - Delete multiple products at once via
POST /v2/products/bulkdelete
.
Product offers
Update stock and/or price for multiple products at once via PUT /v2/offer
.
Orders
- Create a test order by following the steps in the article ChannelEngine: how to create test orders.
- Retrieve a new order via
GET /v2/orders/new
. - Acknowledge the order via
POST /v2/orders/acknowledge
. - Create a marketplace-fulfilled test order on ChannelEngine (e.g.: FBA, FBC, LVB, ZFS, etc.). For more information, check out the article Marketplace fulfillment services: FBA, LVB, FBC, and ZFS.
- Retrieve the marketplace-fulfilled test order via
GET /v2/orders
by specifying the query parameter and the valuefulfillmentType=ONLY_CHANNEL
. Narrow down the search to only retrieve unacknowledged orders withisAcknowledged = false
. - Acknowledge the orders you previously retrieved via
POST /v2/orders/acknowledge
.
Shipments
- Create a test order by following the steps in the article ChannelEngine: how to create test orders.
- Create a shipment for a test order via
POST /v2/shipments
and provide a tracking code and a shipment method by addingTrackTraceNo
andMethod
parameters to the request body. - Create a shipment for one order line of a test order with several order lines via
POST /v2/shipments
. Check if the status of the order line is Shipped, and if the full product quantity is shipped. The status of the other order lines should still be In progress. - Create a shipment for a single product of a test order with a quantity higher than one in the order line via
POST /v2/shipments
. Check if the status of that order line is Combined, and if the correct product quantity is shipped. The remaining quantity stays open, and the status of the other order lines remains In progress.
For more information on channels and their order support, check out the article ChannelEngine: what channel supports what features?.
Cancelations
- Create a test order by following the steps in the article ChannelEngine: how to create test orders.
- Create a cancelation for a test order via
POST /v2/cancellations
. - Create a cancelation for a single order line of a test order with multiple order lines via
POST /v2/cancellations
. Check if the status of the order line is Canceled, and if the full product quantity is canceled. - Create a cancelation for only one item of a test order having several same items in an order line via
POST /v2/cancellations
. Check if the status of the order line is Combined, and if the correct product quantity is canceled.
Merchant returns
- Create a test order by following the steps in the article ChannelEngine: how to create test orders.
- Create a shipment for a test order via
POST /v2/shipments
and provide a tracking code and a shipment method by addingTrackTraceNo
andMethod
parameters to the request body. - Create a merchant return for a test order via
POST /v2/returns/merchant
. - Create a merchant return for a single order line of a test order with several order lines via
POST /v2/returns/merchant
. Check if the status of the order line is Returned, and if the full product quantity is returned. - Create a return for a single product of a test order with a quantity higher than one of the same product in an order line via
POST /v2/returns/merchant
. Check if the status of the order line is Combined, and if the correct product quantity is returned.
Marketplace returns
- Create a test return on ChannelEngine and simulate a marketplace return by following the steps in the article ChannelEngine: how to create a test channel return.
- Retrieve a new marketplace return via
GET /v2/returns/merchant
by specifying two query parameters as follows:isAcknowledged = false
,statuses = IN_PROGRESS
. - Acknowledge the return via
POST /v2/returns/acknowledge
. - Mark the return as Received to indicate that it was handled in your system via
PUT /v2/returns
.
Comments
0 comments
Article is closed for comments.