My Products
Help
Florian Haase
PARTNER

Get Inventory - Subaccount

by Florian Haase

Hi,

 

since the updating of subaccount in cashtransaction does not work automatically from the inventory-number (see other thread) I have to read this information from the inventory-endpoint.

But is the formatting of the subaccounts there a bit strange?

 

"salesSubaccount": {
        "id": "102000"
      }

The customer has 2 segments and in the cash transaction I have to post also 2 segments. 

The Subaccount in the UI is at least 102-000 and not 102000

And in the post for the cash-transaction I have to deliver:

[{ "id": "1", "value":"102"},{"id":"2","value":"000"}] 

 

?

 

Florian

3 REPLIES 3
Accepted solution
Yıldırım
VISMA

by Yıldırım

Hello, 

please use  Subaccount Endpoint (Get a specific) to list segmented values.

GET: https://integration.visma.net/API/controller/api/v1/subaccount/102000
2021-06-23 12_37_03-Window.png

Florian Haase
PARTNER

Yes right, tested it - this would work. 

Thanks for the confirmation Florian šŸ˜Š