SelectionGroupRemoveProduct
Removes products from a distributor's stock.
Operation description
Distributors use this API to remove products from their stock.
Try it now
Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
linkedmall:SelectionGroupRemoveProduct |
update |
*All Resource
|
None | None |
Request syntax
POST /opensaas-s2b/opensaas-s2b-biz-trade/v2/selectionPool/selection-group/product/command/removeProduct HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| purchaserId |
string |
Yes |
The ID of the purchaser. |
PIDxxxxx |
| productIds |
array |
Yes |
A list of IDs for the products to be removed from stock. Note
|
|
|
string |
Yes |
The ID of the product to be removed from stock. |
xxxxxx |
Products that have already been removed are not removed again.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response from the removal operation. |
||
| productIds |
array |
A collection of IDs for the products that were successfully removed. |
|
|
string |
The ID of a product that was successfully removed. |
xxxxx |
This operation returns only the list of IDs for successfully removed products.
Examples
Success response
JSON format
{
"productIds": [
"xxxxx"
]
}
Error codes
See Error CodesError Codes for a complete list.
Release notes
See Release NotesRelease Notes for a complete list.