Mine områder
Hjelp
Anonymous
Ikke relevant

Error when posting journal transaction via API

av Anonymous

kristiannielsen_0-1650373383756.png

I get the following error-message when trying to post a journal transaction via your visma net API. 

2 SVAR 2
kbv
CONTRIBUTOR **

av kbv

Hi. 

 

Seems like you are trying to send something along that has no value. Can you share the body you are sending?

Anonymous
Ikke relevant

av Anonymous

This is the body i am trying to send:

{
"branch": "1",
"currencyId": "NOK",

  "transactionDate": {
    "value": "2021-09-19T08:15:54.838Z"
  },
  "ledger": {
    "value": "1"
  },
  "description": {
    "value": "Payout: Nets - 169318 - 2022-04-19"
  },
  "journalTransactionLines": [
    {
      "operation": "Insert",
      "accountNumber": {
        "value": "1920"
      },
      "subaccount": [
        {
          "segmentId": 1,
          "segmentValue": "0"
        },
{
          "segmentId": 2,
          "segmentValue": "4"
        }
      ],
      "transactionDescription": {
        "value": "Payout: Nets - 169318 - 2022-04-19"
      },
      "debitAmountInCurrency": {
        "value": 6580
      }
},
{
      "operation": "Insert",
      "accountNumber": {
        "value": "1520"
      },
      "subaccount": [
        {
          "segmentId": 1,
          "segmentValue": "0"
        },
{
          "segmentId": 2,
          "segmentValue": "4"
        }
      ],
      "transactionDescription": {
        "value": "Payout: Nets - 169318 - 2022-04-19"
      },
      "creditAmountInCurrency": {
        "value": 6580
      }
    }
  ]
}

Gå til de områdene du ønsker å legge til og velg "Legg til i Mine områder"