Translations for Promotions (Beta)
Translations for Promotions (Beta)
Translations for Promotions (Beta)
The Translations Admin GraphQL API is currently available on Catalyst storefronts only.
The following fields are translatable for promotions (all fields are included in responses; values may be null if no translation exists):
banner_availabilitybanner_upsellbanner_eligibilitybanner_congratulationsOnly the fields above are supported for promotion translations. Requests with other field names will return an error.
Below are examples of GraphQL queries and mutations for retrieving and managing translation settings for promotions.
This query returns up to 50 promotion translations for the specified resource type, channel, and locale.
The request below uses several variables for reusability. Replace {{channel_id}} and {{locale_code}} with the appropriate values for your use case.
This query returns translation(s) by resourceId.
When querying a translation by resourceId, you must provide the full resourceId in the format bc/store/promotion/{promotion_id}.
The request below uses several variables for reusability. Replace {{resourceId}}, {{channel_id}}, and {{locale_code}} with appropriate values for your use case. Make sure resourceId follows the format from the Resource fields table.
This mutation updates translated values for promotions for a specific channel and locale.
The mutation example above shows a successful response. If invalid fields or resource IDs are provided, the API will return error responses. See the Error Handling Reference for more details on error responses.
The following mutation removes translated values for specified promotion fields, reverting them to the original values for a specific channel and locale.