【问题标题】:Acumatica. Error during updating the Customer's Credit LimitAcumatica。更新客户信用额度时出错
【发布时间】:2021-05-06 20:20:27
【问题描述】:

您能帮我解决以下问题吗?

我尝试在 Acumatica 中更新客户信用额度:

请求:

    PUT https://{Base_URL}/Customer?$select=CreditVerificationRules&$filter=CustomerID%20eq%20'0e31e8a5-08e3-ea11-a828-000d3ab2c384'

{
"CreditVerificationRules": {
"CreditLimit": {
"value": 1234.0
}
}
}

但我收到以下错误:

Response: {"message":"An error has occurred.","exceptionMessage":"Syntax error: character '%' is not valid at position 10 in 'CustomerID%20eq%20'0e31e8a5-08e3-ea11-a828-000d3ab2c384'

【问题讨论】:

    标签: api acumatica


    【解决方案1】:

    尝试不使用 html 编码。 IE。 CustomerID eq '0e31e8a5-08e3-ea11-a828-000d3ab2c384' 仅供参考,如果这是您需要 html 编码的实例,那么您也应该对 ' 符号进行编码。

    【讨论】:

    • Patrick,我们尝试过但收到错误响应:{"message":"发生错误。","exceptionMessage":"插入“客户”记录引发了至少一个错误。请查看错误。\nLegalName:“法定名称”不能为空。\nPrepaymentAcctID: 帐户 22100 不是控制帐户。请选择配置为 AR 控制帐户的帐户。\nAcctName:“客户名称”不能为空。\nMailDunningLetters:如果激活了“通过电子邮件发送催款信”选项,则必须指定电子邮件地址
    • 还有什么可能是错误?
    • 客户没有以下属性:LegalName、PrepaymentAcctID
    • 此消息暗示它正在尝试创建新记录。我可以告诉你,客户 ID 不是 GUID,我认为你发送的值有误。
    • 非常感谢您的及时回复。我将根据您的建议纠正我的要求。
    猜你喜欢
    • 2016-12-17
    • 1970-01-01
    • 2015-12-21
    • 2020-11-10
    • 2014-02-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-09-08
    相关资源
    最近更新 更多