bgmulinari / B1SLayer

A lightweight SAP Business One Service Layer client for .NET
MIT License
136 stars 47 forks source link

How can I cancel a sales order for example? #35

Closed thiagobarrosrj closed 1 year ago

thiagobarrosrj commented 1 year ago

How can I cancel a sales order for example?

Eu não encontrei no B1SLayer uma chamada para cancelar um documento. Como faço isso usando o B1SLayer?

It would be to call the post below.

POST https://localhost:50000/b1s/v1/Orders(123)/Cancel

bgmulinari commented 1 year ago

Olá, @thiagobarrosrj.

A requisição abaixo deve fazer o cancelamento:

await serviceLayer.Request("Orders(123)/Cancel").PostAsync();