Types

KeyValue

Contains a key-value pair.

Fields

Field Name
Description
name - String
The name part of the key/value pair.
value - String
The value part of the key/value pair.

Example

{
  "name": "abc123",
  "value": "abc123"
}

LineItemNoteInput

Sets quote item note.

Input Fields

Input Field
Description
note - String
The note text to be added.
quote_item_uid - ID!
The unique ID of a CartLineItem object.
quote_uid - ID!
The unique ID of a NegotiableQuote object.

Example

{
  "note": "xyz789",
  "quote_item_uid": "4",
  "quote_uid": "4"
}

MediaGalleryInterface

Contains basic information about a product image or video.

Fields

Field Name
Description
disabled - Boolean
Indicates whether the image is hidden from view.
label - String
The label of the product image or video.
position - Int
The media item's position after it has been sorted.
url - String
The URL of the product image or video.

Possible Types

MediaGalleryInterface Types
AssetImage
AssetVideo
ProductImage
ProductVideo

Example

{
  "disabled": true,
  "label": "xyz789",
  "position": 123,
  "url": "xyz789"
}

MediaResourceType

Enumeration of media resource types

Values

Enum Value
Description
NEGOTIABLE_QUOTE_ATTACHMENT
Negotiable quote comment file attachment
CUSTOMER_ATTRIBUTE_FILE
Customer file resource type
CUSTOMER_ATTRIBUTE_IMAGE
Customer image resource type
CUSTOMER_ATTRIBUTE_ADDRESS_FILE
Customer file resource type for customer address
CUSTOMER_ATTRIBUTE_ADDRESS_IMAGE
Customer image resource type for customer address

Example

""NEGOTIABLE_QUOTE_ATTACHMENT""

Fields

Field Name
Description
type - String
The type of logo for the PayPal Pay Later messaging

Example

{"type": "xyz789"}

MessageStyles

Fields

Field Name
Description
layout - String
The message layout
logo - MessageStyleLogo
The message logo

Example

{
  "layout": "abc123",
  "logo": MessageStyleLogo
}

Money

Defines a monetary value, including a numeric value and a currency code.

Fields

Field Name
Description
currency - CurrencyEnum
A three-letter currency code, such as USD or EUR.
value - Float
A number expressing a monetary value.

Example

{"currency": "AFN", "value": 987.65}

MoveCartItemsToGiftRegistryOutput

Contains the customer's gift registry and any errors encountered.

Fields

Field Name
Description
gift_registry - GiftRegistry
The gift registry.
status - Boolean!
Indicates whether the attempt to move the cart items to the gift registry was successful.
user_errors - [GiftRegistryItemsUserError]!
An array of errors encountered while moving items from the cart to the gift registry.

Example

{
  "gift_registry": GiftRegistry,
  "status": false,
  "user_errors": [GiftRegistryItemsUserError]
}

MoveItemsBetweenRequisitionListsInput

An input object that defines the items in a requisition list to be moved.

Input Fields

Input Field
Description
requisitionListItemUids - [ID]!
An array of IDs representing products moved from one requisition list to another.

Example

{"requisitionListItemUids": [4]}

MoveItemsBetweenRequisitionListsOutput

Output of the request to move items to another requisition list.

Fields

Field Name
Description
destination_requisition_list - RequisitionList
The destination requisition list after moving items.
source_requisition_list - RequisitionList
The source requisition list after moving items.

Example

{
  "destination_requisition_list": RequisitionList,
  "source_requisition_list": RequisitionList
}

MoveLineItemToRequisitionListInput

Move Line Item to Requisition List.

Input Fields

Input Field
Description
quote_item_uid - ID!
The unique ID of a CartLineItem object.
quote_uid - ID!
The unique ID of a NegotiableQuote object.
requisition_list_uid - ID!
The unique ID of a requisition list.

Example

{
  "quote_item_uid": "4",
  "quote_uid": "4",
  "requisition_list_uid": "4"
}

MoveLineItemToRequisitionListOutput

Contains the updated negotiable quote.

Fields

Field Name
Description
quote - NegotiableQuote
The negotiable quote after moving item to requisition list.

Example

{"quote": NegotiableQuote}

MoveProductsBetweenWishlistsOutput

Contains the source and target wish lists after moving products.

Fields

Field Name
Description
destination_wishlist - Wishlist!
The destination wish list after receiving products moved from the source wish list.
source_wishlist - Wishlist!
The source wish list after moving products from it.
user_errors - [WishListUserInputError]!
An array of errors encountered while moving products to a wish list.

Example

{
  "destination_wishlist": Wishlist,
  "source_wishlist": Wishlist,
  "user_errors": [WishListUserInputError]
}

NegotiableQuote

Contains details about a negotiable quote.

Fields

Field Name
Description
available_payment_methods - [AvailablePaymentMethod]
An array of payment methods that can be applied to the negotiable quote.
billing_address - NegotiableQuoteBillingAddress
The billing address applied to the negotiable quote.
buyer - NegotiableQuoteUser!
The first and last name of the buyer.
comments - [NegotiableQuoteComment]
A list of comments made by the buyer and seller.
created_at - String
Timestamp indicating when the negotiable quote was created.
custom_attributes - [CustomAttribute]
The custom attributes for the negotiable quote
email - String
The email address of the company user.
expiration_date - String!
The expiration period of the negotiable quote.
history - [NegotiableQuoteHistoryEntry]
A list of status and price changes for the negotiable quote.
is_virtual - Boolean!
Indicates whether the negotiable quote contains only virtual products.
items - [CartItemInterface]
The list of items in the negotiable quote.
name - String!
The title assigned to the negotiable quote.
order - CustomerOrder
The order created from the negotiable quote.
prices - CartPrices
A set of subtotals and totals applied to the negotiable quote.
sales_rep_name - String!
The first and last name of the sales representative.
selected_payment_method - SelectedPaymentMethod
The payment method that was applied to the negotiable quote.
shipping_addresses - [NegotiableQuoteShippingAddress]!
A list of shipping addresses applied to the negotiable quote.
status - NegotiableQuoteStatus!
The status of the negotiable quote.
template_id - ID
The unique ID of a NegotiableQuoteTemplate object.
template_name - String
The title assigned to the negotiable quote template.
total_quantity - Float!
The total number of items in the negotiable quote.
uid - ID!
The unique ID of a NegotiableQuote object.
updated_at - String
Timestamp indicating when the negotiable quote was updated.

Example

{
  "available_payment_methods": [AvailablePaymentMethod],
  "billing_address": NegotiableQuoteBillingAddress,
  "buyer": NegotiableQuoteUser,
  "comments": [NegotiableQuoteComment],
  "created_at": "xyz789",
  "custom_attributes": [CustomAttribute],
  "email": "abc123",
  "expiration_date": "xyz789",
  "history": [NegotiableQuoteHistoryEntry],
  "is_virtual": true,
  "items": [CartItemInterface],
  "name": "xyz789",
  "order": CustomerOrder,
  "prices": CartPrices,
  "sales_rep_name": "abc123",
  "selected_payment_method": SelectedPaymentMethod,
  "shipping_addresses": [NegotiableQuoteShippingAddress],
  "status": "SUBMITTED",
  "template_id": 4,
  "template_name": "abc123",
  "total_quantity": 987.65,
  "uid": 4,
  "updated_at": "xyz789"
}

NegotiableQuoteAddressCountry

Defines the company's country.

Fields

Field Name
Description
code - String!
The address country code.
label - String!
The display name of the region.

Example

{
  "code": "xyz789",
  "label": "xyz789"
}

NegotiableQuoteAddressInput

Defines the billing or shipping address to be applied to the cart.

Input Fields

Input Field
Description
city - String!
The city specified for the billing or shipping address.
company - String
The company name.
country_code - String!
The country code and label for the billing or shipping address.
custom_attributes - [AttributeValueInput]
The custom attribute values of the billing or shipping negotiable quote address.
fax - String
The fax number of the customer.
firstname - String!
The first name of the company user.
lastname - String!
The last name of the company user.
middlename - String
The middle name of the person associated with the billing/shipping address.
postcode - String
The ZIP or postal code of the billing or shipping address.
prefix - String
An honorific, such as Dr., Mr., or Mrs.
region - String
A string that defines the state or province of the billing or shipping address.
region_id - Int
An integer that defines the state or province of the billing or shipping address.
save_in_address_book - Boolean
Determines whether to save the address in the customer's address book. The default value is true.
street - [String]!
An array containing the street for the billing or shipping address.
suffix - String
A value such as Sr., Jr., or III.
telephone - String
The telephone number for the billing or shipping address.
vat_id - String
The customer's Tax/VAT number (for corporate customers).

Example

{
  "city": "xyz789",
  "company": "xyz789",
  "country_code": "xyz789",
  "custom_attributes": [AttributeValueInput],
  "fax": "abc123",
  "firstname": "xyz789",
  "lastname": "abc123",
  "middlename": "abc123",
  "postcode": "xyz789",
  "prefix": "xyz789",
  "region": "abc123",
  "region_id": 123,
  "save_in_address_book": false,
  "street": ["abc123"],
  "suffix": "xyz789",
  "telephone": "xyz789",
  "vat_id": "abc123"
}

NegotiableQuoteAddressInterface

Fields

Field Name
Description
city - String!
The company's city or town.
company - String
The company name associated with the shipping/billing address.
country - NegotiableQuoteAddressCountry!
The company's country.
custom_attributes - [AttributeValueInterface]
The custom attribute values of the billing or shipping negotiable quote address.
customer_address_uid - ID
The unique ID from the customer's address book that uniquely identifies the address.
fax - String
The fax number of the customer.
firstname - String!
The first name of the company user.
lastname - String!
The last name of the company user.
middlename - String
The middle name of the person associated with the billing/shipping address.
postcode - String
The company's ZIP or postal code.
prefix - String
An honorific, such as Dr., Mr., or Mrs.
region - NegotiableQuoteAddressRegion
An object containing the region name, region code, and region ID.
street - [String]!
An array of strings that define the street number and name.
suffix - String
A value such as Sr., Jr., or III.
telephone - String
The customer's telephone number.
uid - ID!
The unique identifier of the negotiable quote address.
vat_id - String
The customer's Tax/VAT number (for corporate customers).

Possible Types

NegotiableQuoteAddressInterface Types
NegotiableQuoteBillingAddress
NegotiableQuoteShippingAddress

Example

{
  "city": "xyz789",
  "company": "abc123",
  "country": NegotiableQuoteAddressCountry,
  "custom_attributes": [AttributeValueInterface],
  "customer_address_uid": 4,
  "fax": "xyz789",
  "firstname": "xyz789",
  "lastname": "xyz789",
  "middlename": "abc123",
  "postcode": "xyz789",
  "prefix": "abc123",
  "region": NegotiableQuoteAddressRegion,
  "street": ["abc123"],
  "suffix": "xyz789",
  "telephone": "abc123",
  "uid": "4",
  "vat_id": "abc123"
}

NegotiableQuoteAddressRegion

Defines the company's state or province.

Fields

Field Name
Description
code - String
The address region code.
label - String
The display name of the region.
region_id - Int
The unique ID for a pre-defined region.

Example

{
  "code": "xyz789",
  "label": "xyz789",
  "region_id": 987
}

NegotiableQuoteBillingAddress

Fields

Field Name
Description
city - String!
The company's city or town.
company - String
The company name associated with the shipping/billing address.
country - NegotiableQuoteAddressCountry!
The company's country.
custom_attributes - [AttributeValueInterface]
The custom attribute values of the billing or shipping negotiable quote address.
customer_address_uid - ID
The unique ID from the customer's address book that uniquely identifies the address.
fax - String
The fax number of the customer.
firstname - String!
The first name of the company user.
lastname - String!
The last name of the company user.
middlename - String
The middle name of the person associated with the billing/shipping address.
postcode - String
The company's ZIP or postal code.
prefix - String
An honorific, such as Dr., Mr., or Mrs.
region - NegotiableQuoteAddressRegion
An object containing the region name, region code, and region ID.
street - [String]!
An array of strings that define the street number and name.
suffix - String
A value such as Sr., Jr., or III.
telephone - String
The customer's telephone number.
uid - ID!
The unique identifier of the negotiable quote address.
vat_id - String
The customer's Tax/VAT number (for corporate customers).

Example

