💡 API - How to know if a marketplace accepts single-line actions?

A single-line action can be useful if a customer has ordered several products and you wish to ship only one, for example. In this case, in Lengow's Orders API, you'll need to perform the "ship" action for the relevant product line only.

However, single-line actions are not possible for all marketplaces. To find out whether this is possible for a given marketplace, follow our instructions:

1. Consult the marketplaces list 

In the Lengow API, make a GET call to the /marketplaces/ endpoint to consult the marketplaces list, which displays all possible actions on an order.

2. Search for the relevant marketplace

In the marketplaces list, search for the marketplace for which you want to know whether line actions are possible.
Example:"amazon_fr"

3. Check if "line" is present for the "ship" action

In the arguments ("args" or "optional_args") of the "ship" action, single-line action is possible if "line" is present, as in this example:

"actions": {
"ship": {
"args": [
"carrier",
"shipping_method"
],
"status": [
"waiting_shipment"
],
"optional_args": [
"carrier_name",
"line",
"shipping_date",
"tracking_number"
],
-

Articles in this section

Access help center for our Market Intelligence solutions
NetRivals & NetMonitor