Skip to main content

AsyncAPI for subscription service 0.1.0 documentation

info

In this document, PUB means "publish" and SUB means "subscribe". This refers to the "publish/subscribe" (pub/sub) messaging framework, where "publish" means that the service sends data to Kafka topics, and "subscribe" means the service acts as a consumer that subscribes to specific Kafka topics to receive data.

  • Specification ID: urn:net:accelbyte:platform:subscription
  • Protobuf File Spec: subscription.proto

Table of Contents

Operations

PUB subscription Operation

Accepts one of the following messages:

Message subscribed

message is sent when user subscribe a subscription

Payload
NameTypeDescriptionValueConstraintsNotes
(root)object allOf---additional properties are allowed
payloadobject---additional properties are allowed
payload.subscriptionobject---additional properties are allowed
payload.subscription.idstringid---
payload.subscription.namespacestringnamespace---
payload.subscription.userIdstringuser id---
payload.subscription.itemIdstringitem id---
payload.subscription.skustringsku---
payload.subscription.titlestringtitle---
payload.subscription.currencyobject---additional properties are allowed
payload.subscription.currency.currencyCodestringcurrency code---
payload.subscription.currency.currencySymbolstringcurrency symbol---
payload.subscription.currency.currencyTypestringcurrency typeallowed ("REAL", "VIRTUAL")--
payload.subscription.currency.namespacestringnamespace---
payload.subscription.currency.decimalsintegerdecimals-format (int32)-
payload.subscription.priceintegernormal price---
payload.subscription.trialPriceintegertrial price---
payload.subscription.recurringobject---additional properties are allowed
payload.subscription.recurring.cyclestringrecurring cycleallowed ("WEEKLY", "MONTHLY", "QUARTERLY", "YEARLY")--
payload.subscription.recurring.fixedFreeDaysintegerfixed free days, 0 means not set-format (int32)-
payload.subscription.recurring.fixedTrialCyclesintegerfixed trial cycles, 0 means not set-format (int32)-
payload.subscription.recurring.graceDaysintegerrecurring grace days, retry recurring charge within configured days if charge fail, default 7default (7)format (int32)-
payload.subscription.statusstringstatusallowed ("INIT", "ACTIVE", "CANCELLED", "EXPIRED")--
payload.subscription.chargeStatusstringcharge statusallowed ("NEVER", "SETUP", "RECURRING_CHARGING", "CHARGED", "CHARGE_FAILED")--
payload.subscription.nextBillingDatestringnext billing date-format (date-time)-
payload.subscription.currentPeriodStartstringcurrent period start time-format (date-time)-
payload.subscription.currentPeriodEndstringcurrent period end time-format (date-time)-
payload.subscription.startstringstart date, the first time subscribed-format (date-time)-
payload.subscription.endstringend time if exists-format (date-time)-
payload.subscription.currentCycleintegercurrent cycle---
payload.subscription.chargedCyclesintegeralready charged cycles---
payload.subscription.trialedCyclesintegeralready trialed cycles if fixedCycleTrial exists---
payload.subscription.inFixedFreeDaysbooleanwhether in fixed free days---
payload.subscription.inFixedCycleTrialbooleanwhether in fixed cycle trial---
payload.subscription.firstSubscribebooleanindicates whether is first subscribe---
payload.subscription.paidbooleanwhether user paid from the subscription start---
payload.subscription.subscribedBystringsubscribed by PLATFORM(system granted) or USER(subscribed by user self)allowed ("USER", "PLATFORM")--
payload.subscription.subscribedAtstringtime when subscribed-format (date-time)-
payload.subscription.unsubscribedAtstringtime when unsubscribed-format (date-time)-
payload.subscription.unsubscribeReasonstringreason why unsubscribe---
payload.subscription.sourcestringsource---
payload.subscription.regionstringcreated region---
payload.subscription.languagestringcreated language---
payload.subscription.sandboxbooleanis sandbox mode---
payload.subscription.createdAtstring--format (date-time)-
payload.subscription.updateAtstring--format (date-time)-
0 (allOf item)object---additional properties are allowed
idstring----
versioninteger----
namestring----
namespacestring----
parentNamespacestring----
timestampstring--format (date-time)-
clientIdstring----
userIdstring----
traceIdstring----
sessionIdstring----

Examples of payload (generated)

{
"payload": {
"subscription": {
"id": "string",
"namespace": "string",
"userId": "string",
"itemId": "string",
"sku": "string",
"title": "string",
"currency": {
"currencyCode": "string",
"currencySymbol": "string",
"currencyType": "REAL",
"namespace": "string",
"decimals": 0
},
"price": 0,
"trialPrice": 0,
"recurring": {
"cycle": "WEEKLY",
"fixedFreeDays": 0,
"fixedTrialCycles": 0,
"graceDays": 7
},
"status": "INIT",
"chargeStatus": "NEVER",
"nextBillingDate": "2019-08-24T14:15:22Z",
"currentPeriodStart": "2019-08-24T14:15:22Z",
"currentPeriodEnd": "2019-08-24T14:15:22Z",
"start": "2019-08-24T14:15:22Z",
"end": "2019-08-24T14:15:22Z",
"currentCycle": 0,
"chargedCycles": 0,
"trialedCycles": 0,
"inFixedFreeDays": true,
"inFixedCycleTrial": true,
"firstSubscribe": true,
"paid": true,
"subscribedBy": "USER",
"subscribedAt": "2019-08-24T14:15:22Z",
"unsubscribedAt": "2019-08-24T14:15:22Z",
"unsubscribeReason": "string",
"source": "string",
"region": "string",
"language": "string",
"sandbox": true,
"createdAt": "2019-08-24T14:15:22Z",
"updateAt": "2019-08-24T14:15:22Z"
}
},
"id": "string",
"version": 0,
"name": "string",
"namespace": "string",
"parentNamespace": "string",
"timestamp": "2019-08-24T14:15:22Z",
"clientId": "string",
"userId": "string",
"traceId": "string",
"sessionId": "string"
}

Message cancelled

message is sent when a subscription is cancelled

