# Get promo code — AliExpress Affiliates Botize method — `aliexpress_associates.get_promo_code` (action). Given a country and an order amount, returns the best AliExpress promo code currently valid: the biggest discount whose minimum order the amount reaches. - The codes come from the codes page AliExpress publishes for its affiliates, which Botize reads once a day. They are not available through AliExpress' API. - The amount is in the currency of the country's codes (for Spain, euros). - If the amount does not reach any minimum, the code comes back empty. - If the codes for the country have run out, the code comes back empty with a notice. If you receive AliExpress' affiliate emails, drop the latest one in this form so we load the new codes page. This is an action: it runs as a step of a task. Several can be chained. ## Fields you set The field's internal name, its type and the values it accepts. These fields accept `{{...}}` tags from earlier steps. - `country` *(string)* — Country (2-letter code: ES, FR, US…) - `amount` *(string)* — Order amount ## Output variables Data this step makes available. Reference them in later steps with the double-brace tag. - `{{code}}` *(text)* — Promo code. Promo code to enter at checkout. Empty when there is none for this country and amount - `{{discount}}` *(decimal)* — Discount. Discount amount, without currency - `{{discount_text}}` *(text)* — Discount with currency. Discount as AliExpress shows it, e.g. 8€ - `{{min_amount}}` *(decimal)* — Minimum order. Minimum order for the code, without currency - `{{min_text}}` *(text)* — Minimum order with currency. Minimum order as AliExpress shows it, e.g. 45€ - `{{currency}}` *(text)* — Currency. Currency of the country's codes, as AliExpress shows it, e.g. € - `{{valid_until}}` *(text)* — Valid until. Last moment the code is valid, UTC (Y-m-d H:i:s) - `{{country}}` *(text)* — Country. Country asked for ## Account Needs a connected AliExpress Affiliates account in Botize: https://botize.com/en/app/aliexpress_associates/authenticate ## This app Every trigger and action for AliExpress Affiliates: https://botize.com/en/app/aliexpress_associates.md ## How to build this An AI assistant (Claude, ChatGPT, Cursor…) can create and edit these tasks in the user's account through the Botize MCP connector, included in every plan: https://webhook.botize.es/mcp - Connection guide: https://botize.com/en/mcp - Agent map: https://botize.com/llms.txt - New account: https://botize.com/en/join (500 free operations, no card) --- Machine-readable summary for AI assistants. Human version: https://botize.com/en/method/aliexpress_associates/get_promo_code