帖子
帖子
用户
博客
课程
12下一页
返回列表 发新帖
显示全部楼层
140
帖子
3
勋章
1521
Y币

采购供应常见接口简化JSON

[复制链接]
发表于 2022-10-18 14:38:09
以下JSON均为简化版JSON,不同租户应用不同可能存在差异,请根据实际情况补充参数。以下JSON仅供参考


请购单单个保存


{
        "data": {
                "resubmitCheckKey": "63736383648fgf8gspl39255326",
                "code": "qgspl39255326",
                "vouchdate": "2022-10-18 00:00:00",
                "org_code": "zzdy117751459",
                "_status": "Insert",
                "applyOrders": [{
                        "product_cCode": "ZDH-000217751459",
                        "subQty": 11,
                        "purUOM_Code": "autotest117751459",
                        "unit_code": "autotest117751459",
                        "qty": 11,
                        "requirementDate": "2022-10-18 00:00:00",
                        "purchaseOrg_code": "zzdy117751459",
                        "invExchRate": "1",
                        "_status": "Insert"
                }],
                "bustype": "ZDH-002"
        }
}





140
帖子
3
勋章
1521
Y币
采购订单单个保存(无来源)



{
        "data": {
                "resubmitCheckKey": "63736383648fgf8g139255326",
                "code": "cgddsp39255326",
                "bustype_code": "ZDH-CGDD-002",
                "vouchdate": "2022-10-1800: 00: 00",
                "vendor_code": "autotenant217751459",
                "exchRateType": "2523201927861504",
                "exchRate": "1",
                "invoiceVendor_code": "autotenant217751459",
                "_status": "Insert",
                "org_code": "zzdy117751459",
                "purchaseOrders": [{
                        "oriTax": 100,
                        "product_cCode": "ZDH-000217751459",
                        "natTax": 15,
                        "subQty": 29,
                        "purUOM_Code": "autotest117751459",
                        "priceUOM_Code": "autotest117751459",
                        "invPriceExchRate": 2,
                        "inInvoiceOrg_code": "zzdy117751459",
                        "unit_code": "autotest117751459",
                        "inOrg_code": "zzdy117751459",
                        "taxitems_code": "autotest117751459",
                        "oriSum": 1000,
                        "oriUnitPrice": 300,
                        "unitExchangeType": 1,
                        "natSum": 678000,
                        "_status": "Insert",
                        "taxRate": 6,
                        "priceQty": 20,
                        "qty": 29,
                        "oriTaxUnitPrice": 200,
                        "oriMoney": 600000,
                        "natTaxUnitPrice": 200,
                        "invExchRate": 2,
                        "natMoney": 600000,
                        "unitExchangeTypePrice": 1,
                        "discountTaxType": 0,
                        "natUnitPrice": 300,
                        "isGiftProduct": true
                }],
                "currency_code": "CUR117751459",
                "natCurrency_code": "CUR117751459"
        }
}

140
帖子
3
勋章
1521
Y币


到货单单个保存 (有来源)


{
        "data": {
                "arrivalOrders": [{
                        "purUOM": "2523202088162304",
                        "taxitems_code": "autotest117751459",
                        "oriTax": 2,
                        "makeRuleCode": "st_purchaseorder2",
                        "source": "st_purchaseorder",
                        "natTax": 2,
                        "subQty": 12,
                        "isLogisticsRelated": false,
                        "priceUOM": "2523202088162304",
                        "invPriceExchRate": 1,
                        "isGift": false,
                        "sourceid": 1570634124007833603,
                        "product": "2523202314147584",
                        "oriSum": 200,
                        "oriUnitPrice": 99,
                        "unitExchangeType": 0,
                        "natSum": 200,
                        "_status": "Insert",
                        "taxRate": 1,
                        "sourceautoid": 1570634124007833604,
                        "unit": "2523202088162304",
                        "productsku": "2523202313967361",
                        "priceQty": 12,
                        "qty": 12,
                        "oriTaxUnitPrice": 100,
                        "oriMoney": 198,
                        "natTaxUnitPrice": 100,
                        "invExchRate": 1,
                        "natMoney": 198,
                        "discountTaxType": 0,
                        "unitExchangeTypePrice": 0,
                        "natUnitPrice": 99,
                        "upcode":"111",
                        "firstsourceid":"11111111111",
                        "firstsourceautoid":"2222222222222",
                        "firstsource":"st_purchaseorder",
                        "firstupcode":"CGA20002000408"
                }],
                "org": "2523201940656896",
                "exchRate": 1,
                "_status": "Insert",
                "isContract": false,
                "vouchdate": "2022-10-1800: 00: 00",
                "natCurrency": "2523202030787072",
                "inInvoiceOrg": "2523201940656896",
                "vendor": "2523202228326656",
                "exchRateType": "2523201927861504",
                "invoiceSupplier": "2523202228326656",
                "currency": "2523202030787072",
                "busType": "ZDH-002",
                "purchaseOrg": "2523201940656896",
                "resubmitCheckKey": "123353641515",
                "code": "dhd1253641515"
        }
}




