mutation UpdateOneCustomer($input: UpdateCustomerInput!) {
updateOneCustomer(input: $input) {
additionalMetaData
awsMarketplaceCustomerId
billingCurrency
billingId
billingLinkUrl
coupon {
additionalMetaData
amountsOff {
amount
currency
}
billingId
billingLinkUrl
createdAt
customers {
__typename
}
}
}
}{
"input": {}
}{
"data": {
"updateOneCustomer": {
"additionalMetaData": "value",
"awsMarketplaceCustomerId": "string",
"billingCurrency": "AED",
"billingId": "string",
"billingLinkUrl": "string",
"coupon": {
"additionalMetaData": "value",
"amountsOff": [
{
"amount": 1.5,
"currency": "AED"
}
],
"billingId": "string",
"billingLinkUrl": "string",
"createdAt": "value",
"customers": [
{
"__typename": "Customer"
}
]
}
}
}
}updateOneCustomer
Update a customer
updateOneCustomer(input: UpdateCustomerInput!): Customer!Arguments
Update customer information
Returns
Custom key-value metadata to attach to the customer. When creating a customer, this sets the initial metadata. When updating a customer, this replaces the customer's existing metadata object entirely — it is not merged key by key. Omit this field on update to leave the customer's existing metadata untouched; pass an empty object to clear it.
The AWS Marketplace integration id
The billing currency of the customer
The unique identifier for the entity in the billing provider
The URL to the entity in the billing provider
Timestamp of when the record was created
Company ID in Hubspot integration
Company URL in Hubspot integration
The unique identifier for the customer in Hubspot integration
Customer slug
The expiration month of the default payment method
The expiration year of the default payment method
The card brand of the default payment method, as reported by the billing provider (e.g. visa, mastercard, amex)
The default payment method id
The last 4 digits of the default payment method
The default payment method type
The digital wallet used to add the default card payment method, as reported by the billing provider (e.g. apple_pay, google_pay)
Timestamp of when the record was deleted
Whether the customer is eligible for a trial
The email of the customer
The unique identifier for the environment
Whether the customer is excluded from the experiment
Experiment info
Wether the customer has an active resource
Wether the customer has an active subscription
Whether the customer has an attached payment method
Unique identifier for the entity
The name of the customer
Specify to filter the records returned.
Specify to sort results.
Customer slug
The unique identifier for the customer in Salesforce integration
Customer related aggregations
Specify to filter the records returned.
Specify to sort results.
List of integration sync states
Total active promotional entitlement count
Total active subscription count
List of already trialed plans
Timestamp of when the record was last updated
mutation UpdateOneCustomer($input: UpdateCustomerInput!) {
updateOneCustomer(input: $input) {
additionalMetaData
awsMarketplaceCustomerId
billingCurrency
billingId
billingLinkUrl
coupon {
additionalMetaData
amountsOff {
amount
currency
}
billingId
billingLinkUrl
createdAt
customers {
__typename
}
}
}
}{
"input": {}
}{
"data": {
"updateOneCustomer": {
"additionalMetaData": "value",
"awsMarketplaceCustomerId": "string",
"billingCurrency": "AED",
"billingId": "string",
"billingLinkUrl": "string",
"coupon": {
"additionalMetaData": "value",
"amountsOff": [
{
"amount": 1.5,
"currency": "AED"
}
],
"billingId": "string",
"billingLinkUrl": "string",
"createdAt": "value",
"customers": [
{
"__typename": "Customer"
}
]
}
}
}
}