Query
query GetOffer($input: GetOfferInput!) {
getOffer(input: $input) {
accountId
createdAt
description
draftDetails {
version
}
environmentId
id
}
}Variables
{
"input": {
"offerId": "string"
}
}Response
{
"data": {
"getOffer": {
"accountId": "string",
"createdAt": "value",
"description": "string",
"draftDetails": {
"version": 1
},
"environmentId": "value",
"id": "value"
}
}
}Queries
getOffer
Get offer by refId and optional version
QUERY
getOffer(input: GetOfferInput!): Offer!Arguments
input
required
Get offer input
Returns
accountId
String!
The unique identifier for the account
createdAt
DateTime!
Creation timestamp
description
String
Offer description
draftDetails
Draft details if this offer has a draft version
environmentId
UUID!
The unique identifier for the environment
id
UUID!
Unique identifier for the entity
isDefault
Boolean!
Whether this is the default offer
isLatest
Boolean!
Whether this is the latest version
metadata
JSON
Metadata associated with the entity
name
String!
Offer name
offerId
String!
The unique identifier for the entity
status
Offer status
updatedAt
DateTime!
Last update timestamp
version
Int!
Offer version
Query
query GetOffer($input: GetOfferInput!) {
getOffer(input: $input) {
accountId
createdAt
description
draftDetails {
version
}
environmentId
id
}
}Variables
{
"input": {
"offerId": "string"
}
}Response
{
"data": {
"getOffer": {
"accountId": "string",
"createdAt": "value",
"description": "string",
"draftDetails": {
"version": 1
},
"environmentId": "value",
"id": "value"
}
}
}