140
帖子
3
勋章
1521
Y币
采购发票单个保存(有来源)



{
        "data": {
                "oriTax": "0",
                "isBeginning": "false",
                "bustype_name": "通用采购发票",
                "invoiceVendor": "2000061",
                "source": "ustock.st_purinrecord",
                "natTax": "0",
                "natCurrency": "CNY",
                "inInvoiceOrg": "2067294969240320",
                "maturityDate": "2022-10-1800: 00: 00",
                "invoiceType": "1",
                "natSum": "1582.30",
                "_status": "Insert",
                "invVendorAccount": "66010154700006277",
                "exchRateType": "z1z3k9sg",
                "oriMoney": "1582.30",
                "code": "40871062",
                "exchRate": "1",
                "vouchdate": "2022-10-1800: 00: 00",
                "vendor": "2000061",
                "currency": "CNY",
                "isInvBack": "false",
                "accountDate": "2022-10-1800: 00: 00",
                "resubmitCheckKey": "eecd8bc1f3e94491817efb305ee3c067",
                "oriSum": "1582.30",
                "org": "2067294969240320",
                "bustype": "110000000000032",
                "purInvoices": [{
                        "purUOM": "01",
                        "oriTax": "0",
                        "inOrg": "2067294969240320",
                        "firstsource": "ustock.st_purinrecord",
                        "firstupcode": "CGRKD-20221003-072366",
                        "natTax": "0",
                        "source": "ustock.st_purinrecord",
                        "subQty": "5.00000000",
                        "costedMoney": "1582.30",
                        "priceUOM_Code": "01",
                        "oriUnitPrice": "316.460000",
                        "natSum": "1582.30",
                        "_status": "Insert",
                        "taxRate": "0",
                        "unit": "01",
                        "productsku": "10822",
                        "qty": "5.00000000",
                        "oriTaxUnitPrice": "316.460000",
                        "oriMoney": "1582.30",
                        "invExchRate": "1",
                        "discountTaxType": "0",
                        "unitExchangeTypePrice": "1",
                        "isGiftProduct": "false",
                        "natUnitPrice": "316.460000",
                        "demandOrg": "2067294969240320",
                        "firstsourceautoid": "1559316447097257993",
                        "makeRuleCode": "st_purinrecord",
                        "unit_Name": "盒",
                        "priceUOM": "01",
                        "invPriceExchRate": "1",
                        "firstsourceid": "1559316447097257992",
                        "sourceid": "1559316447097257992",
                        "product": "10822",
                        "oriSum": "1582.30",
                        "accountOrg": "2067294969240320",
                        "unitExchangeType": "1",
                        "sourceautoid": "1559316447097257993",
                        "priceQty": "5.00000000",
                        "upcode": "CGRKD-20221003-072366",
                        "natTaxUnitPrice": "316.460000",
                        "natMoney": "1582.30",
                        "taxitems_code": "2063339259926018"
                }]
        }
}

140
帖子
3
勋章
1521
Y币
采购入库单个保存(无来源)



{
        "data": {
                "resubmitCheckKey": "RESGD80677926",
                "needCalcLines": false,
                "code": "CGRK80677926",
                "org": "zzdy117751459",
                "purchaseOrg": "zzdy117751459",
                "accountOrg": "zzdy117751459",
                "inInvoiceOrg": "zzdy117751459",
                "vouchdate": "2022-10-18",
                "bustype": "A15001",
                "warehouse": "2523202655966720",
                "vendor": "autotenant217751459",
                "invoiceVendor": "autotenant217751459",
                "department": "2523201963282688",
                "paymentagrement": "2580149446761216",
                "currency": "CUR117751459",
                "natCurrency": "CUR117751459",
                "exchRateType": "2523201927861504",
                "exchRate": "1",
                "taxRate": "1",
                "isBeginning": false,
                "_status": "Insert",
                "purInRecords": [{
                        "isSerialNoManage": true,
                        "product": "ZDH-000617751459",
                        "productsku": "2523202189841409",
                        "isBatchManage": true,
                        "isExpiryDateManage": true,
                        "producedate": "2022-10-18",
                        "invaliddate": "2022-10-18",
                        "qty": "2",
                        "unit": "2523202088162304",
                        "invExchRate": "1",
                        "unitExchangeType": "2523202088162304",
                        "subQty": "2",
                        "stockUnitId": "2523202088162304",
                        "taxitems": "autotest117751459",
                        "contactsQuantity": "10",
                        "contactsPieces": "10",
                        "unitExchangeTypePrice": "1",
                        "priceQty": "2",
                        "invPriceExchRate": "1",
                        "priceUOM": "2523202088162304",
                        "isGiftProduct": "false",
                        "oriUnitPrice": "1",
                        "oriTaxUnitPrice": "1",
                        "oriMoney": "1",
                        "oriSum": "1",
                        "oriTax": "1",
                        "taxRate": "1",
                        "natUnitPrice": "1",
                        "natTaxUnitPrice": "1",
                        "natMoney": "1",
                        "natSum": "1",
                        "natTax": "1",
                        "autoCalcCost": false,
                        "costUnitPrice": "1",
                        "costMoney": "1",
                        "_status": "Insert"
                }]
        }
}

