Division endpoint integration with Receipts

I’m trying to bring the “Division” field into the “Receipts” field but I can’t find it. I know that there is a specific endpoint for “Division”, however, I believe that it would not be possible to relate it to the data provided in the JSON response of the “Receipts” endpoint. Am I just mistaken or thinking wrong? Is there any way of bringing this field in or relating it?


Welcome to the forum @sistems,

You need to query receipt-lines because the Division data is in the lines of the Receipt

1 Like

Thank you very much for the welcome and for answering my question! Sorry about my English, I’m still learning it
Regarding the “receipt-lines” endpoint, I tried his answer as well, but still the “Division” field was not brought even though it was filled in the system. Is this normal behavior?

You need to specify the fields selection.

You can visit this url to learn more about the parameters for the path you want.

https://{ your manager domain }/api2
1 Like

There is no option to select Division for Account Receivable on Receipt. Make sure Division is selected correctly on the sales invoice.

For Inventory Items and other Accounts you can add Division on each line in json like this

"Lines": [
    {
      "Item": "4291e901-34cb-453d-95b1-30ee5e790939",
      "Account": "d1489e95-bb28-4f5d-b42e-67d3291b3893",
      "AccountsReceivableCustomer": "cd92e9a3-4d4c-4a05-a952-97a6414c2150",
      "AccountsReceivableSalesInvoice": "e3d4f7d0-7e63-40b0-8e4e-6808da6f90b7",
      "CustomFields": {},
      "CustomFields2": {
        "Strings": {},
        "Decimals": {},
        "Dates": {},
        "Booleans": {},
        "StringArrays": {}
      },
      "Qty": 1,
      "Amount": 100,
      "Division": "669b0540-8180-4348-a8bd-fb55744561dd"
    }
  ],
1 Like