这里是黑暗中的真实镜头!
我正在尝试通过Restfull呼叫在Aptify CRM中为人创建会议类型的订单。
我遇到错误:
与会者的空白值不正确
我查看了Order和OrderLine实体,找不到任何字段可以使我自动生成与会者,甚至无法创建一个人作为对Order端点的呼叫的一部分。
我也尝试过通过直接发布到OrderMeetingDetail记录来创建记录。 (不确定这是否是创建与会者的正确方法) 它告诉我“无法直接从服务中保存订单会议详细信息,因为目前不支持该会议。”
还尝试通过直接发布到它来创建RegistrationLine记录,但是它告诉我OrderID不能为null! (不能先创建订单)。
有人知道如何创建与会者/注册,以便我可以创建订单吗?
Restfull呼叫:
https://aptifyTestBlaaa.com/AptifyServicesAPI/services/GenericEntity/SaveData
有效载荷为:
{
"ID": -1,
"EntityName": "Orders",
"OrderDate_NoTime": "2018-07-09T00:00:00",
"ShipToID": "326",
"OrderType": "Regular",
"PONumber": -1,
"OrderTypeId": 1,
"PayTypeID": "11",
"PayType": null,
"OrderStatus": "Taken",
"OrderStatusID": 1,
"CurrencyType": null,
"GrandTotal": "60.0000",
"Balance": null,
"subTypes": [{
"ID": -1,
"EntityName": "OrderLines",
"Sequence": "1",
"ProductID": "29002",
"Quantity": 1,
"Description": null,
"Price": "60.0000",
"Discount": null,
"Extended": null,
"TaxJurisdiction": "",
"PurchaseType": "Individual"
}],
"PaymentInformationID": -1,
"OrderLevelID": 1,
"OrderLevel": null,
"BasePaymentType": "Cash",
"InitialPaymentAmount": "60.0000",
"PaymentScheduleOptions": "None",
"OrderSource": "Web",
"OrderSourceID": 4,
"DepositDate": "2018-07-10T00:00:00.000Z",
"CashCtrlBatchID": "-1",
"Comments": "Purchase transaction writeback from me."
}