Skip to main content

Payment

v1

Description

This webhook event notifies when a payment event is triggered.


Supported Type

  • Complete
  • Failed
  • Pending
  • Started

Payload

Complete

{
"payload": {
"payment_object_list": [
{
"refunded_by": "fynd",
"payment_mode_identifier": "PP",
"payment_gateway": "Openapi",
"payment_id": "pay_N1EuPjNEF5DbNb",
"payment_mode": "PP",
"collected_by": "fynd",
"user_object": {
"id": "003745fa4cd441ef8c643d02bcca449b",
"email": "eabhishek@yahoo.com",
"mobile_number": "8884435590",
"merchant_user_id": "003745fa4cd441ef8c643d02bcca449b"
},
"refund_object": null,
"aggregator_payment_object": {
"app_id": "60a1f82b2597ec60c2f0d35c",
"device": "desktop",
"source": "desktop-fynd",
"headers": {
"via": "1.1 google",
"host": "api.fynd.com",
"accept": "*/*",
"x-scheme": "https",
"x-fp-date": "20231116T234131Z",
"x-real-ip": "65.1.80.173",
"user-agent": "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.A.B.C Safari/525.13",
"x-skip-cors": "true",
"x-user-data": "{\"__v\":0,\"first_name\":\"Clarks Website\",\"meta\":{\"client_type\":\"platform\",\"client_id\":\"64dda4d858ead9f0d6f7028b\"},\"debug\":{\"source\":\"grimlock\",\"platform\":\"000000000000000000000001\"},\"updated_at\":\"2023-08-17T04:40:56.633Z\",\"active\":true,\"firstName\":\"Clarks Website\",\"lastName\":\"Platform Client\",\"accountType\":\"system\",\"phoneNumbers\":[],\"password_last_modified\":\"2023-08-17T04:40:56.633Z\",\"password_history\":[],\"phone_numbers\":[],\"emails\":[],\"created_at\":\"2023-08-17T04:40:56.633Z\",\"account_type\":\"system\",\"last_name\":\"Platform Client\",\"createdAt\":\"2023-08-17T04:40:56.633Z\",\"gender\":null,\"updatedAt\":\"2023-08-17T04:40:56.633Z\",\"username\":\"64dda4d858ead9f0d6f7028b\",\"uid\":\"23543018\",\"_id\":\"d8a8aebb8744f3c3cbd3c926\"}",
"content-type": "application/json",
"x-request-id": "038501eca27dd446a45db4952c79adb5",
"authorization": "Bearer oa-afaf48dabca1596f379e26017c50d000ead548fb",
"uber-trace-id": "a9ef3020a149f628:76892bae8c98c9f4:a9ef3020a149f628:1",
"content-length": "236",
"x-fp-signature": "v1.1:c9b482762763b66c3e18e9a85311872d51fdfdf7fc0f7f14b3df6fba6abc0d7d",
"accept-encoding": "deflate, gzip",
"x-amzn-trace-id": "Root=1-65565b53-05127495188682797455cd65",
"x-forwarded-for": "65.1.80.173",
"x-fynd-trace-id": "038501eca27dd446a45db4952c79adb5",
"x-forwarded-host": "api.fynd.com",
"x-forwarded-port": "443",
"x-forwarded-proto": "https",
"x-forwarded-scheme": "https",
"x-original-forwarded-for": "65.1.80.173,10.0.255.177,10.155.80.2"
},
"profile": "fynd",
"currency": "INR",
"merchant": {
"id": 271,
"meta": null,
"delivery_config": {
"cod": {
"refund_by": "fynd",
"collect_by": "fynd"
}
}
},
"order_id": "FY65565AE30E32A54467",
"client_ip": "",
"is_webview": false,
"app_version": null,
"merchant_id": 271,
"payment_meta": {
"order_id": "order_N1EtPZfqECpBE4",
"payment_id": "pay_N1EuPjNEF5DbNb",
"current_status": "captured",
"payment_gateway": "Razorpay"
},
"origin_app_id": "60a1f82b2597ec60c2f0d35c",
"source_domain": null,
"is_app_request": false,
"is_ios_request": false,
"is_legacy_flow": false,
"aggregator_name": "Openapi",
"payment_methods": [
{
"meta": {
"order_id": "order_N1EtPZfqECpBE4",
"payment_id": "pay_N1EuPjNEF5DbNb",
"current_status": "captured",
"payment_gateway": "Razorpay"
},
"mode": "PP",
"name": "prepaid",
"amount": 419900
}
],
"platform_request": "fynd",
"is_anonymous_user": false,
"is_android_request": false,
"merchant_profile_id": 814,
"merchant_aggregator_id": 17
},
"all_status": [
"started",
"failed",
"pending",
"complete"
],
"amount_in_paisa": "419900",
"application_id": "60a1f82b2597ec60c2f0d35c",
"company_id": "42",
"modified_on": "2023-11-16 18:11:31",
"created_on": "2023-11-16 18:09:39",
"current_status": "started",
"currency": "INR",
"id": "FY65565AE30E32A54467"
},
{
"refunded_by": "fynd",
"payment_mode_identifier": "PP",
"payment_gateway": "Openapi",
"payment_id": "pay_N1EuPjNEF5DbNb",
"payment_mode": "PP",
"collected_by": "fynd",
"user_object": {
"id": "003745fa4cd441ef8c643d02bcca449b",
"email": "eabhishek@yahoo.com",
"mobile_number": "8884435590",
"merchant_user_id": "003745fa4cd441ef8c643d02bcca449b"
},
"refund_object": null,
"aggregator_payment_object": {
"app_id": "60a1f82b2597ec60c2f0d35c",
"device": "desktop",
"source": "desktop-fynd",
"headers": {
"via": "1.1 google",
"host": "api.fynd.com",
"accept": "*/*",
"x-scheme": "https",
"x-fp-date": "20231116T234131Z",
"x-real-ip": "65.1.80.173",
"user-agent": "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.A.B.C Safari/525.13",
"x-skip-cors": "true",
"x-user-data": "{\"__v\":0,\"first_name\":\"Clarks Website\",\"meta\":{\"client_type\":\"platform\",\"client_id\":\"64dda4d858ead9f0d6f7028b\"},\"debug\":{\"source\":\"grimlock\",\"platform\":\"000000000000000000000001\"},\"updated_at\":\"2023-08-17T04:40:56.633Z\",\"active\":true,\"firstName\":\"Clarks Website\",\"lastName\":\"Platform Client\",\"accountType\":\"system\",\"phoneNumbers\":[],\"password_last_modified\":\"2023-08-17T04:40:56.633Z\",\"password_history\":[],\"phone_numbers\":[],\"emails\":[],\"created_at\":\"2023-08-17T04:40:56.633Z\",\"account_type\":\"system\",\"last_name\":\"Platform Client\",\"createdAt\":\"2023-08-17T04:40:56.633Z\",\"gender\":null,\"updatedAt\":\"2023-08-17T04:40:56.633Z\",\"username\":\"64dda4d858ead9f0d6f7028b\",\"uid\":\"23543018\",\"_id\":\"d8a8aebb8744f3c3cbd3c926\"}",
"content-type": "application/json",
"x-request-id": "038501eca27dd446a45db4952c79adb5",
"authorization": "Bearer oa-afaf48dabca1596f379e26017c50d000ead548fb",
"uber-trace-id": "a9ef3020a149f628:76892bae8c98c9f4:a9ef3020a149f628:1",
"content-length": "236",
"x-fp-signature": "v1.1:c9b482762763b66c3e18e9a85311872d51fdfdf7fc0f7f14b3df6fba6abc0d7d",
"accept-encoding": "deflate, gzip",
"x-amzn-trace-id": "Root=1-65565b53-05127495188682797455cd65",
"x-forwarded-for": "65.1.80.173",
"x-fynd-trace-id": "038501eca27dd446a45db4952c79adb5",
"x-forwarded-host": "api.fynd.com",
"x-forwarded-port": "443",
"x-forwarded-proto": "https",
"x-forwarded-scheme": "https",
"x-original-forwarded-for": "65.1.80.173,10.0.255.177,10.155.80.2"
},
"profile": "fynd",
"currency": "INR",
"merchant": {
"id": 271,
"meta": null,
"delivery_config": {
"cod": {
"refund_by": "fynd",
"collect_by": "fynd"
}
}
},
"order_id": "FY65565AE30E32A54467",
"client_ip": "",
"is_webview": false,
"app_version": null,
"merchant_id": 271,
"payment_meta": {
"order_id": "order_N1EtPZfqECpBE4",
"payment_id": "pay_N1EuPjNEF5DbNb",
"current_status": "captured",
"payment_gateway": "Razorpay"
},
"origin_app_id": "60a1f82b2597ec60c2f0d35c",
"source_domain": null,
"is_app_request": false,
"is_ios_request": false,
"is_legacy_flow": false,
"aggregator_name": "Openapi",
"payment_methods": [
{
"meta": {
"order_id": "order_N1EtPZfqECpBE4",
"payment_id": "pay_N1EuPjNEF5DbNb",
"current_status": "captured",
"payment_gateway": "Razorpay"
},
"mode": "PP",
"name": "prepaid",
"amount": 419900
}
],
"platform_request": "fynd",
"is_anonymous_user": false,
"is_android_request": false,
"merchant_profile_id": 814,
"merchant_aggregator_id": 17
},
"all_status": [
"started",
"failed",
"pending",
"complete"
],
"amount_in_paisa": "419900",
"application_id": "60a1f82b2597ec60c2f0d35c",
"company_id": "42",
"modified_on": "2023-11-16 18:11:31",
"created_on": "2023-11-16 18:09:39",
"current_status": "complete",
"currency": "INR",
"id": "FY65565AE30E32A54467"
}
],
"merchant_order_id": "FY65565AE30E32A54467"
},
"meta": {
"event": {
"name": "payment",
"type": "complete",
"version": "1"
},
"service": {
"name": "gringotts"
},
"company_id": 42,
"application_id": "60a1f82b2597ec60c2f0d35c",
"extension_id": null,
"trace_id": [],
"created_timestamp": 1700158292558,
"trace": "gringotts.92675e78-84ab-11ee-804b-028d59883714",
"timestamp": "2023-11-16T18:11:32.558626"
},
"merchant_order_id": "FY65565AE30E32A54467",
"partition_identifier": "FY65565AE30E32A54467"
}

