Create journal and accounts
Create a journal
+Create journal and accounts
Create a journal
GraphQL body
mutation journalCreate($input: JournalCreateInput!) {
journalCreate(input: $input) {
journal {
journalId
name
}
}
}
Variables
@@ -28,6 +28,6 @@GraphQL body<
Variables
{
"input": {
"accountId": "2e40175d-35c2-4b6f-9c01-cc2309934d25",
"name": "Assets",
"code": "ASSET-2e40175d-35c2-4b6f-9c01-cc2309934d25",
"normalBalanceType": "DEBIT"
}
}
Response
-{
"data": {
"accountCreate": {
"account": {
"accountId": "2e40175d-35c2-4b6f-9c01-cc2309934d25",
"name": "Assets"
}
}
}
}
{
"input": {
"accountId": "2e40175d-35c2-4b6f-9c01-cc2309934d25",
"name": "Assets",
"code": "ASSET-2e40175d-35c2-4b6f-9c01-cc2309934d25",
"normalBalanceType": "DEBIT"
}
}
{
"data": {
"accountCreate": {
"account": {
"accountId": "2e40175d-35c2-4b6f-9c01-cc2309934d25",
"name": "Assets"
}
}
}
}
{
"data": {
"accountCreate": {
"account": {
"accountId": "2e40175d-35c2-4b6f-9c01-cc2309934d25",
"name": "Assets"
}
}
}
}