Customers
Customers
Customers
Archive a customer
client.v1.customers.archive(CustomerArchiveParamsbody, RequestOptionsoptions?): dataIDCustomerArchiveResponse
post/v1/customers/archive
Create a customer
client.v1.customers.create(CustomerCreateParamsbody, RequestOptionsoptions?): dataCustomerCustomerCreateResponse
post/v1/customers
List customers
client.v1.customers.list(CustomerListParamsquery?, RequestOptionsoptions?): CursorPage<idstringcreated_atstringcustom_fieldsRecord<string, string>customer_configCustomerConfigexternal_idstringingest_aliasesarraynamestringarchived_atunioncurrent_billable_statusCurrentBillableStatusCustomerDetail>
get/v1/customers
Get billable metrics for a customer
client.v1.customers.listBillableMetrics(CustomerListBillableMetricsParamsparams, RequestOptionsoptions?): CursorPage<idstringnamestringaggregatestringaggregate_keysarrayaggregation_keystringaggregation_typeunionarchived_atstringcustom_fieldsRecord<string, string>event_type_filterEventTypeFilterfilterRecord<string, unknown>group_byarraygroup_keysarrayproperty_filtersarraysqlstringCustomerListBillableMetricsResponse>
get/v1/customers/{customer_id}/billable-metrics
Get customer costs
client.v1.customers.listCosts(CustomerListCostsParamsparams, RequestOptionsoptions?): CursorPage<credit_typesRecord<string, CreditTypes>end_timestampstringstart_timestampstringCustomerListCostsResponse>
get/v1/customers/{customer_id}/costs
Preview events
client.v1.customers.previewEvents(CustomerPreviewEventsParamsparams, RequestOptionsoptions?): dataInvoiceCustomerPreviewEventsResponse
post/v1/customers/{customer_id}/previewEvents
Get a customer
client.v1.customers.retrieve(CustomerRetrieveParamsparams, RequestOptionsoptions?): dataCustomerDetailCustomerRetrieveResponse
get/v1/customers/{customer_id}
Create or update customer ingest aliases
client.v1.customers.setIngestAliases(CustomerSetIngestAliasesParamsparams, RequestOptionsoptions?): void
post/v1/customers/{customer_id}/setIngestAliases
Update a customer name
client.v1.customers.setName(CustomerSetNameParamsparams, RequestOptionsoptions?): dataCustomerCustomerSetNameResponse
post/v1/customers/{customer_id}/setName
Update a customer configuration
client.v1.customers.updateConfig(CustomerUpdateConfigParamsparams, RequestOptionsoptions?): void
post/v1/customers/{customer_id}/updateConfig
Customer
Customer
Customer Detail
CustomerDetail
CustomersAlerts
List customer alerts
client.v1.customers.alerts.list(AlertListParamsparams, RequestOptionsoptions?): dataarraynext_pageunionAlertListResponse
post/v1/customer-alerts/list
Reset an alert for a customer
client.v1.customers.alerts.reset(AlertResetParamsbody, RequestOptionsoptions?): void
post/v1/customer-alerts/reset
Get an alert
client.v1.customers.alerts.retrieve(AlertRetrieveParamsbody, RequestOptionsoptions?): dataCustomerAlertAlertRetrieveResponse
post/v1/customer-alerts/get
Customer Alert
CustomerAlert
CustomersBilling Config
Set a customer billing configuration
client.v1.customers.billingConfig.create(BillingConfigCreateParamsparams, RequestOptionsoptions?): void
post/v1/customers/{customer_id}/billing-config/{billing_provider_type}
Delete a customer billing configuration
client.v1.customers.billingConfig.delete(BillingConfigDeleteParamsparams, RequestOptionsoptions?): void
delete/v1/customers/{customer_id}/billing-config/{billing_provider_type}
Get a customer billing configuration
client.v1.customers.billingConfig.retrieve(BillingConfigRetrieveParamsparams, RequestOptionsoptions?): dataDataBillingConfigRetrieveResponse
get/v1/customers/{customer_id}/billing-config/{billing_provider_type}
CustomersCommits
Create a commit
client.v1.customers.commits.create(CommitCreateParamsbody, RequestOptionsoptions?): dataIDCommitCreateResponse
post/v1/contracts/customerCommits/create
List commits
client.v1.customers.commits.list(CommitListParamsbody, RequestOptionsoptions?): dataarraynext_pageunionCommitListResponse
post/v1/contracts/customerCommits/list
Update the commit end date
client.v1.customers.commits.updateEndDate(CommitUpdateEndDateParamsbody, RequestOptionsoptions?): dataIDCommitUpdateEndDateResponse
post/v1/contracts/customerCommits/updateEndDate
CustomersCredits
Create a credit
client.v1.customers.credits.create(CreditCreateParamsbody, RequestOptionsoptions?): dataIDCreditCreateResponse
post/v1/contracts/customerCredits/create
List credits
client.v1.customers.credits.list(CreditListParamsbody, RequestOptionsoptions?): dataarraynext_pageunionCreditListResponse
post/v1/contracts/customerCredits/list
Update the credit end date
client.v1.customers.credits.updateEndDate(CreditUpdateEndDateParamsbody, RequestOptionsoptions?): dataIDCreditUpdateEndDateResponse
post/v1/contracts/customerCredits/updateEndDate
CustomersInvoices
Add a one time charge
client.v1.customers.invoices.addCharge(InvoiceAddChargeParamsparams, RequestOptionsoptions?): InvoiceAddChargeResponse
post/v1/customers/{customer_id}/addCharge
List invoices
client.v1.customers.invoices.list(InvoiceListParamsparams, RequestOptionsoptions?): CursorPage<idstringcredit_typeCreditTypeDatacustomer_idstringline_itemsarraystatusstringtotalnumbertypestringamendment_idstringbillable_statusunioncontract_custom_fieldsRecord<string, string>contract_idstringcorrection_recordCorrectionRecordcreated_atstringcustom_fieldsRecord<string, unknown>customer_custom_fieldsRecord<string, string>end_timestampstringexternal_invoiceunioninvoice_adjustmentsarrayissued_atstringnet_payment_terms_daysnumbernetsuite_sales_order_idstringplan_custom_fieldsRecord<string, string>plan_idstringplan_namestringreseller_royaltyResellerRoyaltysalesforce_opportunity_idstringstart_timestampstringsubtotalnumberInvoice>
get/v1/customers/{customer_id}/invoices
List invoice breakdowns
client.v1.customers.invoices.listBreakdowns(InvoiceListBreakdownsParamsparams, RequestOptionsoptions?): CursorPage<breakdown_end_timestampstringbreakdown_start_timestampstringInvoiceListBreakdownsResponse>
get/v1/customers/{customer_id}/invoices/breakdowns
Get an invoice
client.v1.customers.invoices.retrieve(InvoiceRetrieveParamsparams, RequestOptionsoptions?): dataInvoiceInvoiceRetrieveResponse
get/v1/customers/{customer_id}/invoices/{invoice_id}
Invoice
Invoice
CustomersNamed Schedules
Get a customer's named schedule
client.v1.customers.namedSchedules.retrieve(NamedScheduleRetrieveParamsbody, RequestOptionsoptions?): dataarrayNamedScheduleRetrieveResponse
post/v1/customers/getNamedSchedule
Update a customer's named schedule
client.v1.customers.namedSchedules.update(NamedScheduleUpdateParamsbody, RequestOptionsoptions?): void
post/v1/customers/updateNamedSchedule
CustomersPlans
Add a plan to a customer
client.v1.customers.plans.add(PlanAddParamsparams, RequestOptionsoptions?): dataIDPlanAddResponse
post/v1/customers/{customer_id}/plans/add
End a customer plan
client.v1.customers.plans.end(PlanEndParamsparams, RequestOptionsoptions?): PlanEndResponse
post/v1/customers/{customer_id}/plans/{customer_plan_id}/end
List customer plans
client.v1.customers.plans.list(PlanListParamsparams, RequestOptionsoptions?): CursorPage<idstringcustom_fieldsRecord<string, string>plan_descriptionstringplan_idstringplan_namestringstarting_onstringending_beforestringnet_payment_terms_daysnumbertrial_infoTrialInfoPlanListResponse>
get/v1/customers/{customer_id}/plans
Get the plan adjustments for a customer
client.v1.customers.plans.listPriceAdjustments(PlanListPriceAdjustmentsParamsparams, RequestOptionsoptions?): CursorPage<charge_idstringcharge_typeunionpricesarraystart_periodnumberquantitynumberPlanListPriceAdjustmentsResponse>
get/v1/customers/{customer_id}/plans/{customer_plan_id}/priceAdjustments