Journal POST(DEPRECATED)

URI

https://{DATACENTER}.brightpearlconnect.com/public-api/{ACCOUNT}
/accounting-service/journal/

Refer to our documentation on URI syntax for more information on how to construct URIs.

Description

This message has been DEPRECATED. Please use journal entry POST as this supports multi-currency accounting.

Create a new base currency journal entry. Journals can be created one at a time and the POST message will respond with the ID assigned to the newly created journal.

The taxDate is interpreted as midnight at the start of the day in the account's timezone. Time and timezone information should not be included in this field; the format must be yyyy-mm-dd.

Example

Create a journal representing the transfer of funds between two bank accounts.

Request URI

/journal/

Request body

{
	"journalTypeCode": "BT",
	"taxDate": "2011-06-08",
	"description": "Transfer from business current account to savings account",
	"credits": [
		{
			"nominalCode": "1200",
			"taxCode": "T9",
			"change": {
				"currency": "GBP",
				"value": "745.78"
			},
			"assignment": {
				"channelId": 1,
				"projectId": 3
			}
		}
	],
	"debits": [
		{
			"nominalCode": "1201",
			"taxCode": "T9",
			"change": {
				"currency": "GBP",
				"value": "745.78"
			},
			"assignment": {
				"channelId": 1
			}
		}
	]
}

Response

{
	"response": 16
}