Skip to main content
Beantwortet

Get information for Purchase Order

  • May 10, 2023
  • 8 Antworten
  • 122 Ansichten

renancidale
Forum|alt.badge.img

Hi, 

I’m trying to find if it is possible to access the purchase order information through the API, for both list and editing, like it is for Sales Orders. 

 

Best, 

Renan Cidale

Beste Antwort von Anonymous

Hi @renancidale 

 

For editing, you can use this: 

 

curl --location 'https://xxxxxxx.xentral.biz/api/BestellungEdit' \

--header 'Content-Type: application/xml' \

--header 'Authorization: Bearer 44|xxxxxxx' \

--data '<xml>

<id>3</id>

<datum>2023-03-08</datum>

</xml>'


However, we don’t have an endpoint for `List`

8 Antworten

  • Antwort
  • May 10, 2023

Hi @renancidale 

 

For editing, you can use this: 

 

curl --location 'https://xxxxxxx.xentral.biz/api/BestellungEdit' \

--header 'Content-Type: application/xml' \

--header 'Authorization: Bearer 44|xxxxxxx' \

--data '<xml>

<id>3</id>

<datum>2023-03-08</datum>

</xml>'


However, we don’t have an endpoint for `List`


renancidale
Forum|alt.badge.img
  • Autor
  • Bekannter Teilnehmer
  • May 10, 2023

That’s great ! 

Thank you, 

Is there any way to connect which Bestellung belongs to a Sales Order ?, either way ?


renancidale
Forum|alt.badge.img
  • Autor
  • Bekannter Teilnehmer
  • May 10, 2023

Btw, on that note, is that information that you provided @chuck_aguilar , can I find it myself somewhere ? I have been trying to scan the docs but without much success unfortunately :( 


  • May 11, 2023

Hi @renancidale  

 

how do you want to connect a purchase to a sales order? A purchase is when you buy something for your business. And a sales order is when your customer buys something from you. 

 

They might be the same object, if you’re reselling, but it doesn’t have to be. Maybe you produce muesli, so, the sales orders will be to buy your muesli, but your purchase would be to buy the ingredients for the muesli. 

 


renancidale
Forum|alt.badge.img
  • Autor
  • Bekannter Teilnehmer
  • May 11, 2023

Hi @chuck_aguilar 

It wasn’t so much about connecting, more about finding the link between a purchase order and a sales order. 

In the UI, we are able to create a purchase order from a sales order, therefore, I would assume that we have a link there. 

Is there any way to find that link ?


renancidale
Forum|alt.badge.img
  • Autor
  • Bekannter Teilnehmer
  • May 11, 2023

Hi @chuck_aguilar 

Please don’t forget me


  • May 11, 2023

Hi @renancidale 

That’s done with the “Bestellvorschlag” in the UI. We don’t have an endpoint for that. 


renancidale
Forum|alt.badge.img
  • Autor
  • Bekannter Teilnehmer
  • June 12, 2023

For future reference, you can connect a Purchase order to a Sales Order, through the auftrag_position_id property from the `bestellung_position` table. 

So it goes like

bestellung_position → auftrag_position → auftrag.