Payload
NameTypeDescriptionValueConstraintsNotes
(root)object allOf---additional properties are allowed
payloadobject---additional properties are allowed
payload.subscriptionobject---additional properties are allowed
payload.subscription.idstringid---
payload.subscription.namespacestringnamespace---
payload.subscription.userIdstringuser id---
payload.subscription.itemIdstringitem id---
payload.subscription.skustringsku---
payload.subscription.titlestringtitle---
payload.subscription.currencyobject---additional properties are allowed
payload.subscription.currency.currencyCodestringcurrency code---
payload.subscription.currency.currencySymbolstringcurrency symbol---
payload.subscription.currency.currencyTypestringcurrency typeallowed ("REAL", "VIRTUAL")--
payload.subscription.currency.namespacestringnamespace---
payload.subscription.currency.decimalsintegerdecimals-format (int32)-
payload.subscription.priceintegernormal price---
payload.subscription.trialPriceintegertrial price---
payload.subscription.recurringobject---additional properties are allowed
payload.subscription.recurring.cyclestringrecurring cycleallowed ("WEEKLY", "MONTHLY", "QUARTERLY", "YEARLY")--
payload.subscription.recurring.fixedFreeDaysintegerfixed free days, 0 means not set-format (int32)-
payload.subscription.recurring.fixedTrialCyclesintegerfixed trial cycles, 0 means not set-format (int32)-
payload.subscription.recurring.graceDaysintegerrecurring grace days, retry recurring charge within configured days if charge fail, default 7default (7)format (int32)-
payload.subscription.statusstringstatusallowed ("INIT", "ACTIVE", "CANCELLED", "EXPIRED")--
payload.subscription.chargeStatusstringcharge statusallowed ("NEVER", "SETUP", "RECURRING_CHARGING", "CHARGED", "CHARGE_FAILED")--
payload.subscription.nextBillingDatestringnext billing date-format (date-time)-
payload.subscription.currentPeriodStartstringcurrent period start time-format (date-time)-
payload.subscription.currentPeriodEndstringcurrent period end time-format (date-time)-
payload.subscription.startstringstart date, the first time subscribed-format (date-time)-
payload.subscription.endstringend time if exists-format (date-time)-
payload.subscription.currentCycleintegercurrent cycle---
payload.subscription.chargedCyclesintegeralready charged cycles---
payload.subscription.trialedCyclesintegeralready trialed cycles if fixedCycleTrial exists---
payload.subscription.inFixedFreeDaysbooleanwhether in fixed free days---
payload.subscription.inFixedCycleTrialbooleanwhether in fixed cycle trial---
payload.subscription.firstSubscribebooleanindicates whether is first subscribe---
payload.subscription.paidbooleanwhether user paid from the subscription start---
payload.subscription.subscribedBystringsubscribed by PLATFORM(system granted) or USER(subscribed by user self)allowed ("USER", "PLATFORM")--
payload.subscription.subscribedAtstringtime when subscribed-format (date-time)-
payload.subscription.unsubscribedAtstringtime when unsubscribed-format (date-time)-
payload.subscription.unsubscribeReasonstringreason why unsubscribe---
payload.subscription.sourcestringsource---
payload.subscription.regionstringcreated region---
payload.subscription.languagestringcreated language---
payload.subscription.sandboxbooleanis sandbox mode---
payload.subscription.createdAtstring--format (date-time)-
payload.subscription.updateAtstring--format (date-time)-
0 (allOf item)object---additional properties are allowed
idstring----
versioninteger----
namestring----
namespacestring----
parentNamespacestring----
timestampstring--format (date-time)-
clientIdstring----
userIdstring----
traceIdstring----
sessionIdstring----

Examples of payload (generated)

{
"payload": {
"subscription": {
"id": "string",
"namespace": "string",
"userId": "string",
"itemId": "string",
"sku": "string",
"title": "string",
"currency": {
"currencyCode": "string",
"currencySymbol": "string",
"currencyType": "REAL",
"namespace": "string",
"decimals": 0
},
"price": 0,
"trialPrice": 0,
"recurring": {
"cycle": "WEEKLY",
"fixedFreeDays": 0,
"fixedTrialCycles": 0,
"graceDays": 7
},
"status": "INIT",
"chargeStatus": "NEVER",
"nextBillingDate": "2019-08-24T14:15:22Z",
"currentPeriodStart": "2019-08-24T14:15:22Z",
"currentPeriodEnd": "2019-08-24T14:15:22Z",
"start": "2019-08-24T14:15:22Z",
"end": "2019-08-24T14:15:22Z",
"currentCycle": 0,
"chargedCycles": 0,
"trialedCycles": 0,
"inFixedFreeDays": true,
"inFixedCycleTrial": true,
"firstSubscribe": true,
"paid": true,
"subscribedBy": "USER",
"subscribedAt": "2019-08-24T14:15:22Z",
"unsubscribedAt": "2019-08-24T14:15:22Z",
"unsubscribeReason": "string",
"source": "string",
"region": "string",
"language": "string",
"sandbox": true,
"createdAt": "2019-08-24T14:15:22Z",
"updateAt": "2019-08-24T14:15:22Z"
}
},
"id": "string",
"version": 0,
"name": "string",
"namespace": "string",
"parentNamespace": "string",
"timestamp": "2019-08-24T14:15:22Z",
"clientId": "string",
"userId": "string",
"traceId": "string",
"sessionId": "string"
}

Message immediateCancelled

message is sent when a subscription is cancelled immediately

