Salenumber

lock
push_pin
done
Beantwortet
2

Hello,

 

I'm currently testing Supperoffice API in DevMode.

 

While doing a GET request on /sale I notice that the saleNumber and saleStatus always have empty values. My question is whether they will have a value when the application goes to production?

 

 

Thanks in advance.

25. Dez. 2023 | 09:55 AM

Alle Antworten (2)

If a field has a value or not has nothing to with the environment you are in (development/stage/production). If you look up the sale you are retreiving using the API in the web interface, you will see it also does not have the fields filled there.

 

29. Dez. 2023 | 08:29 AM

You should use the default method to create new sales get these values automatically populated for you: https://docs.superoffice.com/en/developer-portal/best-practices/index.html#entity-creation

https://docs.superoffice.com/en/api/reference/restful/rest/Sale/v1SaleEntity_DefaultSaleEntity.html

Without setting these default values, the user will be prompted to add them manually before they are able to save their own changes. 

5. Jan. 2024 | 07:38 AM

Antwort hinzufügen