Skip to content

Instantly share code, notes, and snippets.

@marvindpunongbayan
Last active January 26, 2022 06:51
Show Gist options
  • Save marvindpunongbayan/04eae53a845291eb8d79328c3c914956 to your computer and use it in GitHub Desktop.
Save marvindpunongbayan/04eae53a845291eb8d79328c3c914956 to your computer and use it in GitHub Desktop.
salesforceUpdateCompany endpoint
mutation {
salesforceUpdateCompany(
input: {
salesforceUserId: "USER_TEST_ID_1" # Salesforce user's id who currently accessing the edit page
clientId: "Put here the client ID that I given to you"
secretKey: "Put here the secretKey that I given to you"
salesforceCompanyId: "COMPANY_TEST_ID" # Salesforce organization's id (same value from onboarding)
companyName: "Verizon"
description: "Description if there's a content"
website: "verizon.test"
isNecessary: "true"
timeframe: "monthly"
amount: "1000"
address: "Somewhere down the road"
city: "New York"
state: "New York"
zipCode: "42314"
cardName: "Marvin's card"
cardType: "mastercard"
cardLast4: "4242"
stripeCustomerId: "1231231231" #Customer ID from Stripe
stripeClientSecretKey: "ASDa1231231" # Client secret key from Stripe
stripePaymentMethodId: "ASDASD123123" # Payment Method ID from STripe
dailyDigest: "individual_message"
orderConfirmation: "true" # true as default
giftInProgress: "false" # false as default
giftShipped: "false" # false as default
giftDelivered: "true" # true as default
giftCancelled: "false" # false as default
inputUsers: [
{
salesforceUserId: "USER_TEST_ID_4" # Salesforce user's id where associated Test4 user
firstName: "test4"
lastName: "test4"
email: "test4@gmail.com"
contactNumber: "1234567890"
},
{
salesforceUserId: "USER_TEST_ID_5" # Salesforce user's id where associated Test5 user
email: "test5@gmail.com"
firstName: "test5"
lastName: "test5"
contactNumber: "1234567890"
}
]
removeUsers: [
{
salesforceUserId: "USER_TEST_ID_2" # Salesforce user's id of the user that you want to remove an access (this id was a sample from onboarding)
},
{
salesforceUserId: "USER_TEST_ID_3" # Salesforce user's id of the user that you want to remove an access (this id was a sample from onboarding)
}
]
}
){
systemMessage
user {
userCompany {
company {
name
description
website
isNecessary
timeframe
amount
amountRequest
balance
balanceExpiration
address
city
state
zipCode
companyPaymentMethod {
cardName
cardType
cardLast4
stripeCustomerId
stripeClientSecretKey
stripePaymentMethodId
}
}
}
userSetting {
dailyDigest
orderConfirmation
giftInProgress
giftShipped
giftDelivered
giftCancelled
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment