Appearance
Enum reference
Source: app/v1/enum/. Where a schema uses Object.keys(...) you must send the key; where it uses Object.values(...) you send the value. Both columns are listed.
22.1 customer_source_types
Send the key (key == value here): organic, scan, referral, promotion, shopify_plugin, other.
22.2 customer_medium_types
Send the key: ios, android, website, plugin, other.
22.3 customer_device_types
Send the key: mobile, desktop, ipad, tablet, other, laptop.
22.4 Other enums
| Enum | Used by | Send | Accepted |
|---|---|---|---|
newsletterTypes | §17.2 category | key | NEWS, NEW_RELEASES, PRODUCT_UPDATE, COMPANY_ANNOUNCEMENT |
blogTypes | §16.2 category | key | UPCOMING, NEWS, NEW_RELEASES, PRODUCT_UPDATE, COMPANY_ANNOUNCEMENT (the handler maps key → value before validating) |
receipt_source_types | §15.1 source | value | self, meadow, retail |
receiptStatusTypes | §15.2 status | key | PENDING, APPROVED, REJECTED |
devicePlatformTypes | §19.1 platform | key | IOS, ANDROID, WEB |
tradeTypes | §9.1, §9.6 type | key | open_trade, direct_trade, open_gift, direct_gift |
orderSourceType | §12.7/§12.8 posId | key | weedmaps, phone, email, website, kiosk |
orderMethod | §12.7/§12.8 method | key | curbside, doorstep, pos, instore, shipment |
addressTypes | §4.1 type | value | billing, shipping |
formType | §16.9 type | key | scan_verify, scan_survey, product_review |
event_types | §16.5 type | value | standard, drop |
tradeStatus | never sent — the server's own trade state, returned on trades and trade logs | — | open, inprogress, completed, expired, rejected, cancelled |
trade-log participant | §9.4 — required | value | sender, receiver, both |
trade-log type | §9.4 — required; each maps to a set of tradeStatus values | value | active, completed, history |
orderTypes | from the token, not the client | — | delivery, pos, rapid, pickup, shipment |
country_iso_codes | address country | value | ISO country codes, see app/v1/helpers/isocodes.ts |