Started

{
"payload": {
"merchant_order_id": "FY6556BA3A0E9F18F0B7",
"payment_object_list": [
{
"all_status": [
"started",
"failed",
"pending",
"complete"
],
"payment_id": "FY6556BA3A0E9F18F0B7",
"id": "FY6556BA3A0E9F18F0B7",
"currency": "INR",
"payment_mode": "COD",
"company_id": "46",
"amount_in_paisa": "69900",
"created_on": "2023-11-17 00:56:26",
"current_status": "started",
"user_object": {
"id": "99b9e8c0ed2b4682b29858ddd943d95c",
"email": "akshay.oswal@gmail.com",
"mobile_number": "9766877077",
"merchant_user_id": "99b9e8c0ed2b4682b29858ddd943d95c"
},
"payment_mode_identifier": "COD",
"refund_object": null,
"payment_gateway": "Openapi",
"application_id": "5ea1afb3657d05389b446c10",
"modified_on": "2023-11-17 00:56:27",
"collected_by": "fynd",
"refunded_by": "fynd",
"aggregator_payment_object": {}
}
]
},
"meta": {
"event": {
"name": "payment",
"type": "started",
"version": "1"
},
"service": {
"name": "gringotts"
},
"company_id": 46,
"application_id": "5ea1afb3657d05389b446c10",
"extension_id": null,
"trace_id": [],
"created_timestamp": 1700182589050,
"trace": "gringotts.243de24e-84e4-11ee-8518-32b35b060caf",
"timestamp": "2023-11-17T00:56:29.050966"
},
"merchant_order_id": "FY6556BA3A0E9F18F0B7",
"partition_identifier": "FY6556BA3A0E9F18F0B7"
}

Object Properties

keyTypeDescription
merchant_order_idstringorder id for merchant
idstringunique id of database
payment_idintegerunique id for the transaction
amount_in_paisaintegeramount of payment
currencystringcurrency in which payment need to do be done
current_statusstringcurrent status of the payment
all_statusstringarray of all the payment status
payment_modestringshow the Mode of payment
payment_mode_identiferstringShow the sub mode for payment
payment_gatewaystringname of the payment gateway
application_idintegersales channel unique id
company_idintegerunique id for the company .
collected_bystringPayment is collected by whom
refunded_bystringwho will be doing the refund
created_onTimestamptransaction creation date .
modified_onTimestamptransaction modified date
user_objectstringthis contain user details