question

retailcp avatar image
retailcp asked Dan edited

can Orders API be updated by Clover to return NULL values on orders object properties ?

can Orders API be updated by Clover to return NULL values on orders object properties ? One example: Unit name should be included as 'NULL' or 'String'. Modifications, should be an array. If no Modifications, should be an empty array. etc. Thanks.
Orders
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Bryanne Vega avatar image
Bryanne Vega answered Dan edited
I believe in the REST API docs, there's an option to return null fields. I will update the response with the findings when I get back to the personal computer.
1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Dan avatar image Dan ♦ commented ·

https://docs.clover.com/clover-platform/docs/displaying-null-fields
Looks like it doesn't set null or empty arrays for non-expanded fields, I don't know what would happen if you expanded on a field for which the order does not have any values.

0 Likes 0 ·

Welcome to the
Clover Developer Community