/
OP
optimove
/
Optimove API
Search skmtc…
⌘K
Docs
Sign in
Sign in
APIs
Generators
Stacks
Projects
Docs
History
Schema
Sources
Subscribe
optimove
Optimove API
get
Get a promocode by id
v1
latest
OpenAPI 3.0.1
2026-07-24
210
349
345.4 KB
PromoCodeQuery
Get a promocode by id
get
/v1/promocodes/{promocodeId}
Path parameters
promocodeId
string
required
Response
A successful response.
PromocodequeryserviceGetByIdResponse
required
promocodeId
string
promotionId
string
state
'NOT_EXIST'
|
'AVAILABLE'
|
'PROMOTION_ASSIGNED'
|
'CAMPAIGN_LINKED'
|
'HIDDEN'
version
integer
createdAt
string
date-time
updatedAt
string
date-time
availableCommands
PromocodecommandAvailableCommand[]
uniqueCodes
object
type
'GENERIC'
|
'PERSONALIZED'
|
'NO_CODE'
fallbackConfig
'UNKNOWN'
|
'USE_FALLBACK_CODE'
|
'REJECT_CUSTOMER'
allocationConfig
'UNSET'
|
'ALWAYS_NEW_CODE'
|
'ONE_CODE_PER_CUSTOMER'
alertConfig
CodeUniqueCodesAlertConfig
campaignIds
string[]