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.
Alle Svar (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.
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.