Payload
NameTypeDescriptionValueConstraintsNotes
(root)object allOf---additional properties are allowed
payloadobject---additional properties are allowed
payload.subscriptionobject---additional properties are allowed
payload.subscription.idstringid---
payload.subscription.namespacestringnamespace---
payload.subscription.userIdstringuser id---
payload.subscription.itemIdstringitem id---
payload.subscription.skustringsku---
payload.subscription.titlestringtitle---
payload.subscription.currencyobject---additional properties are allowed
payload.subscription.currency.currencyCodestringcurrency code---
payload.subscription.currency.currencySymbolstringcurrency symbol---
payload.subscription.currency.currencyTypestringcurrency typeallowed ("REAL", "VIRTUAL")--
payload.subscription.currency.namespacestringnamespace---
payload.subscription.currency.decimalsintegerdecimals-format (int32)-
payload.subscription.priceintegernormal price---
payload.subscription.trialPriceintegertrial price---
payload.subscription.recurringobject---additional properties are allowed
payload.subscription.recurring.cyclestringrecurring cycleallowed ("WEEKLY", "MONTHLY", "QUARTERLY", "YEARLY")--
payload.subscription.recurring.fixedFreeDaysintegerfixed free days, 0 means not set-format (int32)-
payload.subscription.recurring.fixedTrialCyclesintegerfixed trial cycles, 0 means not set-format (int32)-
payload.subscription.recurring.graceDaysintegerrecurring grace days, retry recurring charge within configured days if charge fail, default 7default (7)format (int32)-
payload.subscription.statusstringstatusallowed ("INIT", "ACTIVE", "CANCELLED", "EXPIRED")--
payload.subscription.chargeStatusstringcharge statusallowed ("NEVER", "SETUP", "RECURRING_CHARGING", "CHARGED", "CHARGE_FAILED")--
payload.subscription.nextBillingDatestringnext billing date-format (date-time)-
payload.subscription.currentPeriodStartstringcurrent period start time-format (date-time)-
payload.subscription.currentPeriodEndstringcurrent period end time-format (date-time)-
payload.subscription.startstringstart date, the first time subscribed-format (date-time)-
payload.subscription.endstringend time if exists-format (date-time)-
payload.subscription.currentCycleintegercurrent cycle---
payload.subscription.chargedCyclesintegeralready charged cycles---
payload.subscription.trialedCyclesintegeralready trialed cycles if fixedCycleTrial exists---
payload.subscription.inFixedFreeDaysbooleanwhether in fixed free days---
payload.subscription.inFixedCycleTrialbooleanwhether in fixed cycle trial---
payload.subscription.firstSubscribebooleanindicates whether is first subscribe---
payload.subscription.paidbooleanwhether user paid from the subscription start---
payload.subscription.subscribedBystringsubscribed by PLATFORM(system granted) or USER(subscribed by user self)allowed ("USER", "PLATFORM")--
payload.subscription.subscribedAtstringtime when subscribed-format (date-time)-
payload.subscription.unsubscribedAtstringtime when unsubscribed-format (date-time)-
payload.subscription.unsubscribeReasonstringreason why unsubscribe---
payload.subscription.sourcestringsource---
payload.subscription.regionstringcreated region---
payload.subscription.languagestringcreated language---
payload.subscription.sandboxbooleanis sandbox mode---
payload.subscription.createdAtstring--format (date-time)-
payload.subscription.updateAtstring--format (date-time)-
0 (allOf item)object---additional properties are allowed
idstring----
versioninteger----
namestring----
namespacestring----
parentNamespacestring----
timestampstring--format (date-time)-
clientIdstring----
userIdstring----
traceIdstring----
sessionIdstring----

Examples of payload (generated)

{
"payload": {
"subscription": {
"id": "string",
"namespace": "string",
"userId": "string",
"itemId": "string",
"sku": "string",
"title": "string",
"currency": {
"currencyCode": "string",
"currencySymbol": "string",
"currencyType": "REAL",
"namespace": "string",
"decimals": 0
},
"price": 0,
"trialPrice": 0,
"recurring": {
"cycle": "WEEKLY",
"fixedFreeDays": 0,
"fixedTrialCycles": 0,
"graceDays": 7
},
"status": "INIT",
"chargeStatus": "NEVER",
"nextBillingDate": "2019-08-24T14:15:22Z",
"currentPeriodStart": "2019-08-24T14:15:22Z",
"currentPeriodEnd": "2019-08-24T14:15:22Z",
"start": "2019-08-24T14:15:22Z",
"end": "2019-08-24T14:15:22Z",
"currentCycle": 0,
"chargedCycles": 0,
"trialedCycles": 0,
"inFixedFreeDays": true,
"inFixedCycleTrial": true,
"firstSubscribe": true,
"paid": true,
"subscribedBy": "USER",
"subscribedAt": "2019-08-24T14:15:22Z",
"unsubscribedAt": "2019-08-24T14:15:22Z",
"unsubscribeReason": "string",
"source": "string",
"region": "string",
"language": "string",
"sandbox": true,
"createdAt": "2019-08-24T14:15:22Z",
"updateAt": "2019-08-24T14:15:22Z"
}
},
"id": "string",
"version": 0,
"name": "string",
"namespace": "string",
"parentNamespace": "string",
"timestamp": "2019-08-24T14:15:22Z",
"clientId": "string",
"userId": "string",
"traceId": "string",
"sessionId": "string"
}

Message resubscribed

message is sent when user resubscribe a subscription

Payload
NameTypeDescriptionValueConstraintsNotes
(root)object allOf---additional properties are allowed
payloadobject---additional properties are allowed
payload.subscriptionobject---additional properties are allowed
payload.subscription.idstringid---
payload.subscription.namespacestringnamespace---
payload.subscription.userIdstringuser id---
payload.subscription.itemIdstringitem id---
payload.subscription.skustringsku---
payload.subscription.titlestringtitle---
payload.subscription.currencyobject---additional properties are allowed
payload.subscription.currency.currencyCodestringcurrency code---
payload.subscription.currency.currencySymbolstringcurrency symbol---
payload.subscription.currency.currencyTypestringcurrency typeallowed ("REAL", "VIRTUAL")--
payload.subscription.currency.namespacestringnamespace---
payload.subscription.currency.decimalsintegerdecimals-format (int32)-
payload.subscription.priceintegernormal price---
payload.subscription.trialPriceintegertrial price---
payload.subscription.recurringobject---additional properties are allowed
payload.subscription.recurring.cyclestringrecurring cycleallowed ("WEEKLY", "MONTHLY", "QUARTERLY", "YEARLY")--
payload.subscription.recurring.fixedFreeDaysintegerfixed free days, 0 means not set-format (int32)-
payload.subscription.recurring.fixedTrialCyclesintegerfixed trial cycles, 0 means not set-format (int32)-
payload.subscription.recurring.graceDaysintegerrecurring grace days, retry recurring charge within configured days if charge fail, default 7default (7)format (int32)-
payload.subscription.statusstringstatusallowed ("INIT", "ACTIVE", "CANCELLED", "EXPIRED")--
payload.subscription.chargeStatusstringcharge statusallowed ("NEVER", "SETUP", "RECURRING_CHARGING", "CHARGED", "CHARGE_FAILED")--
payload.subscription.nextBillingDatestringnext billing date-format (date-time)-
payload.subscription.currentPeriodStartstringcurrent period start time-format (date-time)-
payload.subscription.currentPeriodEndstringcurrent period end time-format (date-time)-
payload.subscription.startstringstart date, the first time subscribed-format (date-time)-
payload.subscription.endstringend time if exists-format (date-time)-
payload.subscription.currentCycleintegercurrent cycle---
payload.subscription.chargedCyclesintegeralready charged cycles---
payload.subscription.trialedCyclesintegeralready trialed cycles if fixedCycleTrial exists---
payload.subscription.inFixedFreeDaysbooleanwhether in fixed free days---
payload.subscription.inFixedCycleTrialbooleanwhether in fixed cycle trial---
payload.subscription.firstSubscribebooleanindicates whether is first subscribe---
payload.subscription.paidbooleanwhether user paid from the subscription start---
payload.subscription.subscribedBystringsubscribed by PLATFORM(system granted) or USER(subscribed by user self)allowed ("USER", "PLATFORM")--
payload.subscription.subscribedAtstringtime when subscribed-format (date-time)-
payload.subscription.unsubscribedAtstringtime when unsubscribed-format (date-time)-
payload.subscription.unsubscribeReasonstringreason why unsubscribe---
payload.subscription.sourcestringsource---
payload.subscription.regionstringcreated region---
payload.subscription.languagestringcreated language---
payload.subscription.sandboxbooleanis sandbox mode---
payload.subscription.createdAtstring--format (date-time)-
payload.subscription.updateAtstring--format (date-time)-
0 (allOf item)object---additional properties are allowed
idstring----
versioninteger----
namestring----
namespacestring----
parentNamespacestring----
timestampstring--format (date-time)-
clientIdstring----
userIdstring----
traceIdstring----
sessionIdstring----

