如何在 netsuite 中支付特定发票?使用客户付款 [英] How to pay a specific invoice in netsuite? using customerPayment

查看:15
本文介绍了如何在 netsuite 中支付特定发票?使用客户付款的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 customerpaymet 端点支付特定发票,我使用 https://system.netsuite.com/help/helpcenter/en_US/APIs/REST_API_Browser/record/v1/2021.1/index.html#/definitions/customerPayment-applyCollection

I am trying to pay a specific invoice using the customerpaymet endpoint, I made the JSON structure using the documentation from https://system.netsuite.com/help/helpcenter/en_US/APIs/REST_API_Browser/record/v1/2021.1/index.html#/definitions/customerPayment-applyCollection

这是我的 JSON:

{
  "aracct": {
    "id": "259"
  },
  "autoApply": false,
  "apply": {
    "items": [
      {
        "amount": 12.06,
        "apply": true,
         "doc": {
              "id": 5517
            } 
      }
    ]
  },
  "tranDate": "2021-10-13 3:34:01 PM",
  "customForm": {
    "id": "70"
  },
  "customer": {
    "id": "3645"
  },
  "payment": 12.06,
  "subsidiary": {
    "id": "3"
  }
}

这是错误:

{
  "detail": "Error while accessing a resource. You have attempted an invalid sublist or line item operation. You are either trying to access a field on a non-existent line or you are trying to add or remove lines from a static sublist.",
  "o:errorPath": "apply",
  "o:errorCode": "USER_ERROR"
}

我将不胜感激!

推荐答案

答案是需要选择Undep Funds的组合 |PaymentMethodAccount 才能成功.这方面的文档存在 这里

The answer is that you need to select a combination of Undep Funds | PaymentMethod and Account in order for this to succeed. The documentation for this exists here

这篇关于如何在 netsuite 中支付特定发票?使用客户付款的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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