data-src=../../../../../includes/saas-only.md
data-src=../../../../../includes/commerce-only.md
setQuoteTemplateExpirationDate mutation
data-variant=info
data-slots=text1
This mutation is part of the B2B Storefront Compatibility Package and is only available on Adobe Commerce as a Cloud Service.
The setQuoteTemplateExpirationDate mutation can be used to set an expiration date for a negotiable quote, as it is not set by default. The mutation requires template_id and expiration_date as input parameters.
Syntax
{
setQuoteTemplateExpirationDate(
input: QuoteTemplateExpirationDateInput!
): NegotiableQuoteTemplate
}
Reference
The setQuoteTemplateExpirationDate reference provides detailed information about the types and fields defined in this mutation.
Example usage
The following example sets the expiration date for a negotiable quote.
Request:
mutation {
setQuoteTemplateExpirationDate(
input: {
template_id: "10"
expiration_date: "2030-13-01"
}
) {
template_id
expiration_date
}
}
Response:
{
"data": {
"setQuoteTemplateExpirationDate": {
"template_id": "10",
"expiration_date": "2030-13-01"
}
}
}