{
  "city": "abc123",
  "company": "xyz789",
  "country": NegotiableQuoteAddressCountry,
  "custom_attributes": [AttributeValueInterface],
  "customer_address_uid": 4,
  "fax": "xyz789",
  "firstname": "xyz789",
  "lastname": "xyz789",
  "middlename": "xyz789",
  "postcode": "abc123",
  "prefix": "xyz789",
  "region": NegotiableQuoteAddressRegion,
  "street": ["xyz789"],
  "suffix": "xyz789",
  "telephone": "abc123",
  "uid": 4,
  "vat_id": "abc123"
}

NegotiableQuoteBillingAddressInput

Defines the billing address.

Input Fields

Input Field
Description
address - NegotiableQuoteAddressInput
Defines a billing address.
customer_address_uid - ID
The unique ID of a CustomerAddress object.
same_as_shipping - Boolean
Indicates whether to set the billing address to be the same as the existing shipping address on the negotiable quote.
use_for_shipping - Boolean
Indicates whether to set the shipping address to be the same as this billing address.

Example

{
  "address": NegotiableQuoteAddressInput,
  "customer_address_uid": 4,
  "same_as_shipping": true,
  "use_for_shipping": false
}

NegotiableQuoteComment

Contains a single plain text comment from either the buyer or seller.

Fields

Field Name
Description
attachments - [NegotiableQuoteCommentAttachment]!
Negotiable quote comment file attachments.
author - NegotiableQuoteUser!
The first and last name of the commenter.
created_at - String!
Timestamp indicating when the comment was created.
creator_type - NegotiableQuoteCommentCreatorType!
Indicates whether a buyer or seller commented.
text - String!
The plain text comment.
uid - ID!
The unique ID of a NegotiableQuoteComment object.

Example

{
  "attachments": [NegotiableQuoteCommentAttachment],
  "author": NegotiableQuoteUser,
  "created_at": "abc123",
  "creator_type": "BUYER",
  "text": "xyz789",
  "uid": 4
}

NegotiableQuoteCommentAttachment

Negotiable quote comment file attachment.

Fields

Field Name
Description
name - String!
Negotiable quote comment attachment file name.
url - String!
Negotiable quote comment attachment file url.

Example

{
  "name": "xyz789",
  "url": "abc123"
}

NegotiableQuoteCommentAttachmentInput

Negotiable quote comment file attachment.

Input Fields

Input Field
Description
key - String!
Negotiable quote comment attachment file key.

Example

{"key": "abc123"}

NegotiableQuoteCommentCreatorType

Values

Enum Value
Description
BUYER
SELLER

Example

""BUYER""

NegotiableQuoteCommentInput

Contains the commend provided by the buyer.

Input Fields

Input Field
Description
attachments - [NegotiableQuoteCommentAttachmentInput]
Negotiable quote comment file attachments.
comment - String!
The comment provided by the buyer.

Example

{
  "attachments": [NegotiableQuoteCommentAttachmentInput],
  "comment": "xyz789"
}

NegotiableQuoteCustomLogChange

Contains custom log entries added by third-party extensions.

Fields

Field Name
Description
new_value - String!
The new entry content.
old_value - String
The previous entry in the custom log.
title - String!
The title of the custom log entry.

Example

{
  "new_value": "abc123",
  "old_value": "abc123",
  "title": "xyz789"
}

NegotiableQuoteFilterInput

Defines a filter to limit the negotiable quotes to return.

Input Fields

Input Field
Description
ids - FilterEqualTypeInput
Filter by the ID of one or more negotiable quotes.
name - FilterMatchTypeInput
Filter by the negotiable quote name.

Example

{
  "ids": FilterEqualTypeInput,
  "name": FilterMatchTypeInput
}

NegotiableQuoteHistoryChanges

Contains a list of changes to a negotiable quote.

Fields

Field Name
Description
comment_added - NegotiableQuoteHistoryCommentChange
The comment provided with a change in the negotiable quote history.
custom_changes - NegotiableQuoteCustomLogChange
Lists log entries added by third-party extensions.
expiration - NegotiableQuoteHistoryExpirationChange
The expiration date of the negotiable quote before and after a change in the quote history.
products_removed - NegotiableQuoteHistoryProductsRemovedChange
Lists products that were removed as a result of a change in the quote history.
statuses - NegotiableQuoteHistoryStatusesChange
The status before and after a change in the negotiable quote history.
total - NegotiableQuoteHistoryTotalChange
The total amount of the negotiable quote before and after a change in the quote history.

Example

{
  "comment_added": NegotiableQuoteHistoryCommentChange,
  "custom_changes": NegotiableQuoteCustomLogChange,
  "expiration": NegotiableQuoteHistoryExpirationChange,
  "products_removed": NegotiableQuoteHistoryProductsRemovedChange,
  "statuses": NegotiableQuoteHistoryStatusesChange,
  "total": NegotiableQuoteHistoryTotalChange
}

NegotiableQuoteHistoryCommentChange

Contains a comment submitted by a seller or buyer.

Fields

Field Name
Description
comment - String!
A plain text comment submitted by a seller or buyer.

Example

{"comment": "xyz789"}

NegotiableQuoteHistoryEntry

Contains details about a change for a negotiable quote.

Fields

Field Name
Description
author - NegotiableQuoteUser!
The person who made a change in the status of the negotiable quote.
change_type - NegotiableQuoteHistoryEntryChangeType!
An enum that describes the why the entry in the negotiable quote history changed status.
changes - NegotiableQuoteHistoryChanges
The set of changes in the negotiable quote.
created_at - String
Timestamp indicating when the negotiable quote entry was created.
item_note - HistoryItemNoteData
Item note data that is added to the negotiable quote history object.
uid - ID!
The unique ID of a NegotiableQuoteHistoryEntry object.

Example

{
  "author": NegotiableQuoteUser,
  "change_type": "CREATED",
  "changes": NegotiableQuoteHistoryChanges,
  "created_at": "xyz789",
  "item_note": HistoryItemNoteData,
  "uid": "4"
}

NegotiableQuoteHistoryEntryChangeType

Values

Enum Value
Description
CREATED
UPDATED
CLOSED
UPDATED_BY_SYSTEM

Example

""CREATED""

NegotiableQuoteHistoryExpirationChange

Contains a new expiration date and the previous date.

Fields

Field Name
Description
new_expiration - String
The expiration date after the change. The value will be 'null' if not set.
old_expiration - String
The previous expiration date. The value will be 'null' if not previously set.

Example

{
  "new_expiration": "abc123",
  "old_expiration": "abc123"
}

NegotiableQuoteHistoryProductsRemovedChange

Contains lists of products that have been removed from the catalog and negotiable quote.

Fields

Field Name
Description
products_removed_from_catalog - [ID]
A list of product IDs the seller removed from the catalog.
products_removed_from_quote - [ProductInterface]
A list of products removed from the negotiable quote by either the buyer or the seller. (Deprecated: Product information is part of a composable Catalog Service.)

Example

{
  "products_removed_from_catalog": ["4"],
  "products_removed_from_quote": [ProductInterface]
}

NegotiableQuoteHistoryStatusChange

Lists a new status change applied to a negotiable quote and the previous status.

Fields

Field Name
Description
new_status - NegotiableQuoteStatus!
The updated status.
old_status - NegotiableQuoteStatus
The previous status. The value will be null for the first history entry in a negotiable quote.

Example

{"new_status": "SUBMITTED", "old_status": "SUBMITTED"}

NegotiableQuoteHistoryStatusesChange

Contains a list of status changes that occurred for the negotiable quote.

Fields

Field Name
Description
changes - [NegotiableQuoteHistoryStatusChange]!
A list of status changes.

Example

{"changes": [NegotiableQuoteHistoryStatusChange]}

NegotiableQuoteHistoryTotalChange

Contains a new price and the previous price.

Fields

Field Name
Description
new_price - Money
The total price as a result of the change.
old_price - Money
The previous total price on the negotiable quote.

Example

{
  "new_price": Money,
  "old_price": Money
}

NegotiableQuoteInvalidStateError

An error indicating that an operation was attempted on a negotiable quote in an invalid state.

Fields

Field Name
Description
message - String!
The returned error message.

Example

{"message": "abc123"}

NegotiableQuoteItemQuantityInput

Specifies the updated quantity of an item.

Input Fields

Input Field
Description
quantity - Float!
The new quantity of the negotiable quote item.
quote_item_uid - ID!
The unique ID of a CartItemInterface object.

Example

{"quantity": 123.45, "quote_item_uid": 4}

NegotiableQuotePaymentMethodInput

Defines the payment method to be applied to the negotiable quote.

Input Fields

Input Field
Description
code - String!
Payment method code
purchase_order_number - String
The purchase order number. Optional for most payment methods.

Example

{
  "code": "xyz789",
  "purchase_order_number": "xyz789"
}

Contains a reference document link for a negotiable quote template.

Fields

Field Name
Description
document_identifier - String
The identifier of the reference document.
document_name - String!
The title of the reference document.
link_id - ID!
The unique ID of a reference document link.
reference_document_url - String!
The URL of the reference document.

Example

{
  "document_identifier": "xyz789",
  "document_name": "xyz789",
  "link_id": 4,
  "reference_document_url": "xyz789"
}

NegotiableQuoteShippingAddress

Fields

Field Name
Description
available_shipping_methods - [AvailableShippingMethod]
An array of shipping methods available to the buyer.
city - String!
The company's city or town.
company - String
The company name associated with the shipping/billing address.
country - NegotiableQuoteAddressCountry!
The company's country.
custom_attributes - [AttributeValueInterface]
The custom attribute values of the billing or shipping negotiable quote address.
customer_address_uid - ID
The unique ID from the customer's address book that uniquely identifies the address.
fax - String
The fax number of the customer.
firstname - String!
The first name of the company user.
lastname - String!
The last name of the company user.
middlename - String
The middle name of the person associated with the billing/shipping address.
postcode - String
The company's ZIP or postal code.
prefix - String
An honorific, such as Dr., Mr., or Mrs.
region - NegotiableQuoteAddressRegion
An object containing the region name, region code, and region ID.
selected_shipping_method - SelectedShippingMethod
The selected shipping method.
street - [String]!
An array of strings that define the street number and name.
suffix - String
A value such as Sr., Jr., or III.
telephone - String
The customer's telephone number.
uid - ID!
The unique identifier of the negotiable quote address.
vat_id - String
The customer's Tax/VAT number (for corporate customers).

Example

{
  "available_shipping_methods": [AvailableShippingMethod],
  "city": "xyz789",
  "company": "abc123",
  "country": NegotiableQuoteAddressCountry,
  "custom_attributes": [AttributeValueInterface],
  "customer_address_uid": "4",
  "fax": "abc123",
  "firstname": "abc123",
  "lastname": "xyz789",
  "middlename": "abc123",
  "postcode": "abc123",
  "prefix": "xyz789",
  "region": NegotiableQuoteAddressRegion,
  "selected_shipping_method": SelectedShippingMethod,
  "street": ["abc123"],
  "suffix": "xyz789",
  "telephone": "xyz789",
  "uid": 4,
  "vat_id": "xyz789"
}

NegotiableQuoteShippingAddressInput

Defines shipping addresses for the negotiable quote.

Input Fields

Input Field
Description
address - NegotiableQuoteAddressInput
A shipping address.
customer_address_uid - ID
An ID from the company user's address book that uniquely identifies the address to be used for shipping.
customer_notes - String
Text provided by the company user.

Example

{
  "address": NegotiableQuoteAddressInput,
  "customer_address_uid": "4",
  "customer_notes": "xyz789"
}

NegotiableQuoteSortInput

Defines the field to use to sort a list of negotiable quotes.

Input Fields

Input Field
Description
sort_direction - SortEnum!
Whether to return results in ascending or descending order.
sort_field - NegotiableQuoteSortableField!
The specified sort field.

Example

{"sort_direction": "ASC", "sort_field": "QUOTE_NAME"}

NegotiableQuoteSortableField

Values

Enum Value
Description
QUOTE_NAME
Sorts negotiable quotes by name.
CREATED_AT
Sorts negotiable quotes by the dates they were created.
UPDATED_AT
Sorts negotiable quotes by the dates they were last modified.

Example

""QUOTE_NAME""

NegotiableQuoteStatus

Values

Enum Value
Description
SUBMITTED
PENDING
UPDATED
OPEN
ORDERED
CLOSED
DECLINED
EXPIRED
DRAFT

Example

""SUBMITTED""

NegotiableQuoteTemplate

Contains details about a negotiable quote template.

Fields

