24 June 2024
QuotesOrdersGraphQL
We have introduced in-store
endpoints for Quotes, Quote Requests, and Staged Quotes. These endpoints give access only to Quotes associated with specific Stores. In addition, we've added the Create Order in Store from Quote endpoint to the Orders API.
Changes:
- [API] Added
in-store
endpoints for Quotes, Quote Requests, and Staged Quotes. - [API] Added Create Order in Store from Quote endpoint.
- [API] Added optional field
store
to StagedQuote. - [GraphQL API] Changed the
InStore
type:- Added the
stagedQuote
,stagedQuotes
,quoteRequest
,quoteRequests
,quote
, andquotes
fields to theInStore
type.
- Added the
- [GraphQL API] Changed the
StagedQuote
type:- Added the
storeRef
andstore
fields to theStagedQuote
type.
- Added the
- [GraphQL API] Changed the
Mutation
type:- Argument
storeKey
was added toMutation.createQuote
,Mutation.createQuoteRequest
,Mutation.createStagedQuote
,Mutation.createOrderFromQuote
,Mutation.deleteQuote
,Mutation.deleteQuoteRequest
,Mutation.deleteStagedQuote
,Mutation.updateQuote
,Mutation.updateQuoteRequest
, andMutation.updateStagedQuote
fields.
- Argument
The following changes were introduced in terms of GraphQL SDL:
extend type InStore {
quote(
"Queries with specified ID"
id: String,
"Queries with specified key"
key: String): Quote
quoteRequest(
"Queries with specified ID"
id: String,
"Queries with specified key"
key: String): QuoteRequest
quoteRequests(where: String, sort: [String!], limit: Int, offset: Int): QuoteRequestQueryResult!
quotes(where: String, sort: [String!], limit: Int, offset: Int): QuoteQueryResult!
stagedQuote(
"Queries with specified ID"
id: String,
"Queries with specified key"
key: String): StagedQuote
stagedQuotes(where: String, sort: [String!], limit: Int, offset: Int): StagedQuoteQueryResult!
}
extend type StagedQuote {
store: Store
storeRef: KeyReference
}