不断收到错误“ PAYMENTTABS_LINEITEM_AMOUNT_IS_MISSING”; [英] Keep getting error "PAYMENTTABS_LINEITEM_AMOUNT_IS_MISSING"

查看:64
本文介绍了不断收到错误“ PAYMENTTABS_LINEITEM_AMOUNT_IS_MISSING”;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人尝试使用DocuSign rest API更改付款项的固定金额吗?

Has anyone tried to change the "fixed amount" of a "payment item" using the DocuSign rest API?

我使用的模板是

模板由2个模板角色组成,其中之一是客户。它包含一个付款项目,我想在其中预先填写美元金额,付款说明项目代码和付款说明项目详细信息。

The template consists of 2 template roles, one of which is the "Customer". It contains a payment item in which I would like to pre-fill the dollar amount, payment description item code, and payment description item details.

我在文档中找到了此内容在 formulaTabs下:

I found this in the documentation under 'formulaTabs':

"<paymentDetails>" +
    "<lineItems>" +
        "<paymentLineItem>" +
            "<amountReference>\\*txtPayment</amountReference>" +
            "<description>" + polNum + "</description>" +
            "<itemCode>" + custId + "</itemCode>" +
        "</paymentLineItem>" +
    "</lineItems>" +
"</paymentDetails>" +

但是,我不确定将其放置在哪里,我已经尝试在

but, I'm not sure where to place it, I've tried using it within

<envelopeDefinition> </envelopeDefinition>

<text> </text> 

但是,我一直想出一个 PAYMENTTABS_LINEITEM_AMOUNT_IS_MISSING 错误。

But, I keep coming up with a PAYMENTTABS_LINEITEM_AMOUNT_IS_MISSING error.

我在模板上有一个文本字段,标签为 txtPayment (我并不是很需要) 。

I have a text field on the template labeled txtPayment (which I don't really need).

付款项标记为 txtPaymentItem

如果需要,我愿意使用其他方式。

I'm open to using other means if necessary.

谢谢

推荐答案

我希望您能够通过WEBApp使用Payment,但在使用API​​时遇到了麻烦,因此要使用DocuSignPayment API的正确JSON结构是

I am hoping that you are able to use Payment using WEBApp but struggling in using API, so the correct JSON structure to use DocuSignPayment API is,

"formulaTabs": [{
                "ConcealValueOnDocument": "false",
                "Formula": "([PaymentItem1]) * 100",
                "IsPaymentAmount": "false",
                "Locked": "true",
                "Name": "paymentsFormulaTab",
                "PaymentDetails": {
                    "currencyCode": "USD",
                    "gatewayAccountId": "a7dcd60d-d963-4a81-bc72-68b71aad2062",
                    "lineItems": [{
                            "amountReference": "PaymentItem1",
                            "description": "951900;Tims 6.2;4444;1002",
                            "itemCode": "base",
                            "name": "salesDeposit"
                        }
                    ]
                },
                "Required": "true",
                "RoundDecimalPlaces": "2"
            }
        ],
"numberTabs": [{
                "FontColor": "DarkRed",
                "IsPaymentAmount": "true",
                "Locked": "true",
                "TabLabel": "PaymentItem1",
                "Value": "2500.00"
            }
        ]

如果您在JSON结构上方看到,它有两个标签,公式和数字选项卡,公式选项卡使用数字选项卡引用。在这种情况下,它引用PaymentItem1。希望以上JSON能解决您的问题。

If you see above JSON structure, it has two tabs, formula and Number Tab and formula Tab uses the Number Tab reference. In this case, it refers to PaymentItem1. Hope above JSON will resolve your issue.

这篇关于不断收到错误“ PAYMENTTABS_LINEITEM_AMOUNT_IS_MISSING”;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