Jonathan Talmi
08/28/2020, 5:59 PMbattk
08/28/2020, 6:01 PMbattk
08/28/2020, 6:01 PMJonathan Talmi
08/28/2020, 6:02 PMJonathan Talmi
08/28/2020, 6:02 PMJonathan Talmi
08/28/2020, 6:02 PMPOST {{REST_SERVICES}}/record/v1/customerpayment
{
"customer": {
"id": 150
},
"apply": {
"items": [
{
"amount": 368.93,
"apply": "T",
"applyDate": "2020-08-01",
"createdFrom": 4960,
"due": 368.93,
"refNum": "INV15",
"total": 368.93
}
]
}
}
battk
08/28/2020, 6:03 PMbattk
08/28/2020, 6:03 PMbattk
08/28/2020, 6:04 PMJonathan Talmi
08/28/2020, 6:05 PMPOST {{REST_SERVICES}}/record/v1/customer/150/!transform/customerpayment
with body:
{
"apply": {
"items": [
{
"amount": 368.93,
"apply": "T",
"applyDate": "2020-08-01",
"createdFrom": 4960,
"due": 368.93,
"refNum": "INV15",
"total": 368.93
}
]
}
}
Jonathan Talmi
08/28/2020, 6:05 PMbattk
08/28/2020, 6:09 PMbattk
08/28/2020, 6:09 PMJonathan Talmi
08/28/2020, 6:11 PMJonathan Talmi
08/28/2020, 6:11 PM"title": "Error while accessing 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.",
battk
08/28/2020, 6:13 PMbattk
08/28/2020, 6:13 PMJonathan Talmi
08/28/2020, 6:14 PMJonathan Talmi
08/28/2020, 6:14 PMbattk
08/28/2020, 6:15 PMJonathan Talmi
08/28/2020, 6:15 PMJonathan Talmi
08/28/2020, 6:15 PMbattk
08/28/2020, 6:34 PMJonathan Talmi
08/28/2020, 6:34 PMJonathan Talmi
08/28/2020, 6:34 PMJonathan Talmi
08/28/2020, 6:35 PMbattk
08/28/2020, 6:35 PMJonathan Talmi
08/28/2020, 6:37 PMJonathan Talmi
08/28/2020, 6:37 PMbattk
08/28/2020, 6:39 PMbattk
08/28/2020, 6:40 PMJonathan Talmi
08/28/2020, 6:46 PMJonathan Talmi
08/28/2020, 6:46 PMJonathan Talmi
08/28/2020, 8:07 PMbattk
08/28/2020, 8:18 PMbattk
08/28/2020, 8:19 PMJonathan Talmi
08/28/2020, 8:21 PM{
"apply": {
"items": [
{
"doc": {
"id": "4960"
},
"due": 4
}
]
}
}
Jonathan Talmi
08/28/2020, 8:21 PM{
"apply": {
"items": [
{
"id": "4960",
"due": 4
}
]
}
}
battk
08/28/2020, 8:23 PMbattk
08/28/2020, 8:24 PMJonathan Talmi
08/28/2020, 8:26 PMJonathan Talmi
08/28/2020, 8:26 PMbattk
08/28/2020, 8:28 PM{
"apply": {
"items": [
{
"apply": true,
"doc": {
"id": "171"
},
"amount": 0.01
}
]
}
}
works for meJonathan Talmi
08/28/2020, 8:36 PM?replace=apply
?battk
08/28/2020, 8:39 PMbattk
08/28/2020, 8:40 PMbattk
08/28/2020, 8:43 PMJonathan Talmi
08/28/2020, 8:52 PMJonathan Talmi
08/28/2020, 8:52 PM"Invalid sublist line key doc in request body."
seems like it doesn’t like the field doc, but i can’t find anything about that error message onlinebattk
08/28/2020, 8:55 PMJonathan Talmi
08/28/2020, 8:57 PMJonathan Talmi
08/28/2020, 8:58 PMbattk
08/28/2020, 9:00 PMbattk
08/28/2020, 9:00 PMJonathan Talmi
08/28/2020, 9:01 PMbattk
08/28/2020, 9:01 PMbattk
08/28/2020, 9:01 PMJonathan Talmi
08/28/2020, 9:07 PMJonathan Talmi
08/28/2020, 9:07 PM"customerPayment-applyElement": {
"type": "object",
"properties": {
"links": {
"title": "Links",
"type": "array",
"readOnly": true,
"items": {
"$ref": "#/components/schemas/nsLink"
}
},
"discDate": {
"title": "Disc. Date",
"type": "string",
"format": "date",
"nullable": true
},
"amount": {
"title": "Payment",
"type": "number",
"format": "double",
"nullable": true
},
"apply": {
"title": "Apply",
"type": "boolean"
},
"line": {
"type": "integer",
"format": "int64",
"nullable": true
},
"createdFrom": {
"type": "string",
"nullable": true
},
"discAmt": {
"title": "Disc. Avail.",
"type": "number",
"format": "double",
"nullable": true
},
"internalId": {
"title": "Internal ID",
"type": "string",
"nullable": true
},
"total": {
"title": "Orig. Amt.",
"type": "number",
"format": "double",
"nullable": true
},
"applyDate": {
"title": "Date",
"type": "string",
"format": "date",
"nullable": true
},
"refNum": {
"title": "Ref No.",
"type": "string",
"nullable": true
},
"due": {
"title": "Amt. Due",
"type": "number",
"format": "double",
"nullable": true
},
"dueDate": {
"type": "string",
"format": "date",
"nullable": true
},
"disc": {
"title": "Disc. Taken",
"type": "number",
"format": "double",
"nullable": true
},
"refName": {
"title": "Reference Name",
"type": "string",
"readOnly": true
}
},
"description": "This record is available as a beta record.",
"x-ns-filterable": [],
"x-ns-support-level": "beta"
}
},
Jonathan Talmi
08/28/2020, 9:07 PMbattk
08/28/2020, 9:08 PMJonathan Talmi
08/28/2020, 9:19 PMJonathan Talmi
08/28/2020, 9:20 PMbattk
08/28/2020, 9:26 PMJonathan Talmi
08/28/2020, 9:27 PMJonathan Talmi
08/28/2020, 9:28 PMJonathan Talmi
08/28/2020, 9:33 PMNetSuite (Edition: Canada) Release 2020.1
Jonathan Talmi
08/28/2020, 9:33 PMJonathan Talmi
09/01/2020, 4:14 PMJonathan Talmi
09/01/2020, 4:14 PM