定向共享产品

添加定向共享产品

URLhttps://test.birdsystem.com/client/Directional-Shared-Product/
接口功能给指定客户定向共享产品
支持格式JSON开发人员
请求方式POST发布日期

参数

字段备注是否必填类型
product_id要共享的产品IDYINT
client_id共享至哪个客户的idYINT
quantity共享产品件数YINT
price价格YDecimal(10,2)

  返回

{
    "data": {
        "status": null,
        "warehouse_id_list": null,
        "id": "2941863_4648_36",
        "product_id": 2941863,
        "client_id": 4648,
        "company_id": 36,
        "warehouse_id": null,
        "price": "1.22",
        "price_internal": "0.00",
        "quantity": "5",
        "primary_keys": [
            "product_id",
            "client_id",
            "company_id"
        ]
    },
    "success": true,
    "moduleName": "client"
}

说明

字段备注
id产品ID__被共享客户的ID__哪个站点共享
product_id共享产品ID
client_id被共享的客户ID
price

共享价格

price_internal内部价格
quantity共享件数



获取共享给我的产品

URLhttps://test.birdsystem.com/client/Directional-Shared-Product/
接口功能获取共享给我的产品
支持格式JSON开发人员
请求方式GET发布日期


参数

字段备注类型


products_shared_to_me

获取别人共享给自己的产品

(必填:products_shared_to_me=1)


BOOL


返回

{
    "total": 4,
    "data": [
        {
            "status": null,
            "warehouse_id_list": null,
            "id": "2990287_4648_36",
            "product_id": 2990287,
            "client_id": 4648,
            "company_id": 36,
            "warehouse_id": null,
            "price": "5.26",
            "price_internal": "0.00",
            "quantity": "5",
            "primary_keys": [
                "product_id",
                "client_id",
                "company_id"
            ],
            "temp_consignment_info_product_reference": "4648#2990287#D",
            "product-client_id": 47,
            "attachment-url": [
                "http://birdsystem-test.s3.amazonaws.com/ATTACHMENT/PRODUCT/8/d/09df0651956a13b5ee46fe66d7e6163f.jpg"
            ],
            "attachment-medium_url": [
                "http://birdsystem-test.s3.amazonaws.com/ATTACHMENT/PRODUCT/8/d/09df0651956a13b5ee46fe66d7e6163f_medium.jpg"
            ],
            "attachment-thumb_url": [
                "http://birdsystem-test.s3.amazonaws.com/ATTACHMENT/PRODUCT/8/d/09df0651956a13b5ee46fe66d7e6163f_thumb.jpg"
            ],
            "customs_category-customs_category_full_name": null,
            "customs_category_code": null,
            "customs_category-customs_category_full_name_chinese": null,
            "warehouse-name": null
        },
        {
            "status": null,
            "warehouse_id_list": null,
            "id": "2990289_4648_36",
            "product_id": 2990289,
            "client_id": 4648,
            "company_id": 36,
            "warehouse_id": null,
            "price": "5.00",
            "price_internal": "0.00",
            "quantity": "5",
            "primary_keys": [
                "product_id",
                "client_id",
                "company_id"
            ],
            "temp_consignment_info_product_reference": "4648#2990289#D",
            "product-client_id": 47,
            "attachment-url": [
                "http://birdsystem-test.s3.amazonaws.com/ATTACHMENT/PRODUCT/0/1/a0ed33b07dfecd294831c4b529393b85.jpeg"
            ],
            "attachment-medium_url": [
                "http://birdsystem-test.s3.amazonaws.com/ATTACHMENT/PRODUCT/0/1/a0ed33b07dfecd294831c4b529393b85_medium.jpeg"
            ],
            "attachment-thumb_url": [
                "http://birdsystem-test.s3.amazonaws.com/ATTACHMENT/PRODUCT/0/1/a0ed33b07dfecd294831c4b529393b85_thumb.jpeg"
            ],
            "customs_category-customs_category_full_name": null,
            "customs_category_code": null,
            "customs_category-customs_category_full_name_chinese": null,
            "warehouse-name": null
        },
        {
            "status": null,
            "warehouse_id_list": null,
            "id": "2990294_4648_36",
            "product_id": 2990294,
            "client_id": 4648,
            "company_id": 36,
            "warehouse_id": null,
            "price": "1.20",
            "price_internal": "0.00",
            "quantity": "5",
            "primary_keys": [
                "product_id",
                "client_id",
                "company_id"
            ],
            "temp_consignment_info_product_reference": "4648#2990294#D",
            "product-client_id": 47,
            "attachment-url": [
                "http://birdsystem-test.s3.amazonaws.com/ATTACHMENT/PRODUCT/e/a/9b74ae4bcbb9a799ff134f453884a753.bmp"
            ],
            "attachment-medium_url": [
                "http://birdsystem-test.s3.amazonaws.com/ATTACHMENT/PRODUCT/e/a/9b74ae4bcbb9a799ff134f453884a753_medium.bmp"
            ],
            "attachment-thumb_url": [
                "http://birdsystem-test.s3.amazonaws.com/ATTACHMENT/PRODUCT/e/a/9b74ae4bcbb9a799ff134f453884a753_thumb.bmp"
            ],
            "customs_category-customs_category_full_name": null,
            "customs_category_code": null,
            "customs_category-customs_category_full_name_chinese": null,
            "warehouse-name": null
        },
        {
            "status": null,
            "warehouse_id_list": null,
            "id": "2990388_4648_36",
            "product_id": 2990388,
            "client_id": 4648,
            "company_id": 36,
            "warehouse_id": null,
            "price": "1.03",
            "price_internal": "0.00",
            "quantity": "15",
            "primary_keys": [
                "product_id",
                "client_id",
                "company_id"
            ],
            "temp_consignment_info_product_reference": "4648#2990388#D",
            "product-client_id": 47,
            "attachment-url": null,
            "attachment-medium_url": null,
            "attachment-thumb_url": null,
            "customs_category-customs_category_full_name": null,
            "customs_category_code": null,
            "customs_category-customs_category_full_name_chinese": null,
            "warehouse-name": null
        }
    ],
    "success": true,
    "moduleName": "client"
}


说明

字段备注
id产品ID__被共享客户的ID__哪个站点共享
product_id共享产品ID
client_id被共享的客户ID
company_id站点ID
price共享价格
price_internal内部价格
quantity共享件数
temp_consignment_info_product_reference临时寄售信息产品参考
product-client_id共享产品给我的客户ID
attachment-medium_url图片链接