Examples of payload (generated)

{
"payload": {
"subscription": {
"id": "string",
"namespace": "string",
"userId": "string",
"itemId": "string",
"sku": "string",
"title": "string",
"currency": {
"currencyCode": "string",
"currencySymbol": "string",
"currencyType": "REAL",
"namespace": "string",
"decimals": 0
},
"price": 0,
"trialPrice": 0,
"recurring": {
"cycle": "WEEKLY",
"fixedFreeDays": 0,
"fixedTrialCycles": 0,
"graceDays": 7
},
"status": "INIT",
"chargeStatus": "NEVER",
"nextBillingDate": "2019-08-24T14:15:22Z",
"currentPeriodStart": "2019-08-24T14:15:22Z",
"currentPeriodEnd": "2019-08-24T14:15:22Z",
"start": "2019-08-24T14:15:22Z",
"end": "2019-08-24T14:15:22Z",
"currentCycle": 0,
"chargedCycles": 0,
"trialedCycles": 0,
"inFixedFreeDays": true,
"inFixedCycleTrial": true,
"firstSubscribe": true,
"paid": true,
"subscribedBy": "USER",
"subscribedAt": "2019-08-24T14:15:22Z",
"unsubscribedAt": "2019-08-24T14:15:22Z",
"unsubscribeReason": "string",
"source": "string",
"region": "string",
"language": "string",
"sandbox": true,
"createdAt": "2019-08-24T14:15:22Z",
"updateAt": "2019-08-24T14:15:22Z"
}
},
"id": "string",
"version": 0,
"name": "string",
"namespace": "string",
"parentNamespace": "string",
"timestamp": "2019-08-24T14:15:22Z",
"clientId": "string",
"userId": "string",
"traceId": "string",
"sessionId": "string"
}

Message daysGranted

message is sent when grant days to subscription

Payload
NameTypeDescriptionValueConstraintsNotes
(root)object allOf---additional properties are allowed
payloadobject---additional properties are allowed
payload.subscriptionobject---additional properties are allowed
payload.subscription.idstringid---
payload.subscription.namespacestringnamespace---
payload.subscription.userIdstringuser id---
payload.subscription.itemIdstringitem id---
payload.subscription.skustringsku---
payload.subscription.titlestringtitle---
payload.subscription.currencyobject---additional properties are allowed
payload.subscription.currency.currencyCodestringcurrency code---
payload.subscription.currency.currencySymbolstringcurrency symbol---
payload.subscription.currency.currencyTypestringcurrency typeallowed ("REAL", "VIRTUAL")--
payload.subscription.currency.namespacestringnamespace---
payload.subscription.currency.decimalsintegerdecimals-format (int32)-
payload.subscription.priceintegernormal price---
payload.subscription.trialPriceintegertrial price---
payload.subscription.recurringobject---additional properties are allowed
payload.subscription.recurring.cyclestringrecurring cycleallowed ("WEEKLY", "MONTHLY", "QUARTERLY", "YEARLY")--
payload.subscription.recurring.fixedFreeDaysintegerfixed free days, 0 means not set-format (int32)-
payload.subscription.recurring.fixedTrialCyclesintegerfixed trial cycles, 0 means not set-format (int32)-
payload.subscription.recurring.graceDaysintegerrecurring grace days, retry recurring charge within configured days if charge fail, default 7default (7)format (int32)-
payload.subscription.statusstringstatusallowed ("INIT", "ACTIVE", "CANCELLED", "EXPIRED")--
payload.subscription.chargeStatusstringcharge statusallowed ("NEVER", "SETUP", "RECURRING_CHARGING", "CHARGED", "CHARGE_FAILED")--
payload.subscription.nextBillingDatestringnext billing date-format (date-time)-
payload.subscription.currentPeriodStartstringcurrent period start time-format (date-time)-
payload.subscription.currentPeriodEndstringcurrent period end time-format (date-time)-
payload.subscription.startstringstart date, the first time subscribed-format (date-time)-
payload.subscription.endstringend time if exists-format (date-time)-
payload.subscription.currentCycleintegercurrent cycle---
payload.subscription.chargedCyclesintegeralready charged cycles---
payload.subscription.trialedCyclesintegeralready trialed cycles if fixedCycleTrial exists---
payload.subscription.inFixedFreeDaysbooleanwhether in fixed free days---
payload.subscription.inFixedCycleTrialbooleanwhether in fixed cycle trial---
payload.subscription.firstSubscribebooleanindicates whether is first subscribe---
payload.subscription.paidbooleanwhether user paid from the subscription start---
payload.subscription.subscribedBystringsubscribed by PLATFORM(system granted) or USER(subscribed by user self)allowed ("USER", "PLATFORM")--
payload.subscription.subscribedAtstringtime when subscribed-format (date-time)-
payload.subscription.unsubscribedAtstringtime when unsubscribed-format (date-time)-
payload.subscription.unsubscribeReasonstringreason why unsubscribe---
payload.subscription.sourcestringsource---
payload.subscription.regionstringcreated region---
payload.subscription.languagestringcreated language---
payload.subscription.sandboxbooleanis sandbox mode---
payload.subscription.createdAtstring--format (date-time)-
payload.subscription.updateAtstring--format (date-time)-
payload.grantDaysinteger----
0 (allOf item)object---additional properties are allowed
idstring----
versioninteger----
namestring----
namespacestring----
parentNamespacestring----
timestampstring--format (date-time)-
clientIdstring----
userIdstring----
traceIdstring----
sessionIdstring----

Examples of payload (generated)