Field Name
Description
buyer - NegotiableQuoteUser!
The first and last name of the buyer.
comments - [NegotiableQuoteComment]
A list of comments made by the buyer and seller.
created_at - String!
Timestamp indicating when the negotiable quote template was created.
expiration_date - String!
The expiration period of the negotiable quote template.
history - [NegotiableQuoteHistoryEntry]
A list of status and price changes for the negotiable quote template.
historyV2 - [NegotiableQuoteTemplateHistoryEntry]
is_min_max_qty_used - Boolean!
Indicates whether the minimum and maximum quantity settings are used.
is_virtual - Boolean!
Indicates whether the negotiable quote template contains only virtual products.
items - [CartItemInterface]
The list of items in the negotiable quote template.
max_order_commitment - Int!
Commitment for maximum orders
min_order_commitment - Int!
Commitment for minimum orders
name - String!
The title assigned to the negotiable quote template.
notifications - [QuoteTemplateNotificationMessage]
A list of notifications for the negotiable quote template.
prices - CartPrices
A set of subtotals and totals applied to the negotiable quote template.
reference_document_links - [NegotiableQuoteReferenceDocumentLink]
A list of reference document links for the negotiable quote template.
sales_rep_name - String!
The first and last name of the sales representative.
shipping_addresses - [NegotiableQuoteShippingAddress]!
A list of shipping addresses applied to the negotiable quote template.
status - String!
The status of the negotiable quote template.
template_id - ID!
The unique ID of a NegotiableQuoteTemplate object.
total_quantity - Float!
The total number of items in the negotiable quote template.
uid - ID!
The unique ID of a NegotiableQuoteTemplate object.
updated_at - String!
Timestamp indicating when the negotiable quote template was updated.

Example

{
  "buyer": NegotiableQuoteUser,
  "comments": [NegotiableQuoteComment],
  "created_at": "abc123",
  "expiration_date": "abc123",
  "history": [NegotiableQuoteHistoryEntry],
  "historyV2": [NegotiableQuoteTemplateHistoryEntry],
  "is_min_max_qty_used": false,
  "is_virtual": false,
  "items": [CartItemInterface],
  "max_order_commitment": 987,
  "min_order_commitment": 987,
  "name": "xyz789",
  "notifications": [QuoteTemplateNotificationMessage],
  "prices": CartPrices,
  "reference_document_links": [
    NegotiableQuoteReferenceDocumentLink
  ],
  "sales_rep_name": "abc123",
  "shipping_addresses": [NegotiableQuoteShippingAddress],
  "status": "xyz789",
  "template_id": "4",
  "total_quantity": 123.45,
  "uid": 4,
  "updated_at": "abc123"
}

NegotiableQuoteTemplateFilterInput

Defines a filter to limit the negotiable quotes to return.

Input Fields

Input Field
Description
state - FilterEqualTypeInput
Filter by state of one or more negotiable quote templates.
status - FilterEqualTypeInput
Filter by status of one or more negotiable quote templates.

Example

{
  "state": FilterEqualTypeInput,
  "status": FilterEqualTypeInput
}

NegotiableQuoteTemplateGridItem

Contains data for a negotiable quote template in a grid.

Fields

Field Name
Description
activated_at - String!
The date and time the negotiable quote template was activated.
company_name - String!
Company name the quote template is assigned to
created_at - String!
Timestamp indicating when the negotiable quote template was created.
expiration_date - String!
The expiration period of the negotiable quote template.
is_min_max_qty_used - Boolean!
Indicates whether the minimum and maximum quantity settings are used.
last_ordered_at - String!
Timestamp indicating when the last negotiable quote template order was placed.
last_shared_at - String!
The date and time the negotiable quote template was last shared.
max_order_commitment - Int!
Commitment for maximum orders
min_negotiated_grand_total - Float!
The minimum negotiated grand total of the negotiable quote template.
min_order_commitment - Int!
Commitment for minimum orders
name - String!
The title assigned to the negotiable quote template.
orders_placed - Int!
The number of orders placed for the negotiable quote template.
prices - CartPrices
A set of subtotals and totals applied to the negotiable quote template.
sales_rep_name - String!
The first and last name of the sales representative.
state - String!
State of the negotiable quote template.
status - String!
The status of the negotiable quote template.
submitted_by - String!
The first and last name of the buyer.
template_id - ID!
The unique ID of a NegotiableQuoteTemplate object.
uid - ID!
The unique ID of a NegotiableQuoteTemplate object.
updated_at - String!
Timestamp indicating when the negotiable quote template was updated.

Example

{
  "activated_at": "xyz789",
  "company_name": "xyz789",
  "created_at": "abc123",
  "expiration_date": "abc123",
  "is_min_max_qty_used": false,
  "last_ordered_at": "abc123",
  "last_shared_at": "xyz789",
  "max_order_commitment": 123,
  "min_negotiated_grand_total": 123.45,
  "min_order_commitment": 987,
  "name": "xyz789",
  "orders_placed": 987,
  "prices": CartPrices,
  "sales_rep_name": "xyz789",
  "state": "abc123",
  "status": "xyz789",
  "submitted_by": "abc123",
  "template_id": 4,
  "uid": "4",
  "updated_at": "xyz789"
}

NegotiableQuoteTemplateHistoryChanges

Contains a list of changes to a negotiable quote template.

Fields

Field Name
Description
comment_added - NegotiableQuoteHistoryCommentChange
The comment provided with a change in the negotiable quote history.
custom_changes - NegotiableQuoteCustomLogChange
Lists log entries added by third-party extensions.
expiration - NegotiableQuoteHistoryExpirationChange
The expiration date of the negotiable quote before and after a change in the quote history.
products_removed - NegotiableQuoteHistoryProductsRemovedChange
Lists products that were removed as a result of a change in the quote history.
statuses - NegotiableQuoteTemplateHistoryStatusesChange
The status before and after a change in the negotiable quote template history.
total - NegotiableQuoteHistoryTotalChange
The total amount of the negotiable quote before and after a change in the quote history.

Example

{
  "comment_added": NegotiableQuoteHistoryCommentChange,
  "custom_changes": NegotiableQuoteCustomLogChange,
  "expiration": NegotiableQuoteHistoryExpirationChange,
  "products_removed": NegotiableQuoteHistoryProductsRemovedChange,
  "statuses": NegotiableQuoteTemplateHistoryStatusesChange,
  "total": NegotiableQuoteHistoryTotalChange
}

NegotiableQuoteTemplateHistoryEntry

Contains details about a change for a negotiable quote template.

Fields

Field Name
Description
author - NegotiableQuoteUser!
The person who made a change in the status of the negotiable quote.
change_type - NegotiableQuoteHistoryEntryChangeType!
An enum that specifies the reason for a status change in the negotiable quote history entry.
changes - NegotiableQuoteTemplateHistoryChanges
The set of changes in the negotiable quote template.
created_at - String!
Timestamp indicating when the negotiable quote entry was created.
uid - ID!
The unique ID of a NegotiableQuoteHistoryEntry object.

Example

{
  "author": NegotiableQuoteUser,
  "change_type": "CREATED",
  "changes": NegotiableQuoteTemplateHistoryChanges,
  "created_at": "abc123",
  "uid": 4
}

NegotiableQuoteTemplateHistoryStatusChange

Lists a new status change applied to a negotiable quote template and the previous status.

Fields

Field Name
Description
new_status - String!
The updated status.
old_status - String
The previous status. The value will be null for the first history entry in a negotiable quote.

Example

{
  "new_status": "xyz789",
  "old_status": "xyz789"
}

NegotiableQuoteTemplateHistoryStatusesChange

Contains a list of status changes that occurred for the negotiable quote template.

Fields

Field Name
Description
changes - [NegotiableQuoteTemplateHistoryStatusChange]!
A list of status changes.

Example

{"changes": [NegotiableQuoteTemplateHistoryStatusChange]}

NegotiableQuoteTemplateItemQuantityInput

Specifies the updated quantity of an item.

Input Fields

Input Field
Description
item_id - ID!
The unique ID of a CartItemInterface object.
max_qty - Float
The new max quantity of the negotiable quote template item. Only used if is_min_max_qty_used is true on the template.
min_qty - Float
The new min quantity of the negotiable quote template item. Only used if is_min_max_qty_used is true on the template.
quantity - Float!
The new quantity of the negotiable quote item.

Example

{"item_id": 4, "max_qty": 987.65, "min_qty": 987.65, "quantity": 123.45}

NegotiableQuoteTemplateReferenceDocumentLinkInput

Defines the reference document link to add to a negotiable quote template.

Input Fields

Input Field
Description
document_identifier - String
The identifier of the reference document.
document_name - String!
The title of the reference document.
link_id - ID
The unique ID of a NegotiableQuoteReferenceDocumentLink object.
reference_document_url - String!
The URL of the reference document.

Example

{
  "document_identifier": "xyz789",
  "document_name": "abc123",
  "link_id": "4",
  "reference_document_url": "abc123"
}

NegotiableQuoteTemplateShippingAddressInput

Defines shipping addresses for the negotiable quote template.

Input Fields

Input Field
Description
address - NegotiableQuoteAddressInput
A shipping address.
customer_address_uid - ID
An ID from the company user's address book that uniquely identifies the address to be used for shipping.
customer_notes - String
Text provided by the company user.

Example

{
  "address": NegotiableQuoteAddressInput,
  "customer_address_uid": 4,
  "customer_notes": "abc123"
}

NegotiableQuoteTemplateSortInput

Defines the field to use to sort a list of negotiable quotes.

Input Fields

Input Field
Description
sort_direction - SortEnum!
Whether to return results in ascending or descending order.
sort_field - NegotiableQuoteTemplateSortableField!
The specified sort field.

Example

{"sort_direction": "ASC", "sort_field": "TEMPLATE_ID"}

NegotiableQuoteTemplateSortableField

Values

Enum Value
Description
TEMPLATE_ID
Sorts negotiable quote templates by template id.
LAST_SHARED_AT
Sorts negotiable quote templates by the date they were last shared.

Example

""TEMPLATE_ID""

NegotiableQuoteTemplatesOutput

Contains a list of negotiable templates that match the specified filter.

Fields

Field Name
Description
items - [NegotiableQuoteTemplateGridItem]!
A list of negotiable quote templates
page_info - SearchResultPageInfo!
Contains pagination metadata
sort_fields - SortFields
Contains the default sort field and all available sort fields.
total_count - Int!
The number of negotiable quote templates returned

Example

{
  "items": [NegotiableQuoteTemplateGridItem],
  "page_info": SearchResultPageInfo,
  "sort_fields": SortFields,
  "total_count": 123
}

NegotiableQuoteUidNonFatalResultInterface

Fields

Field Name
Description
quote_uid - ID!
The unique ID of a NegotiableQuote object.

Possible Types

NegotiableQuoteUidNonFatalResultInterface Types
NegotiableQuoteUidOperationSuccess

Example

{"quote_uid": 4}

NegotiableQuoteUidOperationSuccess

Contains details about a successful operation on a negotiable quote.

Fields

Field Name
Description
quote_uid - ID!
The unique ID of a NegotiableQuote object.

Example

{"quote_uid": "4"}

NegotiableQuoteUser

A limited view of a Buyer or Seller in the negotiable quote process.

Fields

Field Name
Description
firstname - String!
The first name of the buyer or seller making a change.
lastname - String!
The buyer's or seller's last name.

Example

{
  "firstname": "xyz789",
  "lastname": "abc123"
}

NegotiableQuotesOutput

Contains a list of negotiable that match the specified filter.

Fields

Field Name
Description
items - [NegotiableQuote]!
A list of negotiable quotes
page_info - SearchResultPageInfo!
Contains pagination metadata
sort_fields - SortFields
Contains the default sort field and all available sort fields.
total_count - Int!
The number of negotiable quotes returned

Example

{
  "items": [NegotiableQuote],
  "page_info": SearchResultPageInfo,
  "sort_fields": SortFields,
  "total_count": 123
}

NoSuchEntityUidError

Contains an error message when an invalid UID was specified.

Fields

Field Name
Description
message - String!
The returned error message.
uid - ID!
The specified invalid unique ID of an object.

Example

{
  "message": "xyz789",
  "uid": "4"
}

NumericOperatorInput

Input Fields

Input Field
Description
type - NumericOperatorType

Example

{"type": "UNKNOWN_NUMERIC_OPERATOR"}

NumericOperatorType

Values

Enum Value
Description
UNKNOWN_NUMERIC_OPERATOR
GREATER_THAN_CURRENT
LESS_THAN_CURRENT

Example

""UNKNOWN_NUMERIC_OPERATOR""

OopePaymentMethodConfig

Fields

