Skip to main content
MUTATION
unarchiveCustomer(input: UnarchiveCustomerInput!): Customer!

Arguments

Unarchive a customer

Returns

additionalMetaData
JSON

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.

awsMarketplaceCustomerId
String

The AWS Marketplace integration id

billingCurrency

The billing currency of the customer

billingId
String

The unique identifier for the entity in the billing provider

billingLinkUrl
String

The URL to the entity in the billing provider

coupon
createdAt
DateTime

Timestamp of when the record was created

crmHubspotCompanyId
String

Company ID in Hubspot integration

crmHubspotCompanyUrl
String

Company URL in Hubspot integration

crmId
String

The unique identifier for the customer in Hubspot integration

customerId
String!

Customer slug

defaultPaymentExpirationMonth
Int

The expiration month of the default payment method

defaultPaymentExpirationYear
Int

The expiration year of the default payment method

defaultPaymentMethodCardBrand
String

The card brand of the default payment method, as reported by the billing provider (e.g. visa, mastercard, amex)

defaultPaymentMethodId
String

The default payment method id

defaultPaymentMethodLast4Digits
String

The last 4 digits of the default payment method

defaultPaymentMethodType

The default payment method type

defaultPaymentMethodWalletType
String

The digital wallet used to add the default card payment method, as reported by the billing provider (e.g. apple_pay, google_pay)

deletedAt
DateTime

Timestamp of when the record was deleted

eligibleForTrial

Whether the customer is eligible for a trial

email
String

The email of the customer

environment
environmentId
UUID!

The unique identifier for the environment

excludeFromExperiment
Boolean

Whether the customer is excluded from the experiment

experiment
experimentInfo

Experiment info

hasActiveResource
Boolean!

Wether the customer has an active resource

hasActiveSubscription
Boolean!

Wether the customer has an active subscription

hasPaymentMethod
Boolean!

Whether the customer has an attached payment method

id
UUID!

Unique identifier for the entity

name
String

The name of the customer

promotionalEntitlements
Arguments

Specify to filter the records returned.

sorting
default:[{direction: DESC, field: createdAt}]

Specify to sort results.

refId
String!
deprecated

Customer slug

Renamed to customerId
salesforceId
String

The unique identifier for the customer in Salesforce integration

Customer related aggregations

subscriptions
Arguments
filter
default:{status: {in: [ACTIVE, IN_TRIAL]}}

Specify to filter the records returned.

sorting
default:[{direction: DESC, field: createdAt}]

Specify to sort results.

syncStates

List of integration sync states

totalActivePromotionalEntitlements
Float!

Total active promotional entitlement count

totalActiveSubscription
Float!

Total active subscription count

trialedPlans

List of already trialed plans

updatedAt
DateTime!

Timestamp of when the record was last updated

Mutation
Variables
Response