{
"payload": {
"subscription": {
"id": "string",
"namespace": "string",
"userId": "string",
"itemId": "string",
"sku": "string",
"title": "string",
"currency": {
"currencyCode": "string",
"currencySymbol": "string",
"currencyType": "REAL",
"namespace": "string",
"decimals": 0
},
"price": 0,
"trialPrice": 0,
"recurring": {
"cycle": "WEEKLY",
"fixedFreeDays": 0,
"fixedTrialCycles": 0,
"graceDays": 7
},
"status": "INIT",
"chargeStatus": "NEVER",
"nextBillingDate": "2019-08-24T14:15:22Z",
"currentPeriodStart": "2019-08-24T14:15:22Z",
"currentPeriodEnd": "2019-08-24T14:15:22Z",
"start": "2019-08-24T14:15:22Z",
"end": "2019-08-24T14:15:22Z",
"currentCycle": 0,
"chargedCycles": 0,
"trialedCycles": 0,
"inFixedFreeDays": true,
"inFixedCycleTrial": true,
"firstSubscribe": true,
"paid": true,
"subscribedBy": "USER",
"subscribedAt": "2019-08-24T14:15:22Z",
"unsubscribedAt": "2019-08-24T14:15:22Z",
"unsubscribeReason": "string",
"source": "string",
"region": "string",
"language": "string",
"sandbox": true,
"createdAt": "2019-08-24T14:15:22Z",
"updateAt": "2019-08-24T14:15:22Z"
},
"grantDays": 0
},
"id": "string",
"version": 0,
"name": "string",
"namespace": "string",
"parentNamespace": "string",
"timestamp": "2019-08-24T14:15:22Z",
"clientId": "string",
"userId": "string",
"traceId": "string",
"sessionId": "string"
}

Message charged

message is sent when billing is charged

Payload
NameTypeDescriptionValueConstraintsNotes
(root)object allOf---additional properties are allowed
payloadobject---additional properties are allowed
payload.subscriptionobject---additional properties are allowed
payload.subscription.idstringid---
payload.subscription.namespacestringnamespace---
payload.subscription.userIdstringuser id---
payload.subscription.itemIdstringitem id---
payload.subscription.skustringsku---
payload.subscription.titlestringtitle---
payload.subscription.currencyobject---additional properties are allowed
payload.subscription.currency.currencyCodestringcurrency code---
payload.subscription.currency.currencySymbolstringcurrency symbol---
payload.subscription.currency.currencyTypestringcurrency typeallowed ("REAL", "VIRTUAL")--
payload.subscription.currency.namespacestringnamespace---
payload.subscription.currency.decimalsintegerdecimals-format (int32)-
payload.subscription.priceintegernormal price---
payload.subscription.trialPriceintegertrial price---
payload.subscription.recurringobject---additional properties are allowed
payload.subscription.recurring.cyclestringrecurring cycleallowed ("WEEKLY", "MONTHLY", "QUARTERLY", "YEARLY")--
payload.subscription.recurring.fixedFreeDaysintegerfixed free days, 0 means not set-format (int32)-
payload.subscription.recurring.fixedTrialCyclesintegerfixed trial cycles, 0 means not set-format (int32)-
payload.subscription.recurring.graceDaysintegerrecurring grace days, retry recurring charge within configured days if charge fail, default 7default (7)format (int32)-
payload.subscription.statusstringstatusallowed ("INIT", "ACTIVE", "CANCELLED", "EXPIRED")--
payload.subscription.chargeStatusstringcharge statusallowed ("NEVER", "SETUP", "RECURRING_CHARGING", "CHARGED", "CHARGE_FAILED")--
payload.subscription.nextBillingDatestringnext billing date-format (date-time)-
payload.subscription.currentPeriodStartstringcurrent period start time-format (date-time)-
payload.subscription.currentPeriodEndstringcurrent period end time-format (date-time)-
payload.subscription.startstringstart date, the first time subscribed-format (date-time)-
payload.subscription.endstringend time if exists-format (date-time)-
payload.subscription.currentCycleintegercurrent cycle---
payload.subscription.chargedCyclesintegeralready charged cycles---
payload.subscription.trialedCyclesintegeralready trialed cycles if fixedCycleTrial exists---
payload.subscription.inFixedFreeDaysbooleanwhether in fixed free days---
payload.subscription.inFixedCycleTrialbooleanwhether in fixed cycle trial---
payload.subscription.firstSubscribebooleanindicates whether is first subscribe---
payload.subscription.paidbooleanwhether user paid from the subscription start---
payload.subscription.subscribedBystringsubscribed by PLATFORM(system granted) or USER(subscribed by user self)allowed ("USER", "PLATFORM")--
payload.subscription.subscribedAtstringtime when subscribed-format (date-time)-
payload.subscription.unsubscribedAtstringtime when unsubscribed-format (date-time)-
payload.subscription.unsubscribeReasonstringreason why unsubscribe---
payload.subscription.sourcestringsource---
payload.subscription.regionstringcreated region---
payload.subscription.languagestringcreated language---
payload.subscription.sandboxbooleanis sandbox mode---
payload.subscription.createdAtstring--format (date-time)-
payload.subscription.updateAtstring--format (date-time)-
payload.billingobject---additional properties are allowed
payload.billing.paymentProviderobjectpayment providerallowed ("WALLET", "XSOLLA", "ADYEN", "STRIPE", "ALIPAY", "WXPAY", "PAYPAL")-additional properties are allowed
payload.billing.paymentMethodstringpayment method---
payload.billing.amountintegercharge amount---
payload.billing.totalTaxintegertotal tax---
payload.billing.totalPriceintegertotal price---
payload.billing.subtotalPriceintegersubtotal price---
payload.billing.recurringOrderNostringrecurring order no for this billing---
payload.billing.paymentOrderNostringpayment order no---
payload.billing.txEndTimestringtransaction end time-format (date-time)-
payload.billing.extTxIdstringexternal transaction id---
0 (allOf item)object---additional properties are allowed
idstring----
versioninteger----
namestring----
namespacestring----
parentNamespacestring----
timestampstring--format (date-time)-
clientIdstring----
userIdstring----
traceIdstring----
sessionIdstring----

Examples of payload (generated)