Field Name
Description
backend_integration_url - String!
The backend URL to dispatch requests related to the payment method.
custom_config - [CustomConfigKeyValue]!
Custom config key values.

Example

{
  "backend_integration_url": "xyz789",
  "custom_config": [CustomConfigKeyValue]
}

OpenNegotiableQuoteTemplateInput

Specifies the quote template id to open quote template.

Input Fields

Input Field
Description
template_id - ID!
The unique ID of a NegotiableQuoteTemplate object.

Example

{"template_id": "4"}

OperatorInput

Input Fields

Input Field
Description
rangeOperator - RangeOperatorInput
customOperator - CustomOperatorInput
isOperator - IsOperatorInput
numericOperator - NumericOperatorInput
stringOperator - StringOperatorInput

Example

{
  "rangeOperator": RangeOperatorInput,
  "customOperator": CustomOperatorInput,
  "isOperator": IsOperatorInput,
  "numericOperator": NumericOperatorInput,
  "stringOperator": StringOperatorInput
}

Order

Contains the order ID.

Fields

Field Name
Description
order_number - String!
The unique ID for an Order object.

Example

{"order_number": "abc123"}

OrderActionType

The list of available order actions.

Values

Enum Value
Description
REORDER
CANCEL
RETURN

Example

""REORDER""

OrderAddress

Contains detailed information about an order's billing and shipping addresses.

Fields

Field Name
Description
city - String!
The city or town.
company - String
The customer's company.
country_code - CountryCodeEnum
The customer's country.
custom_attributesV2 - [AttributeValueInterface]!
Custom attributes assigned to the customer address.
fax - String
The fax number.
firstname - String!
The first name of the person associated with the shipping/billing address.
lastname - String!
The family name of the person associated with the shipping/billing address.
middlename - String
The middle name of the person associated with the shipping/billing address.
postcode - String
The customer's ZIP or postal code.
prefix - String
An honorific, such as Dr., Mr., or Mrs.
region - String
The state or province name.
region_id - ID
The unique ID for a Region object of a pre-defined region.
street - [String]!
An array of strings that define the street number and name.
suffix - String
A value such as Sr., Jr., or III.
telephone - String
The telephone number.
vat_id - String
The customer's Value-added tax (VAT) number (for corporate customers).

Example

{
  "city": "xyz789",
  "company": "xyz789",
  "country_code": "AF",
  "custom_attributesV2": [AttributeValueInterface],
  "fax": "abc123",
  "firstname": "abc123",
  "lastname": "abc123",
  "middlename": "xyz789",
  "postcode": "abc123",
  "prefix": "xyz789",
  "region": "abc123",
  "region_id": 4,
  "street": ["xyz789"],
  "suffix": "xyz789",
  "telephone": "abc123",
  "vat_id": "abc123"
}

OrderCustomerInfo

Fields

Field Name
Description
firstname - String!
First name of the customer
lastname - String
Last name of the customer
middlename - String
Middle name of the customer
prefix - String
Prefix of the customer
suffix - String
Suffix of the customer

Example

{
  "firstname": "abc123",
  "lastname": "abc123",
  "middlename": "xyz789",
  "prefix": "abc123",
  "suffix": "abc123"
}

OrderItem

Fields

Field Name
Description
custom_attributes - [CustomAttribute]
The custom attributes for the order item
discounts - [Discount]
The final discount information for the product.
eligible_for_return - Boolean
Indicates whether the order item is eligible to be in a return request.
entered_options - [OrderItemOption]
The entered option for the base product, such as a logo or image.
gift_message - GiftMessage
The selected gift message for the order item
gift_wrapping - GiftWrapping
The selected gift wrapping for the order item.
id - ID!
The unique ID for an OrderItemInterface object.
prices - OrderItemPrices
Contains details about the price of the item, including taxes and discounts.
product - ProductInterface
The ProductInterface object, which contains details about the base product (Deprecated: Product information is part of a composable Catalog Service.)
product_name - String
The name of the base product.
product_sale_price - Money!
The sale price of the base product, including selected options.
product_sku - String!
The SKU of the base product.
product_type - String
The type of product, such as simple, configurable, etc.
product_url_key - String
URL key of the base product.
quantity_canceled - Float
The number of canceled items.
quantity_invoiced - Float
The number of invoiced items.
quantity_ordered - Float
The number of units ordered for this item.
quantity_refunded - Float
The number of refunded items.
quantity_return_requested - Float
The requested return quantity of the item.
quantity_returned - Float
The number of returned items.
quantity_shipped - Float
The number of shipped items.
selected_options - [OrderItemOption]
The selected options for the base product, such as color or size.
status - String
The status of the order item.

Example

{
  "custom_attributes": [CustomAttribute],
  "discounts": [Discount],
  "eligible_for_return": true,
  "entered_options": [OrderItemOption],
  "gift_message": GiftMessage,
  "gift_wrapping": GiftWrapping,
  "id": 4,
  "prices": OrderItemPrices,
  "product": ProductInterface,
  "product_name": "xyz789",
  "product_sale_price": Money,
  "product_sku": "xyz789",
  "product_type": "xyz789",
  "product_url_key": "xyz789",
  "quantity_canceled": 987.65,
  "quantity_invoiced": 123.45,
  "quantity_ordered": 123.45,
  "quantity_refunded": 987.65,
  "quantity_return_requested": 987.65,
  "quantity_returned": 123.45,
  "quantity_shipped": 987.65,
  "selected_options": [OrderItemOption],
  "status": "xyz789"
}

OrderItemInterface

Order item details.

Fields

Field Name
Description
custom_attributes - [CustomAttribute]
The custom attributes for the order item
discounts - [Discount]
The final discount information for the product.
eligible_for_return - Boolean
Indicates whether the order item is eligible to be in a return request.
entered_options - [OrderItemOption]
The entered option for the base product, such as a logo or image.
gift_message - GiftMessage
The selected gift message for the order item
gift_wrapping - GiftWrapping
The selected gift wrapping for the order item.
id - ID!
The unique ID for an OrderItemInterface object.
prices - OrderItemPrices
Contains details about the price of the item, including taxes and discounts.
product - ProductInterface
The ProductInterface object, which contains details about the base product (Deprecated: Product information is part of a composable Catalog Service.)
product_name - String
The name of the base product.
product_sale_price - Money!
The sale price of the base product, including selected options.
product_sku - String!
The SKU of the base product.
product_type - String
The type of product, such as simple, configurable, etc.
product_url_key - String
URL key of the base product.
quantity_canceled - Float
The number of canceled items.
quantity_invoiced - Float
The number of invoiced items.
quantity_ordered - Float
The number of units ordered for this item.
quantity_refunded - Float
The number of refunded items.
quantity_return_requested - Float
The requested return quantity of the item.
quantity_returned - Float
The number of returned items.
quantity_shipped - Float
The number of shipped items.
selected_options - [OrderItemOption]
The selected options for the base product, such as color or size.
status - String
The status of the order item.

Possible Types

Example

{
  "custom_attributes": [CustomAttribute],
  "discounts": [Discount],
  "eligible_for_return": true,
  "entered_options": [OrderItemOption],
  "gift_message": GiftMessage,
  "gift_wrapping": GiftWrapping,
  "id": "4",
  "prices": OrderItemPrices,
  "product": ProductInterface,
  "product_name": "xyz789",
  "product_sale_price": Money,
  "product_sku": "abc123",
  "product_type": "abc123",
  "product_url_key": "abc123",
  "quantity_canceled": 123.45,
  "quantity_invoiced": 987.65,
  "quantity_ordered": 987.65,
  "quantity_refunded": 987.65,
  "quantity_return_requested": 123.45,
  "quantity_returned": 123.45,
  "quantity_shipped": 123.45,
  "selected_options": [OrderItemOption],
  "status": "xyz789"
}

OrderItemOption

Represents order item options like selected or entered.

Fields

Field Name
Description
label - String!
The name of the option.
value - String!
The value of the option.

Example

{
  "label": "abc123",
  "value": "abc123"
}

OrderItemPrices

Fields

Field Name
Description
discounts - [Discount]
An array of discounts to be applied to the cart item.
fixed_product_taxes - [FixedProductTax]!
original_price - Money
The original price of the item.
original_price_including_tax - Money
The original price of the item including tax.
original_row_total - Money!
The value of the original price multiplied by the quantity of the item.
original_row_total_including_tax - Money!
The value of the original price multiplied by the quantity of the item including tax.
price - Money!
The price of the item before any discounts were applied. The price that might include tax, depending on the configured display settings for cart.
price_including_tax - Money!
The price of the item before any discounts were applied. The price that might include tax, depending on the configured display settings for cart.
row_total - Money!
The value of the price multiplied by the quantity of the item.
row_total_including_tax - Money!
The value of row_total plus the tax applied to the item.
total_item_discount - Money!
The total of all discounts applied to the item.

Example

{
  "discounts": [Discount],
  "fixed_product_taxes": [FixedProductTax],
  "original_price": Money,
  "original_price_including_tax": Money,
  "original_row_total": Money,
  "original_row_total_including_tax": Money,
  "price": Money,
  "price_including_tax": Money,
  "row_total": Money,
  "row_total_including_tax": Money,
  "total_item_discount": Money
}

OrderPaymentMethod

Contains details about the payment method used to pay for the order.

Fields

Field Name
Description
additional_data - [KeyValue]
Additional data per payment method type.
name - String!
The label that describes the payment method.
type - String!
The payment method code that indicates how the order was paid for.

Example

{
  "additional_data": [KeyValue],
  "name": "abc123",
  "type": "abc123"
}

OrderShipment

Contains order shipment details.

Fields

Field Name
Description
comments - [SalesCommentItem]
Comments added to the shipment.
id - ID!
The unique ID for a OrderShipment object.
items - [ShipmentItemInterface]
An array of items included in the shipment.
number - String!
The sequential credit shipment number.
tracking - [ShipmentTracking]
An array of shipment tracking details.

Example

{
  "comments": [SalesCommentItem],
  "id": 4,
  "items": [ShipmentItemInterface],
  "number": "abc123",
  "tracking": [ShipmentTracking]
}

OrderTokenInput

Input to retrieve an order based on token.

Input Fields

Input Field
Description
token - String!
Order token.

Example

{"token": "abc123"}

OrderTotal

Contains details about the sales total amounts used to calculate the final price.

Fields

Field Name
Description
base_grand_total - Money!
The final base grand total amount in the base currency.
discounts - [Discount]
The applied discounts to the order.
gift_options - GiftOptionsPrices
grand_total - Money!
The final total amount, including shipping, discounts, and taxes.
grand_total_excl_tax - Money!
The grand total of the order, excluding taxes.
shipping_handling - ShippingHandling
Details about the shipping and handling costs for the order.
subtotal_excl_tax - Money!
The subtotal of the order, excluding taxes.
subtotal_incl_tax - Money!
The subtotal of the order, including taxes.
taxes - [TaxItem]
The order tax details.
total_giftcard - Money
The gift card balance applied to the order.
total_reward_points - Money
The total reward points applied to the order.
total_shipping - Money!
The shipping amount for the order.
total_store_credit - Money
The total store credit applied to the order.
total_tax - Money!
The amount of tax applied to the order.

Example

{
  "base_grand_total": Money,
  "discounts": [Discount],
  "gift_options": GiftOptionsPrices,
  "grand_total": Money,
  "grand_total_excl_tax": Money,
  "shipping_handling": ShippingHandling,
  "subtotal_excl_tax": Money,
  "subtotal_incl_tax": Money,
  "taxes": [TaxItem],
  "total_giftcard": Money,
  "total_reward_points": Money,
  "total_shipping": Money,
  "total_store_credit": Money,
  "total_tax": Money
}

PageType

Type of page on which recommendations are requested

Values

Enum Value
Description
CMS
Cart
Category
(Deprecated: This field is deprecated and will be removed.)
Checkout
PageBuilder
Product

Example

""CMS""

PaymentAttributeInput

Defines the payment attribute.

Input Fields

Input Field
Description
key - String!
The code of the attribute.
value - String!
The value of the attribute.

Example

{
  "key": "xyz789",
  "value": "abc123"
}

PaymentConfigItem

Contains payment fields that are common to all types of payment methods.

Fields

