Notification JSON examples
1. InvoiceForNewPeriod
Object example
InvoiceForNewPeriod
{
"id": "AxmLozMymJAO",
"original_event_date": "2019-03-05 17:10:22 +02:00",
"transfer_date": "2019-03-05 17:10:24 +02:00",
"type": "InvoiceForNewPeriod",
"code": "FromFirstToFirst",
"account_id": 504,
"account_code": "<external-code>",
"lang_code": "ru",
"curr_code": "EUR",
"details": {
"invoice_file": "<URL-to-invoice-file>",
"invoice_type": "regular",
"invoice_id": 5,
"date_from": "2019-03-01 00:00:00 +02:00",
"date_to": "2019-04-01 00:00:00 +02:00",
"Url_to_pay": [
{
"PaymentProfile": "LiqPay_EUR",
"PaymentSystem": "Liq_Pay",
"URL": "http://stage.paymaze/0/RGZVGCE"
},
{
"PaymentProfile": "PayPal_EUR",
"PaymentSystem": "PayPal",
"URL": "http://stage.paymaze/0/EGMVTCP"
}
]
}
}
CODE
2. InvoiceForNewProduct
Object example
InvoiceForNewProduct
{
"id": "YxmLozMymJAO",
"original_event_date": "2019-03-05 17:10:22 +02:00",
"transfer_date": "2019-03-05 17:10:24 +02:00",
"type": "InvoiceForNewProduct",
"code": "NewPrepaidProduct",
"account_id": 504,
"account_code": "<external-code>",
"lang_code": "ru",
"curr_code": "EUR",
"details": {
"invoice_file": "<URL-to-invoice-file>",
"invoice_type": "on demand",
"invoice_id": 15,
"date_from": "2019-03-05 17:10:22 +02:00",
"date_to": "2019-04-01 00:00:00 +02:00",
"Url_to_pay": [
{
"PaymentProfile": "LiqPay_EUR",
"PaymentSystem": "Liq_Pay",
"URL": "http://stage.paymaze/0/RGZVGCE"
},
{
"PaymentProfile": "PayPal_EUR",
"PaymentSystem": "PayPal",
"URL": "http://stage.paymaze/0/EGMVTCP"
}
]
}
}
CODE
3. UnPaidInvoice
Object example
UnPaidInvoice
{
"id": "RxmLozMomJAO",
"original_event_date": "2019-03-05 17:10:22 +02:00",
"transfer_date": "2019-03-05 17:10:24 +02:00",
"type": "UnPaidInvoice",
"code": "UnPaid5Days",
"account_id": 504,
"account_code": "<external-code>",
"lang_code": "ru",
"curr_code": "BYN",
"details": {
"invoice_id": 38,
"statement_date": "2019-03-01 00:00:00 +02:00",
"payment_due_date": "2019-03-10 00:00:00 +02:00",
"days_not_paid": 5,
"days_before_blocking": 15
}
}
CODE
4. AccountStateChange
Object example
AccountStateChange
{
"id": "QxmLozMymJAO",
"original_event_date": "2019-03-05 17:10:22 +02:00",
"transfer_date": "2019-03-05 17:10:24 +02:00",
"type": "AccountStateChange",
"code": "AllStateChanges",
"account_id": 504,
"account_code": "<external-code>",
"lang_code": "ru",
"curr_code": "BYN",
"details": {
"reason": "trigger",
"new_state": {
"state": "Active",
"date_from": "2019-03-01 00:00:00 +02:00",
"date_to": ""
},
"prev_state": {
"state": "Test",
"date_from": "2019-02-18 11:22:33 +02:00",
"date_to": "2019-03-01 00:00:00 +02:00"
}
}
}
CODE
5. TrialReminder
Object example
TrialReminder
{
"id": "AxmLozMymJAO",
"original_event_date": "2019-03-05 17:10:22 +02:00",
"transfer_date": "2019-03-05 17:10:24 +02:00",
"type": "TrialReminder",
"code": "5DayReminder",
"account_id": 504,
"account_code": "<external-code>",
"lang_code": "ru",
"curr_code": "BYN",
"details": {
"start_date": "2019-03-01 00:03:04 +02:00",
"current_date": "2019-03-05 17:10:24 +02:00",
"days_left": 5
}
}
CODE
6. PercentOfBalanceUsed
Object example
PercentOfBalanceUsed
{
"id": "ExmLozMymJAO",
"original_event_date": "2019-03-05 17:10:22 +02:00",
"transfer_date": "2019-03-05 17:10:24 +02:00",
"type": "PercentOfBalanceUsed",
"code": "50Tasks",
"account_id": 504,
"account_code": "<external-code>",
"lang_code": "ru",
"curr_code": "BYN",
"details": {
"balance": "Tasks",
"start_value": 6000,
"used_percentage": 50,
"current_value": 2998
}
}
CODE
7. ProductStateChange
Object example
ProductStateChange
{
"id": "AxmLozMymJAO",
"original_event_date": "2019-03-05 17:10:22 +02:00",
"transfer_date": "2019-03-05 17:10:24 +02:00",
"type": "ProductStateChange",
"code": "AllStateChanges",
"account_id": 504,
"account_code": "<external-code>",
"lang_code": "ru",
"curr_code": "BYN",
"details": {
"action": "Deactivation",
"product_name": "Trial",
"product_type": "primary_tariff",
"product_id": 44,
"sold_product_id": 345,
"product_code": "<external-code>",
"new_state": {
"state": "Deactive",
"date_from": "2019-03-01 00:00:00 +02:00",
"date_to": ""
},
"prev_state": {
"state": "Active",
"date_from": "2019-02-01 00:00:00 +02:00",
"date_to": "2019-03-01 00:00:00 +02:00"
}
}
}
CODE
8. NewPayment
Object example
NewPayment
{
"account_code": "Version_core_0_0_0_1608035524767",
"account_id": 113,
"code": "AllTypePayment",
"curr_code": "BYN",
"details": {
"amount": 2000,
"balance_after": 1861.52,
"balance_before": -138.48,
"balance_name": "Money_BYN",
"channel": "https",
"invoice_id": [
279
],
"paym_ext_id": "DnRJqhbT",
"payment_id": 100
},
"id": "GLn2BrD7-bf:0-BRrLTG3-pHj:0-bjN2jqM-Qgb-M7",
"lang_code": "ru",
"original_event_date": "2020-12-15 15:52:35 +03:00",
"transfer_date": "2020-12-15 15:52:35 +03:00",
"type": "NewPayment"
}
CODE