Hi
Is it possible to search for a collection of Orders by a value in a customAttribute (i.e. their key/value pairs)? I’ve tried a number of approaches across all the API that I could experiment with, but to no avail.
I’m hoping that I’ve missed something and that one of the API support it (maybe I just couldn’t find the correct docco), otherwise I’d be keen to hear of there’s a workaround (like leveraging a Saved Search, or some other means).
The GraphQL API looked to be the most promising, but I notice that the QueryRoot.OrderConnection supports filtering on the following properties (not including custom attributes):
- cart_token
- channel_id
- chargeback_status
- checkout_token
- created_at
- credit_card_last4
- customer_id
- discount_code
- financial_status
- fraud_protection_level
- fulfillment_status
- location_id
- processed_at
- reference_location_id
- risk_level
- sales_channel
- source_name
- status
- tag
- test
- updated_at
On top of that, the individual Order object’s customAttributes collection is not searchable (at that level) in graphql.
I’ll greatly appreciate suggestions to help me work this out.
Cheers,
Sam