I have customer invoice [
{
"creditTerms": {
"id": "14",
"description": "14 dager netto"
},
"documentDueDate": "2024-09-12T00:00:00",
"cashDiscountDate": "2024-08-29T00:00:00",
"exchangeRate": 1.00000000,
"attachments": [],
"taxDetails": [
{
"taxId": "3",
"vatRate": 25.000000,
"taxableAmount": 1440.0000,
"vatAmount": 360.0000
}
],
"invoiceLines": [
{
"lineType": "GN",
"lineNumber": 1,
"inventoryNumber": "0014spicychicken",
"description": "Spicy Chicken",
"quantity": 10.000000,
"unitPrice": 64.000000,
"unitPriceInCurrency": 64.000000,
"manualAmount": 640.000000,
"manualAmountInCurrency": 640.000000,
"amount": 640.0000,
"cost": 0.0000,
"amountInCurrency": 640.0000,
"account": {
"type": "Income",
"number": "3000",
"description": "Salgsinntekter, avg.pliktig høy sats"
},
"vatCode": {
"id": "3",
"description": "Utgående mva, høy sats"
},
"uom": "STK",
"discountPercent": 0.000000,
"discountAmount": 0.0000,
"discountAmountInCurrency": 0.0000,
"manualDiscount": false,
"subaccount": {
"subaccountNumber": "00A1000",
"subaccountId": 1,
"description": "None",
"lastModifiedDateTime": "2020-01-29T13:02:18.967",
"active": true,
"segments": [
{
"segmentId": 1,
"segmentDescription": "Avdeling",
"segmentValue": "0",
"segmentValueDescription": "(Default)"
},
{
"segmentId": 2,
"segmentDescription": "Project",
"segmentValue": "0",
"segmentValueDescription": "p1"
},
{
"segmentId": 3,
"segmentDescription": "Dynamic",
"segmentValue": "A1000",
"segmentValueDescription": "A1"
}
]
},
"deferralSchedule": 0,
"branchNumber": {
"number": "1",
"name": "Panteon AS"
}
},
{
"lineType": "GN",
"lineNumber": 2,
"inventoryNumber": "005deluxeveggie",
"description": "Deluxe Veggie",
"quantity": 10.000000,
"unitPrice": 80.000000,
"unitPriceInCurrency": 80.000000,
"manualAmount": 800.000000,
"manualAmountInCurrency": 800.000000,
"amount": 800.0000,
"cost": 0.0000,
"amountInCurrency": 800.0000,
"account": {
"type": "Income",
"number": "3000",
"description": "Salgsinntekter, avg.pliktig høy sats"
},
"vatCode": {
"id": "3",
"description": "Utgående mva, høy sats"
},
"uom": "STK",
"discountPercent": 0.000000,
"discountAmount": 0.0000,
"discountAmountInCurrency": 0.0000,
"manualDiscount": false,
"subaccount": {
"subaccountNumber": "00A1000",
"subaccountId": 1,
"description": "None",
"lastModifiedDateTime": "2020-01-29T13:02:18.967",
"active": true,
"segments": [
{
"segmentId": 1,
"segmentDescription": "Avdeling",
"segmentValue": "0",
"segmentValueDescription": "(Default)"
},
{
"segmentId": 2,
"segmentDescription": "Project",
"segmentValue": "0",
"segmentValueDescription": "p1"
},
{
"segmentId": 3,
"segmentDescription": "Dynamic",
"segmentValue": "A1000",
"segmentValueDescription": "A1"
}
]
},
"deferralSchedule": 0,
"branchNumber": {
"number": "1",
"name": "Panteon AS"
}
}
],
"sendToAutoInvoice": false,
"roundingDiff": 0.0000,
"customerVatZone": {
"id": "01",
"description": "Salg innenlands, avgiftspliktig"
},
"childRecord": {},
"directDebitMandate": {},
"hold": false,
"discountTotal": 0.0000,
"discountTotalInCurrency": 0.0000,
"detailTotal": 1440.0000,
"detailTotalInCurrency": 1440.0000,
"vatTaxableTotal": 1440.0000,
"vatTaxableTotalInCurrency": 1440.0000,
"vatExemptTotal": 0.0000,
"vatExemptTotalInCurrency": 0.0000,
"paymentReference": "100140000348",
"invoiceAddress": {
"addressId": 10,
"addressLine1": "Langmyrveien 197",
"postalCode": "0874",
"city": "OSLO",
"country": {
"id": "NO",
"name": "NORGE"
},
"county": {
"id": "0301",
"name": "OSLO"
},
"overrideAddress": false
},
"invoiceContact": {
"contactId": 10,
"businessName": "kashyap",
"email": "kashyap@gmail.com",
"phone1": "99999999",
"overrideContact": false
},
"applications": [],
"dontPrint": false,
"dontEmail": true,
"revoked": false,
"customer": {
"number": "10014",
"name": "kashyap"
},
"documentType": "Invoice",
"referenceNumber": "000034",
"postPeriod": "082024",
"financialPeriod": "202408",
"documentDate": "2024-08-29T00:00:00",
"origInvoiceDate": "2024-08-29T00:00:00",
"status": "Balanced",
"currencyId": "NOK",
"amount": 1800.0000,
"amountInCurrency": 1800.0000,
"balance": 1800.0000,
"balanceInCurrency": 1800.0000,
"cashDiscount": 0.0000,
"cashDiscountInCurrency": 0.0000,
"paymentMethod": {
"id": "1",
"description": "Innlandsbetalinger"
},
"lastModifiedDateTime": "2024-08-29T08:50:00.313",
"createdDateTime": "2024-08-29T08:50:00.313",
"note": "",
"vatTotal": 360.0000,
"vatTotalInCurrency": 360.0000,
"location": {
"countryId": "NO",
"id": "Main",
"name": "Primary location"
},
"branchNumber": {
"number": "1",
"name": "Panteon AS"
},
"cashAccount": "1910",
"project": {
"id": "X",
"description": "Non-Project Code."
},
"account": {
"type": "Asset",
"number": "1500",
"description": "Kundefordringer"
},
"subaccount": {
"subaccountNumber": "00A1000",
"subaccountId": 1,
"description": "None",
"lastModifiedDateTime": "2020-01-29T13:02:18.967",
"active": true,
"segments": [
{
"segmentId": 1,
"segmentDescription": "Avdeling",
"segmentValue": "0",
"segmentValueDescription": "(Default)"
},
{
"segmentId": 2,
"segmentDescription": "Project",
"segmentValue": "0",
"segmentValueDescription": "p1"
},
{
"segmentId": 3,
"segmentDescription": "Dynamic",
"segmentValue": "A1000",
"segmentValueDescription": "A1"
}
]
},
"metadata": {
"totalCount": 1,
"maxPageSize": 1000
}
}
] Now I am registering payment for this invoice as per your suggestion {
"referenceNumber": {
"value": "000034"
},
"type": {
"value": "Payment"
},
"hold": {
"value": false
},
"applicationDate": {
"value": "2024-08-29T00:00:00"
},
"paymentRef": {
"value": "Payment ref comment"
},
"customer": {
"value": "10014"
},
"location": {
"value": "Main"
},
"paymentMethod": {
"value": "1"
},
"cashAccount": {
"value": "1910"
},
"currency": {
"value": "NOK"
},
"paymentAmount": {
"value": "1800.00"
},
"invoiceText": {
"value": "invoice text comment"
},
"paymentLines": [
{
"operation":"Insert",
"documentType": {
"value": "Invoice"
},
"refNbr": {
"value": "000034"
},
"amountPaid": {
"value": "1800.00"
}
}
]
} This shows me error, VismaId: 957a08d1-f072-4e6b-b5cb-72ed52247568. Error creating payment. Error: AdjdRefNbr '000034' cannot be found in the system.
... View more