Field Name
Description
code - String
The payment method code as defined in the payment gateway
is_visible - Boolean
Indicates whether the payment method is displayed
payment_intent - String
Defines the payment intent (Authorize or Capture
sdk_params - [SDKParams]
The PayPal parameters required to load the JS SDK
sort_order - String
The relative order the payment method is displayed on the checkout page
title - String
The name displayed for the payment method

Possible Types

Example

{
  "code": "abc123",
  "is_visible": false,
  "payment_intent": "abc123",
  "sdk_params": [SDKParams],
  "sort_order": "xyz789",
  "title": "xyz789"
}

PaymentConfigOutput

Retrieves the payment configuration for a given location

Fields

Field Name
Description
apple_pay - ApplePayConfig
ApplePay payment method configuration
fastlane - FastlaneConfig
Fastlane payment method configuration
google_pay - GooglePayConfig
GooglePay payment method configuration
hosted_fields - HostedFieldsConfig
Hosted fields payment method configuration
smart_buttons - SmartButtonsConfig
Smart Buttons payment method configuration

Example

{
  "apple_pay": ApplePayConfig,
  "fastlane": FastlaneConfig,
  "google_pay": GooglePayConfig,
  "hosted_fields": HostedFieldsConfig,
  "smart_buttons": SmartButtonsConfig
}

PaymentLocation

Defines the origin location for that payment request

Values

Enum Value
Description
PRODUCT_DETAIL
MINICART
CART
CHECKOUT
ADMIN

Example

""PRODUCT_DETAIL""

PaymentMethodInput

Defines the payment method.

Input Fields

Input Field
Description
additional_data - [PaymentAttributeInput]
Additional data related to the payment method.
code - String!
The internal name for the payment method.
payment_services_paypal_apple_pay - ApplePayMethodInput
Required input for Apple Pay button
payment_services_paypal_fastlane - FastlaneMethodInput
Required input for fastlane
payment_services_paypal_google_pay - GooglePayMethodInput
Required input for Google Pay button
payment_services_paypal_hosted_fields - HostedFieldsInput
Required input for Hosted Fields
payment_services_paypal_smart_buttons - SmartButtonMethodInput
Required input for Smart buttons
payment_services_paypal_vault - VaultMethodInput
Required input for vault
purchase_order_number - String
The purchase order number. Optional for most payment methods.

Example

{
  "additional_data": [PaymentAttributeInput],
  "code": "xyz789",
  "payment_services_paypal_apple_pay": ApplePayMethodInput,
  "payment_services_paypal_fastlane": FastlaneMethodInput,
  "payment_services_paypal_google_pay": GooglePayMethodInput,
  "payment_services_paypal_hosted_fields": HostedFieldsInput,
  "payment_services_paypal_smart_buttons": SmartButtonMethodInput,
  "payment_services_paypal_vault": VaultMethodInput,
  "purchase_order_number": "abc123"
}

PaymentOrderOutput

Contains the payment order details

Fields

Field Name
Description
id - String
PayPal order ID
mp_order_id - String
The order ID generated by Payment Services
payment_source_details - PaymentSourceDetails
Details about the card used on the order
status - String
The status of the payment order

Example

{
  "id": "xyz789",
  "mp_order_id": "abc123",
  "payment_source_details": PaymentSourceDetails,
  "status": "xyz789"
}

PaymentSDKParamsItem

Fields

Field Name
Description
code - String
The payment method code used in the order
params - [SDKParams]
The payment SDK parameters

Example

{
  "code": "xyz789",
  "params": [SDKParams]
}

PaymentSourceDetails

Fields

Field Name
Description
card - Card
Details about the card used on the order

Example

{"card": Card}

PaymentSourceInput

The payment source information

Input Fields

Input Field
Description
card - CardPaymentSourceInput!
The card payment source information

Example

{"card": CardPaymentSourceInput}

PaymentSourceOutput

The payment source information

Fields

Field Name
Description
card - CardPaymentSourceOutput!
The card payment source information

Example

{"card": CardPaymentSourceOutput}

PaymentToken

The stored payment method available to the customer.

Fields

Field Name
Description
details - String
A description of the stored account details.
payment_method_code - String!
The payment method code associated with the token.
public_hash - String!
The public hash of the token.
type - PaymentTokenTypeEnum!
Specifies the payment token type.

Example

{
  "details": "abc123",
  "payment_method_code": "abc123",
  "public_hash": "xyz789",
  "type": "card"
}

PaymentTokenTypeEnum

The list of available payment token types.

Values

Enum Value
Description
card
phpcs:ignore Magento2.GraphQL.ValidArgumentName
account
phpcs:ignore Magento2.GraphQL.ValidArgumentName

Example

""card""

PhysicalProductInterface

Contains attributes specific to tangible products.

Fields

Field Name
Description
weight - Float
The weight of the item, in units defined by the store.

Possible Types

Example

{"weight": 123.45}

PickupLocation

Defines Pickup Location information.

Fields

Field Name
Description
city - String
contact_name - String
country_id - String
description - String
email - String
fax - String
latitude - Float
longitude - Float
name - String
phone - String
pickup_location_code - String
postcode - String
region - String
region_id - Int
street - String

Example

{
  "city": "abc123",
  "contact_name": "abc123",
  "country_id": "xyz789",
  "description": "xyz789",
  "email": "xyz789",
  "fax": "xyz789",
  "latitude": 123.45,
  "longitude": 123.45,
  "name": "abc123",
  "phone": "abc123",
  "pickup_location_code": "xyz789",
  "postcode": "abc123",
  "region": "xyz789",
  "region_id": 123,
  "street": "xyz789"
}

PickupLocationFilterInput

PickupLocationFilterInput defines the list of attributes and filters for the search.

Input Fields

Input Field
Description
city - FilterTypeInput
Filter by city.
country_id - FilterTypeInput
Filter by country.
name - FilterTypeInput
Filter by pickup location name.
pickup_location_code - FilterTypeInput
Filter by pickup location code.
postcode - FilterTypeInput
Filter by postcode.
region - FilterTypeInput
Filter by region.
region_id - FilterTypeInput
Filter by region id.
street - FilterTypeInput
Filter by street.

Example

{
  "city": FilterTypeInput,
  "country_id": FilterTypeInput,
  "name": FilterTypeInput,
  "pickup_location_code": FilterTypeInput,
  "postcode": FilterTypeInput,
  "region": FilterTypeInput,
  "region_id": FilterTypeInput,
  "street": FilterTypeInput
}

PickupLocationSortInput

PickupLocationSortInput specifies attribute to use for sorting search results and indicates whether the results are sorted in ascending or descending order.

Input Fields

Input Field
Description
city - SortEnum
City where pickup location is placed.
contact_name - SortEnum
Name of the contact person.
country_id - SortEnum
Id of the country in two letters.
description - SortEnum
Description of the pickup location.
distance - SortEnum
Distance to the address, requested by distance filter. Applicable only with distance filter. If distance sort order is present, all other sort orders will be ignored.
email - SortEnum
Contact email of the pickup location.
fax - SortEnum
Contact fax of the pickup location.
latitude - SortEnum
Geographic latitude where pickup location is placed.
longitude - SortEnum
Geographic longitude where pickup location is placed.
name - SortEnum
The pickup location name. Customer use this to identify the pickup location.
phone - SortEnum
Contact phone number of the pickup location.
pickup_location_code - SortEnum
A code assigned to pickup location to identify the source.
postcode - SortEnum
Postcode where pickup location is placed.
region - SortEnum
Name of the region.
region_id - SortEnum
Id of the region.
street - SortEnum
Street where pickup location is placed.

Example

{
  "city": "ASC",
  "contact_name": "ASC",
  "country_id": "ASC",
  "description": "ASC",
  "distance": "ASC",
  "email": "ASC",
  "fax": "ASC",
  "latitude": "ASC",
  "longitude": "ASC",
  "name": "ASC",
  "phone": "ASC",
  "pickup_location_code": "ASC",
  "postcode": "ASC",
  "region": "ASC",
  "region_id": "ASC",
  "street": "ASC"
}

PickupLocations

Top level object returned in a pickup locations search.

Fields

Field Name
Description
items - [PickupLocation]
An array of pickup locations that match the specific search request.
page_info - SearchResultPageInfo
An object that includes the page_info and currentPage values specified in the query.
total_count - Int
The number of products returned.

Example

{
  "items": [PickupLocation],
  "page_info": SearchResultPageInfo,
  "total_count": 987
}

PlaceNegotiableQuoteOrderInput

Specifies the negotiable quote to convert to an order.

Input Fields

Input Field
Description
quote_uid - ID!
The unique ID of a NegotiableQuote object.

Example

{"quote_uid": 4}

PlaceNegotiableQuoteOrderOutput

An output object that returns the generated order.

Fields

Field Name
Description
order - Order!
Contains the generated order number.

Example

{"order": Order}

PlaceNegotiableQuoteOrderOutputV2

An output object that returns the generated order.

Fields

Field Name
Description
errors - [PlaceOrderError]
An array of place negotiable quote order errors.
order - CustomerOrder
Full order information.

Example

{
  "errors": [PlaceOrderError],
  "order": CustomerOrder
}

PlaceOrderError

An error encountered while placing an order.

Fields

Field Name
Description
code - PlaceOrderErrorCodes!
An error code that is specific to place order.
message - String!
A localized error message.

Example

{
  "code": "CART_NOT_FOUND",
  "message": "xyz789"
}

PlaceOrderErrorCodes

Values

Enum Value
Description
CART_NOT_FOUND
CART_NOT_ACTIVE
GUEST_EMAIL_MISSING
UNABLE_TO_PLACE_ORDER
UNDEFINED

Example

""CART_NOT_FOUND""

PlaceOrderForPurchaseOrderInput

Specifies the purchase order to convert to an order.

Input Fields

Input Field
Description
purchase_order_uid - ID!
The unique ID of a purchase order.

Example

{"purchase_order_uid": "4"}

PlaceOrderForPurchaseOrderOutput

Contains the results of the request to place an order.

Fields

Field Name
Description
order - CustomerOrder!
Placed order.

Example

{"order": CustomerOrder}

PlaceOrderInput

Specifies the quote to be converted to an order.

Input Fields

Input Field
Description
cart_id - String!
The unique ID of a Cart object.

Example

{"cart_id": "abc123"}

PlaceOrderOutput

Contains the results of the request to place an order.

Fields

Field Name
Description
errors - [PlaceOrderError]!
An array of place order errors.
orderV2 - CustomerOrder
Full order information.

Example

{
  "errors": [PlaceOrderError],
  "orderV2": CustomerOrder
}

PlacePurchaseOrderInput

Specifies the quote to be converted to a purchase order.

Input Fields

Input Field
Description
cart_id - String!
The unique ID of a Cart object.

Example

{"cart_id": "xyz789"}

PlacePurchaseOrderOutput

Contains the results of the request to place a purchase order.

Fields

Field Name
Description
purchase_order - PurchaseOrder!
Placed purchase order.

Example

{"purchase_order": PurchaseOrder}

Price

Defines the price of a simple product or a part of a price range for a complex product. It can include a list of price adjustments.

Fields

Field Name
Description
adjustments - [PriceAdjustment]
The signed value of the price adjustment (positive for markup, negative for markdown).
amount - ProductViewMoney
Contains the monetary value and currency code of a product.

Example

{
  "adjustments": [PriceAdjustment],
  "amount": ProductViewMoney
}

PriceAdjustment

Specifies the amount and type of price adjustment.

Fields

Field Name
Description
amount - Float
The amount of the price adjustment.
code - String
Identifies the type of price adjustment.

Example

{"amount": 123.45, "code": "abc123"}

PriceDetails

Can be used to retrieve the main price details in case of bundle product

Fields

Field Name
Description
discount_percentage - Float
The percentage of discount applied to the main product price
main_final_price - Float
The final price after applying the discount to the main product
main_price - Float
The regular price of the main product

Example

{
  "discount_percentage": 987.65,
  "main_final_price": 987.65,
  "main_price": 987.65
}

PriceRange

Contains the price range for a product. If the product has a single price, the minimum and maximum price will be the same.

Fields

Field Name
Description
maximum_price - ProductPrice
The highest possible price for the product.
minimum_price - ProductPrice!
The lowest possible price for the product.

Example

{
  "maximum_price": ProductPrice,
  "minimum_price": ProductPrice
}

PriceTypeEnum

Defines the price type.

Values

Enum Value
Description
FIXED
PERCENT
DYNAMIC

Example

""FIXED""

PriceViewEnum

Defines whether a bundle product's price is displayed as the lowest possible value or as a range.

Values

Enum Value
Description
PRICE_RANGE
AS_LOW_AS

Example

""PRICE_RANGE""

ProductAlertPriceInput

Input Fields

Input Field
Description
sku - String!

Example

{"sku": "xyz789"}

ProductAlertStockInput

Input Fields

Input Field
Description
sku - String!

Example

{"sku": "abc123"}

ProductAlertSubscriptionResult

Fields

Field Name
Description
message - String
success - Boolean!

Example

{"message": "abc123", "success": false}

ProductAttribute

Contains a product attribute code and value.

Fields

Field Name
Description
code - String!
The unique identifier for a product attribute code.
value - String!
The display value of the attribute.

Example

{
  "code": "abc123",
  "value": "xyz789"
}

ProductAttributeFile

Fields

Field Name
Description
attribute_type - String
Attribute type code.
code - ID!
The attribute code.
url - String!
Public URL to download the file.
value - String!
Stored filename only (e.g. file_xyz.pdf). Use url for download.

Example

{
  "attribute_type": "xyz789",
  "code": 4,
  "url": "xyz789",
  "value": "abc123"
}

ProductCustomAttributes

Product custom attributes

Fields

Field Name
Description
errors - [AttributeMetadataError]!
Errors when retrieving custom attributes metadata.
items - [AttributeValueInterface]!
Requested custom attributes

Example

{
  "errors": [AttributeMetadataError],
  "items": [AttributeValueInterface]
}

ProductDiscount

Contains the discount applied to a product price.

Fields

Field Name
Description
amount_off - Float
The actual value of the discount.
percent_off - Float
The discount expressed a percentage.

Example

{"amount_off": 987.65, "percent_off": 987.65}

ProductImage

Contains product image information, including the image URL and label.

Fields

Field Name
Description
disabled - Boolean
Indicates whether the image is hidden from view.
label - String
The label of the product image or video.
position - Int
The media item's position after it has been sorted.
url - String
The URL of the product image or video.

Example

{
  "disabled": false,
  "label": "xyz789",
  "position": 123,
  "url": "abc123"
}

ProductImageThumbnail

Values

Enum Value
Description
ITSELF
Use thumbnail of product as image.
PARENT
Use thumbnail of product's parent as image.

Example

""ITSELF""

ProductInfoInput

Product Information used for Pickup Locations search.

Input Fields

Input Field
Description
sku - String!
Product SKU.

Example

{"sku": "abc123"}

ProductInterface

Contains fields that are common to all types of products.

Fields

Field Name
Description
canonical_url - String
The relative canonical URL. This value is returned only if the system setting 'Use Canonical Link Meta Tag For Products' is enabled.
categories - [CategoryInterface]
The categories assigned to a product.
country_of_manufacture - String
The product's country of origin.
crosssell_products - [ProductInterface]
Crosssell Products
custom_attributesV2 - ProductCustomAttributes
Product custom attributes.
description - ComplexTextValue
Detailed information about the product. The value can include simple HTML tags.
gift_message_available - Boolean!
Returns a value indicating gift message availability for the product.
gift_wrapping_available - Boolean!
Returns a value indicating gift wrapping availability for the product.
gift_wrapping_price - Money
Returns value and currency indicating gift wrapping price for the product.
image - ProductImage
The relative path to the main image on the product page.
is_returnable - String
Indicates whether the product can be returned.
manufacturer - Int
A number representing the product's manufacturer.
max_sale_qty - Float
Maximum Qty Allowed in Shopping Cart
media_gallery - [MediaGalleryInterface]
An array of media gallery objects.
meta_description - String
A brief overview of the product for search results listings, maximum 255 characters.
meta_keyword - String
A comma-separated list of keywords that are visible only to search engines.
meta_title - String
A string that is displayed in the title bar and tab of the browser and in search results lists.
min_sale_qty - Float
Minimum Qty Allowed in Shopping Cart
name - String
The product name. Customers use this name to identify the product.
new_from_date - String
The beginning date for new product listings, and determines if the product is featured as a new product.
new_to_date - String
The end date for new product listings.
only_x_left_in_stock - Float
Product stock only x left count
options_container - String
If the product has multiple options, determines where they appear on the product page.
price_range - PriceRange!
The range of prices for the product
price_tiers - [TierPrice]
An array of TierPrice objects.
product_links - [ProductLinksInterface]
An array of ProductLinks objects.
quantity - Float
Quantity of available stock
related_products - [ProductInterface]
An array of products to be displayed in a Related Products block.
short_description - ComplexTextValue
A short description of the product. Its use depends on the theme.
sku - String
A number or code assigned to a product to identify the product, options, price, and manufacturer.
small_image - ProductImage
The relative path to the small image, which is used on catalog pages.
special_price - Float
The discounted price of the product.
special_to_date - String
The end date for a product with a special price.
stock_status - ProductStockStatus
Stock status of the product
swatch_image - String
The file name of a swatch image.
thumbnail - ProductImage
The relative path to the product's thumbnail image.
uid - ID!
The unique ID for a ProductInterface object.
upsell_products - [ProductInterface]
Upsell Products
url_key - String
The part of the URL that identifies the product

Possible Types

Example

{
  "canonical_url": "xyz789",
  "categories": [CategoryInterface],
  "country_of_manufacture": "abc123",
  "crosssell_products": [ProductInterface],
  "custom_attributesV2": ProductCustomAttributes,
  "description": ComplexTextValue,
  "gift_message_available": false,
  "gift_wrapping_available": true,
  "gift_wrapping_price": Money,
  "image": ProductImage,
  "is_returnable": "xyz789",
  "manufacturer": 987,
  "max_sale_qty": 123.45,
  "media_gallery": [MediaGalleryInterface],
  "meta_description": "abc123",
  "meta_keyword": "xyz789",
  "meta_title": "abc123",
  "min_sale_qty": 123.45,
  "name": "xyz789",
  "new_from_date": "xyz789",
  "new_to_date": "abc123",
  "only_x_left_in_stock": 987.65,
  "options_container": "abc123",
  "price_range": PriceRange,
  "price_tiers": [TierPrice],
  "product_links": [ProductLinksInterface],
  "quantity": 123.45,
  "related_products": [ProductInterface],
  "short_description": ComplexTextValue,
  "sku": "xyz789",
  "small_image": ProductImage,
  "special_price": 987.65,
  "special_to_date": "abc123",
  "stock_status": "IN_STOCK",
  "swatch_image": "abc123",
  "thumbnail": ProductImage,
  "uid": 4,
  "upsell_products": [ProductInterface],
  "url_key": "xyz789"
}

An implementation of ProductLinksInterface.

Fields

Field Name
Description
link_type - String
One of related, associated, upsell, or crosssell.
linked_product_sku - String
The SKU of the linked product.
linked_product_type - String
The type of linked product (simple, virtual, bundle, downloadable, grouped, configurable).
position - Int
The position within the list of product links.
sku - String
The identifier of the linked product.

Example

{
  "link_type": "xyz789",
  "linked_product_sku": "abc123",
  "linked_product_type": "xyz789",
  "position": 987,
  "sku": "xyz789"
}

ProductLinksInterface

Contains information about linked products, including the link type and product type of each item.

Fields

Field Name
Description
link_type - String
One of related, associated, upsell, or crosssell.
linked_product_sku - String
The SKU of the linked product.
linked_product_type - String
The type of linked product (simple, virtual, bundle, downloadable, grouped, configurable).
position - Int
The position within the list of product links.
sku - String
The identifier of the linked product.

Possible Types

ProductLinksInterface Types
ProductLinks

Example

{
  "link_type": "abc123",
  "linked_product_sku": "xyz789",
  "linked_product_type": "xyz789",
  "position": 987,
  "sku": "abc123"
}

ProductMediaGalleryEntriesAssetImage

Contains basic information about the image asset.

Fields

Field Name
Description
asset_id - String
Asset Id.
media_type - String
Must be asset-image.
media_url - String
Asset Image Url.

Example

{
  "asset_id": "abc123",
  "media_type": "xyz789",
  "media_url": "xyz789"
}

ProductMediaGalleryEntriesAssetVideo

Contains basic information about the video asset.

Fields

Field Name
Description
media_type - String
Must be asset-video.
video_asset_id - String
Asset Id.
video_media_url - String
Asset Video Url.

Example

{
  "media_type": "xyz789",
  "video_asset_id": "abc123",
  "video_media_url": "abc123"
}

ProductMediaGalleryEntriesVideoContent

Contains a link to a video file and basic information about the video.

Fields

Field Name
Description
media_type - String
Must be external-video.
video_description - String
A description of the video.
video_metadata - String
Optional data about the video.
video_provider - String
Describes the video source.
video_title - String
The title of the video.
video_url - String
The URL to the video.

Example

{
  "media_type": "abc123",
  "video_description": "abc123",
  "video_metadata": "xyz789",
  "video_provider": "abc123",
  "video_title": "abc123",
  "video_url": "abc123"
}

ProductPrice

Represents a product price.

Fields

Field Name
Description
discount - ProductDiscount
The price discount. Represents the difference between the regular and final price.
final_price - Money!
The final price of the product after applying discounts.
fixed_product_taxes - [FixedProductTax]
An array of the multiple Fixed Product Taxes that can be applied to a product price.
regular_price - Money!
The regular price of the product.

Example

{
  "discount": ProductDiscount,
  "final_price": Money,
  "fixed_product_taxes": [FixedProductTax],
  "regular_price": Money
}

ProductSearchItem

A single product returned by the query

Fields

Field Name
Description
applied_query_rule - AppliedQueryRule
The query rule type that was applied to this product, if any (in preview mode only, returns null otherwise)
highlights - [Highlight]
An object that provides highlighted text for matched words
productView - ProductView
Contains a product view

Example

{
  "applied_query_rule": AppliedQueryRule,
  "highlights": [Highlight],
  "productView": ProductView
}

ProductSearchResponse

Contains the output of a productSearch query

Fields

Field Name
Description
facets - [Aggregation]
Details about the static and dynamic facets relevant to the search
items - [ProductSearchItem]
An array of products returned by the query
page_info - SearchResultPageInfo
Information for rendering pages of search results
related_terms - [String]
An array of strings that might include merchant-defined synonyms
suggestions - [String]
An array of strings that include the names of products and categories that exist in the catalog that are similar to the search query
total_count - Int
The total number of products returned that matched the query
warnings - [ProductSearchWarning]
An array of warning messages for validation issues (e.g., sort parameter ignored due to missing categoryPath)

Example

{
  "facets": [Aggregation],
  "items": [ProductSearchItem],
  "page_info": SearchResultPageInfo,
  "related_terms": ["abc123"],
  "suggestions": ["abc123"],
  "total_count": 987,
  "warnings": [ProductSearchWarning]
}

ProductSearchSortInput

The product attribute to sort on

Input Fields

Input Field
Description
attribute - String!
The attribute code of a product attribute
direction - SortEnum!
ASC (ascending) or DESC (descending)

Example

{"attribute": "abc123", "direction": "ASC"}

ProductSearchWarning

Structured warning with code and message for easier client handling

Fields

Field Name
Description
code - String!
Error code for programmatic handling (e.g., EMPTY_CATEGORY_PATH)
message - String!
Human-readable message describing the warning

Example

{
  "code": "xyz789",
  "message": "xyz789"
}

ProductStockStatus

This enumeration states whether a product stock status is in stock or out of stock

Values

Enum Value
Description
IN_STOCK
OUT_OF_STOCK

Example

""IN_STOCK""

ProductVideo

Contains information about a product video.

Fields

Field Name
Description
disabled - Boolean
Indicates whether the image is hidden from view.
label - String
The label of the product image or video.
position - Int
The media item's position after it has been sorted.
url - String
The URL of the product image or video.
video_content - ProductMediaGalleryEntriesVideoContent
Contains a ProductMediaGalleryEntriesVideoContent object.

Example

{
  "disabled": false,
  "label": "xyz789",
  "position": 987,
  "url": "xyz789",
  "video_content": ProductMediaGalleryEntriesVideoContent
}

ProductView

Defines the product fields available to the SimpleProductView and ComplexProductView types.

Fields

Field Name
Description
addToCartAllowed - Boolean
A flag stating if the product can be added to cart (Deprecated: This field is deprecated and will be removed.)
inStock - Boolean
A flag stating if the product is in stock (Deprecated: This field is deprecated and will be removed.)
lowStock - Boolean
Indicates whether the remaining quantity of the product has reached the Only X Left threshold. (Deprecated: This field is deprecated and will be removed.)
attributes - [ProductViewAttribute]
A list of merchant-defined attributes designated for the storefront. They can be filtered by roles and names.
description - String
The detailed description of the product.
id - ID!
The product ID, generated as a composite key, unique per locale.
images - [ProductViewImage]
A list of images defined for the product.
videos - [ProductViewVideo]
A list of videos defined for the product.
lastModifiedAt - DateTime
Date and time when the product was last updated.
metaDescription - String
A brief overview of the product for search results listings.
metaKeyword - String
A comma-separated list of keywords that are visible only to search engines.
metaTitle - String
A string that is displayed in the title bar and tab of the browser and in search results lists.
name - String
Product title for search results listings.
shortDescription - String
A summary of the product for search results listings.
inputOptions - [ProductViewInputOption]
A list of input options. For example, a text field, a number field or a date field. (Deprecated: This field is deprecated and will be removed.)
sku - String
A unique code used for identification of a product.
externalId - String
External Id (Deprecated: This field is deprecated and will be removed.)
url - String
Canonical URL of the product. (Deprecated: This field is deprecated and will be removed.)
urlKey - String
The URL key of the product. This is a unique identifier for the product that is used to create the product's URL.
links - [ProductViewLink]
A list of product links. For example, related, up-sell, and cross-sell links.
queryType - String
Indicates if the product was retrieved from the primary or the backup query
visibility - String
Visibility setting of the product

Possible Types

Example

{
  "addToCartAllowed": false,
  "inStock": true,
  "lowStock": false,
  "attributes": [ProductViewAttribute],
  "description": "abc123",
  "id": "4",
  "images": [ProductViewImage],
  "videos": [ProductViewVideo],
  "lastModifiedAt": "2007-12-03T10:15:30Z",
  "metaDescription": "abc123",
  "metaKeyword": "xyz789",
  "metaTitle": "xyz789",
  "name": "xyz789",
  "shortDescription": "xyz789",
  "inputOptions": [ProductViewInputOption],
  "sku": "abc123",
  "externalId": "abc123",
  "url": "xyz789",
  "urlKey": "abc123",
  "links": [ProductViewLink],
  "queryType": "abc123",
  "visibility": "abc123"
}

ProductViewAttribute

A container for customer-defined attributes that are displayed the storefront.

Fields

Field Name
Description
label - String
Label of the attribute.
name - String!
Name of an attribute code. For example, color, size or material
roles - [String]
Roles designated for an attribute on the storefront. For example, show_on_plp, show_in_pdp or show_in_search
value - JSON
Attribute value, arbitrary of type. For example, red, blue or green

Example

{
  "label": "xyz789",
  "name": "abc123",
  "roles": ["abc123"],
  "value": {}
}

ProductViewCurrency

The list of supported currency codes.

Values

Enum Value
Description
AED
AFN
ALL
AMD
ANG
AOA
ARS
AUD
AWG
AZM
AZN
BAM
BBD
BDT
BGN
BHD
BIF
BMD
BND
BOB
BRL
BSD
BTN
BUK
BWP
BYN
BZD
CAD
CDF
CHE
CHF
CHW
CLP
CNY
COP
CRC
CUP
CVE
CZK
DJF
DKK
DOP
DZD
EEK
EGP
ERN
ETB
EUR
FJD
FKP
GBP
GEK
GEL
GHS
GIP
GMD
GNF
GQE
GTQ
GYD
HKD
HNL
HRK
HTG
HUF
IDR
ILS
INR
IQD
IRR
ISK
JMD
JOD
JPY
KES
KGS
KHR
KMF
KPW
KRW
KWD
KYD
KZT
LAK
LBP
LKR
LRD
LSL
LSM
LTL
LVL
LYD
MAD
MDL
MGA
MKD
MMK
MNT
MOP
MRO
MUR
MVR
MWK
MXN
MYR
MZN
NAD
NGN
NIC
NOK
NPR
NZD
OMR
PAB
PEN
PGK
PHP
PKR
PLN
PYG
QAR
RHD
ROL
RON
RSD
RUB
RWF
SAR
SBD
SCR
SDG
SEK
SGD
SHP
SKK
SLL
SOS
SRD
STD
SVC
SYP
SZL
THB
TJS
TMM
TND
TOP
TRL
TRY
TTD
TWD
TZS
UAH
UGX
USD
UYU
UZS
VEB
VEF
VND
VUV
WST
XCD
XOF
XPF
YER
ZAR
ZMK
ZWD
NONE

Example

""AED""

ProductViewImage

Contains details about a product image.

Fields

Field Name
Description
label - String
The display label of the product image. For example, Main Image, Small Image or Thumbnail Image
roles - [String]
A list that describes how the image is used. Can be image, small_image or thumbnail
url - String!
The URL to the product image. For example, https://example.com/image.jpg.

Example

{
  "label": "xyz789",
  "roles": ["xyz789"],
  "url": "abc123"
}

ProductViewInputOption

Product options provide a way to configure products by making selections of particular option values. Selecting one or many options will point to a simple product.

Fields

Field Name
Description
id - ID
The ID of an option value. For example, 123 for the first option value, 456 for the second option value.
title - String
The display name of the option value. For example, Red, Blue or Green
required - Boolean
Indicates whether this input option is required.
type - String
The type of data entry. For example, text, number or date
markupAmount - Float
The percentage the prices is marked up or down. A positive value, such as 10.00, indicates the product is marked up 10%. A negative value, such as -10.00, indicates the price is marked down 10%.
suffix - String
SKU suffix to add to the product. For example, -red, -blue or -green
sortOrder - Int
Sort order for the input option. For example, 1 for the first input option, 2 for the second input option.
range - ProductViewInputOptionRange
The range of values for the input option. For example, if the input option is a text field, the range represents the number of characters.
imageSize - ProductViewInputOptionImageSize
The size of the image for the input option.
fileExtensions - String
The file extensions allowed for the image. For example, jpg, png, gif, or svg

Example

{
  "id": "4",
  "title": "abc123",
  "required": false,
  "type": "xyz789",
  "markupAmount": 987.65,
  "suffix": "abc123",
  "sortOrder": 123,
  "range": ProductViewInputOptionRange,
  "imageSize": ProductViewInputOptionImageSize,
  "fileExtensions": "abc123"
}

ProductViewInputOptionImageSize

Dimensions of the image associated with the input option.

Fields

Field Name
Description
width - Int
The width of the image in pixels. For example, 100 for a 100px width.
height - Int
The height of the image, in pixels. For example, 100 for a 100px height.

Example

{"width": 123, "height": 987}

ProductViewInputOptionRange

Lists the value range associated with a ProductViewInputOption. For example, if the input option is a text field, the range represents the number of characters.

Fields

Field Name
Description
from - Float
The starting value of the range. For example, if the input option is a text field, the starting value represents the minimum number of characters.
to - Float
The ending value of the range. For example, if the input option is a text field, the ending value represents the maximum number of characters.

Example

{"from": 987.65, "to": 123.45}

The product link type. Contains details about product links for related products and cross selling. For example, related, up_sell or cross_sell

Fields

Field Name
Description
product - ProductView!
Contains the details of the product found in the link.
linkTypes - [String!]!
Stores the types of the links with this product.

Example

{
  "product": ProductView,
  "linkTypes": ["abc123"]
}

ProductViewMoney

Defines a monetary value, including a numeric value and a currency code.

Fields

Field Name
Description
currency - ProductViewCurrency
A three-letter currency code, such as USD or EUR.
value - Float
A number expressing a monetary value.

Example

{"currency": "AED", "value": 987.65}

ProductViewOption

Product options provide a way to configure products by making selections of particular option values. Selecting one or many options will point to a simple product.

Fields

Field Name
Description
id - ID
The ID of the option. For example, 123 for the first option, 456 for the second option.
multi - Boolean
Indicates whether the option allows multiple choices. The value is true for a multi-select option, false for a single-select option.
required - Boolean
Indicates whether the option must be selected.
title - String
The display name of the option. For example, Color, Size or Material
values - [ProductViewOptionValue!]
List of available option values. For example, Red, Blue or Green

Example

{
  "id": "4",
  "multi": true,
  "required": true,
  "title": "abc123",
  "values": [ProductViewOptionValue]
}

ProductViewOptionValue

Defines the product fields available to the ProductViewOptionValueProduct and ProductViewOptionValueConfiguration types.

Fields

Field Name
Description
id - ID
The ID of an option value.
title - String
The display name of the option value.
inStock - Boolean
Indicates whether the remaining quantity of the product has reached the out-of-stock threshold.

Possible Types

Example

{
  "id": "4",
  "title": "xyz789",
  "inStock": true
}

ProductViewOptionValueConfiguration

An implementation of ProductViewOptionValue for configuration values.

Fields

Field Name
Description
id - ID
The ID of an option value. For example, 123 for the first option value, 456 for the second option value.
title - String
The display name of the option value. For example, Red, Blue or Green
inStock - Boolean
Indicates whether the remaining quantity of the product option value has reached the out-of-stock threshold.

Example

{
  "id": "4",
  "title": "abc123",
  "inStock": true
}

ProductViewOptionValueProduct

An implementation of ProductViewOptionValue that adds details about a simple product.

Fields

Field Name
Description
id - ID
The ID of an option value. For example, 123 for the first option value, 456 for the second option value.
isDefault - Boolean
Indicates whether the option value is the default.
product - SimpleProductView
Details about a simple product. For example, a product with a SKU of 123, a name of Product 1, a price of 100.00.
quantity - Float
Default quantity of an option value.
title - String
The display name of the option value. For example, Red, Blue or Green
inStock - Boolean
Indicates whether the remaining quantity of the product option value has reached the out-of-stock threshold.

Example

{
  "id": "4",
  "isDefault": true,
  "product": SimpleProductView,
  "quantity": 123.45,
  "title": "abc123",
  "inStock": true
}

ProductViewOptionValueSwatch

An implementation of ProductViewOptionValueSwatch for swatches.

Fields

Field Name
Description
id - ID
The ID of an option value. For example, 123 for the first option value, 456 for the second option value.
title - String
The display name of the option value. For example, Red, Blue or Green
type - SwatchType
Indicates the type of the swatch.
value - String
The value of the swatch depending on the type of the swatch.
inStock - Boolean
Indicates whether the remaining quantity of the product option value has reached the out-of-stock threshold.

Example

{
  "id": "4",
  "title": "abc123",
  "type": "TEXT",
  "value": "abc123",
  "inStock": true
}

ProductViewPrice

Base product price view. Contains the final price after discounts, the regular price, and the list of tier prices.

Fields

Field Name
Description
final - Price
Price value after discounts, excluding personalized promotions.
regular - Price
Base product price specified by the merchant.
tiers - [ProductViewTierPrice]
Volume based pricing.
roles - [String]
Price roles, stating if the price should be visible or hidden. For example, show_on_plp, show_in_pdp or show_in_search

Example

{
  "final": Price,
  "regular": Price,
  "tiers": [ProductViewTierPrice],
  "roles": ["xyz789"]
}

ProductViewPriceRange

The minimum and maximum price of a complex product.

Fields

Field Name
Description
maximum - ProductViewPrice
Maximum price.
minimum - ProductViewPrice
Minimum price.

Example

{
  "maximum": ProductViewPrice,
  "minimum": ProductViewPrice
}

ProductViewTierCondition

Types

Example

ProductViewTierRangeCondition

ProductViewTierExactMatchCondition

Minimum quantity (inclusive) required to activate this tier price. For example, a value of 10 means this tier applies when 10 or more items are purchased.

Fields

Field Name
Description
in - [Float]
Exact quantity values that activate this tier price. For example, [5, 10] means the tier applies only when the purchased quantity is exactly 5 or exactly 10.

Example

{"in": [987.65]}

ProductViewTierPrice

The discounted price that applies when the quantity conditions in quantity are satisfied. Contains the monetary amount and any price adjustments applied to this tier.

Fields

Field Name
Description
tier - Price
The discounted price that applies when the quantity conditions in quantity are satisfied. Contains the monetary amount and any price adjustments applied to this tier.
quantity - [ProductViewTierCondition!]!
The quantity conditions that must be met to activate the tier price. For example, 10 for a quantity of 10 or 20 for a quantity of 20.

Example

{
  "tier": Price,
  "quantity": [ProductViewTierRangeCondition]
}

ProductViewTierRangeCondition

Minimum quantity (inclusive) required to activate this tier price. For example, a value of 10 means this tier applies when 10 or more items are purchased. Maximum quantity (exclusive) required to activate this tier price. For example, a value of 20 means this tier applies when less than 20 items are purchased.

Fields

Field Name
Description
gte - Float
The minimum quantity that must be purchased to activate the tier price. Must be greater than or equal to the value in gte.
lt - Float
Maximum quantity (exclusive) for this tier price. For example, a value of 20 means this tier applies only when fewer than 20 items are purchased.

Example

{"gte": 123.45, "lt": 987.65}

ProductViewVariant

Represents a product variant.

Fields

Field Name
Description
selections - [String!]
List of option values that make up the variant. For example, red, blue or green
product - ProductView
Product corresponding to the variant. For example, a product with a SKU of 123, a name of Product 1, a price of 100.00.

Example

{
  "selections": ["xyz789"],
  "product": ProductView
}

ProductViewVariantResults

Represents the results of a product variant search.

Fields

Field Name
Description
variants - [ProductViewVariant]!
List of product variants. For example, a variant with a selection of red, blue or green
cursor - String
Pagination cursor. For example, 123 for the first variant, 456 for the second variant.

Example

{
  "variants": [ProductViewVariant],
  "cursor": "abc123"
}

ProductViewVideo

Contains details about a product video. For example, a video of the product being used or a video of the product being assembled.

Fields

Field Name
Description
preview - ProductViewImage
Preview image for the video. For example, a screenshot of the video.
url - String!
The URL to the product video. For example, https://example.com/video.mp4 or https://example.com/video.webm
description - String
Description of the product video. For example, A video of the product being used or A video of the product being assembled
title - String
The title of the product video. For example, Product Video or Product Assembly Video

Example

{
  "preview": ProductViewImage,
  "url": "xyz789",
  "description": "xyz789",
  "title": "abc123"
}

PurchaseHistory

User purchase history

Input Fields

Input Field
Description
date - DateTime
items - [String]!

Example

{
  "date": "2007-12-03T10:15:30Z",
  "items": ["abc123"]
}

PurchaseOrder

Contains details about a purchase order.

Fields

Field Name
Description
approval_flow - [PurchaseOrderRuleApprovalFlow]
The approval flows for each applied rules.
available_actions - [PurchaseOrderAction]!
Purchase order actions available to the customer. Can be used to display action buttons on the client.
comments - [PurchaseOrderComment]!
The set of comments applied to the purchase order.
created_at - String!
The date the purchase order was created.
created_by - Customer
The company user who created the purchase order.
history_log - [PurchaseOrderHistoryItem]!
The log of the events related to the purchase order.
number - String!
The purchase order number.
order - CustomerOrder
The reference to the order placed based on the purchase order.
quote - Cart
The quote related to the purchase order.
status - PurchaseOrderStatus!
The current status of the purchase order.
uid - ID!
A unique identifier for the purchase order.
updated_at - String!
The date the purchase order was last updated.

Example

{
  "approval_flow": [PurchaseOrderRuleApprovalFlow],
  "available_actions": ["REJECT"],
  "comments": [PurchaseOrderComment],
  "created_at": "xyz789",
  "created_by": Customer,
  "history_log": [PurchaseOrderHistoryItem],
  "number": "abc123",
  "order": CustomerOrder,
  "quote": Cart,
  "status": "PENDING",
  "uid": "4",
  "updated_at": "abc123"
}

PurchaseOrderAction

Values

Enum Value
Description
REJECT
CANCEL
VALIDATE
APPROVE
PLACE_ORDER

Example

""REJECT""

PurchaseOrderActionError

Contains details about a failed action.

Fields

Field Name
Description
message - String!
The returned error message.
type - PurchaseOrderErrorType!
The error type.

Example

{"message": "abc123", "type": "NOT_FOUND"}

PurchaseOrderApprovalFlowEvent

Contains details about a single event in the approval flow of the purchase order.

Fields

Field Name
Description
message - String
A formatted message.
name - String
The approver name.
role - String
The approver role.
status - PurchaseOrderApprovalFlowItemStatus
The status related to the event.
updated_at - String
The date and time the event was updated.

Example

{
  "message": "abc123",
  "name": "abc123",
  "role": "xyz789",
  "status": "PENDING",
  "updated_at": "abc123"
}

PurchaseOrderApprovalFlowItemStatus

Values

Enum Value
Description
PENDING
APPROVED
REJECTED

Example

""PENDING""

PurchaseOrderApprovalRule

Contains details about a purchase order approval rule.

Fields

Field Name
Description
applies_to_roles - [CompanyRole]!
The name of the user(s) affected by the the purchase order approval rule.
approver_roles - [CompanyRole]!
The name of the user who needs to approve purchase orders that trigger the approval rule.
condition - PurchaseOrderApprovalRuleConditionInterface
Condition which triggers the approval rule.
created_at - String!
The date the purchase order rule was created.
created_by - String!
The name of the user who created the purchase order approval rule.
description - String
Description of the purchase order approval rule.
name - String!
The name of the purchase order approval rule.
status - PurchaseOrderApprovalRuleStatus!
The status of the purchase order approval rule.
uid - ID!
The unique identifier for the purchase order approval rule.
updated_at - String!
The date the purchase order rule was last updated.

Example

{
  "applies_to_roles": [CompanyRole],
  "approver_roles": [CompanyRole],
  "condition": PurchaseOrderApprovalRuleConditionInterface,
  "created_at": "abc123",
  "created_by": "abc123",
  "description": "abc123",
  "name": "abc123",
  "status": "ENABLED",
  "uid": 4,
  "updated_at": "xyz789"
}

PurchaseOrderApprovalRuleConditionAmount

Contains approval rule condition details, including the amount to be evaluated.

Fields

Field Name
Description
amount - Money!
The amount to be be used for evaluation of the approval rule condition.
attribute - PurchaseOrderApprovalRuleType
The type of purchase order approval rule.
operator - PurchaseOrderApprovalRuleConditionOperator
The operator to be used for evaluating the approval rule condition.

Example

{
  "amount": Money,
  "attribute": "GRAND_TOTAL",
  "operator": "MORE_THAN"
}

PurchaseOrderApprovalRuleConditionInterface

Purchase order rule condition details.

Fields

Field Name
Description
attribute - PurchaseOrderApprovalRuleType
The type of purchase order approval rule.
operator - PurchaseOrderApprovalRuleConditionOperator
The operator to be used for evaluating the approval rule condition.

Possible Types

Example

{"attribute": "GRAND_TOTAL", "operator": "MORE_THAN"}

PurchaseOrderApprovalRuleConditionOperator

Values

Enum Value
Description
MORE_THAN
LESS_THAN
MORE_THAN_OR_EQUAL_TO
LESS_THAN_OR_EQUAL_TO

Example

""MORE_THAN""

PurchaseOrderApprovalRuleConditionQuantity

Contains approval rule condition details, including the quantity to be evaluated.

Fields

Field Name
Description
attribute - PurchaseOrderApprovalRuleType
The type of purchase order approval rule.
operator - PurchaseOrderApprovalRuleConditionOperator
The operator to be used for evaluating the approval rule condition.
quantity - Int
The quantity to be used for evaluation of the approval rule condition.

Example

{"attribute": "GRAND_TOTAL", "operator": "MORE_THAN", "quantity": 987}

PurchaseOrderApprovalRuleInput

Defines a new purchase order approval rule.

Input Fields

Input Field
Description
applies_to - [ID]!
A list of company user role IDs to which this purchase order approval rule should be applied. When an empty array is provided, the rule is applied to all user roles in the system, including those created in the future.
approvers - [ID]!
A list of B2B user roles that can approve this purchase order approval rule.
condition - CreatePurchaseOrderApprovalRuleConditionInput!
The condition of the purchase order approval rule.
description - String
A summary of the purpose of the purchase order approval rule.
name - String!
The purchase order approval rule name.
status - PurchaseOrderApprovalRuleStatus!
The status of the purchase order approval rule.

Example

{
  "applies_to": ["4"],
  "approvers": [4],
  "condition": CreatePurchaseOrderApprovalRuleConditionInput,
  "description": "abc123",
  "name": "abc123",
  "status": "ENABLED"
}

PurchaseOrderApprovalRuleMetadata

Contains metadata that can be used to render rule edit forms.

Fields

Field Name
Description
available_applies_to - [CompanyRole]!
A list of B2B user roles that the rule can be applied to.
available_condition_currencies - [AvailableCurrency]!
A list of currencies that can be used to create approval rules based on amounts, for example shipping cost rules.
available_requires_approval_from - [CompanyRole]!
A list of B2B user roles that can be specified as approvers for the approval rules.

Example

{
  "available_applies_to": [CompanyRole],
  "available_condition_currencies": [AvailableCurrency],
  "available_requires_approval_from": [CompanyRole]
}

PurchaseOrderApprovalRuleStatus

Values

Enum Value
Description
ENABLED
DISABLED

Example

""ENABLED""

PurchaseOrderApprovalRuleType

Values

Enum Value
Description
GRAND_TOTAL
SHIPPING_INCL_TAX
NUMBER_OF_SKUS

Example

""GRAND_TOTAL""

PurchaseOrderApprovalRules

Contains the approval rules that the customer can see.

Fields

Field Name
Description
items - [PurchaseOrderApprovalRule]!
A list of purchase order approval rules visible to the customer.
page_info - SearchResultPageInfo
Result pagination details.
total_count - Int
The total number of purchase order approval rules visible to the customer.

Example

{
  "items": [PurchaseOrderApprovalRule],
  "page_info": SearchResultPageInfo,
  "total_count": 123
}

PurchaseOrderComment

Contains details about a comment.

Fields

Field Name
Description
author - Customer
The user who left the comment.
created_at - String!
The date and time when the comment was created.
text - String!
The text of the comment.
uid - ID!
A unique identifier of the comment.

Example

{
  "author": Customer,
  "created_at": "xyz789",
  "text": "abc123",
  "uid": "4"
}

PurchaseOrderErrorType

Values

Enum Value
Description
NOT_FOUND
OPERATION_NOT_APPLICABLE
COULD_NOT_SAVE
NOT_VALID_DATA
UNDEFINED

Example

""NOT_FOUND""

PurchaseOrderHistoryItem

Contains details about a status change.

Fields

Field Name
Description
activity - String!
The activity type of the event.
created_at - String!
The date and time when the event happened.
message - String!
The message representation of the event.
uid - ID!
A unique identifier of the purchase order history item.

Example

{
  "activity": "xyz789",
  "created_at": "abc123",
  "message": "abc123",
  "uid": 4
}

PurchaseOrderRuleApprovalFlow

Contains details about approval roles applied to the purchase order and status changes.

Fields

Field Name
Description
events - [PurchaseOrderApprovalFlowEvent]!
The approval flow event related to the rule.
rule_name - String!
The name of the applied rule.

Example

{
  "events": [PurchaseOrderApprovalFlowEvent],
  "rule_name": "abc123"
}

PurchaseOrderStatus

Values

Enum Value
Description
PENDING
APPROVAL_REQUIRED
APPROVED
ORDER_IN_PROGRESS
ORDER_PLACED
ORDER_FAILED
REJECTED
CANCELED
APPROVED_PENDING_PAYMENT

Example

""PENDING""

PurchaseOrders

Contains a list of purchase orders.

Fields

Field Name
Description
items - [PurchaseOrder]!
Purchase orders matching the search criteria.
page_info - SearchResultPageInfo
Page information of search result's current page.
total_count - Int
Total number of purchase orders found matching the search criteria.

Example

{
  "items": [PurchaseOrder],
  "page_info": SearchResultPageInfo,
  "total_count": 123
}

PurchaseOrdersActionInput

Defines which purchase orders to act on.

Input Fields

Input Field
Description
purchase_order_uids - [ID]!
An array of purchase order UIDs.

Example

{"purchase_order_uids": [4]}

PurchaseOrdersActionOutput

Returns a list of updated purchase orders and any error messages.

Fields

Field Name
Description
errors - [PurchaseOrderActionError]!
An array of error messages encountered while performing the operation.
purchase_orders - [PurchaseOrder]!
A list of purchase orders.

Example

{
  "errors": [PurchaseOrderActionError],
  "purchase_orders": [PurchaseOrder]
}

PurchaseOrdersFilterInput

Defines the criteria to use to filter the list of purchase orders.

Input Fields

Input Field
Description
company_purchase_orders - Boolean
Include only purchase orders made by subordinate company users.
created_date - FilterRangeTypeInput
Filter by the creation date of the purchase order.
my_approvals - Boolean
Include purchase orders that are pending approval by the customer or eligible for their approval but have already been dealt with.
require_my_approval - Boolean
Include only purchase orders that are waiting for the customer’s approval.
status - PurchaseOrderStatus
Filter by the status of the purchase order.

Example

{
  "company_purchase_orders": false,
  "created_date": FilterRangeTypeInput,
  "my_approvals": true,
  "require_my_approval": true,
  "status": "PENDING"
}