selectline-software / selectline-api

Apache License 2.0
24 stars 5 forks source link

No Add/Put API Endpoint for /Documents/{documentNumber}/DeliveryAddresses #391

Closed abdullahbaa5 closed 6 days ago

abdullahbaa5 commented 1 month ago

Currently there is only GET endpoint available for retrieving the delivery addresses in a document but none for adding one:

image

Could an endpoint for adding delivery address be added? Thank you.

MatthiasGuse commented 4 weeks ago

Hi,

You can use https://demo.slmobile.de/demoApi/Help/Api/PUT-Documents-documentKey - "DeliveryAddress" to add or change the address to a document.

Regards

abdullahbaa5 commented 4 weeks ago

DeliveryAddress

DeliveryAddress in a document is a different field than adding additional Delivery Addresses. Please try it for yourselves and call the get endpoint vs the get document.

the delivery address retrieved by /Documents/XYZ/DeliveryAddress is different than (/Documents/XYZ) Document.DeliveryAddress

For us we use Document.DeliveryAddress as the company address.

But if companies specifies different delivery address, then we use /Documents/XYZ/DeliveryAddress and it is displayed on the document.

Not having the ability to put it via the api endpoint fails our automation process.