enumeration.list
enumeration.list (int|null $warehouseId)
{ "jsonrpc" : 2.0, "id" : 1234, "method" : "call", "params" : [ "be1c13ed4e03f0ed7f1e4053dfff9658", "enumeration.list" ] }
{ "jsonrpc" : 2.0, "id" : 1234, "method" : "call", "params" : [ "be1c13ed4e03f0ed7f1e4053dfff9658", "enumeration.list", [2] ] }
{ "jsonrpc" : 2.0, "id" : 1234, "result" : { "catalog": { "goods_type": { "singular_name": "Goods Type", "plural_name": "Goods Types", "data": [ { "key": "HAZMAT", "label": "Regulated" }, { "key": "LIMITED_QUANTITIES_COMMODITIES", "label": "Limited Quantities: Consumer Commodity" }, { "key": "NORMAL", "label": "Not Regulated" } ] } }, "shipment": { "status": { "singular_name": "Status", "plural_name": "Statuses", "data": [ { "key": "canceled", "label": "Canceled" }, { "key": "shipped", "label": "Shipped" }, { "key": "new", "label": "New" }, { "key": "packed", "label": "Packed" }, { "key": "packing", "label": "Packing" }, { "key": "picked", "label": "Picked" }, { "key": "picking", "label": "Picking" }, { "key": "voided", "label": "Voided" } ] } } } }
enumeration.info
enumeration.info (string $path, int|null $warehouseId)
{ "jsonrpc" : 2.0, "id" : 1234, "method" : "call", "params" : [ "be1c13ed4e03f0ed7f1e4053dfff9658", "enumeration.info", ["catalog/goods_type"] ] }
{ "jsonrpc" : 2.0, "id" : 1234, "result" : { "singular_name": "Goods Type", "plural_name": "Goods Types", "data": [ { "key": "HAZMAT", "label": "Regulated" }, { "key": "LIMITED_QUANTITIES_COMMODITIES", "label": "Limited Quantities: Consumer Commodity" }, { "key": "NORMAL", "label": "Not Regulated" } ] } }
Show Enumeration Properties