GET /v1/customers/{customerId}/state
GET
/v1/customers/{customerId}/stateAuthorization
x-api-keyAPI key · headerrequiredor
AuthorizationBearer token · headerrequiredPath parameters
customerIdstringrequiredmin length 1
Query parameters
environmentstringAllowed:
sandboxproductionmerchantAccountIdstringmin length 1
Responses
200
Success
dataobjectrequiredShow propertiesHide properties
customerobjectrequiredShow propertiesHide properties
customerIdstringrequiredmin length 1
namestringrequiredmin length 1
defaultCurrencystringrequiredmin length 1
metadataobjectrequiredcreatedAtstringrequiredmin length 1
externalCustomerRefstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullemailstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullarchivedAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullstatusstringrequiredAllowed:
inactivecurrentopenpast_duecurrencystringrequiredmin length 1
summaryobjectrequiredShow propertiesHide properties
activeSubscriptionsnumberrequiredopenInvoicesnumberrequiredpastDueInvoicesnumberrequireduncollectibleInvoicesnumberrequiredtotalAmountDuenumberrequiredpendingRetriesnumberrequiredpendingPaymentAttemptsnumberrequiredpendingRefundsnumberrequiredfailedLatestPaymentAttemptsnumberrequiredactiveEntitlementsnumberrequiredrevokedEntitlementsnumberrequiredsubscriptionsobject[]requiredShow propertiesHide properties
Array of
objectsubscriptionIdstringrequiredmin length 1
customerIdstringrequiredmin length 1
billingAccountIdstringrequiredmin length 1
statusstringrequiredAllowed:
draftpendingincompleteincomplete_expiredtrialingactivepast_duepausedcanceledcollectionModestringrequiredAllowed:
manualautomaticmetadataobjectrequiredcreatedAtstringrequiredmin length 1
currentPeriodStartAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullcurrentPeriodEndAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nulltrialEndAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullcancelAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullcanceledAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullendedAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nulltestClockIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullinvoicesobject[]requiredShow propertiesHide properties
Array of
objectinvoiceIdstringrequiredmin length 1
customerIdstringrequiredmin length 1
billingAccountIdstringrequiredmin length 1
statusstringrequiredAllowed:
draftopenpaidpartially_paidpast_duevoiduncollectiblecurrencystringrequiredmin length 1
subtotalnumberrequireddiscountTotalnumberrequiredtaxTotalnumberrequiredtotalnumberrequiredamountPaidnumberrequiredamountRemainingnumberrequiredmetadataobjectrequiredsubscriptionIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullcreditNoteTotalnumber | nullShow propertiesHide properties
Any of:
number
numbernull
nullcustomerBalanceAppliedTotalnumber | nullShow propertiesHide properties
Any of:
number
numbernull
nullperiodStartAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullperiodEndAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullissuedAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nulldueAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullfinalizedAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullvoidedAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullcreatedAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullupdatedAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nulllatestPaymentAttemptobject | nullrequiredShow propertiesHide properties
Any of:
object
attemptIdstringrequiredmin length 1
invoiceNumberstringrequiredmin length 1
statusstringrequiredAllowed:
pendingrequires_actionsucceededfailedcanceledrefundedrequestedAmountnumberrequiredcollectedAmountnumberrequiredcreatedAtstringrequiredmin length 1
paymentIntentIdstring | nullrequiredShow propertiesHide properties
Any of:
string
stringnull
nullpaymentIdstring | nullrequiredShow propertiesHide properties
Any of:
string
stringnull
nullfailureReasonstring | nullrequiredShow propertiesHide properties
Any of:
string
stringnull
nullresolvedAtstring | nullrequiredShow propertiesHide properties
Any of:
string
stringnull
nullnull
nullentitlementsobjectrequiredShow propertiesHide properties
activeobject[]requiredShow propertiesHide properties
Array of
objectentitlementIdstringrequiredmin length 1
customerIdstringrequiredmin length 1
billingAccountIdstringrequiredmin length 1
entitlementKeystringrequiredmin length 1
statusstringrequiredAllowed:
activerevokedsourcestringrequiredAllowed:
subscriptionoperatorpromotionsourceRefstringrequiredmin length 1
grantedAtstringrequiredmin length 1
metadataobjectrequiredrevokedAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullreasonstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullrevokedobject[]requiredShow propertiesHide properties
Array of
objectentitlementIdstringrequiredmin length 1
customerIdstringrequiredmin length 1
billingAccountIdstringrequiredmin length 1
entitlementKeystringrequiredmin length 1
statusstringrequiredAllowed:
activerevokedsourcestringrequiredAllowed:
subscriptionoperatorpromotionsourceRefstringrequiredmin length 1
grantedAtstringrequiredmin length 1
metadataobjectrequiredrevokedAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullreasonstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullretryQueueobject[]requiredShow propertiesHide properties
Array of
objectretryIdstringrequiredmin length 1
invoiceNumberstringrequiredmin length 1
statusstringrequiredAllowed:
pendingrunningsucceededfailedexhaustedcanceledretrySequencenumberrequiredrunAtstringrequiredmin length 1
lastErrorstring | nullrequiredShow propertiesHide properties
Any of:
string
stringnull
nullpendingPaymentAttemptsobject[]requiredShow propertiesHide properties
Array of
objectattemptIdstringrequiredmin length 1
invoiceNumberstringrequiredmin length 1
statusstringrequiredAllowed:
pendingrequires_actionsucceededfailedcanceledrefundedrequestedAmountnumberrequiredcollectedAmountnumberrequiredcreatedAtstringrequiredmin length 1
paymentIntentIdstring | nullrequiredShow propertiesHide properties
Any of:
string
stringnull
nullpaymentIdstring | nullrequiredShow propertiesHide properties
Any of:
string
stringnull
nullfailureReasonstring | nullrequiredShow propertiesHide properties
Any of:
string
stringnull
nullresolvedAtstring | nullrequiredShow propertiesHide properties
Any of:
string
stringnull
nullpendingRefundsobject[]requiredShow propertiesHide properties
Array of
objectbillingRefundIdstringrequiredmin length 1
invoiceNumberstringrequiredmin length 1
paymentIdstringrequiredmin length 1
paymentsRefundIdstringrequiredmin length 1
amountnumberrequiredstatusstringrequiredAllowed:
pendingsucceededfailedreasonstringrequiredmin length 1
requestedAtstringrequiredmin length 1
resolvedAtstring | nullrequiredShow propertiesHide properties
Any of:
string
stringnull
nullaccessobjectrequiredShow propertiesHide properties
allowedbooleanrequiredstatestringrequiredAllowed:
readyaction_requiredblockedunknownreasonCodesstring[]requiredactiveKeysstring[]requiredactiveEntitlementsobject[]requiredShow propertiesHide properties
Array of
objectentitlementIdstringrequiredmin length 1
customerIdstringrequiredmin length 1
billingAccountIdstringrequiredmin length 1
entitlementKeystringrequiredmin length 1
statusstringrequiredAllowed:
activerevokedsourcestringrequiredAllowed:
subscriptionoperatorpromotionsourceRefstringrequiredmin length 1
grantedAtstringrequiredmin length 1
metadataobjectrequiredrevokedAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullreasonstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullrequestIdstringrequiredmin length 1