OBJECT

Query

link GraphQL Schema definition

1type Query {
2
3# Gets a list of approval records details that the current authenticated user can
4# approve.
5#
6# Equivalent to GET /store/{storeId}/approval_status
7#
8# Arguments
9# approvalStatusId: Query by approval request approval status id.
10# approverId: Query by approver id. Only returns approval
11# requests that can be approved by the current user.
12# endSubmitTime: Query by approval request end time.
13# entityId: Query by approval request entity id, such as order
14# id.
15# orderBy: Order by.
16# pageNumber: Page number, starting at 1. Valid values include
17# positive integers of 1 and above. The 'pageSize' must be specified for paging to
18# work.
19# pageSize: Page size. Used to limit the amount of data returned
20# by a query. Valid values include positive integers of 1 and above. The
21# 'pageNumber' must be specified for paging to work.
22# q: The query name.
23# responseFormat: The response format. Valid values are json and
24# xml. If the request contains an input body, it must use the format specified in
25# responseFormat. If the responseFormat is not specified, the accept HTTP header
26# determines the format of the response. If the accept HTTP header is not
27# specified then default response format is json.
28# startSubmitTime: Query by approval request start time.
29# status: Query by approval request status. 0 for pending, 1 for
30# approved, 2 for rejected.
31# storeId: The store identifier.
32# submitterFirstName: Query by approval request submitter's first
33# name.
34# submitterLastName: Query by approval request submitter's last
35# name.
36# submitterMiddleName: Query by approval request submitter's
37# middle name.
38approvalStatusFindByQuery(
39approvalStatusId: BigInt,
40approverId: BigInt,
41endSubmitTime: String,
42entityId: BigInt,
43orderBy: OrderBy,
44pageNumber: Int,
45pageSize: Int,
46q: Q4!,
47responseFormat: ResponseFormat,
48startSubmitTime: String,
49status: Status,
50storeId: String!,
51submitterFirstName: String,
52submitterLastName: String,
53submitterMiddleName: String
54): approvalStatusSummary
477
55# Gets a Check Out Profile for the logged in user using the Member service. The
56# shopper must log in before invoking this method.
57#
58# Equivalent to GET /store/{storeId}/person/checkoutProfile/{checkoutProfileId}
59#
60# Arguments
61# checkoutProfileId: The checkout profile identifier.
62# responseFormat: The response format. Valid values are json and
63# xml. If the request contains an input body, it must use the format specified in
64# responseFormat. If the responseFormat is not specified, the accept HTTP header
65# determines the format of the response. If the accept HTTP header is not
66# specified then default response format is json.
67# storeId: The store identifier.
68checkoutProfileGetByIdCheckoutProfile(
69checkoutProfileId: String!,
70responseFormat: ResponseFormat,
71storeId: String!
72): PersonCheckoutProfile
477
73# Gets the Check Out Profiles for the logged in user using the Member service. The
74# shopper must log in before invoking this method.
75#
76# Equivalent to GET /store/{storeId}/person/@self/checkoutProfile
77#
78# Arguments
79# responseFormat: The response format. Valid values are json and
80# xml. If the request contains an input body, it must use the format specified in
81# responseFormat. If the responseFormat is not specified, the accept HTTP header
82# determines the format of the response. If the accept HTTP header is not
83# specified then default response format is json.
84# storeId: The store identifier.
85checkoutProfileGetCheckoutProfile(
86responseFormat: ResponseFormat,
87storeId: String!
88): PersonCheckoutProfile
477
89# Gets a person contact by address ID.
90#
91# Equivalent to GET /store/{storeId}/person/@self/contact/byAddressId/{addressId}
92#
93# Arguments
94# addressId: The address identifier.
95# responseFormat: The response format. Valid values are json and
96# xml. If the request contains an input body, it must use the format specified in
97# responseFormat. If the responseFormat is not specified, the accept HTTP header
98# determines the format of the response. If the accept HTTP header is not
99# specified then default response format is json.
100# storeId: The store identifier.
101contactFindPersonContactById(
102addressId: String!,
103responseFormat: ResponseFormat,
104storeId: String!
105): PersonSingleContact
477
106# Gets a person contact by nickname.
107#
108# Equivalent to GET /store/{storeId}/person/@self/contact/{nickName}
109#
110# Arguments
111# nickName: The contact name saved in addressBook by registered
112# shopper.
113# responseFormat: The response format. Valid values are json and
114# xml. If the request contains an input body, it must use the format specified in
115# responseFormat. If the responseFormat is not specified, the accept HTTP header
116# determines the format of the response. If the accept HTTP header is not
117# specified then default response format is json.
118# storeId: The store identifier.
119contactFindPersonContactByNickName(
120nickName: String!,
121responseFormat: ResponseFormat,
122storeId: String!
123): PersonSingleContact
477
124# Gets the contacts in a person's address book. If the addressType optional query
125# parameter is passed in, the returned contacts are filtered by addressType.
126#
127# Equivalent to GET /store/{storeId}/person/@self/contact
128#
129# Arguments
130# addressType: The addressType to filter contacts by. All
131# contacts will be returned if a valid value is not supplied for this parameter.
132# responseFormat: The response format. Valid values are json and
133# xml. If the request contains an input body, it must use the format specified in
134# responseFormat. If the responseFormat is not specified, the accept HTTP header
135# determines the format of the response. If the accept HTTP header is not
136# specified then default response format is json.
137# storeId: The store identifier.
138contactGetAllPersonContact(
139addressType: AddressType,
140responseFormat: ResponseFormat,
141storeId: String!
142): JSON
477
143# Find an approval status record by its id.
144#
145# Equivalent to GET /store/{storeId}/approval_status/{approvalStatusId}
146#
147# Arguments
148# approvalStatusId: The approval status ID.
149# storeId: The store identifier.
150getStoreStoreIdApprovalStatusApprovalStatusId(
151approvalStatusId: String!,
152storeId: String!
153): approvalStatusStoreSummary
477
154# Finds approval member groups types for an organization based on properties
155# filter.
156#
157# Equivalent to GET /store/{storeId}/member_group
158#
159# Arguments
160# orderBy: Order by.
161# pageNumber: Page number, starting at 1. Valid values include
162# positive integers of 1 and above. The pageSize must be specified for paging to
163# work.
164# pageSize: Page size. Used to limit the amount of data returned
165# by a query. Valid values include positive integers of 1 and above. The
166# pageNumber must be specified for paging to work
167# propertiesFilter: Properties value based on which approval
168# member groups will be filtered.
169# q: The query name.
170# storeId: The store identifier.
171getStoreStoreIdMemberGroup(
172orderBy: String,
173pageNumber: BigInt,
174pageSize: BigInt,
175propertiesFilter: String!,
176q: Q2!,
177storeId: String!
178): memberGroupListSummary
477
179# Finds a member group by its ID.
180#
181# Equivalent to GET /store/{storeId}/member_group/{memberGroupId}
182#
183# Arguments
184# memberGroupId: The member group ID.
185# storeId: The store identifier.
186getStoreStoreIdMemberGroupMemberGroupId(
187memberGroupId: String!,
188storeId: String!
189): memberGroupListSummary
477
190# Finds a member group current shopper explicitly belongs.
191#
192# Equivalent to GET /store/{storeId}/member_group/member/{memberId}
193#
194# Arguments
195# memberId: The memberID.
196# storeId: The store identifier.
197getStoreStoreIdMemberGroupMemberMemberId(
198memberId: String!,
199storeId: String!
200): memberGroupListSummary
477
201# Allows administrators to find organization information by organization
202# identifier.
203#
204# Equivalent to GET /store/{storeId}/organization/{organizationId}
205#
206# Arguments
207# organizationId: The organization identifier.
208# profileName: Profile name. Profiles determine the subset of
209# data returned by a query. Default profile name = IBM_Organization_Summary.
210# storeId: The store identifier.
211organizationFindByOrganizationIdWParentAssignedRolesDetailsProfileName(
212organizationId: String!,
213profileName: ProfileName2,
214storeId: String!
215): parentAssignedRolesDetails
477
216# This allows an administrator to find organizations based on query name. See each
217# query for details on input and output.
218#
219# Equivalent to GET /store/{storeId}/organization
220#
221# Arguments
222# accountId: The trading account ID.
223# maxResults: The maximum number of results to be returned.
224# orgId: The organization identifier.
225# orgName: The organization name.
226# parentOrgName: The parent organization name.
227# profileName: Profile name. Profiles determine the subset of
228# data returned by a query.
229# q: The query name.
  • organizationHierarchy: Retrieves the
230# organization hierarchy.
  • organizationsICanAdmin: This allows an
  • 231# administrator to find organizations that he/she can
    232# administer.
  • rolesICanAssignInOrg: This allows an administrator to find
  • 233# roles that he/she can assign in organizations.
    234# responseFormat: The response format. If the request has an
    235# input body, that body must also use the format specified in "responseFormat".
    236# Valid values include "json" and "xml" without the quotes. If the responseFormat
    237# isn't specified, the "accept" HTTP header shall be used to determine the format
    238# of the response. If the "accept" HTTP header isn't specified as well, the
    239# default response format shall be in json.
    240# startIndex: The starting index of the result.
    241# storeId: The store identifier.
    242organizationFindByQuery(
    243accountId: String,
    244maxResults: String,
    245orgId: String!,
    246orgName: String,
    247parentOrgName: String,
    248profileName: ProfileName,
    249q: Q!,
    250responseFormat: ResponseFormat,
    251startIndex: String,
    252storeId: String!
    253): organizationListDetails
    477
    254# Get user's entitled organizations.
    255#
    256# Equivalent to GET /store/{storeId}/organization/@self/entitled_orgs
    257#
    258# Arguments
    259# accountCheck: [Not documented]
    260# explicitEntitlement: [Not documented]
    261# responseFormat: The response format. Valid values are json and
    262# xml. If the request contains an input body, it must use the format specified in
    263# responseFormat. If the responseFormat is not specified, the accept HTTP header
    264# determines the format of the response. If the accept HTTP header is not
    265# specified then default response format is json.
    266# storeId: The store identifier.
    267organizationGetEntitledOrganizations(
    268accountCheck: String,
    269explicitEntitlement: String,
    270responseFormat: ResponseFormat,
    271storeId: String!
    272): organizationListSummary
    477
    273# Allows administrators to find users based on a query name. See each query for
    274# details on input and output.
    275#
    276# Equivalent to GET /store/{storeId}/person
    277#
    278# Arguments
    279# accountStatus: The account status.
    280# address1: Address line 1 of the customer to search for.
    281# address1SearchType: The search type. The valid values are 1
    282# (case sensitive and starts with), 2(case sensitive and contains), 3(case
    283# insensitive and starts with),4(case insensitive and contains), 5(case sensitive
    284# and exact match), 6(case insensitive and exact match),8(not equals)
    285# city: The city name of the customer to search for.
    286# citySearchType: The search type. The valid values are 1 (case
    287# sensitive and starts with), 2(case sensitive and contains), 3(case insensitive
    288# and starts with),4(case insensitive and contains), 5(case sensitive and exact
    289# match), 6(case insensitive and exact match),8(not equals)
    290# country: The country or region name of the customer to search
    291# for.
    292# countrySearchType: The search type. The valid values are 1
    293# (case sensitive and starts with), 2(case sensitive and contains), 3(case
    294# insensitive and starts with),4(case insensitive and contains), 5(case sensitive
    295# and exact match), 6(case insensitive and exact match),8(not equals)
    296# email1: The primary e-mail address of the customer to search
    297# for.
    298# email1SearchType: The search type. The valid values are 1 (case
    299# sensitive and starts with), 2(case sensitive and contains), 3(case insensitive
    300# and starts with),4(case insensitive and contains), 5(case sensitive and exact
    301# match), 6(case insensitive and exact match),8(not equals)
    302# email2: The secondary e-mail address of the customer to search
    303# for.
    304# email2SearchType: The search type. The valid values are 1 (case
    305# sensitive and starts with), 2(case sensitive and contains), 3(case insensitive
    306# and starts with),4(case insensitive and contains), 5(case sensitive and exact
    307# match), 6(case insensitive and exact match),8(not equals)
    308# fax1: The primary fax number of the customer to search for.
    309# fax1SearchType: The search type. The valid values are 1 (case
    310# sensitive and starts with), 2(case sensitive and contains), 3(case insensitive
    311# and starts with),4(case insensitive and contains), 5(case sensitive and exact
    312# match), 6(case insensitive and exact match),8(not equals)
    313# fax2: The secondary fax number of the customer to search for.
    314# fax2SearchType: The search type. The valid values are 1 (case
    315# sensitive and starts with), 2(case sensitive and contains), 3(case insensitive
    316# and starts with),4(case insensitive and contains), 5(case sensitive and exact
    317# match), 6(case insensitive and exact match),8(not equals)
    318# field1: Customizable field1 to search for.
    319# field1SearchType: The search type. The valid values are 1 (case
    320# sensitive and starts with), 2(case sensitive and contains), 3(case insensitive
    321# and starts with),4(case insensitive and contains), 5(case sensitive and exact
    322# match), 6(case insensitive and exact match),8(not equals)
    323# field2: Customizable field2 to search for.
    324# field2SearchType: The search type. The valid values are 1 (case
    325# sensitive and starts with), 2(case sensitive and contains), 3(case insensitive
    326# and starts with),4(case insensitive and contains), 5(case sensitive and exact
    327# match), 6(case insensitive and exact match),8(not equals)
    328# firstName: First name of the customer to search for.
    329# firstNameSearchType: The search type. The valid values are 1
    330# (case sensitive and starts with), 2(case sensitive and contains), 3(case
    331# insensitive and starts with),4(case insensitive and contains), 5(case sensitive
    332# and exact match), 6(case insensitive and exact match),8(not equals)
    333# lastName: Last name of the customer to search for.
    334# lastNameSearchType: The search type. The valid values are 1
    335# (case sensitive and starts with), 2(case sensitive and contains), 3(case
    336# insensitive and starts with),4(case insensitive and contains), 5(case sensitive
    337# and exact match), 6(case insensitive and exact match),8(not equals)
    338# logonId: Logon Id of the customer to search for.
    339# logonIdSearchType: The search type. The valid values are 1
    340# (case sensitive and starts with), 2(case sensitive and contains), 3(case
    341# insensitive and starts with),4(case insensitive and contains), 5(case sensitive
    342# and exact match), 6(case insensitive and exact match),8(not equals)
    343# maxResults: Page size. Used to limit the amount of data
    344# returned by a query. Valid values include positive integers of 1 and above.
    345# middleName: Last name of the customer to search for.
    346# middleNameSearchType: The search type. The valid values are 1
    347# (case sensitive and starts with), 2(case sensitive and contains), 3(case
    348# insensitive and starts with),4(case insensitive and contains), 5(case sensitive
    349# and exact match), 6(case insensitive and exact match),8(not equals)
    350# orderByFieldName: The order by field name.
    351# orderByTableName: The order by table name.
    352# parentOrgId: The parent organization ID.
    353# parentOrgName: Parent organization name to search buyers. Only
    354# used in B2B store.
    355# parentOrgNameSearchType: The search type. The valid values are
    356# 1 (case sensitive and starts with), 2(case sensitive and contains), 3(case
    357# insensitive and starts with),4(case insensitive and contains), 5(case sensitive
    358# and exact match), 6(case insensitive and exact match),8(not equals)
    359# phone1: The primary phone number of the customer to search for.
    360# phone1SearchType: The search type. The valid values are 1 (case
    361# sensitive and starts with), 2(case sensitive and contains), 3(case insensitive
    362# and starts with),4(case insensitive and contains), 5(case sensitive and exact
    363# match), 6(case insensitive and exact match),8(not equals)
    364# phone2: The secondary phone number of the customer to search
    365# for.
    366# phone2SearchType: The search type. The valid values are 1 (case
    367# sensitive and starts with), 2(case sensitive and contains), 3(case insensitive
    368# and starts with),4(case insensitive and contains), 5(case sensitive and exact
    369# match), 6(case insensitive and exact match),8(not equals)
    370# profileName: Profile name. Profiles determine the subset of
    371# data to be returned by a query. Default profile name = IBM_User_List_Summary.
    372# q: The query name.
    373# roleId: The role ID.
    374# startIndex: The starting index of the result.
    375# state: The state or province name of the customer to search
    376# for.
    377# stateSearchType: The search type. The valid values are 1 (case
    378# sensitive and starts with), 2(case sensitive and contains), 3(case insensitive
    379# and starts with),4(case insensitive and contains), 5(case sensitive and exact
    380# match), 6(case insensitive and exact match),8(not equals)
    381# storeId: The store identifier.
    382# zipcode: ZIP or postal code of the customer to search for.
    383# zipcodeSearchType: The search type. The valid values are 1
    384# (case sensitive and starts with), 2(case sensitive and contains), 3(case
    385# insensitive and starts with),4(case insensitive and contains), 5(case sensitive
    386# and exact match), 6(case insensitive and exact match),8(not equals)
    387personFindByQuery(
    388accountStatus: String,
    389address1: String,
    390address1SearchType: Address1SearchType,
    391city: String,
    392citySearchType: CitySearchType,
    393country: String,
    394countrySearchType: CountrySearchType,
    395email1: String,
    396email1SearchType: Email1SearchType,
    397email2: String,
    398email2SearchType: Email2SearchType,
    399fax1: String,
    400fax1SearchType: Fax1SearchType,
    401fax2: String,
    402fax2SearchType: Fax2SearchType,
    403field1: String,
    404field1SearchType: Field1SearchType,
    405field2: String,
    406field2SearchType: Field2SearchType,
    407firstName: String,
    408firstNameSearchType: FirstNameSearchType,
    409lastName: String,
    410lastNameSearchType: LastNameSearchType,
    411logonId: String,
    412logonIdSearchType: LogonIdSearchType,
    413maxResults: String,
    414middleName: String,
    415middleNameSearchType: MiddleNameSearchType,
    416orderByFieldName: String,
    417orderByTableName: String,
    418parentOrgId: String,
    419parentOrgName: String,
    420parentOrgNameSearchType: ParentOrgNameSearchType,
    421phone1: String,
    422phone1SearchType: Phone1SearchType,
    423phone2: String,
    424phone2SearchType: Phone2SearchType,
    425profileName: ProfileName3,
    426q: Q3!,
    427roleId: String,
    428startIndex: String,
    429state: String,
    430stateSearchType: StateSearchType,
    431storeId: String!,
    432zipcode: String,
    433zipcodeSearchType: ZipcodeSearchType
    434): userListDetails
    477
    435# Allows administrators to find user information by user identifier.
    436#
    437# Equivalent to GET /store/{storeId}/person/{userId}
    438#
    439# Arguments
    440# profileName: Profile name. Profiles determine the subset of
    441# data returned by a query. The default profile name is IBM_User_Display_Details.
    442# storeId: The store identifier.
    443# userId: The user identifier.
    444personFindByUserIdWRolesOfUserInOrgsICanAdminProfileName(
    445profileName: ProfileName4,
    446storeId: String!,
    447userId: String!
    448): PersonAdministratorsToFindUserInformationByUserIdentifier
    477
    449# Finds personal opt-out. When the store level personal opt-out does not exist,
    450# the site level personal opt-out is returned.
    451#
    452# Equivalent to GET /store/{storeId}/person/@self/optOut
    453#
    454# Arguments
    455# profileName: Profile name. Profiles determine the subset of
    456# data returned by a query. Default profile name = IBM_optOut_email.
    457# storeId: The store identifier.
    458personFindOptOutBySelfWOptOutAllProfileName(
    459profileName: ProfileName5,
    460storeId: String!
    461): emailUserReceiveData
    477
    462# Gets the account data for a registered user.
    463#
    464# Equivalent to GET /store/{storeId}/person/@self
    465#
    466# Arguments
    467# responseFormat: The response format. Valid values are json and
    468# xml. If the request contains an input body, it must use the format specified in
    469# responseFormat. If the responseFormat is not specified, the accept HTTP header
    470# determines the format of the response. If the accept HTTP header is not
    471# specified then default response format is json.
    472# storeId: The store identifier.
    473personFindPersonBySelf(
    474responseFormat: ResponseFormat,
    475storeId: String!
    476): PersonPerson
    478
    479}

    link Required by

    This element is not required by anyone