如何在 netsuite 中支付特定发票?使用客户付款发票、客户、如何在、netsuite

2023-09-07 11:14:52 作者:「中国第一好学生」

我正在尝试使用 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