Hello there,
I’m new to this forum and I’m having a problem posting Journal Entries via the REST API.
JSON-Body:
{ “title”:“GS-2024, Barkunde”,
“posting_date”:“2009-12-14T00:00:00”,
“InvoiceNumberFromTitle”:null,
“total_debit”:29.75,
“total_credit”:29.75,
“difference”:0.0,
“root_type”:“Journal Entry”,
“write_off_based_on”:“Accounts Receivable”,
“company”:“K&K Software AG”,
“is_opening”:“No”,
“accounts”:[ {
“account”:“10 - Entgeltlich erworbene Konzessionen und gewerbl. Schutzrechte - K&K”,
“against_account”:“11 - Entgeltlich erworbene Konzessionen und - K&K”,
“debit”:29.75,
“credit”:0.0,
“cost_center”:“Haupt - K&K”,
“is_advance”:“Yes”,
“doctype”:“Journal Entry Account”
},
{
“account”:“11 - Entgeltlich erworbene Konzessionen und - K&K”,
“against_account”:“10 - Entgeltlich erworbene Konzessionen und gewerbl. Schutzrechte - K&K”,
“debit”:0.0,
“credit”:29.75,
“cost_center”:“Haupt - K&K”,
“is_advance”:“Yes”,
“doctype”:“Journal Entry Account”
}
]
}
No errors @creation. Document is there, but:
sorry, can’t post the result, but credit and debit = 0.0, but should be 29.75.