{
"payload": {
"subscription": {
"id": "string",
"namespace": "string",
"userId": "string",
"itemId": "string",
"sku": "string",
"title": "string",
"currency": {
"currencyCode": "string",
"currencySymbol": "string",
"currencyType": "REAL",
"namespace": "string",
"decimals": 0
},
"price": 0,
"trialPrice": 0,
"recurring": {
"cycle": "WEEKLY",
"fixedFreeDays": 0,
"fixedTrialCycles": 0,
"graceDays": 7
},
"status": "INIT",
"chargeStatus": "NEVER",
"nextBillingDate": "2019-08-24T14:15:22Z",
"currentPeriodStart": "2019-08-24T14:15:22Z",
"currentPeriodEnd": "2019-08-24T14:15:22Z",
"start": "2019-08-24T14:15:22Z",
"end": "2019-08-24T14:15:22Z",
"currentCycle": 0,
"chargedCycles": 0,
"trialedCycles": 0,
"inFixedFreeDays": true,
"inFixedCycleTrial": true,
"firstSubscribe": true,
"paid": true,
"subscribedBy": "USER",
"subscribedAt": "2019-08-24T14:15:22Z",
"unsubscribedAt": "2019-08-24T14:15:22Z",
"unsubscribeReason": "string",
"source": "string",
"region": "string",
"language": "string",
"sandbox": true,
"createdAt": "2019-08-24T14:15:22Z",
"updateAt": "2019-08-24T14:15:22Z"
},
"billing": {
"paymentProvider": "WALLET",
"paymentMethod": "string",
"amount": 0,
"totalTax": 0,
"totalPrice": 0,
"subtotalPrice": 0,
"recurringOrderNo": "string",
"paymentOrderNo": "string",
"txEndTime": "2019-08-24T14:15:22Z",
"extTxId": "string"
}
},
"id": "string",
"version": 0,
"name": "string",
"namespace": "string",
"parentNamespace": "string",
"timestamp": "2019-08-24T14:15:22Z",
"clientId": "string",
"userId": "string",
"traceId": "string",
"sessionId": "string"
}

Message chargeFailed

message is sent when billing is charge failed

Payload
NameTypeDescriptionValueConstraintsNotes
(root)object allOf---additional properties are allowed
payloadobject---additional properties are allowed
payload.subscriptionobject---additional properties are allowed
payload.subscription.idstringid---
payload.subscription.namespacestringnamespace---
payload.subscription.userIdstringuser id---
payload.subscription.itemIdstringitem id---
payload.subscription.skustringsku---
payload.subscription.titlestringtitle---
payload.subscription.currencyobject---additional properties are allowed
payload.subscription.currency.currencyCodestringcurrency code---
payload.subscription.currency.currencySymbolstringcurrency symbol---
payload.subscription.currency.currencyTypestringcurrency typeallowed ("REAL", "VIRTUAL")--
payload.subscription.currency.namespacestringnamespace---
payload.subscription.currency.decimalsintegerdecimals-format (int32)-
payload.subscription.priceintegernormal price---
payload.subscription.trialPriceintegertrial price---
payload.subscription.recurringobject---additional properties are allowed
payload.subscription.recurring.cyclestringrecurring cycleallowed ("WEEKLY", "MONTHLY", "QUARTERLY", "YEARLY")--
payload.subscription.recurring.fixedFreeDaysintegerfixed free days, 0 means not set-format (int32)-
payload.subscription.recurring.fixedTrialCyclesintegerfixed trial cycles, 0 means not set-format (int32)-
payload.subscription.recurring.graceDaysintegerrecurring grace days, retry recurring charge within configured days if charge fail, default 7default (7)format (int32)-
payload.subscription.statusstringstatusallowed ("INIT", "ACTIVE", "CANCELLED", "EXPIRED")--
payload.subscription.chargeStatusstringcharge statusallowed ("NEVER", "SETUP", "RECURRING_CHARGING", "CHARGED", "CHARGE_FAILED")--
payload.subscription.nextBillingDatestringnext billing date-format (date-time)-
payload.subscription.currentPeriodStartstringcurrent period start time-format (date-time)-
payload.subscription.currentPeriodEndstringcurrent period end time-format (date-time)-
payload.subscription.startstringstart date, the first time subscribed-format (date-time)-
payload.subscription.endstringend time if exists-format (date-time)-
payload.subscription.currentCycleintegercurrent cycle---
payload.subscription.chargedCyclesintegeralready charged cycles---
payload.subscription.trialedCyclesintegeralready trialed cycles if fixedCycleTrial exists---
payload.subscription.inFixedFreeDaysbooleanwhether in fixed free days---
payload.subscription.inFixedCycleTrialbooleanwhether in fixed cycle trial---
payload.subscription.firstSubscribebooleanindicates whether is first subscribe---
payload.subscription.paidbooleanwhether user paid from the subscription start---
payload.subscription.subscribedBystringsubscribed by PLATFORM(system granted) or USER(subscribed by user self)allowed ("USER", "PLATFORM")--
payload.subscription.subscribedAtstringtime when subscribed-format (date-time)-
payload.subscription.unsubscribedAtstringtime when unsubscribed-format (date-time)-
payload.subscription.unsubscribeReasonstringreason why unsubscribe---
payload.subscription.sourcestringsource---
payload.subscription.regionstringcreated region---
payload.subscription.languagestringcreated language---
payload.subscription.sandboxbooleanis sandbox mode---
payload.subscription.createdAtstring--format (date-time)-
payload.subscription.updateAtstring--format (date-time)-
payload.billingobject---additional properties are allowed
payload.billing.paymentProviderobjectpayment providerallowed ("WALLET", "XSOLLA", "ADYEN", "STRIPE", "ALIPAY", "WXPAY", "PAYPAL")-additional properties are allowed
payload.billing.paymentMethodstringpayment method---
payload.billing.amountintegercharge amount---
payload.billing.totalTaxintegertotal tax---
payload.billing.totalPriceintegertotal price---
payload.billing.subtotalPriceintegersubtotal price---
payload.billing.recurringOrderNostringrecurring order no for this billing---
payload.billing.paymentOrderNostringpayment order no---
payload.billing.txEndTimestringtransaction end time-format (date-time)-
payload.billing.extTxIdstringexternal transaction id---
0 (allOf item)object---additional properties are allowed
idstring----
versioninteger----
namestring----
namespacestring----
parentNamespacestring----
timestampstring--format (date-time)-
clientIdstring----
userIdstring----
traceIdstring----
sessionIdstring----

Examples of payload (generated)

