This endpoint allows a seller to list a product for sale that already exists in the Universal Bank. Unlike creating a product in the Universal Bank (which requires administrator credentials), this endpoint is used by individual sellers to offer their inventory of existing products.
| Header | Value | Description |
|---|---|---|
| Authorization | Basic Auth | Base64 encoded username:password combination of the seller |
You can send up to 60 products per request.
| Parameter | Type | Required | Description |
|---|---|---|---|
| product* | string | Yes | Product name |
| product_code* | string | Yes | Barcode/SKU of the product to be sold (used as the primary key to identify the product) |
| category_ids* | array | Yes | Array of category IDs the product belongs to |
| price* | string | Yes | Unit price of the product |
| amount* | string | Yes | Available stock quantity |
{
"product": "Test Product Name",
"product_code": "product_code",
"category_ids": ["1447"],
"price": "1000",
"amount": "50"
}
The endpoint returns the ID of the newly listed product(s).
{
"product_id": 973732,
"product_ids": [
973732
]
}