I have tried to figure this out in Postman and also searched the forum but without luck. Still having this SyntaxError: Unexpected token ‘:’. Still when sending this PUT I get success: True. Maybe this error does’nt matter? I am not sure but I am fairly new to Postman. Any help appreciated.
I selected PUT, Body, Raw and JSON.
Here is the code
{
“IssueDate”: “2022-04-29”,
“DueDate”: “Net”,
“DueDateDays”: null,
“DueDateDate”: null,
“Reference”: “2011”,
“QuoteNumber”: null,
“OrderNumber”: null,
“Customer”: “2b279373-f46e-4397-9c13-16a4a5f4c48d”,
“SalesQuote”: null,
“SalesOrder”: “b4556c0c-ca04-49df-86c2-fd0b8e611579”,
“BillingAddress”: “Road 95\n999999-9999”,
“Description”: null,
“Lines”: [
{
“Item”: “ed0ecf26-39f4-4b1b-b74d-e0f7c2d6032e”,
“Account”: null,
“CapitalAccount”: null,
“SubAccount”: null,
“SpecialAccount”: null,
“FixedAsset”: null,
“IntangibleAsset”: null,
“LineDescription”: null,
“CustomFields”: null,
“Qty”: 6.0,
“SalesUnitPrice”: 1600.0,
“CurrencyAmount”: 0.0,
“DiscountPercentage”: 0.0,
“DiscountAmount”: 0.0,
“TaxCode”: “e57a094f-de41-448c-b7a6-d6327029213c”,
“Project”: null,
“Division”: “dd2f413d-7b3c-44aa-9d42-5c89717bccb0”
},
{
“Item”: “97f444f5-d841-4869-9b25-b37fe3d515cf”,
“Account”: null,
“CapitalAccount”: null,
“SubAccount”: null,
“SpecialAccount”: null,
“FixedAsset”: null,
“IntangibleAsset”: null,
“LineDescription”: null,
“CustomFields”: null,
“Qty”: 11.0,
“SalesUnitPrice”: 220.0,
“CurrencyAmount”: 0.0,
“DiscountPercentage”: 0.0,
“DiscountAmount”: 0.0,
“TaxCode”: null,
“Project”: null,
“Division”: null
}
],
“SalesInventoryLocation”: null,
“HasLineNumber”: true,
“HasLineDescription”: false,
“Discount”: false,
“DiscountType”: “Percentage”,
“AmountsIncludeTax”: false,
“Rounding”: true,
“RoundingMethod”: “RoundDown”,
“WithholdingTax”: false,
“WithholdingTaxType”: “Rate”,
“WithholdingTaxPercentage”: 0.0,
“WithholdingTaxAmount”: 0.0,
“EarlyPaymentDiscount”: false,
“EarlyPaymentDiscountType”: “Percentage”,
“EarlyPaymentDiscountRate”: 0.0,
“EarlyPaymentDiscountAmount”: 0.0,
“EarlyPaymentDiscountDays”: null,
“LatePaymentFees”: false,
“LatePaymentFeesPercentage”: 0.0,
“TotalAmountInWords”: false,
“TotalAmountInBaseCurrency”: false,
“Bilingual”: false,
“CustomTitle”: false,
“SalesInvoiceCustomTitle”: null,
“HasSalesInvoiceCustomTheme”: false,
“SalesInvoiceCustomTheme”: null,
“AutomaticReference”: false,
“HideDueDate”: true,
“HideBalanceDue”: false,
“ClosedInvoice”: false,
“OldLayout”: false,
“ShowTaxAmountColumn”: false,
“HasSalesInvoiceFooters”: false,
“SalesInvoiceFooters”: null,
“CustomFields”: {
“7ba04828-30a3-40e5-bb0b-c87ebc478f20”: “Test”,
“7f00ce21-6c9e-42b1-bd3a-4f313a9043c7”: “No”
}
}