{
"payload": {
"subscription": {
"id": "string",
"namespace": "string",
"userId": "string",
"itemId": "string",
"sku": "string",
"title": "string",
"currency": {
"currencyCode": "string",
"currencySymbol": "string",
"currencyType": "REAL",
"namespace": "string",
"decimals": 0
},
"price": 0,
"trialPrice": 0,
"recurring": {
"cycle": "WEEKLY",
"fixedFreeDays": 0,
"fixedTrialCycles": 0,
"graceDays": 7
},
"status": "INIT",
"chargeStatus": "NEVER",
"nextBillingDate": "2019-08-24T14:15:22Z",
"currentPeriodStart": "2019-08-24T14:15:22Z",
"currentPeriodEnd": "2019-08-24T14:15:22Z",
"start": "2019-08-24T14:15:22Z",
"end": "2019-08-24T14:15:22Z",
"currentCycle": 0,
"chargedCycles": 0,
"trialedCycles": 0,
"inFixedFreeDays": true,
"inFixedCycleTrial": true,
"firstSubscribe": true,
"paid": true,
"subscribedBy": "USER",
"subscribedAt": "2019-08-24T14:15:22Z",
"unsubscribedAt": "2019-08-24T14:15:22Z",
"unsubscribeReason": "string",
"source": "string",
"region": "string",
"language": "string",
"sandbox": true,
"createdAt": "2019-08-24T14:15:22Z",
"updateAt": "2019-08-24T14:15:22Z"
},
"billing": {
"paymentProvider": "WALLET",
"paymentMethod": "string",
"amount": 0,
"totalTax": 0,
"totalPrice": 0,
"subtotalPrice": 0,
"recurringOrderNo": "string",
"paymentOrderNo": "string",
"txEndTime": "2019-08-24T14:15:22Z",
"extTxId": "string"
}
},
"id": "string",
"version": 0,
"name": "string",
"namespace": "string",
"parentNamespace": "string",
"timestamp": "2019-08-24T14:15:22Z",
"clientId": "string",
"userId": "string",
"traceId": "string",
"sessionId": "string"
}

Message expired

message is sent when subscription is expired

Payload
NameTypeDescriptionValueConstraintsNotes
(root)object allOf---additional properties are allowed
payloadobject---additional properties are allowed
payload.subscriptionobject---additional properties are allowed
payload.subscription.idstringid---
payload.subscription.namespacestringnamespace---
payload.subscription.userIdstringuser id---
payload.subscription.itemIdstringitem id---
payload.subscription.skustringsku---
payload.subscription.titlestringtitle---
payload.subscription.currencyobject---additional properties are allowed
payload.subscription.currency.currencyCodestringcurrency code---
payload.subscription.currency.currencySymbolstringcurrency symbol---
payload.subscription.currency.currencyTypestringcurrency typeallowed ("REAL", "VIRTUAL")--
payload.subscription.currency.namespacestringnamespace---
payload.subscription.currency.decimalsintegerdecimals-format (int32)-
payload.subscription.priceintegernormal price---
payload.subscription.trialPriceintegertrial price---
payload.subscription.recurringobject---additional properties are allowed
payload.subscription.recurring.cyclestringrecurring cycleallowed ("WEEKLY", "MONTHLY", "QUARTERLY", "YEARLY")--
payload.subscription.recurring.fixedFreeDaysintegerfixed free days, 0 means not set-format (int32)-
payload.subscription.recurring.fixedTrialCyclesintegerfixed trial cycles, 0 means not set-format (int32)-
payload.subscription.recurring.graceDaysintegerrecurring grace days, retry recurring charge within configured days if charge fail, default 7default (7)format (int32)-
payload.subscription.statusstringstatusallowed ("INIT", "ACTIVE", "CANCELLED", "EXPIRED")--
payload.subscription.chargeStatusstringcharge statusallowed ("NEVER", "SETUP", "RECURRING_CHARGING", "CHARGED", "CHARGE_FAILED")--
payload.subscription.nextBillingDatestringnext billing date-format (date-time)-
payload.subscription.currentPeriodStartstringcurrent period start time-format (date-time)-
payload.subscription.currentPeriodEndstringcurrent period end time-format (date-time)-
payload.subscription.startstringstart date, the first time subscribed-format (date-time)-
payload.subscription.endstringend time if exists-format (date-time)-
payload.subscription.currentCycleintegercurrent cycle---
payload.subscription.chargedCyclesintegeralready charged cycles---
payload.subscription.trialedCyclesintegeralready trialed cycles if fixedCycleTrial exists---
payload.subscription.inFixedFreeDaysbooleanwhether in fixed free days---
payload.subscription.inFixedCycleTrialbooleanwhether in fixed cycle trial---
payload.subscription.firstSubscribebooleanindicates whether is first subscribe---
payload.subscription.paidbooleanwhether user paid from the subscription start---
payload.subscription.subscribedBystringsubscribed by PLATFORM(system granted) or USER(subscribed by user self)allowed ("USER", "PLATFORM")--
payload.subscription.subscribedAtstringtime when subscribed-format (date-time)-
payload.subscription.unsubscribedAtstringtime when unsubscribed-format (date-time)-
payload.subscription.unsubscribeReasonstringreason why unsubscribe---
payload.subscription.sourcestringsource---
payload.subscription.regionstringcreated region---
payload.subscription.languagestringcreated language---
payload.subscription.sandboxbooleanis sandbox mode---
payload.subscription.createdAtstring--format (date-time)-
payload.subscription.updateAtstring--format (date-time)-
0 (allOf item)object---additional properties are allowed
idstring----
versioninteger----
namestring----
namespacestring----
parentNamespacestring----
timestampstring--format (date-time)-
clientIdstring----
userIdstring----
traceIdstring----
sessionIdstring----

Examples of payload (generated)

{
"payload": {
"subscription": {
"id": "string",
"namespace": "string",
"userId": "string",
"itemId": "string",
"sku": "string",
"title": "string",
"currency": {
"currencyCode": "string",
"currencySymbol": "string",
"currencyType": "REAL",
"namespace": "string",
"decimals": 0
},
"price": 0,
"trialPrice": 0,
"recurring": {
"cycle": "WEEKLY",
"fixedFreeDays": 0,
"fixedTrialCycles": 0,
"graceDays": 7
},
"status": "INIT",
"chargeStatus": "NEVER",
"nextBillingDate": "2019-08-24T14:15:22Z",
"currentPeriodStart": "2019-08-24T14:15:22Z",
"currentPeriodEnd": "2019-08-24T14:15:22Z",
"start": "2019-08-24T14:15:22Z",
"end": "2019-08-24T14:15:22Z",
"currentCycle": 0,
"chargedCycles": 0,
"trialedCycles": 0,
"inFixedFreeDays": true,
"inFixedCycleTrial": true,
"firstSubscribe": true,
"paid": true,
"subscribedBy": "USER",
"subscribedAt": "2019-08-24T14:15:22Z",
"unsubscribedAt": "2019-08-24T14:15:22Z",
"unsubscribeReason": "string",
"source": "string",
"region": "string",
"language": "string",
"sandbox": true,
"createdAt": "2019-08-24T14:15:22Z",
"updateAt": "2019-08-24T14:15:22Z"
}
},
"id": "string",
"version": 0,
"name": "string",
"namespace": "string",
"parentNamespace": "string",
"timestamp": "2019-08-24T14:15:22Z",
"clientId": "string",
"userId": "string",
"traceId": "string",
"sessionId": "string"
}

