Order attributes

The attributes CODGuard writes to every checkout, and who reads them.

CODGuard attaches attributes to every checkout it builds. The leading underscore keeps them staff-only, so they never appear to the customer.

AttributeValueRead by
_codguard_paymentcod / prepaid / partialWebhook and both Functions
_codguard_verifiedtrue / falseWebhook
_codguard_phoneVerified phone, E.164Webhook (fallback phone)
_codguard_verified_atISO-8601 timestampAudit
_codguard_otp_channelWHATSAPP / SMSAudit
_codguard_sessionCheckout session idWebhook, links the selection
_codguard_prepaid_discount_pcte.g. 10Reporting
_codguard_original_totalPre-discount totalReporting
_codguard_deposit / _codguard_balancePartial amountsReporting
_codguard_payment_descriptionSentence shown to the shopperDisplay
_codguard_payment and _codguard_verified are also read by the Shopify Functions. Renaming either one silently breaks COD hiding at checkout, with no error anywhere.

Extensions

ExtensionTypeWhat it does
Payment customizationFunctionHides COD at checkout when rules disallow it.
Delivery customizationFunctionHides COD-specific delivery options on prepaid and partial orders. Never hides the cheapest option for a COD order.
Update addressAdmin actionLets fulfilment staff trigger an address-correction request from the order screen.
Verification modalTheme app extensionRenders the storefront modal via the app embed block.

Functions are activated automatically on app load and their IDs are stored on the shop's configuration.