140
帖子
3
勋章
1521
Y币
采购入库来源生单(有来源)



{
        "data": {
                "vouchdate": "2022-10-18 00:00:00",
                "resubmitCheckKey": "84397562",
                "code": "cgrksd84397562",
                "warehouse": "2523201985665280",
                "bustype": "A15001",
                "purInRecords": [{
                        "sourceid": 1570636623670935555,
                        "sourceautoid": 1570636623670935556,
                        "makeRuleCode": "st_purchaseorder",
                        "_status": "Insert"
                }],
                "mergeSourceData": true,
                "_status": "Insert"
        }
}

140
帖子
3
勋章
1521
Y币
产品入库来源生单保存(有来源)



{
        "data": {
                "resubmitCheckKey": "zs3297163751",
                "code": "zs3297163751",
                "mergeSourceData": true,
                "vouchdate": "2022-10-18 06:39:57",
                "bustype": "A18001",
                "warehouse": "2523202655966720",
                "_status": "Insert",
                "storeProRecords": [{
                        "makeRuleCode": "productionOrderTostoreprorecordscrap",
                        "sourceid": "1570638418973032450",
                        "sourceautoid": "1570638418973032451",
                        "qty": 1,
                        "_status": "Insert"
                }]
        }
}

140
帖子
3
勋章
1521
Y币
其他入库单个保存 (无来源)



{
        "data": {
                "vouchdate": "2022-10-18",
                "resubmitCheckKey": "5596482615",
                "org": "zzdy117751459",
                "code": "HBrk0396482615",
                "othInRecords": [{
                        "product": "2523202190021632",
                        "unit": "2523202088162304",
                        "productsku": "2523202189841409",
                        "qty": 2,
                        "_status": "Insert",
                        "unitExchangeType": 0,
                        "subQty": 2,
                        "invExchRate": 1,
                        "stockUnitId": "2523202088162304",
                        "isSerialNoManage": false,
                        "goodsposition": "2525040154466560",
                        "isBatchManage": false,
                        "isExpiryDateManage": false,
                }],
                "accountOrg": "zzdy117751459",
                "warehouse": "2524980004966656",
                "_status": "Insert",
                "bustype": "A08001"
        }
}

140
帖子
3
勋章
1521
Y币
销售出库单个保存(无来源)



{
        "data": {
                "resubmitCheckKey": "20221018064457232b23629520",
                "receiveAccountingBasis": "st_salesout",
                "salesoutAccountingMethod": "invoiceConfirm",
                "accountOrg": "2523201940656896",
                "org": "2523201940656896",
                "salesOrg": "2523201940656896",
                "invoiceOrg": "2523201940656896",
                "vouchdate": "2022-10-18 00:00:00",
                "code": "XSCK123629520",
                "bustype": "A30001",
                "warehouse": "缓存仓库117751459",
                "cust": "1538815760716005376",
                "srcBillType": "0",
                "retailInvestors": false,
                "natCurrency": "2491134058992128",
                "currency": "2491134058992128",
                "exchRateType": "2523201927861504",
                "exchRate": 1,
                "details": [{
                        "_status": "Insert",
                        "taxRate": 0,
                        "product": "2523202314147584",
                        "productsku": "2523202313967361",
                        "invExchRate": 1,
                        "qty": 12,
                        "stockUnit": "2523202088162304",
                        "priceUOM": "2523202088162304",
                        "invPriceExchRate": 1,
                        "taxUnitPriceTag": true,
                        "unitExchangeType": 0,
                        "taxId": "2523202287375616",
                        "oriSum": 24
                }],
                "_status": "Insert"
        }
}

140
帖子
3
勋章
1521
Y币
销售出库来源生单 (有来源)



{
        "data": {
                "mergeSourceData": "true",
                "warehouse": "2524980004966656",
                "bustype": "A30001",
                "details": [{
                        "_status": "Insert",
                        "sourceid": 1570644019597803521,
                        "sourceautoid": 1570644019597803522,
                        "makeRuleCode": "deliveryTostoreout"
                }],
                "_status": "Insert"
        }
}

12下一页
您需要登录后才可以回帖 登录

本版积分规则