RevSend GraphQL Reference
Production API
Terms of Service
API Endpoints
https://graph.v2.revsend.com
Headers
# Your API Token
Authorization: <YOUR_TOKEN_HERE>
Queries
_empty
Response
Returns a Boolean
Example
Query
query _empty {
_empty
}
Response
{"data": {"_empty": true}}
allOrgs
Response
Returns [Org!]!
Example
Query
query AllOrgs {
allOrgs {
id
name
formattedName
users {
totalCount
nodes {
...UserFragment
}
}
logoUrl
logoBackgroundColor
logoPrimaryColor
isInternational
hubSpotUserInfo {
id
displayName
}
hubSpotUsers {
id
name
email
}
salesForceUserInfo {
id
username
nickName
displayName
}
salesForceUsers {
id
name
email
}
teams {
id
name
users {
...UsersWithTeamFragment
}
}
}
}
Response
{
"data": {
"allOrgs": [
{
"id": "4",
"name": "xyz789",
"formattedName": "xyz789",
"users": Users,
"logoUrl": "abc123",
"logoBackgroundColor": "abc123",
"logoPrimaryColor": "xyz789",
"isInternational": false,
"hubSpotUserInfo": HubSpotUserInfo,
"hubSpotUsers": [HubSpotUser],
"salesForceUserInfo": SalesForceUserInfo,
"salesForceUsers": [SalesForceUser],
"teams": [Teams]
}
]
}
}
allUsers
Response
Returns [User!]
Example
Query
query AllUsers {
allUsers {
id
name
email
role
password
budget {
id
amount
isPaymentFallbackEnabled
refillAmount
isRollover
}
salesForceUserId
hubSpotUserId
teams {
userId
teamId
name
isAdmin
}
org {
id
name
formattedName
users {
...UsersFragment
}
logoUrl
logoBackgroundColor
logoPrimaryColor
isInternational
hubSpotUserInfo {
...HubSpotUserInfoFragment
}
hubSpotUsers {
...HubSpotUserFragment
}
salesForceUserInfo {
...SalesForceUserInfoFragment
}
salesForceUsers {
...SalesForceUserFragment
}
teams {
...TeamsFragment
}
}
status
googleEmail
microsoftEmail
hubSpotToken {
user
hubDomain
hubId
appId
hubSpotUserId
}
apiPasswords {
id
trailingChars
}
}
}
Response
{
"data": {
"allUsers": [
{
"id": "4",
"name": "xyz789",
"email": "abc123",
"role": "ADMIN",
"password": "abc123",
"budget": Budget,
"salesForceUserId": "xyz789",
"hubSpotUserId": "abc123",
"teams": [UserTeams],
"org": Org,
"status": "ACTIVE",
"googleEmail": "abc123",
"microsoftEmail": "xyz789",
"hubSpotToken": HubSpotToken,
"apiPasswords": [ApiPassword]
}
]
}
}
campaigns
Response
Returns a Campaigns!
Arguments
| Name | Description |
|---|---|
skip - Int!
|
|
take - Int!
|
|
sort - CampaignSortKey
|
|
query - CampaignQuery
|
Example
Query
query Campaigns(
$skip: Int!,
$take: Int!,
$sort: CampaignSortKey,
$query: CampaignQuery
) {
campaigns(
skip: $skip,
take: $take,
sort: $sort,
query: $query
) {
totalCount
nodes {
id
ref
createdAt
type
name
}
}
}
Variables
{
"skip": 987,
"take": 987,
"sort": "CREATED_AT_ASC",
"query": CampaignQuery
}
Response
{
"data": {
"campaigns": {"totalCount": 123, "nodes": [Campaign]}
}
}
categories
Response
Returns [Category!]!
Example
Query
query Categories {
categories {
id
name
}
}
Response
{
"data": {
"categories": [
{"id": 4, "name": "xyz789"}
]
}
}
charges
Response
Returns a Charges!
Arguments
| Name | Description |
|---|---|
page - String
|
|
query - ChargeQuery
|
Example
Query
query Charges(
$page: String,
$query: ChargeQuery
) {
charges(
page: $page,
query: $query
) {
totalCount
nextPage
nodes {
id
amount
created
description
receiptUrl
}
}
}
Variables
{
"page": "xyz789",
"query": ChargeQuery
}
Response
{
"data": {
"charges": {
"totalCount": 987,
"nextPage": "abc123",
"nodes": [Charge]
}
}
}
checkPasswordReset
creditCharges
Response
Returns [Charge!]!
Example
Query
query CreditCharges {
creditCharges {
id
amount
created
description
receiptUrl
}
}
Response
{
"data": {
"creditCharges": [
{
"id": "4",
"amount": 987,
"created": "2007-12-03T10:15:30Z",
"description": "xyz789",
"receiptUrl": "xyz789"
}
]
}
}
customer
Response
Returns a Customer
Example
Query
query Customer {
customer {
id
name
email
card {
id
last4
brand
}
balance
spendableBalance
}
}
Response
{
"data": {
"customer": {
"id": 4,
"name": "xyz789",
"email": "abc123",
"card": Card,
"balance": 987,
"spendableBalance": 123
}
}
}
digitalBarcode
Response
Returns a DigitalBarcode
Arguments
| Name | Description |
|---|---|
digitalOrderCode - ID!
|
Example
Query
query DigitalBarcode($digitalOrderCode: ID!) {
digitalBarcode(digitalOrderCode: $digitalOrderCode) {
id
number
csc
barcodeKind
barcodeValue
viewCardUrl
}
}
Variables
{"digitalOrderCode": "4"}
Response
{
"data": {
"digitalBarcode": {
"id": 4,
"number": "abc123",
"csc": "xyz789",
"barcodeKind": "abc123",
"barcodeValue": "xyz789",
"viewCardUrl": "abc123"
}
}
}
digitalBrands
Response
Returns [DigitalBrand!]!
Arguments
| Name | Description |
|---|---|
query - DigitalBrandQuery
|
Example
Query
query DigitalBrands($query: DigitalBrandQuery) {
digitalBrands(query: $query) {
id
name
iconUrl
faceplateUrl
legalTerms
description
redemptionDisclaimer
redemptionMethods
denominations
increment
maxValue
minValue
vendorId
currency
}
}
Variables
{"query": DigitalBrandQuery}
Response
{
"data": {
"digitalBrands": [
{
"id": 4,
"name": "abc123",
"iconUrl": "xyz789",
"faceplateUrl": "xyz789",
"legalTerms": "abc123",
"description": "xyz789",
"redemptionDisclaimer": "abc123",
"redemptionMethods": ["xyz789"],
"denominations": [987],
"increment": 123,
"maxValue": 987,
"minValue": 987,
"vendorId": "4",
"currency": "USD"
}
]
}
}
digitalCampaign
Response
Returns a DigitalCampaign
Arguments
| Name | Description |
|---|---|
id - ID!
|
Example
Query
query DigitalCampaign($id: ID!) {
digitalCampaign(id: $id) {
id
createdAt
ref
name
rewardValue
brands
messageTemplate
headlineTemplate
allowCharity
brandsSummary
isArchived
currency
}
}
Variables
{"id": 4}
Response
{
"data": {
"digitalCampaign": {
"id": 4,
"createdAt": "2007-12-03T10:15:30Z",
"ref": "xyz789",
"name": "xyz789",
"rewardValue": 987,
"brands": ["4"],
"messageTemplate": "xyz789",
"headlineTemplate": "abc123",
"allowCharity": false,
"brandsSummary": "abc123",
"isArchived": true,
"currency": "USD"
}
}
}
digitalCampaigns
Response
Returns a DigitalCampaigns!
Arguments
| Name | Description |
|---|---|
skip - Int!
|
|
take - Int!
|
|
sort - DigitalCampaignSortKey
|
|
query - DigitalCampaignQuery
|
Example
Query
query DigitalCampaigns(
$skip: Int!,
$take: Int!,
$sort: DigitalCampaignSortKey,
$query: DigitalCampaignQuery
) {
digitalCampaigns(
skip: $skip,
take: $take,
sort: $sort,
query: $query
) {
totalCount
nodes {
id
createdAt
ref
name
rewardValue
brands
messageTemplate
headlineTemplate
allowCharity
brandsSummary
isArchived
currency
}
}
}
Variables
{
"skip": 123,
"take": 123,
"sort": "CREATED_AT_ASC",
"query": DigitalCampaignQuery
}
Response
{
"data": {
"digitalCampaigns": {
"totalCount": 987,
"nodes": [DigitalCampaign]
}
}
}
digitalOrder
Response
Returns a DigitalOrder
Arguments
| Name | Description |
|---|---|
orderRef - ID!
|
Example
Query
query DigitalOrder($orderRef: ID!) {
digitalOrder(orderRef: $orderRef) {
id
ref
createdAt
rewardValue
status
rewardLink
recipient {
id
org {
...OrgFragment
}
email
name
salesForceContactId
salesForceAccountId
hubSpotContactId
hubSpotCompanyId
orgName
}
creator {
id
name
email
role
password
budget {
...BudgetFragment
}
salesForceUserId
hubSpotUserId
teams {
...UserTeamsFragment
}
org {
...OrgFragment
}
status
googleEmail
microsoftEmail
hubSpotToken {
...HubSpotTokenFragment
}
apiPasswords {
...ApiPasswordFragment
}
}
campaign {
id
createdAt
ref
name
rewardValue
brands
messageTemplate
headlineTemplate
allowCharity
brandsSummary
isArchived
currency
}
description
deliveryMethod
events {
id
createdAt
code
}
cancelledAt
teamId
}
}
Variables
{"orderRef": 4}
Response
{
"data": {
"digitalOrder": {
"id": "4",
"ref": "abc123",
"createdAt": "2007-12-03T10:15:30Z",
"rewardValue": 123,
"status": "PAYMENT_PENDING",
"rewardLink": "abc123",
"recipient": Recipient,
"creator": User,
"campaign": DigitalCampaign,
"description": "abc123",
"deliveryMethod": "LINK",
"events": [DigitalOrderEvent],
"cancelledAt": "2007-12-03T10:15:30Z",
"teamId": "xyz789"
}
}
}
digitalOrderBatch
Response
Returns a DigitalOrderBatch
Arguments
| Name | Description |
|---|---|
orderBatchRef - ID!
|
Example
Query
query DigitalOrderBatch($orderBatchRef: ID!) {
digitalOrderBatch(orderBatchRef: $orderBatchRef) {
id
ref
creator {
id
name
email
role
password
budget {
...BudgetFragment
}
salesForceUserId
hubSpotUserId
teams {
...UserTeamsFragment
}
org {
...OrgFragment
}
status
googleEmail
microsoftEmail
hubSpotToken {
...HubSpotTokenFragment
}
apiPasswords {
...ApiPasswordFragment
}
}
createdAt
totalOrders
totalDelivered
totalPaid
digitalOrders {
totalCount
nodes {
...DigitalOrderFragment
}
}
}
}
Variables
{"orderBatchRef": 4}
Response
{
"data": {
"digitalOrderBatch": {
"id": "4",
"ref": "xyz789",
"creator": User,
"createdAt": "2007-12-03T10:15:30Z",
"totalOrders": 123,
"totalDelivered": 987,
"totalPaid": 987,
"digitalOrders": DigitalOrders
}
}
}
digitalOrderBatches
Response
Returns a DigitalOrderBatches!
Arguments
| Name | Description |
|---|---|
skip - Int!
|
|
take - Int!
|
|
sort - DigitalOrderBatchSortKey
|
|
query - DigitalOrderBatchQuery
|
Example
Query
query DigitalOrderBatches(
$skip: Int!,
$take: Int!,
$sort: DigitalOrderBatchSortKey,
$query: DigitalOrderBatchQuery
) {
digitalOrderBatches(
skip: $skip,
take: $take,
sort: $sort,
query: $query
) {
totalCount
nodes {
id
ref
creator {
...UserFragment
}
createdAt
totalOrders
totalDelivered
totalPaid
digitalOrders {
...DigitalOrdersFragment
}
}
}
}
Variables
{
"skip": 123,
"take": 123,
"sort": "CREATED_AT_ASC",
"query": DigitalOrderBatchQuery
}
Response
{
"data": {
"digitalOrderBatches": {
"totalCount": 123,
"nodes": [DigitalOrderBatch]
}
}
}
digitalOrders
Response
Returns a DigitalOrders!
Arguments
| Name | Description |
|---|---|
skip - Int!
|
|
take - Int!
|
|
sort - DigitalOrderSortKey
|
|
query - DigitalOrderQuery
|
Example
Query
query DigitalOrders(
$skip: Int!,
$take: Int!,
$sort: DigitalOrderSortKey,
$query: DigitalOrderQuery
) {
digitalOrders(
skip: $skip,
take: $take,
sort: $sort,
query: $query
) {
totalCount
nodes {
id
ref
createdAt
rewardValue
status
rewardLink
recipient {
...RecipientFragment
}
creator {
...UserFragment
}
campaign {
...DigitalCampaignFragment
}
description
deliveryMethod
events {
...DigitalOrderEventFragment
}
cancelledAt
teamId
}
}
}
Variables
{
"skip": 987,
"take": 987,
"sort": "CREATED_AT_ASC",
"query": DigitalOrderQuery
}
Response
{
"data": {
"digitalOrders": {
"totalCount": 123,
"nodes": [DigitalOrder]
}
}
}
digitalReward
Response
Returns a DigitalReward
Arguments
| Name | Description |
|---|---|
orderRef - ID!
|
Example
Query
query DigitalReward($orderRef: ID!) {
digitalReward(orderRef: $orderRef) {
orderRef
value
hasOrderCode
barcode {
id
number
csc
barcodeKind
barcodeValue
viewCardUrl
}
messageTemplate
headlineTemplate
orgName
logoUrl
logoBackgroundColor
logoPrimaryColor
recipientName
recipientEmail
recipientOrgName
creatorName
creatorEmail
allowsCharity
brands {
id
name
iconUrl
faceplateUrl
legalTerms
description
redemptionDisclaimer
redemptionMethods
denominations
increment
maxValue
minValue
vendorId
currency
}
brand {
id
name
iconUrl
faceplateUrl
legalTerms
description
redemptionDisclaimer
redemptionMethods
denominations
increment
maxValue
minValue
vendorId
currency
}
code
tremendousUrl
currency
cancelledAt
}
}
Variables
{"orderRef": "4"}
Response
{
"data": {
"digitalReward": {
"orderRef": "4",
"value": 123,
"hasOrderCode": true,
"barcode": DigitalBarcode,
"messageTemplate": "abc123",
"headlineTemplate": "xyz789",
"orgName": "xyz789",
"logoUrl": "abc123",
"logoBackgroundColor": "xyz789",
"logoPrimaryColor": "xyz789",
"recipientName": "xyz789",
"recipientEmail": "abc123",
"recipientOrgName": "abc123",
"creatorName": "abc123",
"creatorEmail": "abc123",
"allowsCharity": false,
"brands": [DigitalBrand],
"brand": DigitalBrand,
"code": "xyz789",
"tremendousUrl": "abc123",
"currency": "USD",
"cancelledAt": "2007-12-03T10:15:30Z"
}
}
}
exchangeRates
Response
Returns [ExchangeRate!]!
Example
Query
query ExchangeRates {
exchangeRates {
currency
ratePerUsd
}
}
Response
{"data": {"exchangeRates": [{"currency": "USD", "ratePerUsd": 987.65}]}}
funds
Response
Returns a Float
Example
Query
query Funds {
funds
}
Response
{"data": {"funds": 123.45}}
googleAuthCodeUrl
Response
Returns a String!
Example
Query
query GoogleAuthCodeUrl {
googleAuthCodeUrl
}
Response
{"data": {"googleAuthCodeUrl": "abc123"}}
hubSpotContacts
Response
Returns [HubSpotContact!]!
Arguments
| Name | Description |
|---|---|
input - HubSpotContactsInput!
|
Example
Query
query HubSpotContacts($input: HubSpotContactsInput!) {
hubSpotContacts(input: $input) {
id
companyId
name
firstname
lastname
email
company {
id
name
}
address
city
state
zip
phone
}
}
Variables
{"input": HubSpotContactsInput}
Response
{
"data": {
"hubSpotContacts": [
{
"id": 4,
"companyId": 4,
"name": "abc123",
"firstname": "abc123",
"lastname": "xyz789",
"email": "abc123",
"company": HubSpotCompany,
"address": "xyz789",
"city": "abc123",
"state": "xyz789",
"zip": "xyz789",
"phone": "xyz789"
}
]
}
}
hubSpotToken
Response
Returns a HubSpotToken
Example
Query
query HubSpotToken {
hubSpotToken {
user
hubDomain
hubId
appId
hubSpotUserId
}
}
Response
{
"data": {
"hubSpotToken": {
"user": "xyz789",
"hubDomain": "abc123",
"hubId": "4",
"appId": 4,
"hubSpotUserId": "4"
}
}
}
integrationWebhookSample
Response
Returns a WebhookSampleResponse
Example
Query
query IntegrationWebhookSample {
integrationWebhookSample {
order {
id
value
message
emailSubject
deliveryMethod
status
}
recipient {
name
email
orgName
}
sender {
id
email
name
teamId
teamName
}
}
}
Response
{
"data": {
"integrationWebhookSample": {
"order": OrderSampleOrder,
"recipient": OrderSampleRecipient,
"sender": OrderSampleSender
}
}
}
me
Response
Returns a User
Example
Query
query Me {
me {
id
name
email
role
password
budget {
id
amount
isPaymentFallbackEnabled
refillAmount
isRollover
}
salesForceUserId
hubSpotUserId
teams {
userId
teamId
name
isAdmin
}
org {
id
name
formattedName
users {
...UsersFragment
}
logoUrl
logoBackgroundColor
logoPrimaryColor
isInternational
hubSpotUserInfo {
...HubSpotUserInfoFragment
}
hubSpotUsers {
...HubSpotUserFragment
}
salesForceUserInfo {
...SalesForceUserInfoFragment
}
salesForceUsers {
...SalesForceUserFragment
}
teams {
...TeamsFragment
}
}
status
googleEmail
microsoftEmail
hubSpotToken {
user
hubDomain
hubId
appId
hubSpotUserId
}
apiPasswords {
id
trailingChars
}
}
}
Response
{
"data": {
"me": {
"id": 4,
"name": "xyz789",
"email": "abc123",
"role": "ADMIN",
"password": "abc123",
"budget": Budget,
"salesForceUserId": "abc123",
"hubSpotUserId": "xyz789",
"teams": [UserTeams],
"org": Org,
"status": "ACTIVE",
"googleEmail": "xyz789",
"microsoftEmail": "xyz789",
"hubSpotToken": HubSpotToken,
"apiPasswords": [ApiPassword]
}
}
}
microsoftAuthCodeUrl
Response
Returns a String!
Example
Query
query MicrosoftAuthCodeUrl {
microsoftAuthCodeUrl
}
Response
{"data": {"microsoftAuthCodeUrl": "abc123"}}
oAuthGetToken
Response
Returns a String!
Arguments
| Name | Description |
|---|---|
query - GetTokenQuery!
|
Example
Query
query OAuthGetToken($query: GetTokenQuery!) {
oAuthGetToken(query: $query)
}
Variables
{"query": GetTokenQuery}
Response
{"data": {"oAuthGetToken": "abc123"}}
orders
Response
Returns an Orders!
Arguments
| Name | Description |
|---|---|
skip - Int!
|
|
take - Int!
|
|
sort - OrderSortKey
|
|
myOrders - Boolean
|
|
getAll - Boolean
|
|
query - OrderQuery
|
Example
Query
query Orders(
$skip: Int!,
$take: Int!,
$sort: OrderSortKey,
$myOrders: Boolean,
$getAll: Boolean,
$query: OrderQuery
) {
orders(
skip: $skip,
take: $take,
sort: $sort,
myOrders: $myOrders,
getAll: $getAll,
query: $query
) {
totalCount
nodes {
id
ref
createdAt
creatorName
recipientName
recipientOrg
events {
...DigitalOrderEventFragment
}
fulfillmentEvents {
...FulfillmentEventFragment
}
type
totalCost
description
cancelledAt
}
}
}
Variables
{
"skip": 987,
"take": 123,
"sort": "CREATED_AT_ASC",
"myOrders": false,
"getAll": false,
"query": OrderQuery
}
Response
{
"data": {
"orders": {"totalCount": 123, "nodes": [Order]}
}
}
org
Response
Returns an Org
Example
Query
query Org {
org {
id
name
formattedName
users {
totalCount
nodes {
...UserFragment
}
}
logoUrl
logoBackgroundColor
logoPrimaryColor
isInternational
hubSpotUserInfo {
id
displayName
}
hubSpotUsers {
id
name
email
}
salesForceUserInfo {
id
username
nickName
displayName
}
salesForceUsers {
id
name
email
}
teams {
id
name
users {
...UsersWithTeamFragment
}
}
}
}
Response
{
"data": {
"org": {
"id": 4,
"name": "xyz789",
"formattedName": "abc123",
"users": Users,
"logoUrl": "xyz789",
"logoBackgroundColor": "abc123",
"logoPrimaryColor": "xyz789",
"isInternational": true,
"hubSpotUserInfo": HubSpotUserInfo,
"hubSpotUsers": [HubSpotUser],
"salesForceUserInfo": SalesForceUserInfo,
"salesForceUsers": [SalesForceUser],
"teams": [Teams]
}
}
}
physicalCampaign
Response
Returns a PhysicalCampaign
Arguments
| Name | Description |
|---|---|
id - ID!
|
Example
Query
query PhysicalCampaign($id: ID!) {
physicalCampaign(id: $id) {
id
ref
createdAt
name
gifts {
id
title
messageMaxLength
messageMaxLines
descriptionHtml
featuredImageSrc
initialShippingCost
products {
...ProductFragment
}
productVariants {
...ProductVariantFragment
}
isDisabled
categories
isThirdParty
shipsThroughWarehouse
purchaseUrl
vendor {
...PhysicalVendorFragment
}
orgId
}
messageTemplate
}
}
Variables
{"id": "4"}
Response
{
"data": {
"physicalCampaign": {
"id": "4",
"ref": "xyz789",
"createdAt": "2007-12-03T10:15:30Z",
"name": "abc123",
"gifts": [PhysicalGift],
"messageTemplate": "abc123"
}
}
}
physicalCampaigns
Response
Returns a PhysicalCampaigns!
Arguments
| Name | Description |
|---|---|
skip - Int!
|
|
take - Int!
|
|
sort - PhysicalCampaignSortKey
|
|
query - PhysicalCampaignQuery
|
Example
Query
query PhysicalCampaigns(
$skip: Int!,
$take: Int!,
$sort: PhysicalCampaignSortKey,
$query: PhysicalCampaignQuery
) {
physicalCampaigns(
skip: $skip,
take: $take,
sort: $sort,
query: $query
) {
totalCount
nodes {
id
ref
createdAt
name
gifts {
...PhysicalGiftFragment
}
messageTemplate
}
}
}
Variables
{
"skip": 123,
"take": 123,
"sort": "CREATED_AT_ASC",
"query": PhysicalCampaignQuery
}
Response
{
"data": {
"physicalCampaigns": {
"totalCount": 987,
"nodes": [PhysicalCampaign]
}
}
}
physicalGift
Response
Returns a PhysicalGift
Arguments
| Name | Description |
|---|---|
id - ID!
|
Example
Query
query PhysicalGift($id: ID!) {
physicalGift(id: $id) {
id
title
messageMaxLength
messageMaxLines
descriptionHtml
featuredImageSrc
initialShippingCost
products {
id
org {
...OrgFragment
}
isAddon
images {
...ImageFragment
}
variants {
...ProductVariantFragment
}
}
productVariants {
id
price
}
isDisabled
categories
isThirdParty
shipsThroughWarehouse
purchaseUrl
vendor {
id
name
messageMaxLength
messageMaxLines
}
orgId
}
}
Variables
{"id": 4}
Response
{
"data": {
"physicalGift": {
"id": 4,
"title": "abc123",
"messageMaxLength": 987,
"messageMaxLines": 987,
"descriptionHtml": "xyz789",
"featuredImageSrc": "abc123",
"initialShippingCost": 123,
"products": [Product],
"productVariants": [ProductVariant],
"isDisabled": true,
"categories": ["xyz789"],
"isThirdParty": true,
"shipsThroughWarehouse": false,
"purchaseUrl": "xyz789",
"vendor": PhysicalVendor,
"orgId": "abc123"
}
}
}
physicalGifts
Response
Returns a PhysicalGifts!
Arguments
| Name | Description |
|---|---|
skip - Int!
|
|
take - Int!
|
|
query - PhysicalGiftQuery
|
Example
Query
query PhysicalGifts(
$skip: Int!,
$take: Int!,
$query: PhysicalGiftQuery
) {
physicalGifts(
skip: $skip,
take: $take,
query: $query
) {
totalCount
nodes {
id
title
messageMaxLength
messageMaxLines
descriptionHtml
featuredImageSrc
initialShippingCost
products {
...ProductFragment
}
productVariants {
...ProductVariantFragment
}
isDisabled
categories
isThirdParty
shipsThroughWarehouse
purchaseUrl
vendor {
...PhysicalVendorFragment
}
orgId
}
}
}
Variables
{"skip": 123, "take": 987, "query": PhysicalGiftQuery}
Response
{
"data": {
"physicalGifts": {
"totalCount": 987,
"nodes": [PhysicalGift]
}
}
}
physicalOrder
Response
Returns a PhysicalOrder
Arguments
| Name | Description |
|---|---|
id - ID!
|
Example
Query
query PhysicalOrder($id: ID!) {
physicalOrder(id: $id) {
id
ref
createdAt
recipient {
id
org {
...OrgFragment
}
email
name
salesForceContactId
salesForceAccountId
hubSpotContactId
hubSpotCompanyId
orgName
}
isAddressConfirmed
recipientSubmitsAddress
creatorName
orgName
orgBranding {
logoUrl
logoBackgroundColor
logoPrimaryColor
}
vendorName
message
invoiceItems {
id
createdAt
amount
description
}
mailingAddress {
address1
address2
city
company
country
countryCodeV2
firstName
lastName
id
phone
province
provinceCode
zip
}
purchaseUrl
description
shopifyOrderId
shopifyOrderName
vendorOrderId
fulfillmentEvents {
happenedAt
id
message
status
}
images {
altText
height
id
url
width
}
giftChoices {
id
title
messageMaxLength
messageMaxLines
descriptionHtml
featuredImageSrc
initialShippingCost
products {
...ProductFragment
}
productVariants {
...ProductVariantFragment
}
isDisabled
categories
isThirdParty
shipsThroughWarehouse
purchaseUrl
vendor {
...PhysicalVendorFragment
}
orgId
}
selectedGift {
id
title
messageMaxLength
messageMaxLines
descriptionHtml
featuredImageSrc
initialShippingCost
products {
...ProductFragment
}
productVariants {
...ProductVariantFragment
}
isDisabled
categories
isThirdParty
shipsThroughWarehouse
purchaseUrl
vendor {
...PhysicalVendorFragment
}
orgId
}
isThirdParty
shipsThroughWarehouse
cancelledAt
}
}
Variables
{"id": "4"}
Response
{
"data": {
"physicalOrder": {
"id": 4,
"ref": "abc123",
"createdAt": "2007-12-03T10:15:30Z",
"recipient": Recipient,
"isAddressConfirmed": true,
"recipientSubmitsAddress": true,
"creatorName": "abc123",
"orgName": "xyz789",
"orgBranding": OrgBranding,
"vendorName": "abc123",
"message": "abc123",
"invoiceItems": [InvoiceItem],
"mailingAddress": MailingAddress,
"purchaseUrl": "abc123",
"description": "abc123",
"shopifyOrderId": "abc123",
"shopifyOrderName": "xyz789",
"vendorOrderId": "xyz789",
"fulfillmentEvents": [FulfillmentEvent],
"images": [Image],
"giftChoices": [PhysicalGift],
"selectedGift": PhysicalGift,
"isThirdParty": true,
"shipsThroughWarehouse": false,
"cancelledAt": "2007-12-03T10:15:30Z"
}
}
}
physicalOrderByRef
Response
Returns a PhysicalOrder
Arguments
| Name | Description |
|---|---|
ref - ID!
|
Example
Query
query PhysicalOrderByRef($ref: ID!) {
physicalOrderByRef(ref: $ref) {
id
ref
createdAt
recipient {
id
org {
...OrgFragment
}
email
name
salesForceContactId
salesForceAccountId
hubSpotContactId
hubSpotCompanyId
orgName
}
isAddressConfirmed
recipientSubmitsAddress
creatorName
orgName
orgBranding {
logoUrl
logoBackgroundColor
logoPrimaryColor
}
vendorName
message
invoiceItems {
id
createdAt
amount
description
}
mailingAddress {
address1
address2
city
company
country
countryCodeV2
firstName
lastName
id
phone
province
provinceCode
zip
}
purchaseUrl
description
shopifyOrderId
shopifyOrderName
vendorOrderId
fulfillmentEvents {
happenedAt
id
message
status
}
images {
altText
height
id
url
width
}
giftChoices {
id
title
messageMaxLength
messageMaxLines
descriptionHtml
featuredImageSrc
initialShippingCost
products {
...ProductFragment
}
productVariants {
...ProductVariantFragment
}
isDisabled
categories
isThirdParty
shipsThroughWarehouse
purchaseUrl
vendor {
...PhysicalVendorFragment
}
orgId
}
selectedGift {
id
title
messageMaxLength
messageMaxLines
descriptionHtml
featuredImageSrc
initialShippingCost
products {
...ProductFragment
}
productVariants {
...ProductVariantFragment
}
isDisabled
categories
isThirdParty
shipsThroughWarehouse
purchaseUrl
vendor {
...PhysicalVendorFragment
}
orgId
}
isThirdParty
shipsThroughWarehouse
cancelledAt
}
}
Variables
{"ref": 4}
Response
{
"data": {
"physicalOrderByRef": {
"id": "4",
"ref": "abc123",
"createdAt": "2007-12-03T10:15:30Z",
"recipient": Recipient,
"isAddressConfirmed": false,
"recipientSubmitsAddress": false,
"creatorName": "xyz789",
"orgName": "xyz789",
"orgBranding": OrgBranding,
"vendorName": "abc123",
"message": "xyz789",
"invoiceItems": [InvoiceItem],
"mailingAddress": MailingAddress,
"purchaseUrl": "xyz789",
"description": "xyz789",
"shopifyOrderId": "abc123",
"shopifyOrderName": "xyz789",
"vendorOrderId": "abc123",
"fulfillmentEvents": [FulfillmentEvent],
"images": [Image],
"giftChoices": [PhysicalGift],
"selectedGift": PhysicalGift,
"isThirdParty": false,
"shipsThroughWarehouse": true,
"cancelledAt": "2007-12-03T10:15:30Z"
}
}
}
physicalOrders
Response
Returns a PhysicalOrders!
Arguments
| Name | Description |
|---|---|
skip - Int!
|
|
take - Int!
|
|
sort - PhysicalOrderSortKey
|
|
query - PhysicalOrderQuery
|
Example
Query
query PhysicalOrders(
$skip: Int!,
$take: Int!,
$sort: PhysicalOrderSortKey,
$query: PhysicalOrderQuery
) {
physicalOrders(
skip: $skip,
take: $take,
sort: $sort,
query: $query
) {
totalCount
nodes {
id
ref
createdAt
recipient {
...RecipientFragment
}
isAddressConfirmed
recipientSubmitsAddress
creatorName
orgName
orgBranding {
...OrgBrandingFragment
}
vendorName
message
invoiceItems {
...InvoiceItemFragment
}
mailingAddress {
...MailingAddressFragment
}
purchaseUrl
description
shopifyOrderId
shopifyOrderName
vendorOrderId
fulfillmentEvents {
...FulfillmentEventFragment
}
images {
...ImageFragment
}
giftChoices {
...PhysicalGiftFragment
}
selectedGift {
...PhysicalGiftFragment
}
isThirdParty
shipsThroughWarehouse
cancelledAt
}
}
}
Variables
{
"skip": 987,
"take": 123,
"sort": "CREATED_AT_ASC",
"query": PhysicalOrderQuery
}
Response
{
"data": {
"physicalOrders": {
"totalCount": 987,
"nodes": [PhysicalOrder]
}
}
}
physicalOrdersAdmin
Response
Returns [PhysicalOrder!]!
Example
Query
query PhysicalOrdersAdmin {
physicalOrdersAdmin {
id
ref
createdAt
recipient {
id
org {
...OrgFragment
}
email
name
salesForceContactId
salesForceAccountId
hubSpotContactId
hubSpotCompanyId
orgName
}
isAddressConfirmed
recipientSubmitsAddress
creatorName
orgName
orgBranding {
logoUrl
logoBackgroundColor
logoPrimaryColor
}
vendorName
message
invoiceItems {
id
createdAt
amount
description
}
mailingAddress {
address1
address2
city
company
country
countryCodeV2
firstName
lastName
id
phone
province
provinceCode
zip
}
purchaseUrl
description
shopifyOrderId
shopifyOrderName
vendorOrderId
fulfillmentEvents {
happenedAt
id
message
status
}
images {
altText
height
id
url
width
}
giftChoices {
id
title
messageMaxLength
messageMaxLines
descriptionHtml
featuredImageSrc
initialShippingCost
products {
...ProductFragment
}
productVariants {
...ProductVariantFragment
}
isDisabled
categories
isThirdParty
shipsThroughWarehouse
purchaseUrl
vendor {
...PhysicalVendorFragment
}
orgId
}
selectedGift {
id
title
messageMaxLength
messageMaxLines
descriptionHtml
featuredImageSrc
initialShippingCost
products {
...ProductFragment
}
productVariants {
...ProductVariantFragment
}
isDisabled
categories
isThirdParty
shipsThroughWarehouse
purchaseUrl
vendor {
...PhysicalVendorFragment
}
orgId
}
isThirdParty
shipsThroughWarehouse
cancelledAt
}
}
Response
{
"data": {
"physicalOrdersAdmin": [
{
"id": 4,
"ref": "xyz789",
"createdAt": "2007-12-03T10:15:30Z",
"recipient": Recipient,
"isAddressConfirmed": false,
"recipientSubmitsAddress": true,
"creatorName": "abc123",
"orgName": "xyz789",
"orgBranding": OrgBranding,
"vendorName": "abc123",
"message": "xyz789",
"invoiceItems": [InvoiceItem],
"mailingAddress": MailingAddress,
"purchaseUrl": "abc123",
"description": "abc123",
"shopifyOrderId": "xyz789",
"shopifyOrderName": "xyz789",
"vendorOrderId": "xyz789",
"fulfillmentEvents": [FulfillmentEvent],
"images": [Image],
"giftChoices": [PhysicalGift],
"selectedGift": PhysicalGift,
"isThirdParty": true,
"shipsThroughWarehouse": false,
"cancelledAt": "2007-12-03T10:15:30Z"
}
]
}
}
saasCharges
Response
Returns [Charge!]!
Example
Query
query SaasCharges {
saasCharges {
id
amount
created
description
receiptUrl
}
}
Response
{
"data": {
"saasCharges": [
{
"id": 4,
"amount": 123,
"created": "2007-12-03T10:15:30Z",
"description": "abc123",
"receiptUrl": "xyz789"
}
]
}
}
salesForceContact
Response
Returns a SalesForceContact
Arguments
| Name | Description |
|---|---|
input - SalesForceContactInput!
|
Example
Query
query SalesForceContact($input: SalesForceContactInput!) {
salesForceContact(input: $input) {
id
phone
email
name
account {
id
name
}
mailingAddress {
city
country
postalCode
state
street
}
}
}
Variables
{"input": SalesForceContactInput}
Response
{
"data": {
"salesForceContact": {
"id": 4,
"phone": "xyz789",
"email": "xyz789",
"name": "abc123",
"account": SalesForceAccount,
"mailingAddress": SalesForceMailingAddress
}
}
}
salesForceContacts
Response
Returns [SalesForceContact!]!
Arguments
| Name | Description |
|---|---|
input - SalesForceContactsInput!
|
Example
Query
query SalesForceContacts($input: SalesForceContactsInput!) {
salesForceContacts(input: $input) {
id
phone
email
name
account {
id
name
}
mailingAddress {
city
country
postalCode
state
street
}
}
}
Variables
{"input": SalesForceContactsInput}
Response
{
"data": {
"salesForceContacts": [
{
"id": "4",
"phone": "xyz789",
"email": "abc123",
"name": "abc123",
"account": SalesForceAccount,
"mailingAddress": SalesForceMailingAddress
}
]
}
}
salesForceReport
Response
Returns a SalesForceReport
Arguments
| Name | Description |
|---|---|
input - SalesForceReportInput!
|
Example
Query
query SalesForceReport($input: SalesForceReportInput!) {
salesForceReport(input: $input) {
id
startDate
endDate
currency
opportunities {
id
accountId
amount
isWon
isClosed
timestamp
orders {
...SalesForceReportOrderFragment
}
}
orders {
id
campaignId
salesForceAccountId
amount
timestamp
campaignName
}
}
}
Variables
{"input": SalesForceReportInput}
Response
{
"data": {
"salesForceReport": {
"id": 4,
"startDate": "2007-12-03T10:15:30Z",
"endDate": "2007-12-03T10:15:30Z",
"currency": "xyz789",
"opportunities": [SalesForceReportOpportunity],
"orders": [SalesForceReportOrder]
}
}
}
salesForceToken
Response
Returns a SalesForceToken
Example
Query
query SalesForceToken {
salesForceToken {
id
instanceUrl
}
}
Response
{
"data": {
"salesForceToken": {
"id": "4",
"instanceUrl": "abc123"
}
}
}
salesForceUser
Response
Returns a SalesForceUser
Example
Query
query SalesForceUser {
salesForceUser {
id
name
email
}
}
Response
{
"data": {
"salesForceUser": {
"id": 4,
"name": "abc123",
"email": "abc123"
}
}
}
userByInviteCode
Response
Returns a User
Arguments
| Name | Description |
|---|---|
input - UserByInviteCodeInput!
|
Example
Query
query UserByInviteCode($input: UserByInviteCodeInput!) {
userByInviteCode(input: $input) {
id
name
email
role
password
budget {
id
amount
isPaymentFallbackEnabled
refillAmount
isRollover
}
salesForceUserId
hubSpotUserId
teams {
userId
teamId
name
isAdmin
}
org {
id
name
formattedName
users {
...UsersFragment
}
logoUrl
logoBackgroundColor
logoPrimaryColor
isInternational
hubSpotUserInfo {
...HubSpotUserInfoFragment
}
hubSpotUsers {
...HubSpotUserFragment
}
salesForceUserInfo {
...SalesForceUserInfoFragment
}
salesForceUsers {
...SalesForceUserFragment
}
teams {
...TeamsFragment
}
}
status
googleEmail
microsoftEmail
hubSpotToken {
user
hubDomain
hubId
appId
hubSpotUserId
}
apiPasswords {
id
trailingChars
}
}
}
Variables
{"input": UserByInviteCodeInput}
Response
{
"data": {
"userByInviteCode": {
"id": 4,
"name": "abc123",
"email": "xyz789",
"role": "ADMIN",
"password": "xyz789",
"budget": Budget,
"salesForceUserId": "abc123",
"hubSpotUserId": "xyz789",
"teams": [UserTeams],
"org": Org,
"status": "ACTIVE",
"googleEmail": "xyz789",
"microsoftEmail": "xyz789",
"hubSpotToken": HubSpotToken,
"apiPasswords": [ApiPassword]
}
}
}
vendors
Response
Returns [PhysicalVendor!]!
Example
Query
query Vendors {
vendors {
id
name
messageMaxLength
messageMaxLines
}
}
Response
{
"data": {
"vendors": [
{
"id": 4,
"name": "xyz789",
"messageMaxLength": 987,
"messageMaxLines": 123
}
]
}
}
Mutations
_empty
Response
Returns a Boolean
Example
Query
mutation _empty {
_empty
}
Response
{"data": {"_empty": true}}
apiPasswordCreate
Response
Returns a String!
Example
Query
mutation ApiPasswordCreate {
apiPasswordCreate
}
Response
{"data": {"apiPasswordCreate": "xyz789"}}
apiPasswordDelete
assetUploadUrlCreate
Response
Returns an AssetUploadUrl
Arguments
| Name | Description |
|---|---|
input - AssetUploadUrlInput!
|
Example
Query
mutation AssetUploadUrlCreate($input: AssetUploadUrlInput!) {
assetUploadUrlCreate(input: $input) {
url
key
}
}
Variables
{"input": AssetUploadUrlInput}
Response
{
"data": {
"assetUploadUrlCreate": {
"url": "abc123",
"key": "xyz789"
}
}
}
budgetUpdate
Response
Returns a Budget!
Arguments
| Name | Description |
|---|---|
id - ID!
|
|
input - BudgetInput!
|
Example
Query
mutation BudgetUpdate(
$id: ID!,
$input: BudgetInput!
) {
budgetUpdate(
id: $id,
input: $input
) {
id
amount
isPaymentFallbackEnabled
refillAmount
isRollover
}
}
Variables
{
"id": "4",
"input": BudgetInput
}
Response
{
"data": {
"budgetUpdate": {
"id": "4",
"amount": 987.65,
"isPaymentFallbackEnabled": true,
"refillAmount": 123,
"isRollover": true
}
}
}
cardUpdate
Response
Returns a Customer!
Example
Query
mutation CardUpdate(
$paymentMethodId: ID!,
$saasPaymentMethodId: ID!
) {
cardUpdate(
paymentMethodId: $paymentMethodId,
saasPaymentMethodId: $saasPaymentMethodId
) {
id
name
email
card {
id
last4
brand
}
balance
spendableBalance
}
}
Variables
{
"paymentMethodId": 4,
"saasPaymentMethodId": "4"
}
Response
{
"data": {
"cardUpdate": {
"id": 4,
"name": "abc123",
"email": "abc123",
"card": Card,
"balance": 123,
"spendableBalance": 987
}
}
}
digitalBarcodeCreate
Response
Returns a DigitalBarcode!
Arguments
| Name | Description |
|---|---|
digitalOrderCode - ID!
|
Example
Query
mutation DigitalBarcodeCreate($digitalOrderCode: ID!) {
digitalBarcodeCreate(digitalOrderCode: $digitalOrderCode) {
id
number
csc
barcodeKind
barcodeValue
viewCardUrl
}
}
Variables
{"digitalOrderCode": 4}
Response
{
"data": {
"digitalBarcodeCreate": {
"id": "4",
"number": "abc123",
"csc": "abc123",
"barcodeKind": "xyz789",
"barcodeValue": "abc123",
"viewCardUrl": "abc123"
}
}
}
digitalCampaignCreate
Response
Returns a DigitalCampaign!
Arguments
| Name | Description |
|---|---|
input - DigitalCampaignInput!
|
Example
Query
mutation DigitalCampaignCreate($input: DigitalCampaignInput!) {
digitalCampaignCreate(input: $input) {
id
createdAt
ref
name
rewardValue
brands
messageTemplate
headlineTemplate
allowCharity
brandsSummary
isArchived
currency
}
}
Variables
{"input": DigitalCampaignInput}
Response
{
"data": {
"digitalCampaignCreate": {
"id": 4,
"createdAt": "2007-12-03T10:15:30Z",
"ref": "abc123",
"name": "abc123",
"rewardValue": 123,
"brands": [4],
"messageTemplate": "xyz789",
"headlineTemplate": "abc123",
"allowCharity": false,
"brandsSummary": "abc123",
"isArchived": true,
"currency": "USD"
}
}
}
digitalCampaignUpdate
Response
Returns a DigitalCampaign!
Arguments
| Name | Description |
|---|---|
id - ID!
|
|
input - DigitalCampaignInput!
|
Example
Query
mutation DigitalCampaignUpdate(
$id: ID!,
$input: DigitalCampaignInput!
) {
digitalCampaignUpdate(
id: $id,
input: $input
) {
id
createdAt
ref
name
rewardValue
brands
messageTemplate
headlineTemplate
allowCharity
brandsSummary
isArchived
currency
}
}
Variables
{
"id": "4",
"input": DigitalCampaignInput
}
Response
{
"data": {
"digitalCampaignUpdate": {
"id": 4,
"createdAt": "2007-12-03T10:15:30Z",
"ref": "abc123",
"name": "xyz789",
"rewardValue": 123,
"brands": [4],
"messageTemplate": "xyz789",
"headlineTemplate": "abc123",
"allowCharity": false,
"brandsSummary": "xyz789",
"isArchived": true,
"currency": "USD"
}
}
}
digitalOrderBatchCsvCreate
digitalOrderBatchMarkDelivered
digitalOrderBulkCreate
Response
Returns a DigitalOrderBatch!
Arguments
| Name | Description |
|---|---|
input - DigitalOrderBulkInput!
|
Example
Query
mutation DigitalOrderBulkCreate($input: DigitalOrderBulkInput!) {
digitalOrderBulkCreate(input: $input) {
id
ref
creator {
id
name
email
role
password
budget {
...BudgetFragment
}
salesForceUserId
hubSpotUserId
teams {
...UserTeamsFragment
}
org {
...OrgFragment
}
status
googleEmail
microsoftEmail
hubSpotToken {
...HubSpotTokenFragment
}
apiPasswords {
...ApiPasswordFragment
}
}
createdAt
totalOrders
totalDelivered
totalPaid
digitalOrders {
totalCount
nodes {
...DigitalOrderFragment
}
}
}
}
Variables
{"input": DigitalOrderBulkInput}
Response
{
"data": {
"digitalOrderBulkCreate": {
"id": 4,
"ref": "abc123",
"creator": User,
"createdAt": "2007-12-03T10:15:30Z",
"totalOrders": 123,
"totalDelivered": 123,
"totalPaid": 123,
"digitalOrders": DigitalOrders
}
}
}
digitalOrderCancel
Response
Returns a DigitalOrder!
Arguments
| Name | Description |
|---|---|
id - ID!
|
Example
Query
mutation DigitalOrderCancel($id: ID!) {
digitalOrderCancel(id: $id) {
id
ref
createdAt
rewardValue
status
rewardLink
recipient {
id
org {
...OrgFragment
}
email
name
salesForceContactId
salesForceAccountId
hubSpotContactId
hubSpotCompanyId
orgName
}
creator {
id
name
email
role
password
budget {
...BudgetFragment
}
salesForceUserId
hubSpotUserId
teams {
...UserTeamsFragment
}
org {
...OrgFragment
}
status
googleEmail
microsoftEmail
hubSpotToken {
...HubSpotTokenFragment
}
apiPasswords {
...ApiPasswordFragment
}
}
campaign {
id
createdAt
ref
name
rewardValue
brands
messageTemplate
headlineTemplate
allowCharity
brandsSummary
isArchived
currency
}
description
deliveryMethod
events {
id
createdAt
code
}
cancelledAt
teamId
}
}
Variables
{"id": "4"}
Response
{
"data": {
"digitalOrderCancel": {
"id": "4",
"ref": "xyz789",
"createdAt": "2007-12-03T10:15:30Z",
"rewardValue": 123,
"status": "PAYMENT_PENDING",
"rewardLink": "abc123",
"recipient": Recipient,
"creator": User,
"campaign": DigitalCampaign,
"description": "xyz789",
"deliveryMethod": "LINK",
"events": [DigitalOrderEvent],
"cancelledAt": "2007-12-03T10:15:30Z",
"teamId": "abc123"
}
}
}
digitalOrderCodeCreate
Response
Returns a Boolean
Arguments
| Name | Description |
|---|---|
input - DigitalOrderCodeInput!
|
Example
Query
mutation DigitalOrderCodeCreate($input: DigitalOrderCodeInput!) {
digitalOrderCodeCreate(input: $input)
}
Variables
{"input": DigitalOrderCodeInput}
Response
{"data": {"digitalOrderCodeCreate": false}}
digitalOrderCodeEmailCreate
digitalOrderConfirmTremendous
Example
Query
mutation DigitalOrderConfirmTremendous($digitalOrderCode: ID!) {
digitalOrderConfirmTremendous(digitalOrderCode: $digitalOrderCode)
}
Variables
{"digitalOrderCode": 4}
Response
{"data": {"digitalOrderConfirmTremendous": false}}
digitalOrderCreate
Response
Returns a DigitalOrder!
Arguments
| Name | Description |
|---|---|
input - DigitalOrderInput!
|
Example
Query
mutation DigitalOrderCreate($input: DigitalOrderInput!) {
digitalOrderCreate(input: $input) {
id
ref
createdAt
rewardValue
status
rewardLink
recipient {
id
org {
...OrgFragment
}
email
name
salesForceContactId
salesForceAccountId
hubSpotContactId
hubSpotCompanyId
orgName
}
creator {
id
name
email
role
password
budget {
...BudgetFragment
}
salesForceUserId
hubSpotUserId
teams {
...UserTeamsFragment
}
org {
...OrgFragment
}
status
googleEmail
microsoftEmail
hubSpotToken {
...HubSpotTokenFragment
}
apiPasswords {
...ApiPasswordFragment
}
}
campaign {
id
createdAt
ref
name
rewardValue
brands
messageTemplate
headlineTemplate
allowCharity
brandsSummary
isArchived
currency
}
description
deliveryMethod
events {
id
createdAt
code
}
cancelledAt
teamId
}
}
Variables
{"input": DigitalOrderInput}
Response
{
"data": {
"digitalOrderCreate": {
"id": 4,
"ref": "abc123",
"createdAt": "2007-12-03T10:15:30Z",
"rewardValue": 123,
"status": "PAYMENT_PENDING",
"rewardLink": "xyz789",
"recipient": Recipient,
"creator": User,
"campaign": DigitalCampaign,
"description": "abc123",
"deliveryMethod": "LINK",
"events": [DigitalOrderEvent],
"cancelledAt": "2007-12-03T10:15:30Z",
"teamId": "abc123"
}
}
}
digitalOrderEmailCreate
digitalOrderMarkDelivered
digitalOrdersCsvCreate
Response
Returns a String!
Arguments
| Name | Description |
|---|---|
query - DigitalOrderQuery
|
Example
Query
mutation DigitalOrdersCsvCreate($query: DigitalOrderQuery) {
digitalOrdersCsvCreate(query: $query)
}
Variables
{"query": DigitalOrderQuery}
Response
{
"data": {
"digitalOrdersCsvCreate": "abc123"
}
}
fundsAdd
Response
Returns a Boolean
Arguments
| Name | Description |
|---|---|
input - FundsInput!
|
Example
Query
mutation FundsAdd($input: FundsInput!) {
fundsAdd(input: $input)
}
Variables
{"input": FundsInput}
Response
{"data": {"fundsAdd": false}}
fundsAddBulk
Response
Returns a Boolean
Arguments
| Name | Description |
|---|---|
input - [FundsInput!]!
|
Example
Query
mutation FundsAddBulk($input: [FundsInput!]!) {
fundsAddBulk(input: $input)
}
Variables
{"input": [FundsInput]}
Response
{"data": {"fundsAddBulk": false}}
fundsMove
Response
Returns a Boolean
Arguments
| Name | Description |
|---|---|
input - FundsMoveInput!
|
Example
Query
mutation FundsMove($input: FundsMoveInput!) {
fundsMove(input: $input)
}
Variables
{"input": FundsMoveInput}
Response
{"data": {"fundsMove": false}}
googleTokenCreate
googleTokenDelete
Response
Returns a Boolean
Example
Query
mutation GoogleTokenDelete {
googleTokenDelete
}
Response
{"data": {"googleTokenDelete": false}}
hubSpotTokenCreate
Response
Returns a HubSpotToken!
Arguments
| Name | Description |
|---|---|
input - HubSpotTokenInput!
|
Example
Query
mutation HubSpotTokenCreate($input: HubSpotTokenInput!) {
hubSpotTokenCreate(input: $input) {
user
hubDomain
hubId
appId
hubSpotUserId
}
}
Variables
{"input": HubSpotTokenInput}
Response
{
"data": {
"hubSpotTokenCreate": {
"user": "abc123",
"hubDomain": "xyz789",
"hubId": "4",
"appId": "4",
"hubSpotUserId": 4
}
}
}
hubSpotTokenDelete
Response
Returns a Boolean
Example
Query
mutation HubSpotTokenDelete {
hubSpotTokenDelete
}
Response
{"data": {"hubSpotTokenDelete": true}}
integrationWebhookCreate
Response
Returns a WebhookCreateResponse!
Arguments
| Name | Description |
|---|---|
input - WebhookCreateInput!
|
Example
Query
mutation IntegrationWebhookCreate($input: WebhookCreateInput!) {
integrationWebhookCreate(input: $input) {
id
}
}
Variables
{"input": WebhookCreateInput}
Response
{
"data": {
"integrationWebhookCreate": {
"id": "abc123"
}
}
}
integrationWebhookDelete
Response
Returns a String!
Arguments
| Name | Description |
|---|---|
input - WebhookDeleteInput!
|
Example
Query
mutation IntegrationWebhookDelete($input: WebhookDeleteInput!) {
integrationWebhookDelete(input: $input)
}
Variables
{"input": WebhookDeleteInput}
Response
{
"data": {
"integrationWebhookDelete": "xyz789"
}
}
inviteAccept
Response
Returns a Boolean
Arguments
| Name | Description |
|---|---|
input - AcceptInviteInput!
|
Example
Query
mutation InviteAccept($input: AcceptInviteInput!) {
inviteAccept(input: $input)
}
Variables
{"input": AcceptInviteInput}
Response
{"data": {"inviteAccept": true}}
inviteResend
Response
Returns a Boolean
Arguments
| Name | Description |
|---|---|
input - ResendInviteInput!
|
Example
Query
mutation InviteResend($input: ResendInviteInput!) {
inviteResend(input: $input)
}
Variables
{"input": ResendInviteInput}
Response
{"data": {"inviteResend": true}}
inviteRevoke
Response
Returns a Boolean
Arguments
| Name | Description |
|---|---|
input - RevokeInviteInput!
|
Example
Query
mutation InviteRevoke($input: RevokeInviteInput!) {
inviteRevoke(input: $input)
}
Variables
{"input": RevokeInviteInput}
Response
{"data": {"inviteRevoke": false}}
invoiceItemCreate
Response
Returns an InvoiceItem!
Arguments
| Name | Description |
|---|---|
input - InvoiceItemInput!
|
Example
Query
mutation InvoiceItemCreate($input: InvoiceItemInput!) {
invoiceItemCreate(input: $input) {
id
createdAt
amount
description
}
}
Variables
{"input": InvoiceItemInput}
Response
{
"data": {
"invoiceItemCreate": {
"id": "4",
"createdAt": "2007-12-03T10:15:30Z",
"amount": 987,
"description": "abc123"
}
}
}
login
loginApi
Example
Query
mutation LoginApi(
$username: String!,
$password: String!
) {
loginApi(
username: $username,
password: $password
)
}
Variables
{
"username": "abc123",
"password": "xyz789"
}
Response
{"data": {"loginApi": "xyz789"}}
loginAsOrg
Response
Returns a String!
Arguments
| Name | Description |
|---|---|
input - LoginAsOrgInput!
|
Example
Query
mutation LoginAsOrg($input: LoginAsOrgInput!) {
loginAsOrg(input: $input)
}
Variables
{"input": LoginAsOrgInput}
Response
{"data": {"loginAsOrg": "abc123"}}
loginAsUser
Response
Returns a String!
Arguments
| Name | Description |
|---|---|
input - LoginAsUserInput!
|
Example
Query
mutation LoginAsUser($input: LoginAsUserInput!) {
loginAsUser(input: $input)
}
Variables
{"input": LoginAsUserInput}
Response
{"data": {"loginAsUser": "abc123"}}
loginWithGoogle
loginWithMicrosoft
microsoftTokenCreate
microsoftTokenDelete
Response
Returns a Boolean
Example
Query
mutation MicrosoftTokenDelete {
microsoftTokenDelete
}
Response
{"data": {"microsoftTokenDelete": true}}
oAuthGenerateCode
Response
Returns a String!
Example
Query
mutation OAuthGenerateCode {
oAuthGenerateCode
}
Response
{"data": {"oAuthGenerateCode": "xyz789"}}
ordersCsvCreate
Response
Returns a String!
Arguments
| Name | Description |
|---|---|
query - OrderQuery
|
|
myOrders - Boolean
|
|
sort - OrderSortKey
|
Example
Query
mutation OrdersCsvCreate(
$query: OrderQuery,
$myOrders: Boolean,
$sort: OrderSortKey
) {
ordersCsvCreate(
query: $query,
myOrders: $myOrders,
sort: $sort
)
}
Variables
{
"query": OrderQuery,
"myOrders": false,
"sort": "CREATED_AT_ASC"
}
Response
{"data": {"ordersCsvCreate": "abc123"}}
orgUpdate
Example
Query
mutation OrgUpdate(
$id: ID!,
$input: OrgInput!
) {
orgUpdate(
id: $id,
input: $input
) {
id
name
formattedName
users {
totalCount
nodes {
...UserFragment
}
}
logoUrl
logoBackgroundColor
logoPrimaryColor
isInternational
hubSpotUserInfo {
id
displayName
}
hubSpotUsers {
id
name
email
}
salesForceUserInfo {
id
username
nickName
displayName
}
salesForceUsers {
id
name
email
}
teams {
id
name
users {
...UsersWithTeamFragment
}
}
}
}
Variables
{"id": 4, "input": OrgInput}
Response
{
"data": {
"orgUpdate": {
"id": "4",
"name": "abc123",
"formattedName": "abc123",
"users": Users,
"logoUrl": "abc123",
"logoBackgroundColor": "xyz789",
"logoPrimaryColor": "xyz789",
"isInternational": true,
"hubSpotUserInfo": HubSpotUserInfo,
"hubSpotUsers": [HubSpotUser],
"salesForceUserInfo": SalesForceUserInfo,
"salesForceUsers": [SalesForceUser],
"teams": [Teams]
}
}
}
passwordRequestReset
passwordReset
Response
Returns a String!
Arguments
| Name | Description |
|---|---|
input - PasswordResetInput!
|
Example
Query
mutation PasswordReset($input: PasswordResetInput!) {
passwordReset(input: $input)
}
Variables
{"input": PasswordResetInput}
Response
{"data": {"passwordReset": "xyz789"}}
passwordUpdate
Response
Returns a Boolean
Arguments
| Name | Description |
|---|---|
input - PasswordUpdateInput!
|
Example
Query
mutation PasswordUpdate($input: PasswordUpdateInput!) {
passwordUpdate(input: $input)
}
Variables
{"input": PasswordUpdateInput}
Response
{"data": {"passwordUpdate": true}}
physicalCampaignCreate
Response
Returns a PhysicalCampaign!
Arguments
| Name | Description |
|---|---|
input - PhysicalCampaignInput!
|
Example
Query
mutation PhysicalCampaignCreate($input: PhysicalCampaignInput!) {
physicalCampaignCreate(input: $input) {
id
ref
createdAt
name
gifts {
id
title
messageMaxLength
messageMaxLines
descriptionHtml
featuredImageSrc
initialShippingCost
products {
...ProductFragment
}
productVariants {
...ProductVariantFragment
}
isDisabled
categories
isThirdParty
shipsThroughWarehouse
purchaseUrl
vendor {
...PhysicalVendorFragment
}
orgId
}
messageTemplate
}
}
Variables
{"input": PhysicalCampaignInput}
Response
{
"data": {
"physicalCampaignCreate": {
"id": 4,
"ref": "xyz789",
"createdAt": "2007-12-03T10:15:30Z",
"name": "xyz789",
"gifts": [PhysicalGift],
"messageTemplate": "xyz789"
}
}
}
physicalCampaignUpdate
Response
Returns a PhysicalCampaign!
Arguments
| Name | Description |
|---|---|
id - ID!
|
|
input - PhysicalCampaignInput!
|
Example
Query
mutation PhysicalCampaignUpdate(
$id: ID!,
$input: PhysicalCampaignInput!
) {
physicalCampaignUpdate(
id: $id,
input: $input
) {
id
ref
createdAt
name
gifts {
id
title
messageMaxLength
messageMaxLines
descriptionHtml
featuredImageSrc
initialShippingCost
products {
...ProductFragment
}
productVariants {
...ProductVariantFragment
}
isDisabled
categories
isThirdParty
shipsThroughWarehouse
purchaseUrl
vendor {
...PhysicalVendorFragment
}
orgId
}
messageTemplate
}
}
Variables
{"id": 4, "input": PhysicalCampaignInput}
Response
{
"data": {
"physicalCampaignUpdate": {
"id": 4,
"ref": "abc123",
"createdAt": "2007-12-03T10:15:30Z",
"name": "xyz789",
"gifts": [PhysicalGift],
"messageTemplate": "xyz789"
}
}
}
physicalGiftCreate
Response
Returns a PhysicalGift!
Arguments
| Name | Description |
|---|---|
input - PhysicalGiftInput!
|
Example
Query
mutation PhysicalGiftCreate($input: PhysicalGiftInput!) {
physicalGiftCreate(input: $input) {
id
title
messageMaxLength
messageMaxLines
descriptionHtml
featuredImageSrc
initialShippingCost
products {
id
org {
...OrgFragment
}
isAddon
images {
...ImageFragment
}
variants {
...ProductVariantFragment
}
}
productVariants {
id
price
}
isDisabled
categories
isThirdParty
shipsThroughWarehouse
purchaseUrl
vendor {
id
name
messageMaxLength
messageMaxLines
}
orgId
}
}
Variables
{"input": PhysicalGiftInput}
Response
{
"data": {
"physicalGiftCreate": {
"id": 4,
"title": "xyz789",
"messageMaxLength": 123,
"messageMaxLines": 987,
"descriptionHtml": "xyz789",
"featuredImageSrc": "xyz789",
"initialShippingCost": 987,
"products": [Product],
"productVariants": [ProductVariant],
"isDisabled": false,
"categories": ["abc123"],
"isThirdParty": true,
"shipsThroughWarehouse": false,
"purchaseUrl": "xyz789",
"vendor": PhysicalVendor,
"orgId": "abc123"
}
}
}
physicalGiftUpdate
Response
Returns a PhysicalGift!
Arguments
| Name | Description |
|---|---|
id - ID!
|
|
input - PhysicalGiftInput!
|
Example
Query
mutation PhysicalGiftUpdate(
$id: ID!,
$input: PhysicalGiftInput!
) {
physicalGiftUpdate(
id: $id,
input: $input
) {
id
title
messageMaxLength
messageMaxLines
descriptionHtml
featuredImageSrc
initialShippingCost
products {
id
org {
...OrgFragment
}
isAddon
images {
...ImageFragment
}
variants {
...ProductVariantFragment
}
}
productVariants {
id
price
}
isDisabled
categories
isThirdParty
shipsThroughWarehouse
purchaseUrl
vendor {
id
name
messageMaxLength
messageMaxLines
}
orgId
}
}
Variables
{
"id": "4",
"input": PhysicalGiftInput
}
Response
{
"data": {
"physicalGiftUpdate": {
"id": 4,
"title": "xyz789",
"messageMaxLength": 987,
"messageMaxLines": 123,
"descriptionHtml": "xyz789",
"featuredImageSrc": "abc123",
"initialShippingCost": 123,
"products": [Product],
"productVariants": [ProductVariant],
"isDisabled": false,
"categories": ["xyz789"],
"isThirdParty": false,
"shipsThroughWarehouse": true,
"purchaseUrl": "abc123",
"vendor": PhysicalVendor,
"orgId": "abc123"
}
}
}
physicalOrderCancel
Response
Returns a PhysicalOrder!
Arguments
| Name | Description |
|---|---|
id - ID!
|
Example
Query
mutation PhysicalOrderCancel($id: ID!) {
physicalOrderCancel(id: $id) {
id
ref
createdAt
recipient {
id
org {
...OrgFragment
}
email
name
salesForceContactId
salesForceAccountId
hubSpotContactId
hubSpotCompanyId
orgName
}
isAddressConfirmed
recipientSubmitsAddress
creatorName
orgName
orgBranding {
logoUrl
logoBackgroundColor
logoPrimaryColor
}
vendorName
message
invoiceItems {
id
createdAt
amount
description
}
mailingAddress {
address1
address2
city
company
country
countryCodeV2
firstName
lastName
id
phone
province
provinceCode
zip
}
purchaseUrl
description
shopifyOrderId
shopifyOrderName
vendorOrderId
fulfillmentEvents {
happenedAt
id
message
status
}
images {
altText
height
id
url
width
}
giftChoices {
id
title
messageMaxLength
messageMaxLines
descriptionHtml
featuredImageSrc
initialShippingCost
products {
...ProductFragment
}
productVariants {
...ProductVariantFragment
}
isDisabled
categories
isThirdParty
shipsThroughWarehouse
purchaseUrl
vendor {
...PhysicalVendorFragment
}
orgId
}
selectedGift {
id
title
messageMaxLength
messageMaxLines
descriptionHtml
featuredImageSrc
initialShippingCost
products {
...ProductFragment
}
productVariants {
...ProductVariantFragment
}
isDisabled
categories
isThirdParty
shipsThroughWarehouse
purchaseUrl
vendor {
...PhysicalVendorFragment
}
orgId
}
isThirdParty
shipsThroughWarehouse
cancelledAt
}
}
Variables
{"id": "4"}
Response
{
"data": {
"physicalOrderCancel": {
"id": 4,
"ref": "abc123",
"createdAt": "2007-12-03T10:15:30Z",
"recipient": Recipient,
"isAddressConfirmed": false,
"recipientSubmitsAddress": true,
"creatorName": "abc123",
"orgName": "abc123",
"orgBranding": OrgBranding,
"vendorName": "abc123",
"message": "xyz789",
"invoiceItems": [InvoiceItem],
"mailingAddress": MailingAddress,
"purchaseUrl": "xyz789",
"description": "xyz789",
"shopifyOrderId": "abc123",
"shopifyOrderName": "xyz789",
"vendorOrderId": "abc123",
"fulfillmentEvents": [FulfillmentEvent],
"images": [Image],
"giftChoices": [PhysicalGift],
"selectedGift": PhysicalGift,
"isThirdParty": false,
"shipsThroughWarehouse": false,
"cancelledAt": "2007-12-03T10:15:30Z"
}
}
}
physicalOrderComplete
Response
Returns a PhysicalOrder!
Arguments
| Name | Description |
|---|---|
id - ID!
|
Example
Query
mutation PhysicalOrderComplete($id: ID!) {
physicalOrderComplete(id: $id) {
id
ref
createdAt
recipient {
id
org {
...OrgFragment
}
email
name
salesForceContactId
salesForceAccountId
hubSpotContactId
hubSpotCompanyId
orgName
}
isAddressConfirmed
recipientSubmitsAddress
creatorName
orgName
orgBranding {
logoUrl
logoBackgroundColor
logoPrimaryColor
}
vendorName
message
invoiceItems {
id
createdAt
amount
description
}
mailingAddress {
address1
address2
city
company
country
countryCodeV2
firstName
lastName
id
phone
province
provinceCode
zip
}
purchaseUrl
description
shopifyOrderId
shopifyOrderName
vendorOrderId
fulfillmentEvents {
happenedAt
id
message
status
}
images {
altText
height
id
url
width
}
giftChoices {
id
title
messageMaxLength
messageMaxLines
descriptionHtml
featuredImageSrc
initialShippingCost
products {
...ProductFragment
}
productVariants {
...ProductVariantFragment
}
isDisabled
categories
isThirdParty
shipsThroughWarehouse
purchaseUrl
vendor {
...PhysicalVendorFragment
}
orgId
}
selectedGift {
id
title
messageMaxLength
messageMaxLines
descriptionHtml
featuredImageSrc
initialShippingCost
products {
...ProductFragment
}
productVariants {
...ProductVariantFragment
}
isDisabled
categories
isThirdParty
shipsThroughWarehouse
purchaseUrl
vendor {
...PhysicalVendorFragment
}
orgId
}
isThirdParty
shipsThroughWarehouse
cancelledAt
}
}
Variables
{"id": "4"}
Response
{
"data": {
"physicalOrderComplete": {
"id": "4",
"ref": "abc123",
"createdAt": "2007-12-03T10:15:30Z",
"recipient": Recipient,
"isAddressConfirmed": true,
"recipientSubmitsAddress": false,
"creatorName": "xyz789",
"orgName": "abc123",
"orgBranding": OrgBranding,
"vendorName": "xyz789",
"message": "abc123",
"invoiceItems": [InvoiceItem],
"mailingAddress": MailingAddress,
"purchaseUrl": "abc123",
"description": "abc123",
"shopifyOrderId": "xyz789",
"shopifyOrderName": "abc123",
"vendorOrderId": "abc123",
"fulfillmentEvents": [FulfillmentEvent],
"images": [Image],
"giftChoices": [PhysicalGift],
"selectedGift": PhysicalGift,
"isThirdParty": false,
"shipsThroughWarehouse": false,
"cancelledAt": "2007-12-03T10:15:30Z"
}
}
}
physicalOrderConfirm
Response
Returns a PhysicalOrder!
Arguments
| Name | Description |
|---|---|
input - PhysicalOrderInput!
|
|
id - ID!
|
Example
Query
mutation PhysicalOrderConfirm(
$input: PhysicalOrderInput!,
$id: ID!
) {
physicalOrderConfirm(
input: $input,
id: $id
) {
id
ref
createdAt
recipient {
id
org {
...OrgFragment
}
email
name
salesForceContactId
salesForceAccountId
hubSpotContactId
hubSpotCompanyId
orgName
}
isAddressConfirmed
recipientSubmitsAddress
creatorName
orgName
orgBranding {
logoUrl
logoBackgroundColor
logoPrimaryColor
}
vendorName
message
invoiceItems {
id
createdAt
amount
description
}
mailingAddress {
address1
address2
city
company
country
countryCodeV2
firstName
lastName
id
phone
province
provinceCode
zip
}
purchaseUrl
description
shopifyOrderId
shopifyOrderName
vendorOrderId
fulfillmentEvents {
happenedAt
id
message
status
}
images {
altText
height
id
url
width
}
giftChoices {
id
title
messageMaxLength
messageMaxLines
descriptionHtml
featuredImageSrc
initialShippingCost
products {
...ProductFragment
}
productVariants {
...ProductVariantFragment
}
isDisabled
categories
isThirdParty
shipsThroughWarehouse
purchaseUrl
vendor {
...PhysicalVendorFragment
}
orgId
}
selectedGift {
id
title
messageMaxLength
messageMaxLines
descriptionHtml
featuredImageSrc
initialShippingCost
products {
...ProductFragment
}
productVariants {
...ProductVariantFragment
}
isDisabled
categories
isThirdParty
shipsThroughWarehouse
purchaseUrl
vendor {
...PhysicalVendorFragment
}
orgId
}
isThirdParty
shipsThroughWarehouse
cancelledAt
}
}
Variables
{
"input": PhysicalOrderInput,
"id": "4"
}
Response
{
"data": {
"physicalOrderConfirm": {
"id": 4,
"ref": "xyz789",
"createdAt": "2007-12-03T10:15:30Z",
"recipient": Recipient,
"isAddressConfirmed": false,
"recipientSubmitsAddress": false,
"creatorName": "abc123",
"orgName": "abc123",
"orgBranding": OrgBranding,
"vendorName": "abc123",
"message": "abc123",
"invoiceItems": [InvoiceItem],
"mailingAddress": MailingAddress,
"purchaseUrl": "xyz789",
"description": "xyz789",
"shopifyOrderId": "xyz789",
"shopifyOrderName": "xyz789",
"vendorOrderId": "abc123",
"fulfillmentEvents": [FulfillmentEvent],
"images": [Image],
"giftChoices": [PhysicalGift],
"selectedGift": PhysicalGift,
"isThirdParty": false,
"shipsThroughWarehouse": false,
"cancelledAt": "2007-12-03T10:15:30Z"
}
}
}
physicalOrderCreate
Response
Returns a PhysicalOrder!
Arguments
| Name | Description |
|---|---|
input - PhysicalOrderInput!
|
Example
Query
mutation PhysicalOrderCreate($input: PhysicalOrderInput!) {
physicalOrderCreate(input: $input) {
id
ref
createdAt
recipient {
id
org {
...OrgFragment
}
email
name
salesForceContactId
salesForceAccountId
hubSpotContactId
hubSpotCompanyId
orgName
}
isAddressConfirmed
recipientSubmitsAddress
creatorName
orgName
orgBranding {
logoUrl
logoBackgroundColor
logoPrimaryColor
}
vendorName
message
invoiceItems {
id
createdAt
amount
description
}
mailingAddress {
address1
address2
city
company
country
countryCodeV2
firstName
lastName
id
phone
province
provinceCode
zip
}
purchaseUrl
description
shopifyOrderId
shopifyOrderName
vendorOrderId
fulfillmentEvents {
happenedAt
id
message
status
}
images {
altText
height
id
url
width
}
giftChoices {
id
title
messageMaxLength
messageMaxLines
descriptionHtml
featuredImageSrc
initialShippingCost
products {
...ProductFragment
}
productVariants {
...ProductVariantFragment
}
isDisabled
categories
isThirdParty
shipsThroughWarehouse
purchaseUrl
vendor {
...PhysicalVendorFragment
}
orgId
}
selectedGift {
id
title
messageMaxLength
messageMaxLines
descriptionHtml
featuredImageSrc
initialShippingCost
products {
...ProductFragment
}
productVariants {
...ProductVariantFragment
}
isDisabled
categories
isThirdParty
shipsThroughWarehouse
purchaseUrl
vendor {
...PhysicalVendorFragment
}
orgId
}
isThirdParty
shipsThroughWarehouse
cancelledAt
}
}
Variables
{"input": PhysicalOrderInput}
Response
{
"data": {
"physicalOrderCreate": {
"id": "4",
"ref": "abc123",
"createdAt": "2007-12-03T10:15:30Z",
"recipient": Recipient,
"isAddressConfirmed": true,
"recipientSubmitsAddress": true,
"creatorName": "abc123",
"orgName": "xyz789",
"orgBranding": OrgBranding,
"vendorName": "abc123",
"message": "abc123",
"invoiceItems": [InvoiceItem],
"mailingAddress": MailingAddress,
"purchaseUrl": "abc123",
"description": "abc123",
"shopifyOrderId": "xyz789",
"shopifyOrderName": "xyz789",
"vendorOrderId": "abc123",
"fulfillmentEvents": [FulfillmentEvent],
"images": [Image],
"giftChoices": [PhysicalGift],
"selectedGift": PhysicalGift,
"isThirdParty": false,
"shipsThroughWarehouse": false,
"cancelledAt": "2007-12-03T10:15:30Z"
}
}
}
physicalOrderMarkPurchased
Response
Returns a PhysicalOrder!
Example
Query
mutation PhysicalOrderMarkPurchased(
$id: ID!,
$vendorOrderId: String!,
$actualCost: Int!
) {
physicalOrderMarkPurchased(
id: $id,
vendorOrderId: $vendorOrderId,
actualCost: $actualCost
) {
id
ref
createdAt
recipient {
id
org {
...OrgFragment
}
email
name
salesForceContactId
salesForceAccountId
hubSpotContactId
hubSpotCompanyId
orgName
}
isAddressConfirmed
recipientSubmitsAddress
creatorName
orgName
orgBranding {
logoUrl
logoBackgroundColor
logoPrimaryColor
}
vendorName
message
invoiceItems {
id
createdAt
amount
description
}
mailingAddress {
address1
address2
city
company
country
countryCodeV2
firstName
lastName
id
phone
province
provinceCode
zip
}
purchaseUrl
description
shopifyOrderId
shopifyOrderName
vendorOrderId
fulfillmentEvents {
happenedAt
id
message
status
}
images {
altText
height
id
url
width
}
giftChoices {
id
title
messageMaxLength
messageMaxLines
descriptionHtml
featuredImageSrc
initialShippingCost
products {
...ProductFragment
}
productVariants {
...ProductVariantFragment
}
isDisabled
categories
isThirdParty
shipsThroughWarehouse
purchaseUrl
vendor {
...PhysicalVendorFragment
}
orgId
}
selectedGift {
id
title
messageMaxLength
messageMaxLines
descriptionHtml
featuredImageSrc
initialShippingCost
products {
...ProductFragment
}
productVariants {
...ProductVariantFragment
}
isDisabled
categories
isThirdParty
shipsThroughWarehouse
purchaseUrl
vendor {
...PhysicalVendorFragment
}
orgId
}
isThirdParty
shipsThroughWarehouse
cancelledAt
}
}
Variables
{
"id": 4,
"vendorOrderId": "xyz789",
"actualCost": 123
}
Response
{
"data": {
"physicalOrderMarkPurchased": {
"id": 4,
"ref": "xyz789",
"createdAt": "2007-12-03T10:15:30Z",
"recipient": Recipient,
"isAddressConfirmed": true,
"recipientSubmitsAddress": true,
"creatorName": "abc123",
"orgName": "xyz789",
"orgBranding": OrgBranding,
"vendorName": "xyz789",
"message": "xyz789",
"invoiceItems": [InvoiceItem],
"mailingAddress": MailingAddress,
"purchaseUrl": "xyz789",
"description": "abc123",
"shopifyOrderId": "abc123",
"shopifyOrderName": "abc123",
"vendorOrderId": "xyz789",
"fulfillmentEvents": [FulfillmentEvent],
"images": [Image],
"giftChoices": [PhysicalGift],
"selectedGift": PhysicalGift,
"isThirdParty": false,
"shipsThroughWarehouse": false,
"cancelledAt": "2007-12-03T10:15:30Z"
}
}
}
physicalOrderUpdate
Response
Returns a PhysicalOrder!
Arguments
| Name | Description |
|---|---|
input - PhysicalOrderInput!
|
|
id - ID!
|
Example
Query
mutation PhysicalOrderUpdate(
$input: PhysicalOrderInput!,
$id: ID!
) {
physicalOrderUpdate(
input: $input,
id: $id
) {
id
ref
createdAt
recipient {
id
org {
...OrgFragment
}
email
name
salesForceContactId
salesForceAccountId
hubSpotContactId
hubSpotCompanyId
orgName
}
isAddressConfirmed
recipientSubmitsAddress
creatorName
orgName
orgBranding {
logoUrl
logoBackgroundColor
logoPrimaryColor
}
vendorName
message
invoiceItems {
id
createdAt
amount
description
}
mailingAddress {
address1
address2
city
company
country
countryCodeV2
firstName
lastName
id
phone
province
provinceCode
zip
}
purchaseUrl
description
shopifyOrderId
shopifyOrderName
vendorOrderId
fulfillmentEvents {
happenedAt
id
message
status
}
images {
altText
height
id
url
width
}
giftChoices {
id
title
messageMaxLength
messageMaxLines
descriptionHtml
featuredImageSrc
initialShippingCost
products {
...ProductFragment
}
productVariants {
...ProductVariantFragment
}
isDisabled
categories
isThirdParty
shipsThroughWarehouse
purchaseUrl
vendor {
...PhysicalVendorFragment
}
orgId
}
selectedGift {
id
title
messageMaxLength
messageMaxLines
descriptionHtml
featuredImageSrc
initialShippingCost
products {
...ProductFragment
}
productVariants {
...ProductVariantFragment
}
isDisabled
categories
isThirdParty
shipsThroughWarehouse
purchaseUrl
vendor {
...PhysicalVendorFragment
}
orgId
}
isThirdParty
shipsThroughWarehouse
cancelledAt
}
}
Variables
{"input": PhysicalOrderInput, "id": 4}
Response
{
"data": {
"physicalOrderUpdate": {
"id": "4",
"ref": "xyz789",
"createdAt": "2007-12-03T10:15:30Z",
"recipient": Recipient,
"isAddressConfirmed": false,
"recipientSubmitsAddress": true,
"creatorName": "abc123",
"orgName": "xyz789",
"orgBranding": OrgBranding,
"vendorName": "xyz789",
"message": "xyz789",
"invoiceItems": [InvoiceItem],
"mailingAddress": MailingAddress,
"purchaseUrl": "xyz789",
"description": "abc123",
"shopifyOrderId": "xyz789",
"shopifyOrderName": "xyz789",
"vendorOrderId": "abc123",
"fulfillmentEvents": [FulfillmentEvent],
"images": [Image],
"giftChoices": [PhysicalGift],
"selectedGift": PhysicalGift,
"isThirdParty": false,
"shipsThroughWarehouse": true,
"cancelledAt": "2007-12-03T10:15:30Z"
}
}
}
physicalOrderUpdateMailingAddress
Response
Returns a PhysicalOrder!
Arguments
| Name | Description |
|---|---|
input - MailingAddressInput!
|
|
id - ID!
|
Example
Query
mutation PhysicalOrderUpdateMailingAddress(
$input: MailingAddressInput!,
$id: ID!
) {
physicalOrderUpdateMailingAddress(
input: $input,
id: $id
) {
id
ref
createdAt
recipient {
id
org {
...OrgFragment
}
email
name
salesForceContactId
salesForceAccountId
hubSpotContactId
hubSpotCompanyId
orgName
}
isAddressConfirmed
recipientSubmitsAddress
creatorName
orgName
orgBranding {
logoUrl
logoBackgroundColor
logoPrimaryColor
}
vendorName
message
invoiceItems {
id
createdAt
amount
description
}
mailingAddress {
address1
address2
city
company
country
countryCodeV2
firstName
lastName
id
phone
province
provinceCode
zip
}
purchaseUrl
description
shopifyOrderId
shopifyOrderName
vendorOrderId
fulfillmentEvents {
happenedAt
id
message
status
}
images {
altText
height
id
url
width
}
giftChoices {
id
title
messageMaxLength
messageMaxLines
descriptionHtml
featuredImageSrc
initialShippingCost
products {
...ProductFragment
}
productVariants {
...ProductVariantFragment
}
isDisabled
categories
isThirdParty
shipsThroughWarehouse
purchaseUrl
vendor {
...PhysicalVendorFragment
}
orgId
}
selectedGift {
id
title
messageMaxLength
messageMaxLines
descriptionHtml
featuredImageSrc
initialShippingCost
products {
...ProductFragment
}
productVariants {
...ProductVariantFragment
}
isDisabled
categories
isThirdParty
shipsThroughWarehouse
purchaseUrl
vendor {
...PhysicalVendorFragment
}
orgId
}
isThirdParty
shipsThroughWarehouse
cancelledAt
}
}
Variables
{
"input": MailingAddressInput,
"id": "4"
}
Response
{
"data": {
"physicalOrderUpdateMailingAddress": {
"id": 4,
"ref": "abc123",
"createdAt": "2007-12-03T10:15:30Z",
"recipient": Recipient,
"isAddressConfirmed": true,
"recipientSubmitsAddress": true,
"creatorName": "abc123",
"orgName": "xyz789",
"orgBranding": OrgBranding,
"vendorName": "abc123",
"message": "abc123",
"invoiceItems": [InvoiceItem],
"mailingAddress": MailingAddress,
"purchaseUrl": "xyz789",
"description": "xyz789",
"shopifyOrderId": "xyz789",
"shopifyOrderName": "xyz789",
"vendorOrderId": "abc123",
"fulfillmentEvents": [FulfillmentEvent],
"images": [Image],
"giftChoices": [PhysicalGift],
"selectedGift": PhysicalGift,
"isThirdParty": false,
"shipsThroughWarehouse": false,
"cancelledAt": "2007-12-03T10:15:30Z"
}
}
}
productCreate
Description
Creates a product.
If you need to create a product with many variants that are active at several locations, especially with a lot of collections and tags, then you should first create the product with just the variants.
After the product is created, you can activate the variants at locations and add the other related objects to the product. This reduces the size of each mutation and increases the likelihood that it will complete before the operation times out.
The following example shows how you might break up product creation and object association into multiple steps:
-
Create the product with variants. Don't specify any tags or collections on the product, and don't specify inventory quantities for each variant.
-
After the product is created, add tags to the product using the tagsAdd mutation, and add collections using the collectionsAddProducts mutation.
-
Use the inventoryBulkToggleActivation mutation on each inventory item to activate it at the appropriate locations.
-
After activating the variants at the locations, adjust inventory quantities at each location using the inventoryBulkAdjustQuantityAtLocation mutation.
Response
Returns a ProductCreatePayload
Arguments
| Name | Description |
|---|---|
input - ProductInput!
|
The properties of the new product. |
media - [CreateMediaInput!]
|
List of new media to be added to the product. |
Example
Query
mutation ProductCreate(
$input: ProductInput!,
$media: [CreateMediaInput!]
) {
productCreate(
input: $input,
media: $media
) {
product {
id
org {
...OrgFragment
}
isAddon
images {
...ImageFragment
}
variants {
...ProductVariantFragment
}
}
userErrors {
field
message
}
}
}
Variables
{
"input": ProductInput,
"media": [CreateMediaInput]
}
Response
{
"data": {
"productCreate": {
"product": Product,
"userErrors": [UserError]
}
}
}
resendInviteEmail
salesForceTokenCreate
Response
Returns a SalesForceToken
Arguments
| Name | Description |
|---|---|
input - SalesForceTokenInput!
|
Example
Query
mutation SalesForceTokenCreate($input: SalesForceTokenInput!) {
salesForceTokenCreate(input: $input) {
id
instanceUrl
}
}
Variables
{"input": SalesForceTokenInput}
Response
{
"data": {
"salesForceTokenCreate": {
"id": 4,
"instanceUrl": "xyz789"
}
}
}
salesForceTokenDelete
Response
Returns a Boolean
Example
Query
mutation SalesForceTokenDelete {
salesForceTokenDelete
}
Response
{"data": {"salesForceTokenDelete": true}}
setupIntentCreate
Response
Returns a String!
Example
Query
mutation SetupIntentCreate {
setupIntentCreate
}
Response
{"data": {"setupIntentCreate": "abc123"}}
signupAndCreateOrg
Response
Returns a String!
Example
Query
mutation SignupAndCreateOrg(
$orgName: String!,
$email: String!,
$password: String!,
$name: String!
) {
signupAndCreateOrg(
orgName: $orgName,
email: $email,
password: $password,
name: $name
)
}
Variables
{
"orgName": "xyz789",
"email": "abc123",
"password": "abc123",
"name": "abc123"
}
Response
{"data": {"signupAndCreateOrg": "xyz789"}}
teamCreate
Response
Returns a Team!
Arguments
| Name | Description |
|---|---|
input - TeamCreateInput!
|
Example
Query
mutation TeamCreate($input: TeamCreateInput!) {
teamCreate(input: $input) {
id
name
users {
id
name
email
role
password
budget {
...BudgetFragment
}
salesForceUserId
hubSpotUserId
teams {
...UserTeamsFragment
}
org {
...OrgFragment
}
status
googleEmail
microsoftEmail
hubSpotToken {
...HubSpotTokenFragment
}
apiPasswords {
...ApiPasswordFragment
}
}
isAdmin
}
}
Variables
{"input": TeamCreateInput}
Response
{
"data": {
"teamCreate": {
"id": 4,
"name": "xyz789",
"users": [User],
"isAdmin": true
}
}
}
userAdd
Response
Returns a User!
Arguments
| Name | Description |
|---|---|
input - UserInput!
|
Example
Query
mutation UserAdd($input: UserInput!) {
userAdd(input: $input) {
id
name
email
role
password
budget {
id
amount
isPaymentFallbackEnabled
refillAmount
isRollover
}
salesForceUserId
hubSpotUserId
teams {
userId
teamId
name
isAdmin
}
org {
id
name
formattedName
users {
...UsersFragment
}
logoUrl
logoBackgroundColor
logoPrimaryColor
isInternational
hubSpotUserInfo {
...HubSpotUserInfoFragment
}
hubSpotUsers {
...HubSpotUserFragment
}
salesForceUserInfo {
...SalesForceUserInfoFragment
}
salesForceUsers {
...SalesForceUserFragment
}
teams {
...TeamsFragment
}
}
status
googleEmail
microsoftEmail
hubSpotToken {
user
hubDomain
hubId
appId
hubSpotUserId
}
apiPasswords {
id
trailingChars
}
}
}
Variables
{"input": UserInput}
Response
{
"data": {
"userAdd": {
"id": "4",
"name": "abc123",
"email": "abc123",
"role": "ADMIN",
"password": "abc123",
"budget": Budget,
"salesForceUserId": "xyz789",
"hubSpotUserId": "xyz789",
"teams": [UserTeams],
"org": Org,
"status": "ACTIVE",
"googleEmail": "xyz789",
"microsoftEmail": "xyz789",
"hubSpotToken": HubSpotToken,
"apiPasswords": [ApiPassword]
}
}
}
userChangeTeam
Response
Returns a Team!
Arguments
| Name | Description |
|---|---|
input - UserChangeTeamInput!
|
Example
Query
mutation UserChangeTeam($input: UserChangeTeamInput!) {
userChangeTeam(input: $input) {
id
name
users {
id
name
email
role
password
budget {
...BudgetFragment
}
salesForceUserId
hubSpotUserId
teams {
...UserTeamsFragment
}
org {
...OrgFragment
}
status
googleEmail
microsoftEmail
hubSpotToken {
...HubSpotTokenFragment
}
apiPasswords {
...ApiPasswordFragment
}
}
isAdmin
}
}
Variables
{"input": UserChangeTeamInput}
Response
{
"data": {
"userChangeTeam": {
"id": "4",
"name": "abc123",
"users": [User],
"isAdmin": true
}
}
}
userChangeTeamRole
Response
Returns a Team!
Arguments
| Name | Description |
|---|---|
input - UserChangeTeamRoleInput!
|
Example
Query
mutation UserChangeTeamRole($input: UserChangeTeamRoleInput!) {
userChangeTeamRole(input: $input) {
id
name
users {
id
name
email
role
password
budget {
...BudgetFragment
}
salesForceUserId
hubSpotUserId
teams {
...UserTeamsFragment
}
org {
...OrgFragment
}
status
googleEmail
microsoftEmail
hubSpotToken {
...HubSpotTokenFragment
}
apiPasswords {
...ApiPasswordFragment
}
}
isAdmin
}
}
Variables
{"input": UserChangeTeamRoleInput}
Response
{
"data": {
"userChangeTeamRole": {
"id": "4",
"name": "abc123",
"users": [User],
"isAdmin": true
}
}
}
userReactivate
Example
Query
mutation UserReactivate($id: ID!) {
userReactivate(id: $id) {
id
name
email
role
password
budget {
id
amount
isPaymentFallbackEnabled
refillAmount
isRollover
}
salesForceUserId
hubSpotUserId
teams {
userId
teamId
name
isAdmin
}
org {
id
name
formattedName
users {
...UsersFragment
}
logoUrl
logoBackgroundColor
logoPrimaryColor
isInternational
hubSpotUserInfo {
...HubSpotUserInfoFragment
}
hubSpotUsers {
...HubSpotUserFragment
}
salesForceUserInfo {
...SalesForceUserInfoFragment
}
salesForceUsers {
...SalesForceUserFragment
}
teams {
...TeamsFragment
}
}
status
googleEmail
microsoftEmail
hubSpotToken {
user
hubDomain
hubId
appId
hubSpotUserId
}
apiPasswords {
id
trailingChars
}
}
}
Variables
{"id": "4"}
Response
{
"data": {
"userReactivate": {
"id": 4,
"name": "xyz789",
"email": "abc123",
"role": "ADMIN",
"password": "abc123",
"budget": Budget,
"salesForceUserId": "xyz789",
"hubSpotUserId": "abc123",
"teams": [UserTeams],
"org": Org,
"status": "ACTIVE",
"googleEmail": "xyz789",
"microsoftEmail": "abc123",
"hubSpotToken": HubSpotToken,
"apiPasswords": [ApiPassword]
}
}
}
userRemove
Example
Query
mutation UserRemove($id: ID!) {
userRemove(id: $id) {
id
name
email
role
password
budget {
id
amount
isPaymentFallbackEnabled
refillAmount
isRollover
}
salesForceUserId
hubSpotUserId
teams {
userId
teamId
name
isAdmin
}
org {
id
name
formattedName
users {
...UsersFragment
}
logoUrl
logoBackgroundColor
logoPrimaryColor
isInternational
hubSpotUserInfo {
...HubSpotUserInfoFragment
}
hubSpotUsers {
...HubSpotUserFragment
}
salesForceUserInfo {
...SalesForceUserInfoFragment
}
salesForceUsers {
...SalesForceUserFragment
}
teams {
...TeamsFragment
}
}
status
googleEmail
microsoftEmail
hubSpotToken {
user
hubDomain
hubId
appId
hubSpotUserId
}
apiPasswords {
id
trailingChars
}
}
}
Variables
{"id": "4"}
Response
{
"data": {
"userRemove": {
"id": 4,
"name": "xyz789",
"email": "abc123",
"role": "ADMIN",
"password": "abc123",
"budget": Budget,
"salesForceUserId": "xyz789",
"hubSpotUserId": "abc123",
"teams": [UserTeams],
"org": Org,
"status": "ACTIVE",
"googleEmail": "abc123",
"microsoftEmail": "abc123",
"hubSpotToken": HubSpotToken,
"apiPasswords": [ApiPassword]
}
}
}
userUpdate
Response
Returns a User!
Arguments
| Name | Description |
|---|---|
id - ID!
|
|
input - UserInput!
|
Example
Query
mutation UserUpdate(
$id: ID!,
$input: UserInput!
) {
userUpdate(
id: $id,
input: $input
) {
id
name
email
role
password
budget {
id
amount
isPaymentFallbackEnabled
refillAmount
isRollover
}
salesForceUserId
hubSpotUserId
teams {
userId
teamId
name
isAdmin
}
org {
id
name
formattedName
users {
...UsersFragment
}
logoUrl
logoBackgroundColor
logoPrimaryColor
isInternational
hubSpotUserInfo {
...HubSpotUserInfoFragment
}
hubSpotUsers {
...HubSpotUserFragment
}
salesForceUserInfo {
...SalesForceUserInfoFragment
}
salesForceUsers {
...SalesForceUserFragment
}
teams {
...TeamsFragment
}
}
status
googleEmail
microsoftEmail
hubSpotToken {
user
hubDomain
hubId
appId
hubSpotUserId
}
apiPasswords {
id
trailingChars
}
}
}
Variables
{
"id": "4",
"input": UserInput
}
Response
{
"data": {
"userUpdate": {
"id": "4",
"name": "abc123",
"email": "xyz789",
"role": "ADMIN",
"password": "xyz789",
"budget": Budget,
"salesForceUserId": "abc123",
"hubSpotUserId": "xyz789",
"teams": [UserTeams],
"org": Org,
"status": "ACTIVE",
"googleEmail": "xyz789",
"microsoftEmail": "xyz789",
"hubSpotToken": HubSpotToken,
"apiPasswords": [ApiPassword]
}
}
}
Types
AcceptInviteInput
Fields
| Input Field | Description |
|---|---|
inviteCode - String!
|
Example
{"inviteCode": "abc123"}
ApiPassword
AssetUploadUrl
AssetUploadUrlInput
Fields
| Input Field | Description |
|---|---|
contentType - String!
|
Example
{"contentType": "xyz789"}
Boolean
Description
The Boolean scalar type represents true or false.
Budget
BudgetInput
Campaign
Fields
| Field Name | Description |
|---|---|
id - ID!
|
|
ref - String!
|
|
createdAt - DateTime!
|
|
type - CampaignType!
|
|
name - String
|
Example
{
"id": "4",
"ref": "abc123",
"createdAt": "2007-12-03T10:15:30Z",
"type": "DIGITAL",
"name": "xyz789"
}
CampaignQuery
Example
{
"createdAtMin": "2007-12-03T10:15:30Z",
"createdAtMax": "2007-12-03T10:15:30Z",
"isArchived": true,
"teamId": "abc123",
"type": "DIGITAL",
"text": "xyz789"
}
CampaignSortKey
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
Example
"CREATED_AT_ASC"
CampaignType
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
Example
"DIGITAL"
Campaigns
Fields
| Field Name | Description |
|---|---|
totalCount - Int!
|
|
nodes - [Campaign!]!
|
Example
{"totalCount": 987, "nodes": [Campaign]}
Card
Category
Charge
ChargeQuery
Charges
Fields
| Field Name | Description |
|---|---|
totalCount - Int
|
|
nextPage - String
|
|
nodes - [Charge!]!
|
Example
{
"totalCount": 123,
"nextPage": "xyz789",
"nodes": [Charge]
}
CreateMediaInput
Description
Specifies the input fields required to create a media object.
Fields
| Input Field | Description |
|---|---|
originalSource - String!
|
The original source of the media object. This might be an external URL or a staged upload URL. |
alt - String
|
The alt text associated with the media. |
mediaContentType - MediaContentType!
|
The media content type. |
Example
{
"originalSource": "xyz789",
"alt": "xyz789",
"mediaContentType": "VIDEO"
}
Currency
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
Example
"USD"
Customer
DateTime
Description
A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the date-time format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar.
Example
"2007-12-03T10:15:30Z"
DigitalBarcode
Description
Results of the Raise order
Fields
| Field Name | Description |
|---|---|
id - ID!
|
The Raise primary key. UUID. |
number - String
|
Primary gift card number |
csc - String
|
Secondary, security number |
barcodeKind - String
|
Encoding for the raw card barcode. This is needed to render the barcode image. |
barcodeValue - String
|
The raw value for the gift card barcode: the input for barcode rendering. |
viewCardUrl - String
|
The URL for viewing the barcode |
Example
{
"id": 4,
"number": "abc123",
"csc": "abc123",
"barcodeKind": "abc123",
"barcodeValue": "abc123",
"viewCardUrl": "xyz789"
}
DigitalBrand
Description
Digital reward brand
Fields
| Field Name | Description |
|---|---|
id - ID!
|
|
name - String!
|
|
iconUrl - String
|
|
faceplateUrl - String
|
For displaying the card image |
legalTerms - String
|
|
description - String
|
|
redemptionDisclaimer - String
|
|
redemptionMethods - [String!]
|
|
denominations - [Int!]
|
The possible values, in cents, that the card can be redeemed for. A null value means the possible redemption values are defined by the increment. |
increment - Int
|
The valid redemption increment, in cents. A null value means the possible redemption values are defined by the denominations. |
maxValue - Int!
|
Max redemption value of the card, in cents |
minValue - Int!
|
Min redemption value of the card, in cents |
vendorId - ID!
|
Vendor for this brand. |
currency - Currency!
|
Denominated currency for this brand |
Example
{
"id": 4,
"name": "abc123",
"iconUrl": "abc123",
"faceplateUrl": "xyz789",
"legalTerms": "abc123",
"description": "abc123",
"redemptionDisclaimer": "abc123",
"redemptionMethods": ["abc123"],
"denominations": [987],
"increment": 123,
"maxValue": 123,
"minValue": 123,
"vendorId": 4,
"currency": "USD"
}
DigitalBrandQuery
DigitalCampaign
Example
{
"id": "4",
"createdAt": "2007-12-03T10:15:30Z",
"ref": "abc123",
"name": "abc123",
"rewardValue": 123,
"brands": [4],
"messageTemplate": "abc123",
"headlineTemplate": "xyz789",
"allowCharity": true,
"brandsSummary": "xyz789",
"isArchived": false,
"currency": "USD"
}
DigitalCampaignInput
Example
{
"name": "xyz789",
"messageTemplate": "abc123",
"headlineTemplate": "xyz789",
"brands": ["4"],
"rewardValue": 987,
"currency": "USD",
"allowCharity": true,
"isArchived": false
}
DigitalCampaignQuery
Example
{
"creatorEmail": "xyz789",
"createdAtMin": "2007-12-03T10:15:30Z",
"createdAtMax": "2007-12-03T10:15:30Z",
"rewardValueMin": 987,
"rewardValueMax": 123,
"isArchived": false,
"currency": "USD"
}
DigitalCampaignSortKey
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
Example
"CREATED_AT_ASC"
DigitalCampaigns
Fields
| Field Name | Description |
|---|---|
totalCount - Int!
|
|
nodes - [DigitalCampaign!]!
|
Example
{"totalCount": 987, "nodes": [DigitalCampaign]}
DigitalOrder
Fields
| Field Name | Description |
|---|---|
id - ID!
|
|
ref - String!
|
|
createdAt - DateTime!
|
|
rewardValue - Int!
|
|
status - DigitalOrderStatus!
|
|
rewardLink - String!
|
|
recipient - Recipient!
|
|
creator - User!
|
|
campaign - DigitalCampaign
|
|
description - String
|
|
deliveryMethod - DigitalOrderDeliveryMethod!
|
|
events - [DigitalOrderEvent!]!
|
|
cancelledAt - DateTime
|
|
teamId - String
|
Example
{
"id": 4,
"ref": "xyz789",
"createdAt": "2007-12-03T10:15:30Z",
"rewardValue": 123,
"status": "PAYMENT_PENDING",
"rewardLink": "abc123",
"recipient": Recipient,
"creator": User,
"campaign": DigitalCampaign,
"description": "xyz789",
"deliveryMethod": "LINK",
"events": [DigitalOrderEvent],
"cancelledAt": "2007-12-03T10:15:30Z",
"teamId": "abc123"
}
DigitalOrderBatch
Example
{
"id": 4,
"ref": "abc123",
"creator": User,
"createdAt": "2007-12-03T10:15:30Z",
"totalOrders": 987,
"totalDelivered": 987,
"totalPaid": 987,
"digitalOrders": DigitalOrders
}
DigitalOrderBatchQuery
DigitalOrderBatchSortKey
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
Example
"CREATED_AT_ASC"
DigitalOrderBatches
Fields
| Field Name | Description |
|---|---|
totalCount - Int!
|
|
nodes - [DigitalOrderBatch!]!
|
Example
{"totalCount": 987, "nodes": [DigitalOrderBatch]}
DigitalOrderBulkInput
Fields
| Input Field | Description |
|---|---|
recipients - [RecipientInput!]!
|
|
campaignId - ID!
|
|
messageTemplate - String!
|
|
headlineTemplate - String
|
|
deliveryMethod - DigitalOrderDeliveryMethod
|
Example
{
"recipients": [RecipientInput],
"campaignId": "4",
"messageTemplate": "xyz789",
"headlineTemplate": "xyz789",
"deliveryMethod": "LINK"
}
DigitalOrderCodeInput
DigitalOrderDeliveryMethod
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
Example
"LINK"
DigitalOrderEvent
Fields
| Field Name | Description |
|---|---|
id - ID!
|
|
createdAt - DateTime!
|
|
code - DigitalOrderEventCode!
|
Example
{
"id": 4,
"createdAt": "2007-12-03T10:15:30Z",
"code": "CREATED"
}
DigitalOrderEventCode
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Example
"CREATED"
DigitalOrderInput
Fields
| Input Field | Description |
|---|---|
recipient - RecipientInput!
|
|
campaignId - ID
|
|
brandId - ID
|
|
currencyId - ID
|
|
rewardValue - Int
|
|
messageTemplate - String
|
|
headlineTemplate - String
|
|
deliveryMethod - DigitalOrderDeliveryMethod!
|
Example
{
"recipient": RecipientInput,
"campaignId": "4",
"brandId": "4",
"currencyId": "4",
"rewardValue": 987,
"messageTemplate": "xyz789",
"headlineTemplate": "xyz789",
"deliveryMethod": "LINK"
}
DigitalOrderQuery
DigitalOrderSortKey
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
Example
"CREATED_AT_ASC"
DigitalOrderStatus
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
|
|
|
Example
"PAYMENT_PENDING"
DigitalOrders
Fields
| Field Name | Description |
|---|---|
totalCount - Int!
|
|
nodes - [DigitalOrder!]!
|
Example
{"totalCount": 987, "nodes": [DigitalOrder]}
DigitalReward
Fields
| Field Name | Description |
|---|---|
orderRef - ID!
|
|
value - Int!
|
|
hasOrderCode - Boolean!
|
|
barcode - DigitalBarcode
|
|
messageTemplate - String!
|
|
headlineTemplate - String
|
|
orgName - String!
|
|
logoUrl - String
|
|
logoBackgroundColor - String
|
|
logoPrimaryColor - String
|
|
recipientName - String!
|
|
recipientEmail - String
|
|
recipientOrgName - String
|
|
creatorName - String
|
|
creatorEmail - String
|
|
allowsCharity - Boolean!
|
|
brands - [DigitalBrand!]!
|
|
brand - DigitalBrand
|
|
code - String
|
|
tremendousUrl - String
|
|
currency - Currency!
|
|
cancelledAt - DateTime
|
Example
{
"orderRef": "4",
"value": 123,
"hasOrderCode": true,
"barcode": DigitalBarcode,
"messageTemplate": "abc123",
"headlineTemplate": "abc123",
"orgName": "abc123",
"logoUrl": "xyz789",
"logoBackgroundColor": "xyz789",
"logoPrimaryColor": "abc123",
"recipientName": "abc123",
"recipientEmail": "xyz789",
"recipientOrgName": "abc123",
"creatorName": "abc123",
"creatorEmail": "abc123",
"allowsCharity": true,
"brands": [DigitalBrand],
"brand": DigitalBrand,
"code": "abc123",
"tremendousUrl": "abc123",
"currency": "USD",
"cancelledAt": "2007-12-03T10:15:30Z"
}
DisplayableError
ExchangeRate
Float
Description
The Float scalar type represents signed double-precision fractional values as specified by IEEE 754.
Example
123.45
FulfillmentEvent
Description
The fulfillment event that describes the fulfilllment status at a particular time.
Fields
| Field Name | Description |
|---|---|
happenedAt - DateTime!
|
The time at which this fulfillment event happened. |
id - ID!
|
A globally-unique identifier. |
message - String
|
A message associated with this fulfillment event. |
status - FulfillmentEventStatus!
|
The status of this fulfillment event. |
Example
{
"happenedAt": "2007-12-03T10:15:30Z",
"id": "4",
"message": "abc123",
"status": "LABEL_PURCHASED"
}
FulfillmentEventStatus
Description
The status that describes a fulfillment or delivery event.
Values
| Enum Value | Description |
|---|---|
|
|
A shipping label has been purchased. |
|
|
A purchased shipping label has been printed. |
|
|
The fulfillment is ready to be picked up. |
|
|
The fulfillment is confirmed. This is the default value when no other information is available. |
|
|
The fulfillment is in transit. |
|
|
The fulfillment is out for delivery. |
|
|
A delivery was attempted. |
|
|
The fulfillment was successfully delivered. |
|
|
The fulfillment request failed. |
Example
"LABEL_PURCHASED"
FundsInput
FundsMoveInput
GetTokenQuery
Fields
| Input Field | Description |
|---|---|
code - String
|
Example
{"code": "xyz789"}
HubSpotCompany
HubSpotContact
Example
{
"id": 4,
"companyId": "4",
"name": "xyz789",
"firstname": "xyz789",
"lastname": "abc123",
"email": "xyz789",
"company": HubSpotCompany,
"address": "xyz789",
"city": "abc123",
"state": "abc123",
"zip": "abc123",
"phone": "abc123"
}
HubSpotContactsInput
HubSpotToken
HubSpotTokenInput
Fields
| Input Field | Description |
|---|---|
code - String!
|
Example
{"code": "abc123"}
HubSpotUser
HubSpotUserInfo
ID
Description
The ID scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "4") or integer (such as 4) input value will be accepted as an ID.
Example
4
Image
Description
Represents an image resource.
Fields
| Field Name | Description |
|---|---|
altText - String
|
A word or phrase to share the nature or contents of an image. |
height - Int
|
The original height of the image in pixels. Returns null if the image is not hosted by Shopify. |
id - ID
|
A unique identifier for the image. |
url - String!
|
The location of the image as a URL. If no transform options are specified, then the original image will be preserved including any pre-applied transforms. All transformation options are considered "best-effort". Any transformation that the original image type doesn't support will be ignored. If you need multiple variations of the same image, then you can use GraphQL aliases. |
width - Int
|
The original width of the image in pixels. Returns null if the image is not hosted by Shopify. |
Example
{
"altText": "xyz789",
"height": 987,
"id": 4,
"url": "xyz789",
"width": 987
}
ImageInput
Description
Specifies the input fields for an image.
Example
{
"id": "4",
"altText": "abc123",
"src": "xyz789"
}
Int
Description
The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
Example
123
IntegrationPartners
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
Example
"MAKE"
InvoiceItem
InvoiceItemInput
LoginAsOrgInput
LoginAsUserInput
Fields
| Input Field | Description |
|---|---|
userId - String!
|
Example
{"userId": "xyz789"}
MailingAddress
Description
Represents a customer mailing address.
For example, a customer's default address and an order's billing address are both mailling addresses.
Fields
| Field Name | Description |
|---|---|
address1 - String
|
The first line of the address. Typically the street address or PO Box number. |
address2 - String
|
The second line of the address. Typically the number of the apartment, suite, or unit. |
city - String
|
The name of the city, district, village, or town. |
company - String
|
The name of the customer's company or organization. |
country - String
|
The name of the country. |
countryCodeV2 - String
|
The two-letter code for the country of the address. For example, US. |
firstName - String
|
The first name of the customer. |
lastName - String
|
The last name of the customer. |
id - ID!
|
A globally-unique identifier. |
phone - String
|
A unique phone number for the customer. Formatted using E.164 standard. For example, +16135551111. |
province - String
|
The region of the address, such as the province, state, or district. |
provinceCode - String
|
The two-letter code for the region. For example, ON. |
zip - String
|
The zip or postal code of the address. |
Example
{
"address1": "xyz789",
"address2": "abc123",
"city": "xyz789",
"company": "abc123",
"country": "xyz789",
"countryCodeV2": "abc123",
"firstName": "abc123",
"lastName": "abc123",
"id": "4",
"phone": "abc123",
"province": "abc123",
"provinceCode": "abc123",
"zip": "xyz789"
}
MailingAddressInput
Description
The fields used to create or update a mailing address.
Fields
| Input Field | Description |
|---|---|
address1 - String
|
The first line of the address. Typically the street address or PO Box number. |
address2 - String
|
The second line of the address. Typically the number of the apartment, suite, or unit. |
city - String
|
The name of the city, district, village, or town. |
company - String
|
The name of the customer's company or organization. |
countryCode - String
|
The two-letter code for the country of the address. |
firstName - String
|
The first name of the customer. |
lastName - String
|
The last name of the customer. |
phone - String
|
A unique phone number for the customer. Formatted using E.164 standard. For example, +16135551111. |
provinceCode - String
|
The code for the region of the address, such as the province, state, or district. For example QC for Quebec, Canada. |
zip - String
|
The zip or postal code of the address. |
Example
{
"address1": "abc123",
"address2": "abc123",
"city": "abc123",
"company": "xyz789",
"countryCode": "abc123",
"firstName": "abc123",
"lastName": "abc123",
"phone": "xyz789",
"provinceCode": "abc123",
"zip": "xyz789"
}
MediaContentType
Description
The possible content types for a media object.
Values
| Enum Value | Description |
|---|---|
|
|
A Shopify-hosted video. |
|
|
An externally hosted video. |
|
|
A 3d model. |
|
|
A Shopify-hosted image. |
Example
"VIDEO"
Node
Fields
| Field Name | Description |
|---|---|
id - ID!
|
Possible Types
| Node Types |
|---|
Example
{"id": 4}
Order
Fields
| Field Name | Description |
|---|---|
id - ID!
|
|
ref - String!
|
|
createdAt - DateTime!
|
|
creatorName - String
|
|
recipientName - String
|
|
recipientOrg - String
|
|
events - [DigitalOrderEvent!]
|
|
fulfillmentEvents - [FulfillmentEvent!]
|
|
type - OrderType!
|
|
totalCost - Int!
|
|
description - String
|
|
cancelledAt - DateTime
|
Example
{
"id": 4,
"ref": "abc123",
"createdAt": "2007-12-03T10:15:30Z",
"creatorName": "xyz789",
"recipientName": "xyz789",
"recipientOrg": "abc123",
"events": [DigitalOrderEvent],
"fulfillmentEvents": [FulfillmentEvent],
"type": "DIGITAL",
"totalCost": 123,
"description": "xyz789",
"cancelledAt": "2007-12-03T10:15:30Z"
}
OrderQuery
OrderSampleOrder
OrderSampleRecipient
OrderSampleSender
OrderSortKey
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
Example
"CREATED_AT_ASC"
OrderType
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
Example
"DIGITAL"
Orders
Org
Fields
| Field Name | Description |
|---|---|
id - ID!
|
|
name - String!
|
|
formattedName - String!
|
|
users - Users!
|
|
logoUrl - String
|
|
logoBackgroundColor - String
|
|
logoPrimaryColor - String
|
|
isInternational - Boolean
|
|
hubSpotUserInfo - HubSpotUserInfo
|
|
hubSpotUsers - [HubSpotUser!]!
|
|
salesForceUserInfo - SalesForceUserInfo
|
|
salesForceUsers - [SalesForceUser!]!
|
|
teams - [Teams!]!
|
|
Example
{
"id": 4,
"name": "xyz789",
"formattedName": "xyz789",
"users": Users,
"logoUrl": "abc123",
"logoBackgroundColor": "abc123",
"logoPrimaryColor": "abc123",
"isInternational": false,
"hubSpotUserInfo": HubSpotUserInfo,
"hubSpotUsers": [HubSpotUser],
"salesForceUserInfo": SalesForceUserInfo,
"salesForceUsers": [SalesForceUser],
"teams": [Teams]
}
OrgBranding
OrgInput
PasswordResetInput
PasswordUpdateInput
PhysicalCampaign
PhysicalCampaignInput
PhysicalCampaignQuery
PhysicalCampaignSortKey
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
Example
"CREATED_AT_ASC"
PhysicalCampaigns
Fields
| Field Name | Description |
|---|---|
totalCount - Int!
|
|
nodes - [PhysicalCampaign!]!
|
Example
{"totalCount": 987, "nodes": [PhysicalCampaign]}
PhysicalGift
Fields
| Field Name | Description |
|---|---|
id - ID!
|
|
title - String!
|
|
messageMaxLength - Int
|
|
messageMaxLines - Int
|
|
descriptionHtml - String
|
|
featuredImageSrc - String
|
|
initialShippingCost - Int
|
|
products - [Product!]!
|
|
productVariants - [ProductVariant!]!
|
|
isDisabled - Boolean
|
|
categories - [String!]!
|
|
isThirdParty - Boolean
|
|
shipsThroughWarehouse - Boolean
|
|
purchaseUrl - String
|
|
vendor - PhysicalVendor
|
|
orgId - String
|
Example
{
"id": "4",
"title": "xyz789",
"messageMaxLength": 123,
"messageMaxLines": 123,
"descriptionHtml": "abc123",
"featuredImageSrc": "xyz789",
"initialShippingCost": 123,
"products": [Product],
"productVariants": [ProductVariant],
"isDisabled": false,
"categories": ["abc123"],
"isThirdParty": true,
"shipsThroughWarehouse": true,
"purchaseUrl": "abc123",
"vendor": PhysicalVendor,
"orgId": "xyz789"
}
PhysicalGiftInput
Example
{
"vendorId": 4,
"productIds": ["4"],
"productVariantIds": [4],
"categoryIds": [4],
"isThirdParty": false,
"shipsThroughWarehouse": false,
"initialShippingCost": 987,
"purchaseUrl": "abc123",
"isDisabled": false,
"orgId": "xyz789"
}
PhysicalGiftQuery
PhysicalGifts
Fields
| Field Name | Description |
|---|---|
totalCount - Int
|
|
nodes - [PhysicalGift!]!
|
Example
{"totalCount": 987, "nodes": [PhysicalGift]}
PhysicalOrder
Fields
| Field Name | Description |
|---|---|
id - ID!
|
|
ref - String!
|
|
createdAt - DateTime!
|
|
recipient - Recipient!
|
|
isAddressConfirmed - Boolean
|
|
recipientSubmitsAddress - Boolean
|
|
creatorName - String!
|
|
orgName - String!
|
|
orgBranding - OrgBranding!
|
|
vendorName - String
|
|
message - String!
|
|
invoiceItems - [InvoiceItem!]!
|
|
mailingAddress - MailingAddress
|
|
purchaseUrl - String
|
|
description - String
|
|
shopifyOrderId - String
|
|
shopifyOrderName - String
|
|
vendorOrderId - String
|
|
fulfillmentEvents - [FulfillmentEvent!]!
|
|
images - [Image!]!
|
|
giftChoices - [PhysicalGift!]!
|
|
selectedGift - PhysicalGift
|
|
isThirdParty - Boolean
|
|
shipsThroughWarehouse - Boolean
|
|
cancelledAt - DateTime
|
Example
{
"id": "4",
"ref": "abc123",
"createdAt": "2007-12-03T10:15:30Z",
"recipient": Recipient,
"isAddressConfirmed": false,
"recipientSubmitsAddress": false,
"creatorName": "xyz789",
"orgName": "xyz789",
"orgBranding": OrgBranding,
"vendorName": "abc123",
"message": "abc123",
"invoiceItems": [InvoiceItem],
"mailingAddress": MailingAddress,
"purchaseUrl": "abc123",
"description": "abc123",
"shopifyOrderId": "xyz789",
"shopifyOrderName": "xyz789",
"vendorOrderId": "abc123",
"fulfillmentEvents": [FulfillmentEvent],
"images": [Image],
"giftChoices": [PhysicalGift],
"selectedGift": PhysicalGift,
"isThirdParty": false,
"shipsThroughWarehouse": true,
"cancelledAt": "2007-12-03T10:15:30Z"
}
PhysicalOrderInput
Fields
| Input Field | Description |
|---|---|
giftId - ID
|
The ID of the specific gift for this order. One of giftId or campaignId must be provided. |
campaignId - ID
|
The ID of the specific campaign for this order. One of giftId or campaignId must be provided. If a campaing is provided, the giftId will be determined by the campaign when the recipients chooses a gift from that campaign. |
recipient - RecipientInput
|
The recipient information for this order. |
message - String
|
The message that the recipient will receive with the gift. This message will be physically printed on a card. |
recipientSubmitsAddress - Boolean
|
Indicates whether the recipient will submit their mailing address. If false, the mailing address must be provided by the creator. |
mailingAddress - MailingAddressInput
|
The mailing address for the recipient. |
sendEmail - Boolean
|
Whether to send the reward link immediately through email or if the user will share the link themselves |
headlineTemplate - String
|
Subject line if sending email |
Example
{
"giftId": 4,
"campaignId": 4,
"recipient": RecipientInput,
"message": "xyz789",
"recipientSubmitsAddress": false,
"mailingAddress": MailingAddressInput,
"sendEmail": false,
"headlineTemplate": "abc123"
}
PhysicalOrderQuery
PhysicalOrderSortKey
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
Example
"CREATED_AT_ASC"
PhysicalOrders
Fields
| Field Name | Description |
|---|---|
totalCount - Int!
|
|
nodes - [PhysicalOrder!]!
|
Example
{"totalCount": 123, "nodes": [PhysicalOrder]}
PhysicalVendor
Product
Description
Represents a product, including information about related collections and product variants.
Fields
| Field Name | Description |
|---|---|
id - ID!
|
Globally unique identifier. |
org - Org
|
Org that owns this product, if any |
isAddon - Boolean
|
A product is an addon if it doesn't belong to a single gift, but can be added on to gifts. E.g. special wrapping paper, or a custom printed card. |
images - [Image!]!
|
A list of images associated with this product |
variants - [ProductVariant!]!
|
A list of variants associated with the product. |
Example
{
"id": "4",
"org": Org,
"isAddon": true,
"images": [Image],
"variants": [ProductVariant]
}
ProductCreatePayload
Description
Return type for productCreate mutation.
Fields
| Field Name | Description |
|---|---|
product - Product
|
The product object. |
userErrors - [UserError!]!
|
The list of errors that occurred from executing the mutation. |
Example
{
"product": Product,
"userErrors": [UserError]
}
ProductInput
Description
Specifies the input fields required to create a product.
Fields
| Input Field | Description |
|---|---|
descriptionHtml - String
|
The description of the product, complete with HTML formatting. |
productType - String
|
The product type specified by the merchant. |
customProductType - String
|
The custom product type specified by the merchant. |
tags - [String!]
|
A comma separated list of tags that have been added to the product. |
templateSuffix - String
|
The theme template used when viewing the product in a store. |
title - String
|
The title of the product. |
vendor - String
|
The name of the product's vendor. |
collectionsToJoin - [ID!]
|
The IDs of the collections that this product will be added to. |
collectionsToLeave - [ID!]
|
The IDs of collections that will no longer include the existing product. |
id - ID
|
Specifies the product to update in productUpdate or creates a new product if absent in productCreate. |
images - [ImageInput!]
|
The images to associate with the product. |
options - [String!]
|
List of custom product options (maximum of 3 per product). |
variants - [ProductVariantInput!]
|
A list of variants associated with the product. |
status - ProductStatus
|
The status of the product. |
requiresSellingPlan - Boolean
|
Whether the product can only be purchased with a selling plan (subscription). Products that are sold exclusively on subscription can only be created on online stores. If set to true on an already existing product, then the product will be marked unavailable on channels that don't support subscriptions. |
Example
{
"descriptionHtml": "xyz789",
"productType": "abc123",
"customProductType": "abc123",
"tags": ["abc123"],
"templateSuffix": "abc123",
"title": "xyz789",
"vendor": "xyz789",
"collectionsToJoin": ["4"],
"collectionsToLeave": ["4"],
"id": 4,
"images": [ImageInput],
"options": ["abc123"],
"variants": [ProductVariantInput],
"status": "ACTIVE",
"requiresSellingPlan": false
}
ProductStatus
Description
The possible product statuses.
Values
| Enum Value | Description |
|---|---|
|
|
The product is ready to sell and can be published to sales channels and apps. Products with an active status aren't automatically published to sales channels, such as the online store, or apps. By default, existing products are set to active. |
|
|
The product is no longer being sold and isn't available to customers on sales channels and apps. |
|
|
The product isn't ready to sell and is unavailable to customers on sales channels and apps. By default, duplicated and unarchived products are set to draft. |
Example
"ACTIVE"
ProductVariant
ProductVariantInput
Description
Specifies a product variant to create or update.
Fields
| Input Field | Description |
|---|---|
id - ID
|
Specifies the product variant to update or create a new variant if absent. |
imageId - ID
|
The ID of the image that's associated with the variant. |
imageSrc - String
|
The URL of an image to associate with the variant. This field can only be used through mutations that create product images and must match one of the URLs being created on the product. |
mediaSrc - [String!]
|
The URL of the media to associate with the variant. This field can only be used in mutations that create media images and must match one of the URLs being created on the product. This field only accepts one value. |
inventoryPolicy - ProductVariantInventoryPolicy
|
Whether customers are allowed to place an order for the product variant when it's out of stock. |
options - [String!]
|
The custom properties that a shop owner uses to define product variants. |
position - Int
|
The order of the product variant in the list of product variants. The first position in the list is 1. |
price - String
|
The price of the variant. |
productId - ID
|
The product to create the variant for. Used as input only to the productVariantCreate mutation. |
requiresShipping - Boolean
|
Whether the variant requires shipping. |
sku - String
|
The SKU for the variant. |
taxable - Boolean
|
Whether the variant is taxable. |
taxCode - String
|
The tax code associated with the variant. |
weight - Float
|
The weight of the variant. |
Example
{
"id": "4",
"imageId": 4,
"imageSrc": "abc123",
"mediaSrc": ["abc123"],
"inventoryPolicy": "DENY",
"options": ["xyz789"],
"position": 987,
"price": "abc123",
"productId": 4,
"requiresShipping": true,
"sku": "abc123",
"taxable": true,
"taxCode": "xyz789",
"weight": 987.65
}
ProductVariantInventoryPolicy
Description
The valid values for the inventory policy of a product variant once it is out of stock.
Values
| Enum Value | Description |
|---|---|
|
|
Customers can't buy this product variant after it's out of stock. |
|
|
Customers can buy this product variant after it's out of stock. |
Example
"DENY"
Recipient
Example
{
"id": 4,
"org": Org,
"email": "xyz789",
"name": "xyz789",
"salesForceContactId": "4",
"salesForceAccountId": "4",
"hubSpotContactId": "4",
"hubSpotCompanyId": 4,
"orgName": "abc123"
}
RecipientInput
Example
{
"email": "abc123",
"name": "abc123",
"salesForceContactId": "abc123",
"salesForceAccountId": "xyz789",
"hubSpotContactId": "abc123",
"hubSpotCompanyId": "xyz789",
"orgName": "abc123"
}
ResendInviteInput
Fields
| Input Field | Description |
|---|---|
userId - ID!
|
Example
{"userId": 4}
RevokeInviteInput
Fields
| Input Field | Description |
|---|---|
userId - ID!
|
Example
{"userId": "4"}
Role
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
|
|
|
Example
"ADMIN"
SalesForceAccount
SalesForceContact
Fields
| Field Name | Description |
|---|---|
id - ID!
|
|
phone - String
|
|
email - String
|
|
name - String
|
|
account - SalesForceAccount
|
|
mailingAddress - SalesForceMailingAddress
|
Example
{
"id": "4",
"phone": "abc123",
"email": "abc123",
"name": "xyz789",
"account": SalesForceAccount,
"mailingAddress": SalesForceMailingAddress
}
SalesForceContactInput
SalesForceContactsInput
Fields
| Input Field | Description |
|---|---|
contactName - String!
|
Example
{"contactName": "abc123"}
SalesForceMailingAddress
SalesForceReport
Description
Main report for SalesForce
Fields
| Field Name | Description |
|---|---|
id - ID!
|
|
startDate - DateTime!
|
|
endDate - DateTime!
|
|
currency - String!
|
|
opportunities - [SalesForceReportOpportunity!]!
|
|
orders - [SalesForceReportOrder!]!
|
Example
{
"id": 4,
"startDate": "2007-12-03T10:15:30Z",
"endDate": "2007-12-03T10:15:30Z",
"currency": "abc123",
"opportunities": [SalesForceReportOpportunity],
"orders": [SalesForceReportOrder]
}
SalesForceReportInput
SalesForceReportOpportunity
Description
A single Opportunity event for a SalesForce Report. In practice, this will be derived from Opportunities that are related to an order, through the recipient's salesForceAccountId.
Example
{
"id": 4,
"accountId": "4",
"amount": 987.65,
"isWon": false,
"isClosed": false,
"timestamp": "2007-12-03T10:15:30Z",
"orders": [SalesForceReportOrder]
}
SalesForceReportOrder
SalesForceToken
SalesForceTokenInput
SalesForceUser
SalesForceUserInfo
String
Description
The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
Example
"xyz789"
Team
TeamCreateInput
Fields
| Input Field | Description |
|---|---|
name - String!
|
Example
{"name": "xyz789"}
Teams
Fields
| Field Name | Description |
|---|---|
id - String!
|
|
name - String!
|
|
users - [UsersWithTeam!]!
|
Example
{
"id": "xyz789",
"name": "abc123",
"users": [UsersWithTeam]
}
User
Fields
| Field Name | Description |
|---|---|
id - ID!
|
|
name - String!
|
|
email - String!
|
|
role - Role!
|
|
password - String
|
|
budget - Budget
|
|
salesForceUserId - String
|
|
hubSpotUserId - String
|
|
teams - [UserTeams]
|
|
org - Org
|
|
status - UserStatus!
|
|
googleEmail - String
|
|
microsoftEmail - String
|
|
hubSpotToken - HubSpotToken
|
|
apiPasswords - [ApiPassword!]!
|
Example
{
"id": 4,
"name": "xyz789",
"email": "xyz789",
"role": "ADMIN",
"password": "xyz789",
"budget": Budget,
"salesForceUserId": "xyz789",
"hubSpotUserId": "xyz789",
"teams": [UserTeams],
"org": Org,
"status": "ACTIVE",
"googleEmail": "xyz789",
"microsoftEmail": "xyz789",
"hubSpotToken": HubSpotToken,
"apiPasswords": [ApiPassword]
}
UserByInviteCodeInput
Fields
| Input Field | Description |
|---|---|
inviteCode - String!
|
Example
{"inviteCode": "xyz789"}
UserChangeTeamInput
UserChangeTeamRoleInput
UserError
UserInput
UserQuery
Fields
| Input Field | Description |
|---|---|
text - String
|
|
status - UserStatus
|
Example
{"text": "xyz789", "status": "ACTIVE"}
UserStatus
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
|
|
|
Example
"ACTIVE"
UserTeams
Users
UsersWithTeam
WebhookCreateInput
Fields
| Input Field | Description |
|---|---|
url - String!
|
|
source - IntegrationPartners!
|
|
type - WebhookTypes!
|
Example
{
"url": "xyz789",
"source": "MAKE",
"type": "ORDER_STATUS_UPDATE"
}
WebhookCreateResponse
Fields
| Field Name | Description |
|---|---|
id - String!
|
Example
{"id": "xyz789"}
WebhookDeleteInput
Fields
| Input Field | Description |
|---|---|
id - String!
|
Example
{"id": "xyz789"}
WebhookSampleResponse
Fields
| Field Name | Description |
|---|---|
order - OrderSampleOrder!
|
|
recipient - OrderSampleRecipient!
|
|
sender - OrderSampleSender!
|
Example
{
"order": OrderSampleOrder,
"recipient": OrderSampleRecipient,
"sender": OrderSampleSender
}
WebhookTypes
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
Example
"ORDER_STATUS_UPDATE"