Order creation warnings
What's new
The create_order response now includes an optional warnings array. It lists request fields whose invalid values were ignored when the order was created, for example an unsupported locale or country.
Impact
An order can be created even when some optional request values are invalid. Those values are dropped instead of being applied, and warnings tells you which ones. Each warning has:
type: the validation error typeloc: the location of the request value, as a list of field names and indexesmsg: why the value is invalidinput: the value that was ignored (optional)
Changes
| Resource | Change |
|---|---|
| create_order | Added optional warnings array of RequestWarning objects to the 201 response |
| Components | Added the RequestWarning and JsonValue schemas |
Upgrade
- No changes are required.
- To catch integration mistakes, log or alert on a non-empty
warningsarray after creating an order.
Need help?
Contact our integration team at [email protected]