Skip to main content

list_coupons

Lists the available coupons in the authorized user’s account. These are account-level coupons and do not indicate whether a given coupon applies to a specific order — whether a coupon is usable for the current cart is decided by available_coupons in preview_order.
This tool identifies the user from consent_grant_id and queries the upstream provider for that user’s account coupons. The returned coupon_id is for display only and cannot be passed back to preview_order’s coupon_ids — when previewing, use that preview’s available_coupons[].coupon_id.

Parameters

Returns

Amount fields (amount / threshold) are in cents (integer), not yuan. e.g. amount: 500 means ¥5.00.

Error Codes

See Error Handling for the full list.

Call Example