Edit in GitHubLog an issue
B2B feature. Learn more

setNegotiableQuoteShippingAddress mutation

The setNegotiableQuoteShippingAddress mutation assigns the shipping address for the specified negotiable quote. You can assign an address from the company user's address book, or define a new one. The negotiable quote must be in the UPDATED state to successfully set a shipping address.

To return a list of valid shipping addresses, construct a company query that includes the user input attribute.

This query requires a valid customer authentication token.

Syntax

Copied to your clipboard
{
setNegotiableQuoteShippingAddress(
input: SetNegotiableQuoteShippingAddressInput!
): SetNegotiableQuoteShippingAddressOutput
}

Reference

The setNegotiableQuoteShippingAddress reference provides detailed information about the types and fields defined in this mutation.

Example usage

The following example adds a predefined shipping address to a negotiable quote.

Request:

Copied to your clipboard
mutation {
setNegotiableQuoteShippingAddress(input: {
quote_uid: "prFSdZyHOpMXeiJ32XlBzd8e1Mte9loS"
shipping_addresses: {
customer_address_uid: "MQ=="
}
}) {
quote {
shipping_addresses {
company
firstname
lastname
street
city
region {
label
code
}
country {
label
code
}
}
}
}
}

Response:

Copied to your clipboard
{
"data": {
"setNegotiableQuoteShippingAddress": {
"quote": {
"shipping_addresses": [
{
"company": "TestCo",
"firstname": "Taina",
"lastname": "Garofalo",
"street": [
"100 Big Oak Tree Dr"
],
"city": "San Francisco",
"region": {
"label": "California",
"code": "CA"
},
"country": {
"label": "US",
"code": "US"
}
}
]
}
}
}
}
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.