Message billingAccountChanged

message is sent when billing account is changed

Payload
NameTypeDescriptionValueConstraintsNotes
(root)object allOf---additional properties are allowed
payloadobject---additional properties are allowed
payload.subscriptionobject---additional properties are allowed
payload.subscription.idstringid---
payload.subscription.namespacestringnamespace---
payload.subscription.userIdstringuser id---
payload.subscription.itemIdstringitem id---
payload.subscription.skustringsku---
payload.subscription.titlestringtitle---
payload.subscription.currencyobject---additional properties are allowed
payload.subscription.currency.currencyCodestringcurrency code---
payload.subscription.currency.currencySymbolstringcurrency symbol---
payload.subscription.currency.currencyTypestringcurrency typeallowed ("REAL", "VIRTUAL")--
payload.subscription.currency.namespacestringnamespace---
payload.subscription.currency.decimalsintegerdecimals-format (int32)-
payload.subscription.priceintegernormal price---
payload.subscription.trialPriceintegertrial price---
payload.subscription.recurringobject---additional properties are allowed
payload.subscription.recurring.cyclestringrecurring cycleallowed ("WEEKLY", "MONTHLY", "QUARTERLY", "YEARLY")--
payload.subscription.recurring.fixedFreeDaysintegerfixed free days, 0 means not set-format (int32)-
payload.subscription.recurring.fixedTrialCyclesintegerfixed trial cycles, 0 means not set-format (int32)-
payload.subscription.recurring.graceDaysintegerrecurring grace days, retry recurring charge within configured days if charge fail, default 7default (7)format (int32)-
payload.subscription.statusstringstatusallowed ("INIT", "ACTIVE", "CANCELLED", "EXPIRED")--
payload.subscription.chargeStatusstringcharge statusallowed ("NEVER", "SETUP", "RECURRING_CHARGING", "CHARGED", "CHARGE_FAILED")--
payload.subscription.nextBillingDatestringnext billing date-format (date-time)-
payload.subscription.currentPeriodStartstringcurrent period start time-format (date-time)-
payload.subscription.currentPeriodEndstringcurrent period end time-format (date-time)-
payload.subscription.startstringstart date, the first time subscribed-format (date-time)-
payload.subscription.endstringend time if exists-format (date-time)-
payload.subscription.currentCycleintegercurrent cycle---
payload.subscription.chargedCyclesintegeralready charged cycles---
payload.subscription.trialedCyclesintegeralready trialed cycles if fixedCycleTrial exists---
payload.subscription.inFixedFreeDaysbooleanwhether in fixed free days---
payload.subscription.inFixedCycleTrialbooleanwhether in fixed cycle trial---
payload.subscription.firstSubscribebooleanindicates whether is first subscribe---
payload.subscription.paidbooleanwhether user paid from the subscription start---
payload.subscription.subscribedBystringsubscribed by PLATFORM(system granted) or USER(subscribed by user self)allowed ("USER", "PLATFORM")--
payload.subscription.subscribedAtstringtime when subscribed-format (date-time)-
payload.subscription.unsubscribedAtstringtime when unsubscribed-format (date-time)-
payload.subscription.unsubscribeReasonstringreason why unsubscribe---
payload.subscription.sourcestringsource---
payload.subscription.regionstringcreated region---
payload.subscription.languagestringcreated language---
payload.subscription.sandboxbooleanis sandbox mode---
payload.subscription.createdAtstring--format (date-time)-
payload.subscription.updateAtstring--format (date-time)-
payload.billingobject---additional properties are allowed
payload.billing.paymentProviderobjectpayment providerallowed ("WALLET", "XSOLLA", "ADYEN", "STRIPE", "ALIPAY", "WXPAY", "PAYPAL")-additional properties are allowed
payload.billing.paymentMethodstringpayment method---
payload.billing.amountintegercharge amount---
payload.billing.totalTaxintegertotal tax---
payload.billing.totalPriceintegertotal price---
payload.billing.subtotalPriceintegersubtotal price---
payload.billing.recurringOrderNostringrecurring order no for this billing---
payload.billing.paymentOrderNostringpayment order no---
payload.billing.txEndTimestringtransaction end time-format (date-time)-
payload.billing.extTxIdstringexternal transaction id---
0 (allOf item)object---additional properties are allowed
idstring----
versioninteger----
namestring----
namespacestring----
parentNamespacestring----
timestampstring--format (date-time)-
clientIdstring----
userIdstring----
traceIdstring----
sessionIdstring----

Examples of payload (generated)

{
"payload": {
"subscription": {
"id": "string",
"namespace": "string",
"userId": "string",
"itemId": "string",
"sku": "string",
"title": "string",
"currency": {
"currencyCode": "string",
"currencySymbol": "string",
"currencyType": "REAL",
"namespace": "string",
"decimals": 0
},
"price": 0,
"trialPrice": 0,
"recurring": {
"cycle": "WEEKLY",
"fixedFreeDays": 0,
"fixedTrialCycles": 0,
"graceDays": 7
},
"status": "INIT",
"chargeStatus": "NEVER",
"nextBillingDate": "2019-08-24T14:15:22Z",
"currentPeriodStart": "2019-08-24T14:15:22Z",
"currentPeriodEnd": "2019-08-24T14:15:22Z",
"start": "2019-08-24T14:15:22Z",
"end": "2019-08-24T14:15:22Z",
"currentCycle": 0,
"chargedCycles": 0,
"trialedCycles": 0,
"inFixedFreeDays": true,
"inFixedCycleTrial": true,
"firstSubscribe": true,
"paid": true,
"subscribedBy": "USER",
"subscribedAt": "2019-08-24T14:15:22Z",
"unsubscribedAt": "2019-08-24T14:15:22Z",
"unsubscribeReason": "string",
"source": "string",
"region": "string",
"language": "string",
"sandbox": true,
"createdAt": "2019-08-24T14:15:22Z",
"updateAt": "2019-08-24T14:15:22Z"
},
"billing": {
"paymentProvider": "WALLET",
"paymentMethod": "string",
"amount": 0,
"totalTax": 0,
"totalPrice": 0,
"subtotalPrice": 0,
"recurringOrderNo": "string",
"paymentOrderNo": "string",
"txEndTime": "2019-08-24T14:15:22Z",
"extTxId": "string"
}
},
"id": "string",
"version": 0,
"name": "string",
"namespace": "string",
"parentNamespace": "string",
"timestamp": "2019-08-24T14:15:22Z",
"clientId": "string",
"userId": "string",
"traceId": "string",
"sessionId": "string"
}