Notifications API Manual

G
Last updated 3 months ago

The following json represents an entity of success and decline notification sent via a web hook that was defined on the merchant setup.

cashier init notification

{
"webhook": {
"type": "cashier.init"
},
"data": {
"order_id": "2106605328",
"charge": {
"type": "cashier.init",
"attributes": {
"currency": "EUR",
"amount" : 100.12,
"card_number":"4580xxxxxx4580",
"source": {
"email": "[email protected]",
"ip_address": "127.0.0.1",
"name": "first_name last_name"
},
"created_at": 1541160272,
"updated_at": 1541160272,
"valid_till": 1541160272
}
}
},
"meta": {
"server_time": 1541160272,
"server_timezone": "UTC",
"api_version": "1.0.0.0"
}
}

Deposit Notifications

in_process

{
"webhook": {
"type": "in_process"
},
"data": {
"order_id": "640790367",
"psp_name": "Demo PSP",
"charge": {
"type": "before_process",
"attributes": {
"currency": "EUR",
"amount" : 100.12,
"card_number":"4580xxxxxx4580",
"source": {
"email": "[email protected]",
"ip_address": "127.0.0.1",
"name": "first_name last_name"
},
"created_at": 1541160283,
"updated_at": 1541160283,
"valid_till": 1541160283
}
}
},
"meta": {
"server_time": 1541160283,
"server_timezone": "UTC",
"api_version": "1.0.0.0"
}
}

approved

{
"webhook": {
"type": "approved"
},
"data": {
"order_id": "640790367",
"psp_name": "Demo PSP",
"charge": {
"type": "approved",
"id": "00000000-0000-0000-0000-0000018e7ef6",
"attributes": {
"status": "approved",
"amount": 1.12,
"card_number":"4580xxxxxx4580",
"currency": "EUR",
"payment_method": "VISA UNK",
"description": "test transaction",
"source": {
"email": "[email protected]",
"ip_address": "127.0.0.1",
"name": "dasdasd dasdasd"
},
"failure": "",
"reference_id": "",
"created_at": 1541160298,
"updated_at": 1541160298,
"valid_till": 1541160298
}
}
},
"meta": {
"server_time": 1541160298,
"server_timezone": "UTC",
"api_version": "0.0.1"
}
}

declined

{
"webhook": {
"type": "declined"
},
"data": {
"order_id": "2106605328",
"psp_name": "Demo PSP",
"charge": {
"type": "declined",
"id": "00000000-0000-0000-0000-0000018e7f1b",
"attributes": {
"status": "declined",
"amount": 1.12,
"currency": "EUR",
"payment_method": "VISA UNK",
"description": "test transaction",
"source": {
"email": "[email protected]",
"ip_address": "127.0.0.1",
"name": "dasdasd dasdasd",
"card_number": "4580"
},
"failure": "declined reason",
"reference_id": "",
"created_at": 1541160539,
"updated_at": 1541160539,
"valid_till": 1541160539
}
}
},
"meta": {
"server_time": 1541160539,
"server_timezone": "UTC",
"api_version": "0.0.1"
}
}