Skip to main content
Beantwortet

free fields via customer post api

  • September 18, 2023
  • 3 Antworten
  • 81 Ansichten

Hi everyone, 

We have created a few custom fields for the customer (Adresse). The get API call also returns those fields in the result as an array of “FreeFields” but I am looking for a way to add the data to those fields while creating a new customer too. I tried passing those as an array with the field name “FreeFields” but it returns the error regarding payload validation with the message "Unexpected keys `freeFields`."

The API documentation gives the idea about freeFields for products but not about customers. 

Could anyone possibly please point me in the right direction?

Thanks

Regards,

Nirmeen

Beste Antwort von Pau Ferrandiz

Hi @Nirmeen Yousuf 

this functionality is not available in the new REST-API yet. 

You can ask for this via our Roadmap by submitting an idea. 

Please take into consideration that our new REST API is currently under development and therefore subject to constant change. Changes and missing functions are to be expected still.

3 Antworten

Pau Ferrandiz
Xentraleer
Forum|alt.badge.img+2
  • Xentraleer
  • September 19, 2023

Hello @Nirmeen Yousuf 

which API are you using ?

  1. Legacy Standard-API https://help.xentral.com/hc/en-us/articles/10178109235100#UUID-dcf5bf7e-1b56-6f1c-d7fb-6aef7e9f9158 
  2. Legacy REST-API  https://update.xentral.biz/apidoc/docs224.html
  3. New REST-API https://developer.xentral.com/ 

For our legacy APIs you can send the key <freifeldX> and the data while creating or updating a customer.

Notice that X should be replaced by the corresponding number. 

Example: 

curl --location 'https://YOUR-URL.xentral.biz/api/v1/adressen' \
--header 'Content-Type: application/xml;charset=utf-8' \
--header 'Accept: {{HEADER_ACCEPT}}' \
--data '<xml>
<xml>
<name>Max Mustermann</name>
<strasse>Musterstrasse 3</strasse>
<kundennummer>NEW</kundennummer>
<plz>86152</plz>
<ort>Augsburg</ort>
<land>DE</land>
<freifeld3>66</freifeld3>
</xml>
</xml>'

 


  • Autor
  • Regelmäßiger Teilnehmer
  • September 19, 2023

Hi @Pau Ferrandiz,

I am using the new Rest-API: https://developer.xentral.com/reference/customercreate

Could you please give me an idea how to achieve this in new REST-API?

Thanks

Best Regards,

Nirmeen Yousuf


Pau Ferrandiz
Xentraleer
Forum|alt.badge.img+2
  • Xentraleer
  • Antwort
  • September 20, 2023

Hi @Nirmeen Yousuf 

this functionality is not available in the new REST-API yet. 

You can ask for this via our Roadmap by submitting an idea. 

Please take into consideration that our new REST API is currently under development and therefore subject to constant change. Changes and missing functions are to be expected still.