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-storeendpoints for Quotes, Quote Requests, and Staged Quotes. - [API] Added Create Order in Store from Quote endpoint.
- [API] Added optional field
storeto StagedQuote. - [GraphQL API] Changed the
InStoretype:- Added the
stagedQuote,stagedQuotes,quoteRequest,quoteRequests,quote, andquotesfields to theInStoretype.
- Added the
- [GraphQL API] Changed the
StagedQuotetype:- Added the
storeRefandstorefields to theStagedQuotetype.
- Added the
- [GraphQL API] Changed the
Mutationtype:- Argument
storeKeywas added toMutation.createQuote,Mutation.createQuoteRequest,Mutation.createStagedQuote,Mutation.createOrderFromQuote,Mutation.deleteQuote,Mutation.deleteQuoteRequest,Mutation.deleteStagedQuote,Mutation.updateQuote,Mutation.updateQuoteRequest, andMutation.updateStagedQuotefields.
- 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
}