0

我已经使用 OpenCart 框架开发了电子商务网站,当客户下订单时,应该在 QuickBooks 中创建采购订单。

我已参考此文档https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/purchaseorder

创建采购订单的 api 接受以下 json 输入 { "PurchaseOrder": { "DocNumber": "1005", "SyncToken": "0", "domain": "QBO", "APAccountRef": { "name": “应付帐款 (A/P)”、“价值”:“33”}、“CurrencyRef”:{“名称”:“美元”、“价值”:“美元”}、“TxnDate”:“2015- 07-28", "TotalAmt": 25.0, "ShipAddr": { "Line4": "Half Moon Bay, CA 94213", "Line3": "65 Ocean Dr.", "Id": "121", "Line1 ": "Grace Pariente", "Line2": "酷车”},“VendorAddr”:{“Line4”:“Middlefield,CA 94303”,“Line3”:“42 Main St.”,“Id”:“120”,“Line1”:“Geoff Hicks”,“ Line2": "Hicks Hardware" }, "POStatus": "Open", "sparse": false, "VendorRef": { "name": "Hicks Hardware", "value": "41" }, "Line": [ {“DetailType”:“ItemBasedExpenseLineDetail”,“Amount”:25.0,“Id”:“1”,“ItemBasedExpenseLineDetail”:{“ItemRef”:{“name”:“花园用品”,"value": "38" }, "CustomerRef": { "name": "Cool Cars", "value": "3" }, "Qty": 1, "TaxCodeRef": { "value": "NON" },“BillableStatus”:“NotBillable”,“UnitPrice”:25 } } ],“CustomField”:[ {“DefinitionId”:“1”,“Type”:“StringType”,“Name”:“Crew #”} ,{“DefinitionId”:“2”,“类型”:“StringType”,“名称”:“销售代表”}],“Id”:“257", "元数据": { "CreateTime": "2015-07-28T16:01:47-07:00", "LastUpdatedTime": "2015-07-28T16:01:47-07:00" } }, “时间”:“2015-07-28T16:04:49.874-07:00”}

我的网站有一个客人结帐,所以我需要知道如何为客人生成采购订单,因为上述 json 格式需要发送客户 ID。因为是客人下订单,所以我没有客户 ID 来传递 API

4

0 回答 0