8Pay
Search…
Fixed Recurring

Subscription

The Subscription event is notified when a new user subscribes to a plan.
1
{
2
"id": "5ccf8bdc7707a8effa371d01452644d3a388b975290b968874d0a44ec0219226",
3
"type": "fixed-recurring",
4
"event": "Subscription",
5
"timestamp": 1585220116,
6
"transactionHash": "0xb0f21bf5d722d981330d45d8625568cd0b356e8c7c464857131a6ebf99eadf80",
7
"transactionStatus": "confirmed",
8
"data": {
9
"planId": "0xb7934ebf676eb81606da5dded26433ce994d9767924387d65378f263845f3af9",
10
"subscriptionId": "0xf0e6a20e8069d403a538729549a17544a2bca3672312a4aed571d115e1fde7d4",
11
"user": "0xB2e9F6F9414ea12A33302923A55b9B4Cf99CCD90"
12
},
13
"extra": {
14
"banner": "BR69",
15
"traffic": "facebook"
16
}
17
}
Copied!

Billing

The Billing event is notified when a subscriber is charged.
1
{
2
"id": "5ccf8bdc7707a8effa371d01452644d3a388b975290b968874d0a44ec0219226",
3
"type": "fixed-recurring",
4
"event": "Billing",
5
"timestamp": 1585220116,
6
"transactionHash": "0xb0f21bf5d722d981330d45d8625568cd0b356e8c7c464857131a6ebf99eadf80",
7
"transactionStatus": "confirmed",
8
"data": {
9
"planId": "0xb7934ebf676eb81606da5dded26433ce994d9767924387d65378f263845f3af9",
10
"subscriptionId": "0xf0e6a20e8069d403a538729549a17544a2bca3672312a4aed571d115e1fde7d4",
11
"cycleStart": "1585218045",
12
"cycleEnd": "1585219844"
13
}
14
}
Copied!

BillingFailed

The BillingFailed event is notified when charging a subscriber fails due to unsufficient funds.
1
{
2
"id": "5ccf8bdc7707a8effa371d01452644d3a388b975290b968874d0a44ec0219226",
3
"type": "fixed-recurring",
4
"event": "BillingFailed",
5
"timestamp": 1585220116,
6
"transactionHash": "0xb0f21bf5d722d981330d45d8625568cd0b356e8c7c464857131a6ebf99eadf80",
7
"transactionStatus": "confirmed",
8
"data": {
9
"planId": "0xb7934ebf676eb81606da5dded26433ce994d9767924387d65378f263845f3af9",
10
"subscriptionId": "0xf0e6a20e8069d403a538729549a17544a2bca3672312a4aed571d115e1fde7d4"
11
}
12
}
Copied!

SubscriptionCancelled

The SubscriptionCancelled event is notified when a user cancels a subscription.
1
{
2
"id": "5ccf8bdc7707a8effa371d01452644d3a388b975290b968874d0a44ec0219226",
3
"type": "fixed-recurring",
4
"event": "SubscriptionCancelled",
5
"timestamp": 1585220116,
6
"transactionHash": "0xb0f21bf5d722d981330d45d8625568cd0b356e8c7c464857131a6ebf99eadf80",
7
"transactionStatus": "confirmed",
8
"data": {
9
"planId": "0xb7934ebf676eb81606da5dded26433ce994d9767924387d65378f263845f3af9",
10
"subscriptionId": "0xf0e6a20e8069d403a538729549a17544a2bca3672312a4aed571d115e1fde7d4"
11
}
12
}
Copied!

SubscriptionTerminated

The SubscriptionTerminated event is notified when a subscription is terminated by the vendor.
1
{
2
"id": "5ccf8bdc7707a8effa371d01452644d3a388b975290b968874d0a44ec0219226",
3
"type": "fixed-recurring",
4
"event": "SubscriptionTerminated",
5
"timestamp": 1585220116,
6
"transactionHash": "0xb0f21bf5d722d981330d45d8625568cd0b356e8c7c464857131a6ebf99eadf80",
7
"transactionStatus": "confirmed",
8
"data": {
9
"planId": "0xb7934ebf676eb81606da5dded26433ce994d9767924387d65378f263845f3af9",
10
"subscriptionId": "0xf0e6a20e8069d403a538729549a17544a2bca3672312a4aed571d115e1fde7d4"
11
}
12
}
Copied!
Last modified 4mo ago