---
page_source: https://docs.juspay.io/upi-inapp/ios/backend-apis/callbacks
page_title: Callbacks
---


## Callbacks



[Click here](../miscellaneous/callbacks-parameters-reference) for callback parameters reference.


###   Webhook API version


> **Note**
> Webhook API version can be configured in the dashboard -> Settings -> Webhooks Tab -> Webhook API version .






### 1. P2P Server Callbacks




### 15C (Critical)




### 1.1 Incoming Collect Request to Customer


This callback is given when a customer receives a collect request from any UPI user. This enables the merchant server to notify the customer, so that they can take action on the request. The Juspay SDK shall be triggered to fulfill the collect request.

# A callback with following POST data will be sent to the configured webhook URL.

Event: **MERCHANT_CUSTOMER_COLLECT_REQUEST_RECEIVED** 


### Payload
- **Id**:
  - Description: Event ID
  - Value: evt_V2_03c6ec0681124450b55cf92fa35df241
- **Event_name**:
  - Description: Name of the event
  - Value: MERCHANT_CUSTOMER_COLLECT_REQUEST_RECEIVED
- **Date_created**:
  - Description: timestamp when webhook was created
  - Value: 2021-12-07T13:46:40Z
- **Content**:
  - Description: Details of the event
  - Value:
    - **Merchant_customer**:
      - Value:
        - **Upi**:
          - Value:
            - **Upi_app**:
              - Value: YES_BIZ
            - **Payer_vpa**:
              - Value: customer1@abc
            - **Payer_merchant_customer_id**:
              - Value: DEMO-CUST-1234
            - **Payee_vpa**:
              - Value: customer@xyz
            - **Payee_name**:
              - Value: Customer Name
            - **Payee_merchant_customer_id**:
              - Value: DEMO-CUST-5678
            - **Payee_mcc**:
              - Value: 4121
            - **Merchant_id**:
              - Value: DEMOUAT01
        - **Remarks**:
          - Value: This is remarks
        - **Payment_method_type**:
          - Value: UPI
        - **Payment_method**:
          - Value: UPI
        - **Merchant_customer_id**:
          - Value: DEMO-CUST-1234
        - **Expiry**:
          - Value: 2016-11-24T19:00:00Z
        - **Date_created**:
          - Description: transaction timestamp sent from bank
          - Value: 2016-11-24T18:30:00Z
        - **Amount**:
          - Value: 100.00


> **Note**
> For Mandate amount greater than 5000 , seq_number and umn will be there in collect request received callback.




| Optional Fields | Constrains |
|---|---|
| umn | Will be received only during mandate executions. |
| seqNumber | Will be received only during mandate executions. |




#### Code Snippets: -

#### Objective-C Code Snippet:

```objective-c
{
  "id": "evt_V2_03c6ec0681124450b55cf92fa35df241",
  "event_name": "MERCHANT_CUSTOMER_COLLECT_REQUEST_RECEIVED",
  "date_created": "2021-12-07T13:46:40Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "customer1@abc",
        "payer_merchant_customer_id": "DEMO-CUST-1234",
        "payee_vpa": "customer@xyz",
        "payee_name": "Customer Name",
        "payee_merchant_customer_id": "DEMO-CUST-5678",
        "payee_mcc": "4121",
        "merchant_id": "DEMOUAT01"
      },
      "transaction": {
        "umn": "DCR123be148c7ba3b14f6db5cde57c65ccf@bank",
        "seq_number": "1",
        "ref_url": "https://www.abcxyz.com/",
        "is_verified_payee": true,
        "is_marked_spam": true,
        "gateway_transaction_id": "XYZd0c077f39c454979...",
        "gateway_reference_id": "806115044725",
        "custom_response": "{}"
      },
      "remarks": "This is remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "merchant_customer_id": "DEMO-CUST-1234",
      "expiry": "2016-11-24T19:00:00Z",
      "date_created": "2016-11-24T18:30:00Z",
      "amount": "100.00"
    }
  }
}
```

#### Swift Code Snippet:

```swift
{
  "id": "evt_V2_03c6ec0681124450b55cf92fa35df241",
  "event_name": "MERCHANT_CUSTOMER_COLLECT_REQUEST_RECEIVED",
  "date_created": "2021-12-07T13:46:40Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "customer1@abc",
        "payer_merchant_customer_id": "DEMO-CUST-1234",
        "payee_vpa": "customer@xyz",
        "payee_name": "Customer Name",
        "payee_merchant_customer_id": "DEMO-CUST-5678",
        "payee_mcc": "4121",
        "merchant_id": "DEMOUAT01"
      },
      "transaction": {
        "umn": "DCR123be148c7ba3b14f6db5cde57c65ccf@bank",
        "seq_number": "1",
        "ref_url": "https://www.abcxyz.com/",
        "is_verified_payee": true,
        "is_marked_spam": true,
        "gateway_transaction_id": "XYZd0c077f39c454979...",
        "gateway_reference_id": "806115044725",
        "custom_response": "{}"
      },
      "remarks": "This is remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "merchant_customer_id": "DEMO-CUST-1234",
      "expiry": "2016-11-24T19:00:00Z",
      "date_created": "2016-11-24T18:30:00Z",
      "amount": "100.00"
    }
  }
}
```



### 1.2 Outgoing Collect Request from Customer


Event: **MERCHANT_CUSTOMER_COLLECT_REQUEST_SENT** 


### Payload
- **Id**:
  - Description: Event ID
  - Value: evt_V2_03c6ec0681124450b55cf92fa35df241
- **Event_name**:
  - Description: This callback is given when the customer receives money from any upi user.
  - Value: MERCHANT_CUSTOMER_COLLECT_REQUEST_SENT
- **Date_created**:
  - Description: timestamp when webhook was created
  - Value: 2021-12-07T13:46:40Z
- **Content**:
  - Description: Details of the event
  - Value:
    - **Merchant_customer**:
      - Value:
        - **Upi**:
          - Value:
            - **Upi_app**:
              - Value: YES_BIZ
            - **Payer_vpa**:
              - Value: customer1@abc
            - **Payer_merchant_customer_id**:
              - Value: DEMO-CUST-1234
            - **Payee_vpa**:
              - Value: customer@xyz
            - **Payee_name**:
              - Value: Customer Name
            - **Payee_merchant_customer_id**:
              - Value: DEMO-CUST-5678
            - **Payee_mcc**:
              - Value: 4121
            - **Merchant_id**:
              - Value: DEMOUAT01
        - **Remarks**:
          - Value: This is remarks
        - **Payment_method_type**:
          - Value: UPI
        - **Payment_method**:
          - Value: UPI
        - **Merchant_customer_id**:
          - Value: DEMO-CUST-1234
        - **Expiry**:
          - Value: 2016-11-24T19:00:00Z
        - **Date_created**:
          - Description: transaction timestamp sent from bank
          - Value: 2016-11-24T18:30:00Z
        - **Amount**:
          - Value: 100.00


> **Note**
> For Mandate amount greater than 5000 , seq_number and umn will be there in collect request received callback.




| Optional Fields | Constrains |
|---|---|
| bank_account_uniqueId | Only if gatewayResponseCode is 00. |
| bankCode | Only if gatewayResponseCode is 00 |
| maskedAccountNumber | Only if gatewayResponseCode is 00 |
| udfParameters | Udf parameters as passed in the collect request. |




#### Code Snippets: -

#### Objective-C Code Snippet:

```objective-c
{
  "id": "evt_V2_6051eb4f1dd545bb8ac82d80c86db763",
  "event_name": "MERCHANT_CUSTOMER_COLLECT_REQUEST_SENT",
  "date_created": "2021-12-07T13:53:50Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "customer1@abc",
        "payer_name": "Customer Name",
        "payee_vpa": "customer@xyz",
        "payee_mobile_number": "919876543210",
        "payee_merchant_customer_id": "DEMO-CUST-1234",
        "payee_mcc": "4121",
        "merchant_id": "DEMOUAT01",
        "merchant_channel_id": "DEMOUAT01",
        "masked_account_number": "XXXXXXX9988",
        "bank_code": "123456",
        "bank_account_unique_id": "4536baef...32cdba67"
      },
      "transaction": {
        "udf_parameters": "{}",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "TXN1234567",
        "gateway_transaction_id": "XYZd0c077f39c454979...",
        "gateway_response_code": "00",
        "gateway_reference_id": "806115044725",
        "custom_response": "{}"
      },
      "remarks": "This is remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Collect request sent successfully",
      "merchant_customer_id": "DEMO-CUST-1234",
      "expiry": "2016-11-24T19:00:00Z",
      "date_created": "2016-11-24T18:30:00Z",
      "amount": "100.00"
    }
  }
}
```

#### Swift Code Snippet:

```swift
{
  "id": "evt_V2_6051eb4f1dd545bb8ac82d80c86db763",
  "event_name": "MERCHANT_CUSTOMER_COLLECT_REQUEST_SENT",
  "date_created": "2021-12-07T13:53:50Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "customer1@abc",
        "payer_name": "Customer Name",
        "payee_vpa": "customer@xyz",
        "payee_mobile_number": "919876543210",
        "payee_merchant_customer_id": "DEMO-CUST-1234",
        "payee_mcc": "4121",
        "merchant_id": "DEMOUAT01",
        "merchant_channel_id": "DEMOUAT01",
        "masked_account_number": "XXXXXXX9988",
        "bank_code": "123456",
        "bank_account_unique_id": "4536baef...32cdba67"
      },
      "transaction": {
        "udf_parameters": "{}",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "TXN1234567",
        "gateway_transaction_id": "XYZd0c077f39c454979...",
        "gateway_response_code": "00",
        "gateway_reference_id": "806115044725",
        "custom_response": "{}"
      },
      "remarks": "This is remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Collect request sent successfully",
      "merchant_customer_id": "DEMO-CUST-1234",
      "expiry": "2016-11-24T19:00:00Z",
      "date_created": "2016-11-24T18:30:00Z",
      "amount": "100.00"
    }
  }
}
```



### 1.3 Incoming Money to Customer - PAY


This callback is given when the customer receives money from any upi user.

# A callback with following POST data will be sent to the configured webhook URL. Event: **MERCHANT_CUSTOMER_RECEIVED_MONEY** 


### Payload
- **Id**:
  - Description: Event ID
  - Value: evt_V2_03c6ec0681124450b55cf92fa35df241
- **Event_name**:
  - Description: This callback is given when the customer receives money from any upi user.
  - Value: MERCHANT_CUSTOMER_RECEIVED_MONEY
- **Date_created**:
  - Description: timestamp when webhook was created
  - Value: 2021-12-07T13:46:40Z
- **Content**:
  - Description: Details of the event
  - Value:
    - **Merchant_customer**:
      - Value:
        - **Upi**:
          - Value:
            - **Upi_app**:
              - Value: YES_BIZ
            - **Payer_vpa**:
              - Value: customer1@abc
            - **Payer_merchant_customer_id**:
              - Value: DEMO-CUST-1234
            - **Payee_vpa**:
              - Value: customer@xyz
            - **Payee_name**:
              - Value: Customer Name
            - **Payee_merchant_customer_id**:
              - Value: DEMO-CUST-5678
            - **Payee_mcc**:
              - Value: 4121
            - **Merchant_id**:
              - Value: DEMOUAT01
        - **Transaction**:
          - Value:
            - **UdfParameters**:
              - Description: Stringified json for udf parameters
              - Value: {}
            - **Ref_url**:
              - Value: https://www.abcxyz.com/
            - **Gateway_transaction_id**:
              - Value: XYZd0c077f39c454979...
            - **Gateway_response_code**:
              - Value: 00
            - **Gateway_reference_id**:
              - Value: 806115044725
            - **Custom_response**:
              - Value: {}
        - **Remarks**:
          - Value: This is remarks
        - **Payment_method_type**:
          - Value: UPI
        - **Payment_method**:
          - Value: UPI
        - **Merchant_customer_id**:
          - Value: DEMO-CUST-1234
        - **Expiry**:
          - Value: 2016-11-24T19:00:00Z
        - **Date_created**:
          - Description: transaction timestamp sent from bank
          - Value: 2016-11-24T18:30:00Z
        - **Amount**:
          - Value: 100.00


> **Note**
> Merchant can get multiple callbacks for the same event type till the transaction status reaches a terminal state. Terminal states for a transaction are SUCCESS, FAILURE, EXPIRED, DECLINED.




| Optional Fields | Constrains |
|---|---|
| bank_account_uniqueId | Only if gatewayResponseCode is 00. |
| bankCode | Only if gatewayResponseCode is 00 |
| maskedAccountNumber | Only if gatewayResponseCode is 00 |
| udfParameters | Udf parameters as passed in the collect request. |




#### Code Snippets: -

#### Objective-C Code Snippet:

```objective-c
{
  "id": "evt_V2_fc893a0229b94a05bcac4e1d4ba31c47",
  "event_name": "MERCHANT_CUSTOMER_RECEIVED_MONEY",
  "date_created": "2021-12-07T13:51:16Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "customer@xyz",
        "payer_name": "Customer Name",
        "payee_vpa": "customer1@abc",
        "payee_mobile_number": "919812388554",
        "payee_merchant_customer_id": "DEMO-CUST-1234",
        "payee_mcc": "4121",
        "merchant_id": "DEMOUAT01",
        "masked_account_number": "XXXX123456",
        "bank_code": "123456",
        "bank_account_unique_id": "fb96f8b2b1ab0c070d0d894......"
      },
      "transaction": {
        "udf_parameters": "{}",
        "ref_url": "https://www.abcxyz.com/",
        "gateway_transaction_id": "XYZd0c077f39c454979...",
        "gateway_response_code": "00",
        "gateway_reference_id": "806115044725",
        "custom_response": "{}"
      },
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Transaction is approved",
      "merchant_customer_id": "DEMO-CUST-1234",
      "date_created": "2016-11-24T18:30:00Z",
      "amount": "100.00"
    }
  }
}
```

#### Swift Code Snippet:

```swift
{
  "id": "evt_V2_fc893a0229b94a05bcac4e1d4ba31c47",
  "event_name": "MERCHANT_CUSTOMER_RECEIVED_MONEY",
  "date_created": "2021-12-07T13:51:16Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "customer@xyz",
        "payer_name": "Customer Name",
        "payee_vpa": "customer1@abc",
        "payee_mobile_number": "919812388554",
        "payee_merchant_customer_id": "DEMO-CUST-1234",
        "payee_mcc": "4121",
        "merchant_id": "DEMOUAT01",
        "masked_account_number": "XXXX123456",
        "bank_code": "123456",
        "bank_account_unique_id": "fb96f8b2b1ab0c070d0d894......"
      },
      "transaction": {
        "udf_parameters": "{}",
        "ref_url": "https://www.abcxyz.com/",
        "gateway_transaction_id": "XYZd0c077f39c454979...",
        "gateway_response_code": "00",
        "gateway_reference_id": "806115044725",
        "custom_response": "{}"
      },
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Transaction is approved",
      "merchant_customer_id": "DEMO-CUST-1234",
      "date_created": "2016-11-24T18:30:00Z",
      "amount": "100.00"
    }
  }
}
```



### 1.4 Outgoing Money from a Customer



### Payload
- **Id**:
  - Description: Event ID
  - Value: evt_V2_03c6ec0681124450b55cf92fa35df241
- **Event_name**:
  - Description: This callback is given when the customer receives money from any upi user.
  - Value: Example: MERCHANT_CUSTOMER_DEBITED_VIA_PAY
- **Date_created**:
  - Description: timestamp when webhook was created
  - Value: 2021-12-07T13:46:40Z
- **Content**:
  - Description: Details of the event
  - Value:
    - **Merchant_customer**:
      - Value:
        - **Upi**:
          - Value:
            - **Upi_app**:
              - Value: YES_BIZ
            - **Payer_vpa**:
              - Value: customer1@abc
            - **Payer_merchant_customer_id**:
              - Value: DEMO-CUST-1234
            - **Payee_vpa**:
              - Value: customer@xyz
            - **Payee_name**:
              - Value: Customer Name
            - **Payee_merchant_customer_id**:
              - Value: DEMO-CUST-5678
            - **Payee_mcc**:
              - Value: 4121
            - **Merchant_id**:
              - Value: DEMOUAT01
        - **Transaction**:
          - Value:
            - **UdfParameters**:
              - Description: Stringified json for udf parameters
              - Value: {}
            - **Ref_url**:
              - Value: https://www.abcxyz.com/
            - **Gateway_transaction_id**:
              - Value: XYZd0c077f39c454979...
            - **Gateway_response_code**:
              - Value: 00
            - **Gateway_reference_id**:
              - Value: 806115044725
            - **Custom_response**:
              - Value: {}
        - **Remarks**:
          - Value: This is remarks
        - **Payment_method_type**:
          - Value: UPI
        - **Payment_method**:
          - Value: UPI
        - **Merchant_customer_id**:
          - Value: DEMO-CUST-1234
        - **Expiry**:
          - Value: 2016-11-24T19:00:00Z
        - **Date_created**:
          - Description: transaction timestamp sent from bank
          - Value: 2016-11-24T18:30:00Z
        - **Amount**:
          - Value: 100.00


> **Note**
> Event Names
> 
> **MERCHANT_CUSTOMER_DEBITED_FOR_MERCHANT_VIA_COLLECT**  - P2M Collect. **MERCHANT_CUSTOMER_DEBITED_FOR_MERCHANT_VIA_PAY**  - P2M Pay **MERCHANT_CUSTOMER_DEBITED_VIA_COLLECT**  - Collect Request Status[Mandate + Customer + status Update ] **MERCHANT_CUSTOMER_DEBITED_VIA_PAY** - Send Money




| Optional Fields | Constrains |
|---|---|
| bank_account_uniqueId | Only if gatewayResponseCode is 00. |
| bankCode | Only if gatewayResponseCode is 00 |
| maskedAccountNumber | Only if gatewayResponseCode is 00 |
| payerMerchantCustomerId | Only if it is an onus transaction. |
| udfParameters | Udf parameters as passed in the collect request. |
| merchantRequestId |  Only if gatewayResponseCode is not U69 |
| payeeName | Only if payment is done to a non A/C+IFSC vpa |
| umn | Vpa used for execution of mandate. Will be received only during mandate executions. |
| seqNumber | Denotes the recurring cycle of mandate execution. Will be received only during mandate executions. |




#### Code Snippets: -

#### Objective-C Code Snippet:

```objective-c
{
  "id": "evt_V2_764d477007844e0aa8728d1dc3e617f2",
  "event_name": "MERCHANT_CUSTOMER_DEBITED_VIA_PAY",
  "date_created": "2021-12-07T13:52:49Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "customer1@abc",
        "payer_mobile_number": "919812388554",
        "payer_merchant_customer_id": "DEMO-CUST-1234",
        "payee_vpa": "customer@xyz",
        "payee_name": "Customer Name",
        "payee_mcc": "4121",
        "merchant_id": "MERCHANT",
        "merchant_channel_id": "DEMOUATAPP",
        "masked_account_number": "XXXXXXX9988",
        "bank_code": "123456",
        "bank_account_unique_id": "4536baef...32cdba67"
      },
      "transaction": {
        "umn": "DCR123be148c7ba3b14f6db5cde57c65ccf@bank",
        "seq_number": "1",
        "udf_parameters": "{}",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "TXN1234567",
        "gateway_transaction_id": "DEMOUATAPP01TXNfo897fHVTiYq51739",
        "gateway_response_code": "00",
        "gateway_reference_id": "806115044725",
        "custom_response": "{}"
      },
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Transaction is approved",
      "merchant_customer_id": "DEMO-CUST-1234",
      "date_created": "2016-11-24T18:30:00Z",
      "amount": "10.00"
    }
  }
}
```

#### Swift Code Snippet:

```swift
{
  "id": "evt_V2_764d477007844e0aa8728d1dc3e617f2",
  "event_name": "MERCHANT_CUSTOMER_DEBITED_VIA_PAY",
  "date_created": "2021-12-07T13:52:49Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "customer1@abc",
        "payer_mobile_number": "919812388554",
        "payer_merchant_customer_id": "DEMO-CUST-1234",
        "payee_vpa": "customer@xyz",
        "payee_name": "Customer Name",
        "payee_mcc": "4121",
        "merchant_id": "MERCHANT",
        "merchant_channel_id": "DEMOUATAPP",
        "masked_account_number": "XXXXXXX9988",
        "bank_code": "123456",
        "bank_account_unique_id": "4536baef...32cdba67"
      },
      "transaction": {
        "umn": "DCR123be148c7ba3b14f6db5cde57c65ccf@bank",
        "seq_number": "1",
        "udf_parameters": "{}",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "TXN1234567",
        "gateway_transaction_id": "DEMOUATAPP01TXNfo897fHVTiYq51739",
        "gateway_response_code": "00",
        "gateway_reference_id": "806115044725",
        "custom_response": "{}"
      },
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Transaction is approved",
      "merchant_customer_id": "DEMO-CUST-1234",
      "date_created": "2016-11-24T18:30:00Z",
      "amount": "10.00"
    }
  }
}
```



### 1.5 Incoming Money to Customer - Collect Status


Merchant can get multiple callbacks for the same event type till the transaction status reaches a terminal state. Terminal states for a transaction are SUCCESS, FAILURE, EXPIRED, DECLINED.


### Payload
- **Id**:
  - Description: Event ID
  - Value: evt_V2_03c6ec0681124450b55cf92fa35df241
- **Event_name**:
  - Value: MERCHANT_CUSTOMER_CREDITED_VIA_COLLECT
- **Date_created**:
  - Description: timestamp when webhook was created
  - Value: 2021-12-07T13:46:40Z
- **Content**:
  - Description: Details of the event
  - Value:
    - **Merchant_customer**:
      - Value:
        - **Upi**:
          - Value:
            - **Upi_app**:
              - Value: YES_BIZ
            - **Payer_vpa**:
              - Value: customer1@abc
            - **Payer_merchant_customer_id**:
              - Value: DEMO-CUST-1234
            - **Payee_vpa**:
              - Value: customer@xyz
            - **Payee_name**:
              - Value: Customer Name
            - **Payee_merchant_customer_id**:
              - Value: DEMO-CUST-5678
            - **Payee_mcc**:
              - Value: 4121
            - **Merchant_id**:
              - Value: DEMOUAT01
        - **Transaction**:
          - Value:
            - **UdfParameters**:
              - Description: Stringified json for udf parameters
              - Value: {}
            - **Ref_url**:
              - Value: https://www.abcxyz.com/
            - **Gateway_transaction_id**:
              - Value: XYZd0c077f39c454979...
            - **Gateway_response_code**:
              - Value: 00
            - **Gateway_reference_id**:
              - Value: 806115044725
            - **Custom_response**:
              - Value: {}
        - **Remarks**:
          - Value: This is remarks
        - **Payment_method_type**:
          - Value: UPI
        - **Payment_method**:
          - Value: UPI
        - **Merchant_customer_id**:
          - Value: DEMO-CUST-1234
        - **Expiry**:
          - Value: 2016-11-24T19:00:00Z
        - **Date_created**:
          - Description: transaction timestamp sent from bank
          - Value: 2016-11-24T18:30:00Z
        - **Amount**:
          - Value: 100.00


> **Note**
> Merchant can get multiple callbacks for the same event type till the transaction status reaches a terminal state. Terminal states for a transaction are SUCCESS, FAILURE, EXPIRED, DECLINED.




| Optional Fields | Constrains |
|---|---|
| bank_account_uniqueId | Only if gatewayResponseCode is 00. |
| bankCode | Only if gatewayResponseCode is 00 |
| maskedAccountNumber | Only if gatewayResponseCode is 00 |
| udfParameters | Udf parameters as passed in the collect request. |




#### Code Snippets: -

#### Objective-C Code Snippet:

```objective-c
{
  "id": "evt_V2_0d39b03ca2c64a8588947b71ecbc6ead",
  "event_name": "MERCHANT_CUSTOMER_CREDITED_VIA_COLLECT",
  "date_created": "2021-12-07T13:49:55Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "customer@xyz",
        "payer_name": "Customer Name",
        "payee_vpa": "customer1@abc",
        "payee_mobile_number": "919812388554",
        "payee_merchant_customer_id": "DEMO-CUST-1234",
        "payee_mcc": "4121",
        "merchant_id": "DEMOUAT01",
        "merchant_channel_id": "DEMOUATAPP",
        "masked_account_number": "XXXX123456",
        "bank_code": "123456",
        "bank_account_unique_id": "fb96f8b2b...1ab0c070d0d894"
      },
      "transaction": {
        "udf_parameters": "{}",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "TXN1234567",
        "gateway_transaction_id": "XYZd0c077...f39c454979",
        "gateway_response_code": "00",
        "gateway_reference_id": "806115044725",
        "custom_response": "{}"
      },
      "remarks": "Sample remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Transaction is approved",
      "merchant_customer_id": "DEMO-CUST-1234",
      "expiry": "2016-11-24T18:40:00Z",
      "date_created": "2016-11-24T18:30:00Z",
      "amount": "100.00"
    }
  }
}
```

#### Swift Code Snippet:

```swift
{
  "id": "evt_V2_0d39b03ca2c64a8588947b71ecbc6ead",
  "event_name": "MERCHANT_CUSTOMER_CREDITED_VIA_COLLECT",
  "date_created": "2021-12-07T13:49:55Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "customer@xyz",
        "payer_name": "Customer Name",
        "payee_vpa": "customer1@abc",
        "payee_mobile_number": "919812388554",
        "payee_merchant_customer_id": "DEMO-CUST-1234",
        "payee_mcc": "4121",
        "merchant_id": "DEMOUAT01",
        "merchant_channel_id": "DEMOUATAPP",
        "masked_account_number": "XXXX123456",
        "bank_code": "123456",
        "bank_account_unique_id": "fb96f8b2b...1ab0c070d0d894"
      },
      "transaction": {
        "udf_parameters": "{}",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "TXN1234567",
        "gateway_transaction_id": "XYZd0c077...f39c454979",
        "gateway_response_code": "00",
        "gateway_reference_id": "806115044725",
        "custom_response": "{}"
      },
      "remarks": "Sample remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Transaction is approved",
      "merchant_customer_id": "DEMO-CUST-1234",
      "expiry": "2016-11-24T18:40:00Z",
      "date_created": "2016-11-24T18:30:00Z",
      "amount": "100.00"
    }
  }
}
```



### 1.6 Incoming Create Mandate Request For Customer


Server sends a callback to the PAYER to the url configured when the mandate creation request is received. This callback is only received when a mandate is requested by Payee and it has to be either approved or declined by Payer.


### Payload
- **Id**:
  - Description: Event ID
  - Value: evt_V2_03c6ec0681124450b55cf92fa35df241
- **Event_name**:
  - Description: This callback is given when the customer receives money from any upi user.
  - Value: MERCHANT_CUSTOMER_INCOMING_MANDATE_CREATE_REQUEST_RECEIVED
- **Date_created**:
  - Description: timestamp when webhook was created
  - Value: 2021-12-07T13:46:40Z
- **Content**:
  - Description: Details of the event
  - Value:
    - **Merchant_customer**:
      - Value:
        - **Upi**:
          - Value:
            - **Upi_app**:
              - Value: YES_BIZ
            - **Payer_vpa**:
              - Value: customer1@abc
            - **Payer_merchant_customer_id**:
              - Value: DEMO-CUST-1234
            - **Payee_vpa**:
              - Value: customer@xyz
            - **Payee_name**:
              - Value: Customer Name
            - **Payee_merchant_customer_id**:
              - Value: DEMO-CUST-5678
            - **Payee_mcc**:
              - Value: 4121
            - **Merchant_id**:
              - Value: DEMOUAT01
        - **Transaction**:
          - Value:
            - **UdfParameters**:
              - Description: Stringified json for udf parameters
              - Value: {}
            - **Ref_url**:
              - Value: https://www.abcxyz.com/
            - **Gateway_transaction_id**:
              - Value: XYZd0c077f39c454979...
            - **Gateway_response_code**:
              - Value: 00
            - **Gateway_reference_id**:
              - Value: 806115044725
            - **Custom_response**:
              - Value: {}
        - **Remarks**:
          - Value: This is remarks
        - **Payment_method_type**:
          - Value: UPI
        - **Payment_method**:
          - Value: UPI
        - **Merchant_customer_id**:
          - Value: DEMO-CUST-1234
        - **Mandate**:
          - Value:
            - **Validity_start**:
              - Value: 2020/06/04
            - **Validity_end**:
              - Value: 2020/06/05
            - **Transaction_type**:
              - Value: UPI_MANDATE
            - **Share_to_payee**:
              - Value: true
            - **Role**:
              - Value: PAYER
            - **Recurrence_value**:
              - Value: 5
            - **Recurrence_rule**:
              - Value: ON
            - **Recurrence_pattern**:
              - Value: MONTHLY
            - **Payer_revocable**:
              - Value: true
            - **Org_mandate_id**:
              - Value: BJJMsleiuryufhuhsoisdjfadb48003sdaa0
            - **Mandate_timestamp**:
              - Value: 2020-06-01T10:10:42Z
            - **Mandate_name**:
              - Value: merchant mandate
            - **Initiated_by**:
              - Value: PAYER
            - **Upi_request_id**:
              - Value: BJJ71f7d43bdf64d72d9saddfded
            - **Block_fund**:
              - Value: true
        - **Expiry**:
          - Value: 2016-11-24T19:00:00Z
        - **Date_created**:
          - Description: transaction timestamp sent from bank
          - Value: 2016-11-24T18:30:00Z
        - **Amount**:
          - Value: 100.00


> **Note**
> Merchant can get multiple callbacks for the same event type till the transaction status reaches a terminal state. Terminal states for a transaction are SUCCESS, FAILURE, EXPIRED, DECLINED.




| Optional Fields | Constrains |
|---|---|
| recurrenceRule | It is not present if recurrencePattern is ONETIME, DAILY or ASPRESENTED. |
| recurrencValue |  It is not present if recurrencePattern is ONETIME, DAILY or ASPRESENTED. |
| expiry | It will be present only when the payee has initiated the mandate. |
| payeeName | It will be present if role is PAYER |
| payerName | It will be present if role is PAYEE |
| udfParameters |  |




#### Code Snippets: -

#### Objective-C Code Snippet:

```objective-c
{
  "id": "evt_V2_eb42521dd872424a84bace92ed050d94",
  "event_name": "MERCHANT_CUSTOMER_INCOMING_MANDATE_CREATE_REQUEST_RECEIVED",
  "date_created": "2021-12-10T12:28:10Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "9962463212@BANK",
        "payee_vpa": "test@BANK",
        "payee_name": "BANKTEST",
        "payee_mcc": "4121",
        "merchant_id": "BANK",
        "merchant_channel_id": "BANK"
      },
      "transaction": {
        "umn": "uniqueMandateNumber@BANK",
        "ref_url": "https://www.abcxyz.com/",
        "is_verified_payee": true,
        "is_marked_spam": true,
        "gateway_reference_id": "809323430413"
      },
      "remarks": "Sample Remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "merchant_customer_id": "DEMO-CUST-1234",
      "mandate": {
        "validity_start": "2020/06/04",
        "validity_end": "2020/06/05",
        "transaction_type": "UPI_MANDATE",
        "share_to_payee": true,
        "role": "PAYER",
        "recurrence_value": "5",
        "recurrence_rule": "ON",
        "recurrence_pattern": "MONTHLY",
        "payer_revocable": true,
        "org_mandate_id": "BJJMsleiuryufhuhsoisdjfadb48003sdaa0",
        "mandate_timestamp": "2020-06-01T10:10:42Z",
        "mandate_name": "merchant mandate",
        "initiated_by": "PAYER",
        "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "block_fund": true,
        "amount_rule": "VARIABLE"
      },
      "expiry": "2020-07-24T19:00:00Z",
      "amount": "100.00"
    }
  }
}
```

#### Swift Code Snippet:

```swift
{
  "id": "evt_V2_eb42521dd872424a84bace92ed050d94",
  "event_name": "MERCHANT_CUSTOMER_INCOMING_MANDATE_CREATE_REQUEST_RECEIVED",
  "date_created": "2021-12-10T12:28:10Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "9962463212@BANK",
        "payee_vpa": "test@BANK",
        "payee_name": "BANKTEST",
        "payee_mcc": "4121",
        "merchant_id": "BANK",
        "merchant_channel_id": "BANK"
      },
      "transaction": {
        "umn": "uniqueMandateNumber@BANK",
        "ref_url": "https://www.abcxyz.com/",
        "is_verified_payee": true,
        "is_marked_spam": true,
        "gateway_reference_id": "809323430413"
      },
      "remarks": "Sample Remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "merchant_customer_id": "DEMO-CUST-1234",
      "mandate": {
        "validity_start": "2020/06/04",
        "validity_end": "2020/06/05",
        "transaction_type": "UPI_MANDATE",
        "share_to_payee": true,
        "role": "PAYER",
        "recurrence_value": "5",
        "recurrence_rule": "ON",
        "recurrence_pattern": "MONTHLY",
        "payer_revocable": true,
        "org_mandate_id": "BJJMsleiuryufhuhsoisdjfadb48003sdaa0",
        "mandate_timestamp": "2020-06-01T10:10:42Z",
        "mandate_name": "merchant mandate",
        "initiated_by": "PAYER",
        "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "block_fund": true,
        "amount_rule": "VARIABLE"
      },
      "expiry": "2020-07-24T19:00:00Z",
      "amount": "100.00"
    }
  }
}
```



### 1.7 Incoming Create Mandate For Customer


Server sends a callback to the customer (PAYER/PAYEE) to the url configured when the mandate is created. This callback is sent in the following cases.

1. It is sent to Payer when a Payer approves the mandate request from Payee and the final response of mandate creation is received from NPCI. It is sent when Payer approves the mandate and not when Payer Declines the mandate.

2. It is sent to Payee when a Payer creates a mandate and final status of mandate creation is received from NPCI.


### Payload
- **Id**:
  - Description: Event ID
  - Value: evt_V2_03c6ec0681124450b55cf92fa35df241
- **Event_name**:
  - Description: Server sends a callback to the customer (PAYER/PAYEE) to the url configured when the mandate is created.
  - Value: MERCHANT_CUSTOMER_INCOMING_MANDATE_CREATED
- **Date_created**:
  - Description: timestamp when webhook was created
  - Value: 2021-12-07T13:46:40Z
- **Content**:
  - Description: Details of the event
  - Value:
    - **Merchant_customer**:
      - Value:
        - **Upi**:
          - Value:
            - **Upi_app**:
              - Value: YES_BIZ
            - **Payer_vpa**:
              - Value: customer1@abc
            - **Payer_merchant_customer_id**:
              - Value: DEMO-CUST-1234
            - **Payee_vpa**:
              - Value: customer@xyz
            - **Payee_name**:
              - Value: Customer Name
            - **Payee_merchant_customer_id**:
              - Value: DEMO-CUST-5678
            - **Payee_mcc**:
              - Value: 4121
            - **Merchant_id**:
              - Value: DEMOUAT01
        - **Transaction**:
          - Value:
            - **UdfParameters**:
              - Description: Stringified json for udf parameters
              - Value: {}
            - **Ref_url**:
              - Value: https://www.abcxyz.com/
            - **Gateway_transaction_id**:
              - Value: XYZd0c077f39c454979...
            - **Gateway_response_code**:
              - Value: 00
            - **Gateway_reference_id**:
              - Value: 806115044725
            - **Custom_response**:
              - Value: {}
        - **Remarks**:
          - Value: This is remarks
        - **Payment_method_type**:
          - Value: UPI
        - **Payment_method**:
          - Value: UPI
        - **Message**:
          - Value: Mandate is successfully created
        - **Merchant_customer_id**:
          - Value: DEMO-CUST-1234
        - **Mandate**:
          - Value:
            - **Validity_start**:
              - Value: 2020/06/04
            - **Validity_end**:
              - Value: 2020/06/05
            - **Transaction_type**:
              - Value: UPI_MANDATE
            - **Share_to_payee**:
              - Value: true
            - **Role**:
              - Value: PAYER
            - **Recurrence_value**:
              - Value: 5
            - **Recurrence_rule**:
              - Value: ON
            - **Recurrence_pattern**:
              - Value: MONTHLY
            - **Payer_revocable**:
              - Value: true
            - **Org_mandate_id**:
              - Value: BJJMsleiuryufhuhsoisdjfadb48003sdaa0
            - **Mandate_timestamp**:
              - Value: 2020-06-01T10:10:42Z
            - **Mandate_name**:
              - Value: merchant mandate
            - **Initiated_by**:
              - Value: PAYER
            - **Upi_request_id**:
              - Value: BJJ71f7d43bdf64d72d9saddfded
            - **Block_fund**:
              - Value: true
        - **Expiry**:
          - Value: 2016-11-24T19:00:00Z
        - **Amount**:
          - Value: 100.00


> **Note**
> Merchant can get multiple callbacks for the same event type till the transaction status reaches a terminal state. Terminal states for a transaction are SUCCESS, FAILURE, EXPIRED, DECLINED.




| Optional Fields | Constrains |
|---|---|
| recurrenceRule | It is not present if recurrencePattern is ONETIME, DAILY or ASPRESENTED. |
| recurrencValue |  It is not present if recurrencePattern is ONETIME, DAILY or ASPRESENTED. |
| expiry | It will be present only when the payee has initiated the mandate. |
| payeeName | It will be present if role is PAYER |
| payerName | It will be present if role is PAYEE |
| udfParameters |  |




#### Code Snippets: -

#### Objective-C Code Snippet:

```objective-c
{
  "id": "evt_V2_487dcbcb0bcb4052a015ce4d8a7ede7c",
  "event_name": "MERCHANT_CUSTOMER_INCOMING_MANDATE_CREATED",
  "date_created": "2021-12-07T14:27:30Z",
  "content": {
    "merchant_customer": {
      "payee_vpa": "test@BANK",
      "payee_name": "BANKTEST",
      "payee_mcc": "4121",
      "merchant_id": "BANK",
      "merchant_channel_id": "BANK",
      "masked_account_number": "XXXXXXX9988",
      "bank_code": "123456"
    },
    "transaction": {
      "udf_parameters": "{}",
      "umn": "uniqueMandateNumber@bank",
      "ref_url": "https://www.abcxyz.com/",
      "merchant_request_id": "6138ne3wswbsssddc4dddc",
      "gateway_response_status": "SUCCESS",
      "gateway_response_code": "00",
      "gateway_reference_id": "809323430413"
    },
    "remarks": "Sample Remarks",
    "payment_method_type": "UPI",
    "payment_method": "UPI",
    "message": "Mandate is successfully created",
    "merchant_customer_id": "DEMO-CUST-1234",
    "mandate": {
      "validity_start": "2020/06/04",
      "validity_end": "2020/06/05",
      "transaction_type": "UPI_MANDATE",
      "share_to_payee": true,
      "role": "PAYER",
      "recurrence_value": "5",
      "recurrence_rule": "ON",
      "recurrence_pattern": "MONTHLY",
      "payer_revocable": true,
      "org_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
      "mandate_timestamp": "2020-06-01T10:10:42Z",
      "mandate_name": "merchant mandate",
      "mandate_approval_timestamp": "2017-06-09T12:28:49Z",
      "initiated_by": "PAYEE",
      "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
      "block_fund": true,
      "amount_rule": "VARIABLE"
    },
    "expiry": "2020-07-24T19:00:00Z",
    "amount": "100.00"
  }
}
}
```

#### Swift Code Snippet:

```swift
{
  "id": "evt_V2_487dcbcb0bcb4052a015ce4d8a7ede7c",
  "event_name": "MERCHANT_CUSTOMER_INCOMING_MANDATE_CREATED",
  "date_created": "2021-12-07T14:27:30Z",
  "content": {
    "merchant_customer": {
      "payee_vpa": "test@BANK",
      "payee_name": "BANKTEST",
      "payee_mcc": "4121",
      "merchant_id": "BANK",
      "merchant_channel_id": "BANK",
      "masked_account_number": "XXXXXXX9988",
      "bank_code": "123456"
    },
    "transaction": {
      "udf_parameters": "{}",
      "umn": "uniqueMandateNumber@bank",
      "ref_url": "https://www.abcxyz.com/",
      "merchant_request_id": "6138ne3wswbsssddc4dddc",
      "gateway_response_status": "SUCCESS",
      "gateway_response_code": "00",
      "gateway_reference_id": "809323430413"
    },
    "remarks": "Sample Remarks",
    "payment_method_type": "UPI",
    "payment_method": "UPI",
    "message": "Mandate is successfully created",
    "merchant_customer_id": "DEMO-CUST-1234",
    "mandate": {
      "validity_start": "2020/06/04",
      "validity_end": "2020/06/05",
      "transaction_type": "UPI_MANDATE",
      "share_to_payee": true,
      "role": "PAYER",
      "recurrence_value": "5",
      "recurrence_rule": "ON",
      "recurrence_pattern": "MONTHLY",
      "payer_revocable": true,
      "org_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
      "mandate_timestamp": "2020-06-01T10:10:42Z",
      "mandate_name": "merchant mandate",
      "mandate_approval_timestamp": "2017-06-09T12:28:49Z",
      "initiated_by": "PAYEE",
      "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
      "block_fund": true,
      "amount_rule": "VARIABLE"
    },
    "expiry": "2020-07-24T19:00:00Z",
    "amount": "100.00"
  }
}
}
```



### 1.8 Outgoing Create Mandate From Customer


Server sends a callback to the customer (PAYER/PAYEE) to the url configured when the final status of mandate creation is received from NPCI. It is sent to the same entity that has initiated the mandate.


### Payload
- **Id**:
  - Description: Event ID
  - Value: evt_V2_03c6ec0681124450b55cf92fa35df241
- **Event_name**:
  - Description: Server sends a callback to the customer (PAYER/PAYEE) to the url configured when the mandate is created.
  - Value: MERCHANT_CUSTOMER_OUTGOING_MANDATE_CREATED
- **Date_created**:
  - Description: timestamp when webhook was created
  - Value: 2021-12-07T13:46:40Z
- **Content**:
  - Description: Details of the event
  - Value:
    - **Merchant_customer**:
      - Value:
        - **Upi**:
          - Value:
            - **Upi_app**:
              - Value: YES_BIZ
            - **Payer_vpa**:
              - Value: customer1@abc
            - **Payer_merchant_customer_id**:
              - Value: DEMO-CUST-1234
            - **Payee_vpa**:
              - Value: customer@xyz
            - **Payee_name**:
              - Value: Customer Name
            - **Payee_merchant_customer_id**:
              - Value: DEMO-CUST-5678
            - **Payee_mcc**:
              - Value: 4121
            - **Merchant_id**:
              - Value: DEMOUAT01
        - **Transaction**:
          - Value:
            - **UdfParameters**:
              - Description: Stringified json for udf parameters
              - Value: {}
            - **Ref_url**:
              - Value: https://www.abcxyz.com/
            - **Gateway_transaction_id**:
              - Value: XYZd0c077f39c454979...
            - **Gateway_response_code**:
              - Value: 00
            - **Gateway_reference_id**:
              - Value: 806115044725
            - **Custom_response**:
              - Value: {}
        - **Remarks**:
          - Value: This is remarks
        - **Payment_method_type**:
          - Value: UPI
        - **Payment_method**:
          - Value: UPI
        - **Message**:
          - Value: Mandate is successfully created
        - **Merchant_customer_id**:
          - Value: DEMO-CUST-1234
        - **Mandate**:
          - Value:
            - **Validity_start**:
              - Value: 2020/06/04
            - **Validity_end**:
              - Value: 2020/06/05
            - **Transaction_type**:
              - Value: UPI_MANDATE
            - **Share_to_payee**:
              - Value: true
            - **Role**:
              - Value: PAYER
            - **Recurrence_value**:
              - Value: 5
            - **Recurrence_rule**:
              - Value: ON
            - **Recurrence_pattern**:
              - Value: MONTHLY
            - **Payer_revocable**:
              - Value: true
            - **Org_mandate_id**:
              - Value: BJJMsleiuryufhuhsoisdjfadb48003sdaa0
            - **Mandate_timestamp**:
              - Value: 2020-06-01T10:10:42Z
            - **Mandate_name**:
              - Value: merchant mandate
            - **Initiated_by**:
              - Value: PAYER
            - **Upi_request_id**:
              - Value: BJJ71f7d43bdf64d72d9saddfded
            - **Block_fund**:
              - Value: true
        - **Expiry**:
          - Value: 2016-11-24T19:00:00Z
        - **Amount**:
          - Value: 100.00



| Optional Fields | Constrains |
|---|---|
| recurrenceRule | It is not present if recurrencePattern is ONETIME, DAILY or ASPRESENTED. |
| recurrencValue |  It is not present if recurrencePattern is ONETIME, DAILY or ASPRESENTED. |
| expiry | It will be present only when the payee has initiated the mandate. |
| payeeName | It will be present if role is PAYER |
| payerName | It will be present if role is PAYEE |
| udfParameters |  |
| mandateApprovalTimestamp | Only present if mandate was initiatedBy Payee |
| umn | It will not be present if gatewayResponseStatus is EXPIRED or if it is not received from NPCI due to validation failure at Payer PSP during approve mandate. |




#### Code Snippets: -

#### Objective-C Code Snippet:

```objective-c
{
  "id": "evt_V2_487dcbcb0bcb4052a015ce4d8a7ede7c",
  "event_name": "MERCHANT_CUSTOMER_OUTGOING_MANDATE_CREATED",
  "date_created": "2021-12-07T14:27:30Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "9962463212@BANK",
        "payer_name": "ABC",
        "payee_vpa": "test@BANK",
        "payee_name": "BANKTEST",
        "payee_mcc": "4121",
        "merchant_id": "BANK",
        "merchant_channel_id": "BANK",
        "masked_account_number": "XXXXXXX9988",
        "bank_code": "123456"
      },
      "transaction": {
        "udf_parameters": "{}",
        "umn": "uniqueMandateNumber@bank",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "6138ne3wswbsssddc4dddc", //the txn uuid in transaction
        "gateway_response_status": "SUCCESS",
        "gateway_response_code": "00",
        "gateway_reference_id": "809323430413"
      },
      "remarks": "Sample Remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Mandate is successfully created",
      "merchant_customer_id": "DEMO-CUST-1234",
      "mandate": {
        "validity_start": "2020/06/04",
        "validity_end": "2020/06/05",
        "transaction_type": "UPI_MANDATE",
        "share_to_payee": true,
        "role": "PAYEE",
        "recurrence_value": "5",
        "recurrence_rule": "ON",
        "recurrence_pattern": "MONTHLY",
        "payer_revocable": true,
        "org_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "mandate_timestamp": "2020-06-01T10:10:42Z",
        "mandate_name": "merchant mandate",
        "mandate_approval_timestamp": "2017-06-09T12:28:49Z",
        "initiated_by": "PAYER",
        "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "block_fund": true,
        "amount_rule": "FIXED"
      },
      "expiry": "2020-07-24T19:00:00Z",
      "amount": "100.00"
    }
  }
}
```

#### Swift Code Snippet:

```swift
{
  "id": "evt_V2_487dcbcb0bcb4052a015ce4d8a7ede7c",
  "event_name": "MERCHANT_CUSTOMER_OUTGOING_MANDATE_CREATED",
  "date_created": "2021-12-07T14:27:30Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "9962463212@BANK",
        "payer_name": "ABC",
        "payee_vpa": "test@BANK",
        "payee_name": "BANKTEST",
        "payee_mcc": "4121",
        "merchant_id": "BANK",
        "merchant_channel_id": "BANK",
        "masked_account_number": "XXXXXXX9988",
        "bank_code": "123456"
      },
      "transaction": {
        "udf_parameters": "{}",
        "umn": "uniqueMandateNumber@bank",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "6138ne3wswbsssddc4dddc", //the txn uuid in transaction
        "gateway_response_status": "SUCCESS",
        "gateway_response_code": "00",
        "gateway_reference_id": "809323430413"
      },
      "remarks": "Sample Remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Mandate is successfully created",
      "merchant_customer_id": "DEMO-CUST-1234",
      "mandate": {
        "validity_start": "2020/06/04",
        "validity_end": "2020/06/05",
        "transaction_type": "UPI_MANDATE",
        "share_to_payee": true,
        "role": "PAYEE",
        "recurrence_value": "5",
        "recurrence_rule": "ON",
        "recurrence_pattern": "MONTHLY",
        "payer_revocable": true,
        "org_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "mandate_timestamp": "2020-06-01T10:10:42Z",
        "mandate_name": "merchant mandate",
        "mandate_approval_timestamp": "2017-06-09T12:28:49Z",
        "initiated_by": "PAYER",
        "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "block_fund": true,
        "amount_rule": "FIXED"
      },
      "expiry": "2020-07-24T19:00:00Z",
      "amount": "100.00"
    }
  }
}
```



### 1.9 Incoming Update Mandate Request For Customer


Server sends a callback to the PAYER to the url configured when a mandate update request is received. This callback is only received when an update mandate is requested by Payee and it has to be either approved or declined by Payer.


### Payload
- **Id**:
  - Description: Event ID
  - Value: evt_V2_03c6ec0681124450b55cf92fa35df241
- **Event_name**:
  - Description: Server sends a callback to the PAYER to the url configured when a mandate update request is received. This callback is only received when an update mandate is requested by Payee and it has to be either approved or declined by Payer.
  - Value: MERCHANT_CUSTOMER_INCOMING_MANDATE_UPDATE_REQUEST_RECEIVED
- **Date_created**:
  - Description: timestamp when webhook was created
  - Value: 2021-12-07T13:46:40Z
- **Content**:
  - Description: Details of the event
  - Value:
    - **Merchant_customer**:
      - Value:
        - **Upi**:
          - Value:
            - **Upi_app**:
              - Value: YES_BIZ
            - **Payer_vpa**:
              - Value: customer1@abc
            - **Payer_name**:
              - Value: ABC
            - **Payee_vpa**:
              - Value: customer@xyz
            - **Payee_name**:
              - Value: Customer Name
            - **Payee_mcc**:
              - Value: 4121
            - **Merchant_id**:
              - Value: DEMOUAT01
            - **Merchant_channel_id**:
              - Value: BANK
        - **Transaction**:
          - Value:
            - **Ref_url**:
              - Value: https://www.abcxyz.com/
            - **Gateway_reference_id**:
              - Value: 806115044725
            - **Umn**:
              - Value: uniqueMandateNumber@bank
        - **Remarks**:
          - Value: This is remarks
        - **Payment_method_type**:
          - Value: UPI
        - **Payment_method**:
          - Value: UPI
        - **Merchant_customer_id**:
          - Value: DEMO-CUST-1234
        - **Mandate**:
          - Value:
            - **Validity_start**:
              - Value: 2020/06/04
            - **Validity_end**:
              - Value: 2020/06/05
            - **Transaction_type**:
              - Value: UPI_MANDATE
            - **Share_to_payee**:
              - Value: true
            - **Role**:
              - Value: PAYER
            - **Recurrence_value**:
              - Value: 5
            - **Recurrence_rule**:
              - Value: ON
            - **Recurrence_pattern**:
              - Value: MONTHLY
            - **Payer_revocable**:
              - Value: true
            - **Org_mandate_id**:
              - Value: BJJMsleiuryufhuhsoisdjfadb48003sdaa0
            - **Mandate_timestamp**:
              - Value: 2020-06-01T10:10:42Z
            - **Mandate_name**:
              - Value: merchant mandate
            - **Initiated_by**:
              - Value: PAYER
            - **Gateway_mandate_id**:
              - Value: BJJ71f7d43bdf64d72d9saddfded
            - **Block_fund**:
              - Value: true
        - **Expiry**:
          - Value: 2016-11-24T19:00:00Z
        - **Amount**:
          - Value: 100.00



| Optional Fields | Constrains |
|---|---|
| recurrenceRule | It is not present if recurrencePattern is ONETIME, DAILY or ASPRESENTED. |
| recurrencValue |  It is not present if recurrencePattern is ONETIME, DAILY or ASPRESENTED. |
| payeeName | It will be present if role is PAYER |
| payerName | It will be present if role is PAYEE |




#### Code Snippets: -

#### Objective-C Code Snippet:

```objective-c
{
  "id": "evt_V2_912b61c9770c4049a73badb1b8ef806a",
  "event_name": "MERCHANT_CUSTOMER_INCOMING_MANDATE_UPDATE_REQUEST_RECEIVED",
  "date_created": "2021-12-07T14:29:47Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "9962463212@BANK",
        "payer_name": "ABC",
        "payee_vpa": "test@BANK",
        "payee_name": "BANKTEST",
        "payee_mcc": "4121",
        "merchant_id": "BANK",
        "merchant_channel_id": "BANK"
      },
      "transaction": {
        "umn": "uniqueMandateNumber@bank",
        "ref_url": "https://www.abcxyz.com/",
        "gateway_reference_id": "809323430413"
      },
      "remarks": "Sample Remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "merchant_customer_id": "DEMO-CUST-1234",
      "mandate": {
        "validity_start": "2020/06/04",
        "validity_end": "2020/06/05",
        "transaction_type": "UPI_MANDATE",
        "share_to_payee": true,
        "role": "PAYER",
        "recurrence_value": "5",
        "recurrence_rule": "ON",
        "recurrence_pattern": "MONTHLY",
        "payer_revocable": true,
        "org_mandate_id": "BJJMsleiuryufhuhsoisdjfadb48003sdaa0",
        "mandate_type": "UPDATE",
        "mandate_timestamp": "2020-06-01T10:10:42Z",
        "mandate_name": "merchant mandate",
        "initiated_by": "PAYER",
        "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "block_fund": true,
        "amount_rule": "VARIABLE"
      },
      "expiry": "2020-07-24T19:00:00Z",
      "amount": "100.00"
    }
  }
}
```

#### Swift Code Snippet:

```swift
{
  "id": "evt_V2_912b61c9770c4049a73badb1b8ef806a",
  "event_name": "MERCHANT_CUSTOMER_INCOMING_MANDATE_UPDATE_REQUEST_RECEIVED",
  "date_created": "2021-12-07T14:29:47Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "9962463212@BANK",
        "payer_name": "ABC",
        "payee_vpa": "test@BANK",
        "payee_name": "BANKTEST",
        "payee_mcc": "4121",
        "merchant_id": "BANK",
        "merchant_channel_id": "BANK"
      },
      "transaction": {
        "umn": "uniqueMandateNumber@bank",
        "ref_url": "https://www.abcxyz.com/",
        "gateway_reference_id": "809323430413"
      },
      "remarks": "Sample Remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "merchant_customer_id": "DEMO-CUST-1234",
      "mandate": {
        "validity_start": "2020/06/04",
        "validity_end": "2020/06/05",
        "transaction_type": "UPI_MANDATE",
        "share_to_payee": true,
        "role": "PAYER",
        "recurrence_value": "5",
        "recurrence_rule": "ON",
        "recurrence_pattern": "MONTHLY",
        "payer_revocable": true,
        "org_mandate_id": "BJJMsleiuryufhuhsoisdjfadb48003sdaa0",
        "mandate_type": "UPDATE",
        "mandate_timestamp": "2020-06-01T10:10:42Z",
        "mandate_name": "merchant mandate",
        "initiated_by": "PAYER",
        "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "block_fund": true,
        "amount_rule": "VARIABLE"
      },
      "expiry": "2020-07-24T19:00:00Z",
      "amount": "100.00"
    }
  }
}
```



### 1.10 Incoming Update Mandate For Customer


Server sends a callback to the customer (PAYER/PAYEE) to the url configured when the mandate is updated. This callback is sent in the following two cases.

1. It is sent to Payer when a Payer approves the mandate update request from Payee and the final response of mandate updation is received from NPCI. It is sent when Payer approves the mandate request and not when Payer Declines the mandate request.

2. It is sent to Payee when a Payer updates a mandate and final status of mandate updation is received from NPCI.


### Payload
- **Id**:
  - Description: Event ID
  - Value: evt_V2_03c6ec0681124450b55cf92fa35df241
- **Event_name**:
  - Description: Server sends a callback to the customer (PAYER/PAYEE) to the url configured when the mandate is updated.
  - Value: MERCHANT_CUSTOMER_INCOMING_MANDATE_UPDATED
- **Date_created**:
  - Description: timestamp when webhook was created
  - Value: 2021-12-07T13:46:40Z
- **Content**:
  - Description: Details of the event
  - Value:
    - **Merchant_customer**:
      - Value:
        - **Upi**:
          - Value:
            - **Upi_app**:
              - Value: YES_BIZ
            - **Payer_vpa**:
              - Value: customer1@abc
            - **Payer_name**:
              - Value: ABC
            - **Payee_vpa**:
              - Value: customer@xyz
            - **Payee_name**:
              - Value: Customer Name
            - **Payee_mcc**:
              - Value: 4121
            - **Merchant_id**:
              - Value: DEMOUAT01
            - **Merchant_channel_id**:
              - Value: BANK
        - **Transaction**:
          - Value:
            - **UdfParameters**:
              - Description: Stringified json for udf parameters
              - Value: {}
            - **Ref_url**:
              - Value: https://www.abcxyz.com/
            - **Umn**:
              - Value: uniqueMandateNumber@bank
            - **Gateway_response_code**:
              - Value: 00
            - **Gateway_reference_id**:
              - Value: 806115044725
            - **Gateway_response_status**:
              - Value: SUCCESS
        - **Remarks**:
          - Value: This is remarks
        - **Payment_method_type**:
          - Value: UPI
        - **Payment_method**:
          - Value: UPI
        - **Message**:
          - Value: Mandate is successfully updated
        - **Merchant_customer_id**:
          - Value: DEMO-CUST-1234
        - **Mandate**:
          - Value:
            - **Validity_start**:
              - Value: 2020/06/04
            - **Validity_end**:
              - Value: 2020/06/05
            - **Transaction_type**:
              - Value: UPI_MANDATE
            - **Share_to_payee**:
              - Value: true
            - **Role**:
              - Value: PAYER
            - **Recurrence_value**:
              - Value: 5
            - **Recurrence_rule**:
              - Value: ON
            - **Recurrence_pattern**:
              - Value: MONTHLY
            - **Payer_revocable**:
              - Value: true
            - **Org_mandate_id**:
              - Value: BJJMsleiuryufhuhsoisdjfadb48003sdaa0
            - **Mandate_timestamp**:
              - Value: 2020-06-01T10:10:42Z
            - **Mandate_name**:
              - Value: merchant mandate
            - **Initiated_by**:
              - Value: PAYER
            - **Upi_request_id**:
              - Value: BJJ71f7d43bdf64d72d9saddfded
            - **Block_fund**:
              - Value: true
        - **Expiry**:
          - Value: 2016-11-24T19:00:00Z
        - **Amount**:
          - Value: 100.00



| Optional Fields | Constrains |
|---|---|
| recurrenceRule | It is not present if recurrencePattern is ONETIME, DAILY or ASPRESENTED. |
| recurrencValue |  It is not present if recurrencePattern is ONETIME, DAILY or ASPRESENTED. |
| expiry | It will be present only when the payee has initiated the mandate. |
| payeeName | It will be present if role is PAYER |
| payerName | It will be present if role is PAYEE |
| udfParameters |  |




#### Code Snippets: -

#### Objective-C Code Snippet:

```objective-c
{
  "id": "evt_V2_793089c9a7234c1080b8a1137a7a2be8",
  "event_name": "MERCHANT_CUSTOMER_INCOMING_MANDATE_UPDATED",
  "date_created": "2021-12-07T14:31:02Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "9962463212@BANK",
        "payer_name": "ABC",
        "payee_vpa": "test@BANK",
        "payee_name": "BANKTEST",
        "payee_mcc": "4121",
        "merchant_id": "BANK",
        "merchant_channel_id": "BANK"
      },
      "transaction": {
        "udf_parameters": "{}",
        "umn": "uniqueMandateNumber@bank",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "6138ne3wswbsssddc4dddc",
        "gateway_response_status": "SUCCESS",
        "gateway_response_code": "00",
        "gateway_reference_id": "809323430413"
      },
      "remarks": "Sample Remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Mandate is successfully updated",
      "merchant_customer_id": "DEMO-CUST-1234",
      "mandate": {
        "validity_start": "2020/06/04",
        "validity_end": "2020/06/05",
        "transaction_type": "UPI_MANDATE",
        "share_to_payee": true,
        "role": "PAYER",
        "recurrence_value": "5",
        "recurrence_rule": "ON",
        "recurrence_pattern": "MONTHLY",
        "payer_revocable": true,
        "org_mandate_id": "BJJMsleiuryufhuhsoisdjfadb48003sdaa0",
        "mandate_type": "UPDATE",
        "mandate_timestamp": "2020-06-01T10:10:42Z",
        "mandate_name": "merchant mandate",
        "initiated_by": "PAYER",
        "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "block_fund": true
      },
      "expiry": "2020-07-24T19:00:00Z",
      "amount": "100.00"
    }
  }
}
```

#### Swift Code Snippet:

```swift
{
  "id": "evt_V2_793089c9a7234c1080b8a1137a7a2be8",
  "event_name": "MERCHANT_CUSTOMER_INCOMING_MANDATE_UPDATED",
  "date_created": "2021-12-07T14:31:02Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "9962463212@BANK",
        "payer_name": "ABC",
        "payee_vpa": "test@BANK",
        "payee_name": "BANKTEST",
        "payee_mcc": "4121",
        "merchant_id": "BANK",
        "merchant_channel_id": "BANK"
      },
      "transaction": {
        "udf_parameters": "{}",
        "umn": "uniqueMandateNumber@bank",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "6138ne3wswbsssddc4dddc",
        "gateway_response_status": "SUCCESS",
        "gateway_response_code": "00",
        "gateway_reference_id": "809323430413"
      },
      "remarks": "Sample Remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Mandate is successfully updated",
      "merchant_customer_id": "DEMO-CUST-1234",
      "mandate": {
        "validity_start": "2020/06/04",
        "validity_end": "2020/06/05",
        "transaction_type": "UPI_MANDATE",
        "share_to_payee": true,
        "role": "PAYER",
        "recurrence_value": "5",
        "recurrence_rule": "ON",
        "recurrence_pattern": "MONTHLY",
        "payer_revocable": true,
        "org_mandate_id": "BJJMsleiuryufhuhsoisdjfadb48003sdaa0",
        "mandate_type": "UPDATE",
        "mandate_timestamp": "2020-06-01T10:10:42Z",
        "mandate_name": "merchant mandate",
        "initiated_by": "PAYER",
        "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "block_fund": true
      },
      "expiry": "2020-07-24T19:00:00Z",
      "amount": "100.00"
    }
  }
}
```



### 1.11 Outgoing Update Mandate From Customer


Server sends a callback to the customer (PAYER/PAYEE) to the url configured when the final status of mandate updation is received from NPCI. It is sent to the same entity whoever has initiated the mandate request.


### Payload
- **Id**:
  - Description: Event ID
  - Value: evt_V2_03c6ec0681124450b55cf92fa35df241
- **Event_name**:
  - Description: Server sends a callback to the customer (PAYER/PAYEE) to the url configured when the mandate is updated.
  - Value: MERCHANT_CUSTOMER_OUTGOING_MANDATE_UPDATED
- **Date_created**:
  - Description: timestamp when webhook was created
  - Value: 2021-12-07T13:46:40Z
- **Content**:
  - Description: Details of the event
  - Value:
    - **Merchant_customer**:
      - Value:
        - **Upi**:
          - Value:
            - **Upi_app**:
              - Value: YES_BIZ
            - **Payer_vpa**:
              - Value: customer1@abc
            - **Payer_name**:
              - Value: ABC
            - **Payee_vpa**:
              - Value: customer@xyz
            - **Payee_name**:
              - Value: Customer Name
            - **Payee_mcc**:
              - Value: 4121
            - **Merchant_id**:
              - Value: DEMOUAT01
            - **Merchant_channel_id**:
              - Value: BANK
        - **Transaction**:
          - Value:
            - **UdfParameters**:
              - Description: Stringified json for udf parameters
              - Value: {}
            - **Ref_url**:
              - Value: https://www.abcxyz.com/
            - **Umn**:
              - Value: uniqueMandateNumber@bank
            - **Gateway_response_code**:
              - Value: 00
            - **Gateway_reference_id**:
              - Value: 806115044725
            - **Gateway_response_status**:
              - Value: SUCCESS
        - **Remarks**:
          - Value: This is remarks
        - **Payment_method_type**:
          - Value: UPI
        - **Payment_method**:
          - Value: UPI
        - **Message**:
          - Value: Mandate is successfully updated
        - **Merchant_customer_id**:
          - Value: DEMO-CUST-1234
        - **Mandate**:
          - Value:
            - **Validity_start**:
              - Value: 2020/06/04
            - **Validity_end**:
              - Value: 2020/06/05
            - **Transaction_type**:
              - Value: UPI_MANDATE
            - **Share_to_payee**:
              - Value: true
            - **Role**:
              - Value: PAYER
            - **Recurrence_value**:
              - Value: 5
            - **Recurrence_rule**:
              - Value: ON
            - **Recurrence_pattern**:
              - Value: MONTHLY
            - **Payer_revocable**:
              - Value: true
            - **Org_mandate_id**:
              - Value: BJJMsleiuryufhuhsoisdjfadb48003sdaa0
            - **Mandate_timestamp**:
              - Value: 2020-06-01T10:10:42Z
            - **Mandate_name**:
              - Value: merchant mandate
            - **Initiated_by**:
              - Value: PAYER
            - **Upi_request_id**:
              - Value: BJJ71f7d43bdf64d72d9saddfded
            - **Block_fund**:
              - Value: true
        - **Expiry**:
          - Value: 2016-11-24T19:00:00Z
        - **Amount**:
          - Value: 100.00


> **Note**
> Merchant can get multiple callbacks for the same event type till the transaction status reaches a terminal state. Terminal states for a transaction are SUCCESS, FAILURE, EXPIRED, DECLINED.




| Optional Fields | Constrains |
|---|---|
| recurrenceRule | It is not present if recurrencePattern is ONETIME, DAILY or ASPRESENTED. |
| recurrencValue |  It is not present if recurrencePattern is ONETIME, DAILY or ASPRESENTED. |
| expiry | It will be present only when the payee has initiated the mandate. |
| payeeName | It will be present if role is PAYER |
| payerName | It will be present if role is PAYEE |
| udfParameters |  |




#### Code Snippets: -

#### Objective-C Code Snippet:

```objective-c
{
  "id": "evt_V2_793089c9a7234c1080b8a1137a7a2be8",
  "event_name": "MERCHANT_CUSTOMER_OUTGOING_MANDATE_UPDATED",
  "date_created": "2021-12-07T14:31:02Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "9962463212@BANK",
        "payer_name": "ABC",
        "payee_vpa": "test@BANK",
        "payee_name": "BANKTEST",
        "payee_mcc": "4121",
        "merchant_id": "BANK",
        "merchant_channel_id": "BANK"
      },
      "transaction": {
        "udf_parameters": "{}",
        "umn": "uniqueMandateNumber@bank",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "6138ne3wswbsssddc4dddc",
        "gateway_response_status": "SUCCESS",
        "gateway_response_code": "00",
        "gateway_reference_id": "809323430413"
      },
      "remarks": "Sample Remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Mandate is successfully updated",
      "merchant_customer_id": "DEMO-CUST-1234",
      "mandate": {
        "validity_start": "2020/06/04",
        "validity_end": "2020/06/05",
        "transaction_type": "UPI_MANDATE",
        "share_to_payee": true,
        "role": "PAYER",
        "recurrence_value": "5",
        "recurrence_rule": "ON",
        "recurrence_pattern": "MONTHLY",
        "payer_revocable": true,
        "org_mandate_id": "BJJMsleiuryufhuhsoisdjfadb48003sdaa0",
        "mandate_type": "UPDATE",
        "mandate_timestamp": "2020-06-01T10:10:42Z",
        "mandate_name": "merchant mandate",
        "initiated_by": "PAYER",
        "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "block_fund": true
      },
      "expiry": "2020-07-24T19:00:00Z",
      "amount": "100.00"
    }
  }
}
```

#### Swift Code Snippet:

```swift
{
  "id": "evt_V2_793089c9a7234c1080b8a1137a7a2be8",
  "event_name": "MERCHANT_CUSTOMER_OUTGOING_MANDATE_UPDATED",
  "date_created": "2021-12-07T14:31:02Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "9962463212@BANK",
        "payer_name": "ABC",
        "payee_vpa": "test@BANK",
        "payee_name": "BANKTEST",
        "payee_mcc": "4121",
        "merchant_id": "BANK",
        "merchant_channel_id": "BANK"
      },
      "transaction": {
        "udf_parameters": "{}",
        "umn": "uniqueMandateNumber@bank",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "6138ne3wswbsssddc4dddc",
        "gateway_response_status": "SUCCESS",
        "gateway_response_code": "00",
        "gateway_reference_id": "809323430413"
      },
      "remarks": "Sample Remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Mandate is successfully updated",
      "merchant_customer_id": "DEMO-CUST-1234",
      "mandate": {
        "validity_start": "2020/06/04",
        "validity_end": "2020/06/05",
        "transaction_type": "UPI_MANDATE",
        "share_to_payee": true,
        "role": "PAYER",
        "recurrence_value": "5",
        "recurrence_rule": "ON",
        "recurrence_pattern": "MONTHLY",
        "payer_revocable": true,
        "org_mandate_id": "BJJMsleiuryufhuhsoisdjfadb48003sdaa0",
        "mandate_type": "UPDATE",
        "mandate_timestamp": "2020-06-01T10:10:42Z",
        "mandate_name": "merchant mandate",
        "initiated_by": "PAYER",
        "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "block_fund": true
      },
      "expiry": "2020-07-24T19:00:00Z",
      "amount": "100.00"
    }
  }
}
```



### 1.12 Outgoing Pause Mandate From Customer


Server sends a callback to the Payer to the url configured when the final status of mandate PAUSE/UNPAUSE request is received from NPCI. It is always sent to the Payer as mandate Pause request can be initiated by Payer only.


### Payload
- **Id**:
  - Description: Event ID
  - Value: evt_V2_03c6ec0681124450b55cf92fa35df241
- **Event_name**:
  - Description: Server sends a callback to the customer (PAYER/PAYEE) to the url configured when the mandate is updated.
  - Value: MERCHANT_CUSTOMER_OUTGOING_MANDATE_PAUSED
- **Date_created**:
  - Description: timestamp when webhook was created
  - Value: 2021-12-07T13:46:40Z
- **Content**:
  - Description: Details of the event
  - Value:
    - **Merchant_customer**:
      - Value:
        - **Upi**:
          - Value:
            - **Upi_app**:
              - Value: YES_BIZ
            - **Payer_vpa**:
              - Value: customer1@abc
            - **Payer_name**:
              - Value: ABC
            - **Payee_vpa**:
              - Value: customer@xyz
            - **Payee_name**:
              - Value: Customer Name
            - **Payee_mcc**:
              - Value: 4121
            - **Merchant_id**:
              - Value: DEMOUAT01
            - **Merchant_channel_id**:
              - Value: BANK
        - **Transaction**:
          - Value:
            - **UdfParameters**:
              - Description: Stringified json for udf parameters
              - Value: {}
            - **Ref_url**:
              - Value: https://www.abcxyz.com/
            - **Umn**:
              - Value: uniqueMandateNumber@bank
            - **Gateway_response_code**:
              - Value: 00
            - **Gateway_reference_id**:
              - Value: 806115044725
            - **Gateway_response_status**:
              - Value: SUCCESS
        - **Remarks**:
          - Value: This is remarks
        - **Payment_method_type**:
          - Value: UPI
        - **Payment_method**:
          - Value: UPI
        - **Message**:
          - Value: Mandate is successfully updated
        - **Merchant_customer_id**:
          - Value: DEMO-CUST-1234
        - **Mandate**:
          - Value:
            - **Validity_start**:
              - Value: 2020/06/04
            - **Validity_end**:
              - Value: 2020/06/05
            - **Transaction_type**:
              - Value: UPI_MANDATE
            - **Share_to_payee**:
              - Value: true
            - **Role**:
              - Value: PAYER
            - **Recurrence_value**:
              - Value: 5
            - **Recurrence_rule**:
              - Value: ON
            - **Recurrence_pattern**:
              - Value: MONTHLY
            - **Payer_revocable**:
              - Value: true
            - **Org_mandate_id**:
              - Value: BJJMsleiuryufhuhsoisdjfadb48003sdaa0
            - **Mandate_timestamp**:
              - Value: 2020-06-01T10:10:42Z
            - **Mandate_name**:
              - Value: merchant mandate
            - **Initiated_by**:
              - Value: PAYER
            - **Upi_request_id**:
              - Value: BJJ71f7d43bdf64d72d9saddfded
            - **Block_fund**:
              - Value: true
        - **Expiry**:
          - Value: 2016-11-24T19:00:00Z
        - **Amount**:
          - Value: 100.00


> **Note**
> Merchant can get multiple callbacks for the same event type till the transaction status reaches a terminal state. Terminal states for a transaction are SUCCESS, FAILURE, EXPIRED, DECLINED.




| Optional Fields | Constrains |
|---|---|
| recurrenceRule | It is not present if recurrencePattern is ONETIME, DAILY or ASPRESENTED. |
| recurrencValue |  It is not present if recurrencePattern is ONETIME, DAILY or ASPRESENTED. |
| payeeName | It will be present if role is PAYER |
| payerName | It will be present if role is PAYEE |
| udfParameters |  |




#### Code Snippets: -

#### Objective-C Code Snippet:

```objective-c
{
  "id": "evt_V2_99b99545a8ea471c9a33af80759b6502",
  "event_name": "MERCHANT_CUSTOMER_OUTGOING_MANDATE_PAUSED",
  "date_created": "2021-12-07T14:33:06Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "9962463212@BANK",
        "payer_name": "ABC",
        "payee_vpa": "test@BANK",
        "payee_name": "BANKTEST",
        "payee_mcc": "4121",
        "merchant_id": "BANK",
        "merchant_channel_id": "BANK"
      },
      "transaction": {
        "udf_parameters": "{}",
        "umn": "uniqueMandateNumber@bank",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "6138ne3wswbsssddc4dddc",
        "gateway_response_status": "SUCCESS",
        "gateway_response_code": "00",
        "gateway_reference_id": "809323430413"
      },
      "remarks": "Sample Remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Mandate is successfully paused",
      "merchant_customer_id": "DEMO-CUST-1234",
      "mandate": {
        "validity_start": "2020/06/04",
        "validity_end": "2020/06/05",
        "transaction_type": "UPI_MANDATE",
        "share_to_payee": true,
        "role": "PAYER",
        "recurrence_value": "5",
        "recurrence_rule": "ON",
        "recurrence_pattern": "MONTHLY",
        "payer_revocable": true,
        "pause_start": "2019/09/17",
        "pause_end": "2019/09/19",
        "org_mandate_id": "BJJMsleiuryufhuhsoisdjfadb48003sdaa0",
        "mandate_type": "PAUSE",
        "mandate_timestamp": "2020-06-01T10:10:42Z",
        "mandate_name": "merchant mandate",
        "initiated_by": "PAYER",
        "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "block_fund": true
      },
      "amount": "100.00"
    }
  }
}
```

#### Swift Code Snippet:

```swift
{
  "id": "evt_V2_99b99545a8ea471c9a33af80759b6502",
  "event_name": "MERCHANT_CUSTOMER_OUTGOING_MANDATE_PAUSED",
  "date_created": "2021-12-07T14:33:06Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "9962463212@BANK",
        "payer_name": "ABC",
        "payee_vpa": "test@BANK",
        "payee_name": "BANKTEST",
        "payee_mcc": "4121",
        "merchant_id": "BANK",
        "merchant_channel_id": "BANK"
      },
      "transaction": {
        "udf_parameters": "{}",
        "umn": "uniqueMandateNumber@bank",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "6138ne3wswbsssddc4dddc",
        "gateway_response_status": "SUCCESS",
        "gateway_response_code": "00",
        "gateway_reference_id": "809323430413"
      },
      "remarks": "Sample Remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Mandate is successfully paused",
      "merchant_customer_id": "DEMO-CUST-1234",
      "mandate": {
        "validity_start": "2020/06/04",
        "validity_end": "2020/06/05",
        "transaction_type": "UPI_MANDATE",
        "share_to_payee": true,
        "role": "PAYER",
        "recurrence_value": "5",
        "recurrence_rule": "ON",
        "recurrence_pattern": "MONTHLY",
        "payer_revocable": true,
        "pause_start": "2019/09/17",
        "pause_end": "2019/09/19",
        "org_mandate_id": "BJJMsleiuryufhuhsoisdjfadb48003sdaa0",
        "mandate_type": "PAUSE",
        "mandate_timestamp": "2020-06-01T10:10:42Z",
        "mandate_name": "merchant mandate",
        "initiated_by": "PAYER",
        "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "block_fund": true
      },
      "amount": "100.00"
    }
  }
}
```



### 1.13 Incoming Pre Payment Notification Mandate For Customer


Server sends a callback to the Payer to the url configured when pre-payment notification is received prior to mandate execution for the particular recurring cycle denoted by seqNumber.


### Payload
- **Id**:
  - Description: Event ID
  - Value: evt_V2_03c6ec0681124450b55cf92fa35df241
- **Event_name**:
  - Description: Server sends a callback to the Payer to the url configured when pre-payment notification is received prior to mandate execution for the particular recurring cycle denoted by seqNumber.
  - Value: MERCHANT_CUSTOMER_INCOMING_PRE_PAYMENT_NOTIFICATION_MANDATE_RECEIVED
- **Date_created**:
  - Description: timestamp when webhook was created
  - Value: 2021-12-07T13:46:40Z
- **Content**:
  - Description: Details of the event
  - Value:
    - **Merchant_customer**:
      - Value:
        - **Upi**:
          - Value:
            - **Upi_app**:
              - Value: YES_BIZ
            - **Merchant_id**:
              - Value: MERCHANT
            - **Merchant_channel_id**:
              - Value: MERCHANTAPP
        - **Transaction**:
          - Value:
            - **Umn**:
              - Value: uniqueMandateNumber@bank
            - **Merchant_request_id**:
              - Value: TXN1234567
            - **Seq_number**:
              - Value: 1
            - **Gateway_response_code**:
              - Value: 00
            - **Gateway_reference_id**:
              - Value: 806115044725
            - **Gateway_response_status**:
              - Value: SUCCESS
        - **Remarks**:
          - Value: This is remarks
        - **Payment_method_type**:
          - Value: UPI
        - **Payment_method**:
          - Value: UPI
        - **Message**:
          - Value: Mandate is successfully updated
        - **Merchant_customer_id**:
          - Value: DEMO-CUST-1234
        - **Mandate**:
          - Value:
            - **Org_mandate_id**:
              - Value: BJJMsleiuryufhuhsoisdjfadb48003sdaa0
            - **Gateway_mandate_id**:
              - Value: BJJ0f018ee5bc8b428fb979cb4a53ea9bde
            - **Next_execution**:
              - Value: 2017-06-09T12:27:49Z
        - **Amount**:
          - Value: 100.00


> **Note**
> Merchant can get multiple callbacks for the same event type till the transaction status reaches a terminal state. Terminal states for a transaction are SUCCESS, FAILURE, EXPIRED, DECLINED.




| Optional Fields | Constrains |
|---|---|
| recurrenceRule | It is not present if recurrencePattern is ONETIME, DAILY or ASPRESENTED. |
| recurrencValue |  It is not present if recurrencePattern is ONETIME, DAILY or ASPRESENTED. |
| payeeName | It will be present if role is PAYER |
| payerName | It will be present if role is PAYEE |
| udfParameters |  |




#### Code Snippets: -

#### Objective-C Code Snippet:

```objective-c
{
  "id": "evt_V2_f20bfac484f4456486e5a1e0bbd85776",
  "event_name": "MERCHANT_CUSTOMER_INCOMING_PRE_PAYMENT_NOTIFICATION_MANDATE_RECEIVED",
  "date_created": "2021-12-10T13:18:38Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "merchant_id": "MERCHANT",
        "merchant_channel_id": "MERCHANTAPP"
      },
      "transaction": {
        "umn": "customervpa@bank",
        "seq_number": "1",
        "merchant_request_id": "TXN1234567",
        "gateway_response_status": "SUCCESS",
        "gateway_response_code": "00",
        "gateway_reference_id": "809323430413"
      },
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "merchant_customer_id": "DEMO_CUST-1234",
      "mandate": {
        "org_mandate_id": "BJJ0f018ee5b832468779cb4a53ea9bde",
        "next_execution": "2017-06-09T12:27:49Z",
        "gateway_mandate_id": "BJJ0f018ee5bc8b428fb979cb4a53ea9bde"
      },
      "amount": "9.00"
    }
  }
}
```

#### Swift Code Snippet:

```swift
{
  "id": "evt_V2_f20bfac484f4456486e5a1e0bbd85776",
  "event_name": "MERCHANT_CUSTOMER_INCOMING_PRE_PAYMENT_NOTIFICATION_MANDATE_RECEIVED",
  "date_created": "2021-12-10T13:18:38Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "merchant_id": "MERCHANT",
        "merchant_channel_id": "MERCHANTAPP"
      },
      "transaction": {
        "umn": "customervpa@bank",
        "seq_number": "1",
        "merchant_request_id": "TXN1234567",
        "gateway_response_status": "SUCCESS",
        "gateway_response_code": "00",
        "gateway_reference_id": "809323430413"
      },
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "merchant_customer_id": "DEMO_CUST-1234",
      "mandate": {
        "org_mandate_id": "BJJ0f018ee5b832468779cb4a53ea9bde",
        "next_execution": "2017-06-09T12:27:49Z",
        "gateway_mandate_id": "BJJ0f018ee5bc8b428fb979cb4a53ea9bde"
      },
      "amount": "9.00"
    }
  }
}
```



### 1.14 Bank Account Linked By Customer


A callback with following POST data will be sent to the configured webhook URL.Event: **MERCHANT_CUSTOMER_LINKED_BANK_ACCOUNT** . (Only available on requests and approval from team)


### Payload
- **Id**:
  - Description: Event ID
  - Value: evt_V2_03c6ec0681124450b55cf92fa35df241
- **Event_name**:
  - Description: Server sends a callback to the Payer to the url configured when pre-payment notification is received prior to mandate execution for the particular recurring cycle denoted by seqNumber.
  - Value: MERCHANT_CUSTOMER_LINKED_BANK_ACCOUNT
- **Date_created**:
  - Description: timestamp when webhook was created
  - Value: 2021-12-07T13:46:40Z
- **Content**:
  - Description: Details of the event
  - Value:
    - **Merchant_customer**:
      - Value:
        - **Upi**:
          - Value:
            - **Upi_app**:
              - Value: YES_BIZ
            - **Bank_accounts**:
              - Description: Details of bank accounts
              - Value:
                - **Masked_account_number**:
                  - Description: Masked Bank Account number
                  - Value: xxxxxxx123045678
                - **Account_number**:
                  - Description: Bank Account number
                  - Value: 12345678921233
                - **Upi_bank_account_reference_id**:
                  - Description: Bank account reference Id
                  - Value: ABC123456789
                - **Bank_name**:
                  - Description: Bank Name
                  - Value: HDFC
                - **Bank_code**:
                  - Description: Bank Code
                  - Value: HDFC
                - **Juspay_bank_code**:
                  - Description: Juspay Bank Code
                  - Value: JP_HDFC
                - **Account_name**:
                  - Description: Customer Name
                  - Value: Jane Doe
                - **Account_type**:
                  - Description: Type of account
                  - Value: SAVINGS
            - **Tags**:
        - **Payment_method_type**:
          - Value: UPI
        - **Payment_method**:
          - Value: UPI
        - **Merchant_id**:
          - Description: Unique id for merchant
          - Value: stock
        - **Merchant_customer_id**:
          - Value: DEMO-CUST-1234
        - **Customer_mobile_numer**:
          - Description: Cutomer mobile number
          - Value: 9876543210




#### Code Snippets: -

#### Objective-C Code Snippet:

```objective-c
// block:start:incomingCollectRequestToCustomer

{
  "id": "evt_V2_03c6ec0681124450b55cf92fa35df241",
  "event_name": "MERCHANT_CUSTOMER_COLLECT_REQUEST_RECEIVED",
  "date_created": "2021-12-07T13:46:40Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "customer1@abc",
        "payer_merchant_customer_id": "DEMO-CUST-1234",
        "payee_vpa": "customer@xyz",
        "payee_name": "Customer Name",
        "payee_merchant_customer_id": "DEMO-CUST-5678",
        "payee_mcc": "4121",
        "merchant_id": "DEMOUAT01"
      },
      "transaction": {
        "umn": "DCR123be148c7ba3b14f6db5cde57c65ccf@bank",
        "seq_number": "1",
        "ref_url": "https://www.abcxyz.com/",
        "is_verified_payee": true,
        "is_marked_spam": true,
        "gateway_transaction_id": "XYZd0c077f39c454979...",
        "gateway_reference_id": "806115044725",
        "custom_response": "{}"
      },
      "remarks": "This is remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "merchant_customer_id": "DEMO-CUST-1234",
      "expiry": "2016-11-24T19:00:00Z",
      "date_created": "2016-11-24T18:30:00Z",
      "amount": "100.00"
    }
  }
}

// block:end:incomingCollectRequestToCustomer

// block:start:outgoingCollectRequestFromCustomer

{
  "id": "evt_V2_6051eb4f1dd545bb8ac82d80c86db763",
  "event_name": "MERCHANT_CUSTOMER_COLLECT_REQUEST_SENT",
  "date_created": "2021-12-07T13:53:50Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "customer1@abc",
        "payer_name": "Customer Name",
        "payee_vpa": "customer@xyz",
        "payee_mobile_number": "919876543210",
        "payee_merchant_customer_id": "DEMO-CUST-1234",
        "payee_mcc": "4121",
        "merchant_id": "DEMOUAT01",
        "merchant_channel_id": "DEMOUAT01",
        "masked_account_number": "XXXXXXX9988",
        "bank_code": "123456",
        "bank_account_unique_id": "4536baef...32cdba67"
      },
      "transaction": {
        "udf_parameters": "{}",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "TXN1234567",
        "gateway_transaction_id": "XYZd0c077f39c454979...",
        "gateway_response_code": "00",
        "gateway_reference_id": "806115044725",
        "custom_response": "{}"
      },
      "remarks": "This is remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Collect request sent successfully",
      "merchant_customer_id": "DEMO-CUST-1234",
      "expiry": "2016-11-24T19:00:00Z",
      "date_created": "2016-11-24T18:30:00Z",
      "amount": "100.00"
    }
  }
}

// block:end:outgoingCollectRequestFromCustomer

// block:start:incomingMoneyToCustomerPay

{
  "id": "evt_V2_fc893a0229b94a05bcac4e1d4ba31c47",
  "event_name": "MERCHANT_CUSTOMER_RECEIVED_MONEY",
  "date_created": "2021-12-07T13:51:16Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "customer@xyz",
        "payer_name": "Customer Name",
        "payee_vpa": "customer1@abc",
        "payee_mobile_number": "919812388554",
        "payee_merchant_customer_id": "DEMO-CUST-1234",
        "payee_mcc": "4121",
        "merchant_id": "DEMOUAT01",
        "masked_account_number": "XXXX123456",
        "bank_code": "123456",
        "bank_account_unique_id": "fb96f8b2b1ab0c070d0d894......"
      },
      "transaction": {
        "udf_parameters": "{}",
        "ref_url": "https://www.abcxyz.com/",
        "gateway_transaction_id": "XYZd0c077f39c454979...",
        "gateway_response_code": "00",
        "gateway_reference_id": "806115044725",
        "custom_response": "{}"
      },
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Transaction is approved",
      "merchant_customer_id": "DEMO-CUST-1234",
      "date_created": "2016-11-24T18:30:00Z",
      "amount": "100.00"
    }
  }
}

// block:end:incomingMoneyToCustomerPay

// block:start:outgoingMoneyFromCustomer

{
  "id": "evt_V2_764d477007844e0aa8728d1dc3e617f2",
  "event_name": "MERCHANT_CUSTOMER_DEBITED_VIA_PAY",
  "date_created": "2021-12-07T13:52:49Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "customer1@abc",
        "payer_mobile_number": "919812388554",
        "payer_merchant_customer_id": "DEMO-CUST-1234",
        "payee_vpa": "customer@xyz",
        "payee_name": "Customer Name",
        "payee_mcc": "4121",
        "merchant_id": "MERCHANT",
        "merchant_channel_id": "DEMOUATAPP",
        "masked_account_number": "XXXXXXX9988",
        "bank_code": "123456",
        "bank_account_unique_id": "4536baef...32cdba67"
      },
      "transaction": {
        "umn": "DCR123be148c7ba3b14f6db5cde57c65ccf@bank",
        "seq_number": "1",
        "udf_parameters": "{}",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "TXN1234567",
        "gateway_transaction_id": "DEMOUATAPP01TXNfo897fHVTiYq51739",
        "gateway_response_code": "00",
        "gateway_reference_id": "806115044725",
        "custom_response": "{}"
      },
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Transaction is approved",
      "merchant_customer_id": "DEMO-CUST-1234",
      "date_created": "2016-11-24T18:30:00Z",
      "amount": "10.00"
    }
  }
}

// block:end:outgoingMoneyFromCustomer

// block:start:incomingMoneyToCustomerCollect

{
  "id": "evt_V2_0d39b03ca2c64a8588947b71ecbc6ead",
  "event_name": "MERCHANT_CUSTOMER_CREDITED_VIA_COLLECT",
  "date_created": "2021-12-07T13:49:55Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "customer@xyz",
        "payer_name": "Customer Name",
        "payee_vpa": "customer1@abc",
        "payee_mobile_number": "919812388554",
        "payee_merchant_customer_id": "DEMO-CUST-1234",
        "payee_mcc": "4121",
        "merchant_id": "DEMOUAT01",
        "merchant_channel_id": "DEMOUATAPP",
        "masked_account_number": "XXXX123456",
        "bank_code": "123456",
        "bank_account_unique_id": "fb96f8b2b...1ab0c070d0d894"
      },
      "transaction": {
        "udf_parameters": "{}",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "TXN1234567",
        "gateway_transaction_id": "XYZd0c077...f39c454979",
        "gateway_response_code": "00",
        "gateway_reference_id": "806115044725",
        "custom_response": "{}"
      },
      "remarks": "Sample remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Transaction is approved",
      "merchant_customer_id": "DEMO-CUST-1234",
      "expiry": "2016-11-24T18:40:00Z",
      "date_created": "2016-11-24T18:30:00Z",
      "amount": "100.00"
    }
  }
}

// block:end:incomingMoneyToCustomerCollect

// block:start:incomingCreateMandateRequestForCustomer

{
  "id": "evt_V2_eb42521dd872424a84bace92ed050d94",
  "event_name": "MERCHANT_CUSTOMER_INCOMING_MANDATE_CREATE_REQUEST_RECEIVED",
  "date_created": "2021-12-10T12:28:10Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "9962463212@BANK",
        "payee_vpa": "test@BANK",
        "payee_name": "BANKTEST",
        "payee_mcc": "4121",
        "merchant_id": "BANK",
        "merchant_channel_id": "BANK"
      },
      "transaction": {
        "umn": "uniqueMandateNumber@BANK",
        "ref_url": "https://www.abcxyz.com/",
        "is_verified_payee": true,
        "is_marked_spam": true,
        "gateway_reference_id": "809323430413"
      },
      "remarks": "Sample Remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "merchant_customer_id": "DEMO-CUST-1234",
      "mandate": {
        "validity_start": "2020/06/04",
        "validity_end": "2020/06/05",
        "transaction_type": "UPI_MANDATE",
        "share_to_payee": true,
        "role": "PAYER",
        "recurrence_value": "5",
        "recurrence_rule": "ON",
        "recurrence_pattern": "MONTHLY",
        "payer_revocable": true,
        "org_mandate_id": "BJJMsleiuryufhuhsoisdjfadb48003sdaa0",
        "mandate_timestamp": "2020-06-01T10:10:42Z",
        "mandate_name": "merchant mandate",
        "initiated_by": "PAYER",
        "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "block_fund": true,
        "amount_rule": "VARIABLE"
      },
      "expiry": "2020-07-24T19:00:00Z",
      "amount": "100.00"
    }
  }
}

// block:end:incomingCreateMandateRequestForCustomer

// block:start:incomingCreateMandateForCustomer

{
  "id": "evt_V2_487dcbcb0bcb4052a015ce4d8a7ede7c",
  "event_name": "MERCHANT_CUSTOMER_INCOMING_MANDATE_CREATED",
  "date_created": "2021-12-07T14:27:30Z",
  "content": {
    "merchant_customer": {
      "payee_vpa": "test@BANK",
      "payee_name": "BANKTEST",
      "payee_mcc": "4121",
      "merchant_id": "BANK",
      "merchant_channel_id": "BANK",
      "masked_account_number": "XXXXXXX9988",
      "bank_code": "123456"
    },
    "transaction": {
      "udf_parameters": "{}",
      "umn": "uniqueMandateNumber@bank",
      "ref_url": "https://www.abcxyz.com/",
      "merchant_request_id": "6138ne3wswbsssddc4dddc",
      "gateway_response_status": "SUCCESS",
      "gateway_response_code": "00",
      "gateway_reference_id": "809323430413"
    },
    "remarks": "Sample Remarks",
    "payment_method_type": "UPI",
    "payment_method": "UPI",
    "message": "Mandate is successfully created",
    "merchant_customer_id": "DEMO-CUST-1234",
    "mandate": {
      "validity_start": "2020/06/04",
      "validity_end": "2020/06/05",
      "transaction_type": "UPI_MANDATE",
      "share_to_payee": true,
      "role": "PAYER",
      "recurrence_value": "5",
      "recurrence_rule": "ON",
      "recurrence_pattern": "MONTHLY",
      "payer_revocable": true,
      "org_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
      "mandate_timestamp": "2020-06-01T10:10:42Z",
      "mandate_name": "merchant mandate",
      "mandate_approval_timestamp": "2017-06-09T12:28:49Z",
      "initiated_by": "PAYEE",
      "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
      "block_fund": true,
      "amount_rule": "VARIABLE"
    },
    "expiry": "2020-07-24T19:00:00Z",
    "amount": "100.00"
  }
}
}

// block:end:incomingCreateMandateForCustomer

// block:start:outgoingCreateMandateFromCustomer

{
  "id": "evt_V2_487dcbcb0bcb4052a015ce4d8a7ede7c",
  "event_name": "MERCHANT_CUSTOMER_OUTGOING_MANDATE_CREATED",
  "date_created": "2021-12-07T14:27:30Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "9962463212@BANK",
        "payer_name": "ABC",
        "payee_vpa": "test@BANK",
        "payee_name": "BANKTEST",
        "payee_mcc": "4121",
        "merchant_id": "BANK",
        "merchant_channel_id": "BANK",
        "masked_account_number": "XXXXXXX9988",
        "bank_code": "123456"
      },
      "transaction": {
        "udf_parameters": "{}",
        "umn": "uniqueMandateNumber@bank",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "6138ne3wswbsssddc4dddc", //the txn uuid in transaction
        "gateway_response_status": "SUCCESS",
        "gateway_response_code": "00",
        "gateway_reference_id": "809323430413"
      },
      "remarks": "Sample Remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Mandate is successfully created",
      "merchant_customer_id": "DEMO-CUST-1234",
      "mandate": {
        "validity_start": "2020/06/04",
        "validity_end": "2020/06/05",
        "transaction_type": "UPI_MANDATE",
        "share_to_payee": true,
        "role": "PAYEE",
        "recurrence_value": "5",
        "recurrence_rule": "ON",
        "recurrence_pattern": "MONTHLY",
        "payer_revocable": true,
        "org_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "mandate_timestamp": "2020-06-01T10:10:42Z",
        "mandate_name": "merchant mandate",
        "mandate_approval_timestamp": "2017-06-09T12:28:49Z",
        "initiated_by": "PAYER",
        "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "block_fund": true,
        "amount_rule": "FIXED"
      },
      "expiry": "2020-07-24T19:00:00Z",
      "amount": "100.00"
    }
  }
}

// block:end:outgoingCreateMandateFromCustomer

// block:start:incomingUpdateMandateRequestForCustomer

{
  "id": "evt_V2_912b61c9770c4049a73badb1b8ef806a",
  "event_name": "MERCHANT_CUSTOMER_INCOMING_MANDATE_UPDATE_REQUEST_RECEIVED",
  "date_created": "2021-12-07T14:29:47Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "9962463212@BANK",
        "payer_name": "ABC",
        "payee_vpa": "test@BANK",
        "payee_name": "BANKTEST",
        "payee_mcc": "4121",
        "merchant_id": "BANK",
        "merchant_channel_id": "BANK"
      },
      "transaction": {
        "umn": "uniqueMandateNumber@bank",
        "ref_url": "https://www.abcxyz.com/",
        "gateway_reference_id": "809323430413"
      },
      "remarks": "Sample Remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "merchant_customer_id": "DEMO-CUST-1234",
      "mandate": {
        "validity_start": "2020/06/04",
        "validity_end": "2020/06/05",
        "transaction_type": "UPI_MANDATE",
        "share_to_payee": true,
        "role": "PAYER",
        "recurrence_value": "5",
        "recurrence_rule": "ON",
        "recurrence_pattern": "MONTHLY",
        "payer_revocable": true,
        "org_mandate_id": "BJJMsleiuryufhuhsoisdjfadb48003sdaa0",
        "mandate_type": "UPDATE",
        "mandate_timestamp": "2020-06-01T10:10:42Z",
        "mandate_name": "merchant mandate",
        "initiated_by": "PAYER",
        "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "block_fund": true,
        "amount_rule": "VARIABLE"
      },
      "expiry": "2020-07-24T19:00:00Z",
      "amount": "100.00"
    }
  }
}

// block:end:incomingUpdateMandateRequestForCustomer

// block:start:incomingUpdateMandateForCustomer

{
  "id": "evt_V2_793089c9a7234c1080b8a1137a7a2be8",
  "event_name": "MERCHANT_CUSTOMER_INCOMING_MANDATE_UPDATED",
  "date_created": "2021-12-07T14:31:02Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "9962463212@BANK",
        "payer_name": "ABC",
        "payee_vpa": "test@BANK",
        "payee_name": "BANKTEST",
        "payee_mcc": "4121",
        "merchant_id": "BANK",
        "merchant_channel_id": "BANK"
      },
      "transaction": {
        "udf_parameters": "{}",
        "umn": "uniqueMandateNumber@bank",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "6138ne3wswbsssddc4dddc",
        "gateway_response_status": "SUCCESS",
        "gateway_response_code": "00",
        "gateway_reference_id": "809323430413"
      },
      "remarks": "Sample Remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Mandate is successfully updated",
      "merchant_customer_id": "DEMO-CUST-1234",
      "mandate": {
        "validity_start": "2020/06/04",
        "validity_end": "2020/06/05",
        "transaction_type": "UPI_MANDATE",
        "share_to_payee": true,
        "role": "PAYER",
        "recurrence_value": "5",
        "recurrence_rule": "ON",
        "recurrence_pattern": "MONTHLY",
        "payer_revocable": true,
        "org_mandate_id": "BJJMsleiuryufhuhsoisdjfadb48003sdaa0",
        "mandate_type": "UPDATE",
        "mandate_timestamp": "2020-06-01T10:10:42Z",
        "mandate_name": "merchant mandate",
        "initiated_by": "PAYER",
        "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "block_fund": true
      },
      "expiry": "2020-07-24T19:00:00Z",
      "amount": "100.00"
    }
  }
}

// block:end:incomingUpdateMandateForCustomer

// block:start:outgoingUpdateMandateFromCustomer

{
  "id": "evt_V2_793089c9a7234c1080b8a1137a7a2be8",
  "event_name": "MERCHANT_CUSTOMER_OUTGOING_MANDATE_UPDATED",
  "date_created": "2021-12-07T14:31:02Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "9962463212@BANK",
        "payer_name": "ABC",
        "payee_vpa": "test@BANK",
        "payee_name": "BANKTEST",
        "payee_mcc": "4121",
        "merchant_id": "BANK",
        "merchant_channel_id": "BANK"
      },
      "transaction": {
        "udf_parameters": "{}",
        "umn": "uniqueMandateNumber@bank",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "6138ne3wswbsssddc4dddc",
        "gateway_response_status": "SUCCESS",
        "gateway_response_code": "00",
        "gateway_reference_id": "809323430413"
      },
      "remarks": "Sample Remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Mandate is successfully updated",
      "merchant_customer_id": "DEMO-CUST-1234",
      "mandate": {
        "validity_start": "2020/06/04",
        "validity_end": "2020/06/05",
        "transaction_type": "UPI_MANDATE",
        "share_to_payee": true,
        "role": "PAYER",
        "recurrence_value": "5",
        "recurrence_rule": "ON",
        "recurrence_pattern": "MONTHLY",
        "payer_revocable": true,
        "org_mandate_id": "BJJMsleiuryufhuhsoisdjfadb48003sdaa0",
        "mandate_type": "UPDATE",
        "mandate_timestamp": "2020-06-01T10:10:42Z",
        "mandate_name": "merchant mandate",
        "initiated_by": "PAYER",
        "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "block_fund": true
      },
      "expiry": "2020-07-24T19:00:00Z",
      "amount": "100.00"
    }
  }
}

// block:end:outgoingUpdateMandateFromCustomer

// block:start:outgoingPauseMandateFromCustomer

{
  "id": "evt_V2_99b99545a8ea471c9a33af80759b6502",
  "event_name": "MERCHANT_CUSTOMER_OUTGOING_MANDATE_PAUSED",
  "date_created": "2021-12-07T14:33:06Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "9962463212@BANK",
        "payer_name": "ABC",
        "payee_vpa": "test@BANK",
        "payee_name": "BANKTEST",
        "payee_mcc": "4121",
        "merchant_id": "BANK",
        "merchant_channel_id": "BANK"
      },
      "transaction": {
        "udf_parameters": "{}",
        "umn": "uniqueMandateNumber@bank",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "6138ne3wswbsssddc4dddc",
        "gateway_response_status": "SUCCESS",
        "gateway_response_code": "00",
        "gateway_reference_id": "809323430413"
      },
      "remarks": "Sample Remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Mandate is successfully paused",
      "merchant_customer_id": "DEMO-CUST-1234",
      "mandate": {
        "validity_start": "2020/06/04",
        "validity_end": "2020/06/05",
        "transaction_type": "UPI_MANDATE",
        "share_to_payee": true,
        "role": "PAYER",
        "recurrence_value": "5",
        "recurrence_rule": "ON",
        "recurrence_pattern": "MONTHLY",
        "payer_revocable": true,
        "pause_start": "2019/09/17",
        "pause_end": "2019/09/19",
        "org_mandate_id": "BJJMsleiuryufhuhsoisdjfadb48003sdaa0",
        "mandate_type": "PAUSE",
        "mandate_timestamp": "2020-06-01T10:10:42Z",
        "mandate_name": "merchant mandate",
        "initiated_by": "PAYER",
        "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "block_fund": true
      },
      "amount": "100.00"
    }
  }
}

// block:end:outgoingPauseMandateFromCustomer

// block:start:incomingPrePaymentNotificationMandateForCustomer

{
  "id": "evt_V2_f20bfac484f4456486e5a1e0bbd85776",
  "event_name": "MERCHANT_CUSTOMER_INCOMING_PRE_PAYMENT_NOTIFICATION_MANDATE_RECEIVED",
  "date_created": "2021-12-10T13:18:38Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "merchant_id": "MERCHANT",
        "merchant_channel_id": "MERCHANTAPP"
      },
      "transaction": {
        "umn": "customervpa@bank",
        "seq_number": "1",
        "merchant_request_id": "TXN1234567",
        "gateway_response_status": "SUCCESS",
        "gateway_response_code": "00",
        "gateway_reference_id": "809323430413"
      },
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "merchant_customer_id": "DEMO_CUST-1234",
      "mandate": {
        "org_mandate_id": "BJJ0f018ee5b832468779cb4a53ea9bde",
        "next_execution": "2017-06-09T12:27:49Z",
        "gateway_mandate_id": "BJJ0f018ee5bc8b428fb979cb4a53ea9bde"
      },
      "amount": "9.00"
    }
  }
}

// block:end:incomingPrePaymentNotificationMandateForCustomer

//block:start:complaintRaised

{
  "event_name": "MERCHANT_CUSTOMER_COMPLAINT_RAISED",
  "content": {
    "merchant_customer": {
      "upi": {
        "payer_mobile_number": "9876543210",
        "upi_app": "YES_BIZ",
        "merchant_channel_id": "TESTAPP",
        "payer_vpa": "123454306@upi",
        "merchant_id": "TEST",
        "payee_vpa": "83746598743@upi"
      },
      "amount": "1.00",
      "payment_method": "UPI",
      "payment_method_type": "UPI",
      "gateway_webhook_payload": {
        "payer_mobile_number": "919988776655",
        "req_adj_code": "U010",
        "gateway_response_status": "SUCCESS",
        "transaction_amount": "1.00",
        "req_adj_flag": "PBRB",
        "gateway_response_message": "Complaint is Raised",
        "org_resp_code": "RR",
        "merchant_customer_id": "test-merchantcustomer-1",
        "original_transaction_timestamp": "2021-08-12T22:50:00+05:30",
        "gateway_response_code": "00",
        "merchant_channel_id": "TESTAPP",
        "payer_vpa": "123454306@upi",
        "crn": "302570532",
        "original_gateway_transaction_id": "AIX699393106f865d1a9467c59725789tgh",
        "gateway_complaint_id": "AIX699393106f865d1a9467c59725789tgh",
        "req_adj_amount": "0.50",
        "merchant_id": "TEST",
        "payee_vpa": "83746598743@upi",
        "type": "CUSTOMER_COMPLAINT_RAISED",
        "remarks": "Goods not received"
      },
      "complaint": {
        "adj_flag": "PBRB",
        "gateway_response_status": "SUCCESS",
        "transaction_amount": "1.00",
        "adj_code": "U010",
        "original_transaction_timestamp": "2021-08-12T17:20:00Z",
        "gateway_response_code": "00",
        "adj_amount": "0.50",
        "crn": "302570532",
        "original_gateway_transaction_id": "AIX699393106f865d1a9467c59725789tgh",
        "gateway_complaint_id": "AIX699393106f865d1a9467c59725789tgh"
      },
      "message": "Complaint is Raised",
      "remarks": "Goods not received"
    }
  },
  "id": "evt_V2_0342cf251aa9460ba6500e0b7fe9aef3",
  "date_created": "2023-02-09T10:17:56Z"
}

// block:end:complaintRaised

//block:start:complaintResolved

{
  "id": "evt_V2_5049b27bcc264930b45c8d25a398f665",
  "event_name": "MERCHANT_CUSTOMER_COMPLAINT_RESOLVED",
  "date_created": "2022-03-30T21:23:39Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "merchant_channel_id": "TESTAPP",
        "merchant_id": "TEST",
        "upi_app": "AXIS_BIZ",
        "payer_vpa": "123454306@axb",
        "payee_vpa": "83746598743@axb"
      },
      "remarks": "Goods not received",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Complaint is Resolved",
      "merchant_customer_id": "test-merchantcustomer-1",
      "customer_mobile_number": "919988776655",
      "complaint": {
        "gateway_response_status": "SUCCESS",
        "gateway_complaint_id": "AIX699393106f865d1a9467c59725789tgh",
        "adj_code": "U010",
        "org_sett_resp_code": "RR",
        "custom_response": "{}",
        "original_transaction_timestamp": "2021-08-12T17:20:00Z",
        "adj_flag": "PBRB",
        "gateway_response_code": "00",
        "gateway_reference_id": "123456",
        "crn": "302570532",
        "transaction_amount": "1.00",
        "original_gateway_transaction_id": "AIX699393106f865d1a9467c59725789tgh",
        "adj_amount": "0.50",
        "curr_cycle": "Y"
      }
    }
  }
}

// block:end:complaintResolved

//block:start:txnCreated

{
  "id": "evt_V2_5c08a08095ea4279ad28347241678c0b",
  "event_name": "TXN_CREATED",
  "date_created": "2022-01-28T09:14:52Z",
  "content": {
    "order": {
      "upi": {
        "upi_bank_account_reference_id": "Afeb13dcb1c14e7eb0a2dba7ad8b2b",
        "txn_type": "UPI_INAPP",
        "payer_vpa": "8088219177@sliceaxis",
        "payer_app": "AXIS_BIZ",
        "masked_bank_account_number": "XXXXXXX20000",
        "bank_name": "MYPSP",
        "bank_code": "500001"
      },
      "udf9": "",
      "udf8": "",
      "udf7": "",
      "udf6": "",
      "udf5": "",
      "udf4": "",
      "udf3": "",
      "udf2": "",
      "udf10": "",
      "udf1": "",
      "txn_uuid": "eulwh64Rw6dQSNBUZUE",
      "txn_id": "slice-R7648276171-1",
      "txn_detail": {
        "txn_uuid": "eulwh64Rw6dQSNBUZUE",
        "txn_id": "slice-R7648276171-1",
        "txn_amount": 10000,
        "tax_amount": 0,
        "surcharge_amount": 0,
        "status": "PENDING_VBV",
        "redirect": true,
        "order_id": "R7648276171",
        "net_amount": 10000,
        "gateway_id": 511,
        "gateway": "AXIS_BIZ",
        "express_checkout": false,
        "error_message": "",
        "error_code": null,
        "currency": "INR",
        "created": "2022-01-28T09:14:52Z"
      },
      "status_id": 23,
      "status": "PENDING_VBV",
      "rewards_breakup": null,
      "return_url": "https://links.slicepay.in/repayments",
      "refunded": false,
      "product_id": "",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_links": {
        "web": "https://sandbox.juspay.in/merchant/pay/ordeu_f07e1293e5684eb5ae815dbf6c998644",
        "mobile": "https://sandbox.juspay.in/merchant/pay/ordeu_f07e1293e5684eb5ae815dbf6c998644?mobile=true",
        "iframe": "https://sandbox.juspay.in/merchant/ipay/ordeu_f07e1293e5684eb5ae815dbf6c998644"
      },
      "payer_vpa": "8088219177@sliceaxis",
      "order_id": "R7648276171",
      "offers": [

      ],
      "metadata": null,
      "merchant_id": "slice",
      "id": "ordeu_f07e1293e5684eb5ae815dbf6c998644",
      "gateway_reference_id": null,
      "gateway_id": 511,
      "effective_amount": 10000,
      "date_created": "2022-01-28T09:14:51Z",
      "customer_phone": "",
      "customer_id": "8088219177",
      "customer_email": null,
      "currency": "INR",
      "bank_pg": null,
      "bank_error_message": "",
      "bank_error_code": "",
      "auth_type": "",
      "amount_refunded": 0,
      "amount": 10000
    }
  }
}

//block:end:txnCreated

//block:start:txnCharged

{
  "id": "evt_V2_0605110330aa49cea64215d095bf050b",
  "event_name": "TXN_CHARGED",
  "date_created": "2022-01-28T09:15:04Z",
  "content": {
    "txn": {
      "txn_uuid": "eulwh64Rw6dQSNBUZUE",
      "txn_id": "slice-R7648276171-1",
      "txn_amount": 10000,
      "tax_amount": 0,
      "surcharge_amount": 0,
      "status_id": 21,
      "status": "CHARGED",
      "redirect": true,
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_gateway_response": {
        "txn_id": "eulwh64Rw6dQSNBUZUE",
        "rrn": "202814207184",
        "resp_message": "Your transaction is successful",
        "resp_code": "00",
        "epg_txn_id": "AXB22f8d0fafdf9455bb9d7b657c2ab14e4",
        "created": "2022-01-28T09:15:04Z",
        "auth_id_code": null
      },
      "order_id": "R7648276171",
      "net_amount": 10000,
      "gateway_id": 511,
      "gateway": "AXIS_BIZ",
      "express_checkout": false,
      "error_message": "",
      "error_code": "",
      "currency": "INR",
      "created": "2022-01-28T09:14:52Z"
    }
  }
}

//block:end:txnCharged

//block:start:orderSucceeded

{
  "id": "evt_V2_45dca165c3364d2db56f2df48fac2f7a",
  "event_name": "ORDER_SUCCEEDED",
  "date_created": "2022-01-28T09:15:04Z",
  "content": {
    "order": {
      "upi": {
        "upi_bank_account_reference_id": "Afeb13dcb1c14e7eb0a2dba7ad8b2b",
        "txn_type": "UPI_INAPP",
        "payer_vpa": "8088219177@sliceaxis",
        "payer_app": "AXIS_BIZ",
        "masked_bank_account_number": "XXXXXXX20000",
        "bank_name": "MYPSP",
        "bank_code": "500001"
      },
      "udf9": "",
      "udf8": "",
      "udf7": "",
      "udf6": "",
      "udf5": "",
      "udf4": "",
      "udf3": "",
      "udf2": "",
      "udf10": "",
      "udf1": "",
      "txn_uuid": "eulwh64Rw6dQSNBUZUE",
      "txn_id": "slice-R7648276171-1",
      "txn_detail": {
        "txn_uuid": "eulwh64Rw6dQSNBUZUE",
        "txn_id": "slice-R7648276171-1",
        "txn_amount": 10000,
        "tax_amount": 0,
        "surcharge_amount": 0,
        "status": "CHARGED",
        "redirect": true,
        "order_id": "R7648276171",
        "net_amount": 10000,
        "gateway_id": 511,
        "gateway": "AXIS_BIZ",
        "express_checkout": false,
        "error_message": "",
        "error_code": "",
        "currency": "INR",
        "created": "2022-01-28T09:14:52Z"
      },
      "status_id": 21,
      "status": "CHARGED",
      "rewards_breakup": null,
      "return_url": "https://links.slicepay.in/repayments",
      "refunded": false,
      "product_id": "",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_links": {
        "web": "https://sandbox.juspay.in/merchant/pay/ordeu_f07e1293e5684eb5ae815dbf6c998644",
        "mobile": "https://sandbox.juspay.in/merchant/pay/ordeu_f07e1293e5684eb5ae815dbf6c998644?mobile=true",
        "iframe": "https://sandbox.juspay.in/merchant/ipay/ordeu_f07e1293e5684eb5ae815dbf6c998644"
      },
      "payment_gateway_response": {
        "txn_id": "eulwh64Rw6dQSNBUZUE",
        "rrn": "202814207184",
        "resp_message": "Your transaction is successful",
        "resp_code": "00",
        "gateway_response": {
          "merchantChannelId": "SLICEAPP",
          "amount": "10000.00",
          "merchantId": "SLICE",
          "gatewayResponseMessage": "Your transaction is successful",
          "payerVpa": "8088219177@sliceaxis",
          "merchantRequestId": "eulwh64Rw6dQSNBUZUE",
          "gatewayResponseCode": "00",
          "gatewayReferenceId": "202814207184",
          "gatewayTransactionId": "AXB22f8d0fafdf9455bb9d7b657c2ab14e4",
          "payeeVpa": "repayments@sliceaxis",
          "transactionTimestamp": "2022-01-28T14:44:51+05:30",
          "udfParameters": "{}",
          "type": "MERCHANT_CREDITED_VIA_PAY"
        },
        "epg_txn_id": "AXB22f8d0fafdf9455bb9d7b657c2ab14e4",
        "created": "2022-01-28T09:15:04Z",
        "auth_id_code": null
      },
      "payer_vpa": "8088219177@sliceaxis",
      "order_id": "R7648276171",
      "offers": [

      ],
      "metadata": null,
      "merchant_id": "slice",
      "id": "ordeu_f07e1293e5684eb5ae815dbf6c998644",
      "gateway_reference_id": null,
      "gateway_id": 511,
      "effective_amount": 10000,
      "date_created": "2022-01-28T09:14:51Z",
      "customer_phone": "",
      "customer_id": "8088219177",
      "customer_email": null,
      "currency": "INR",
      "bank_pg": null,
      "bank_error_message": "",
      "bank_error_code": "",
      "auth_type": "",
      "amount_refunded": 0,
      "amount": 10000
    }
  }
}

//block:end:orderSucceeded

//block:start:txnFailed

{
  "id": "evt_V2_311d1b273a084b06bfd957e01293f8ce",
  "event_name": "TXN_FAILED",
  "date_created": "2022-01-28T09:16:46Z",
  "content": {
    "txn": {
      "txn_uuid": "eul2PiJnWLDUnC9SKr2",
      "txn_id": "slice-R670115430-1",
      "txn_amount": 200001,
      "tax_amount": 0,
      "surcharge_amount": 0,
      "status_id": 26,
      "status": "AUTHENTICATION_FAILED",
      "redirect": true,
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_gateway_response": {
        "txn_id": "eul2PiJnWLDUnC9SKr2",
        "rrn": "202814514190",
        "resp_message": "Bank is taking too long to respond. Please try again!",
        "resp_code": "U09",
        "epg_txn_id": "AXB961f2e31e3614bdca113b3a9959092cd",
        "created": "2022-01-28T09:16:46Z",
        "auth_id_code": null
      },
      "order_id": "R670115430",
      "net_amount": 200001,
      "gateway_id": 511,
      "gateway": "AXIS_BIZ",
      "express_checkout": false,
      "error_message": "Bank is taking too long to respond. Please try again!",
      "error_code": "U09",
      "currency": "INR",
      "created": "2022-01-28T09:16:23Z"
    }
  }
}

//block:end:txnFailed

//block:start:orderFailed

{
  "id": "evt_V2_adedb85fc8d7404ab5c044a25ca1303f",
  "event_name": "ORDER_FAILED",
  "date_created": "2022-01-28T09:16:46Z",
  "content": {
    "order": {
      "upi": {
        "upi_bank_account_reference_id": "Afeb13dcb1c14e7eb0a2dba7ad8b2b",
        "txn_type": "UPI_INAPP",
        "payer_vpa": "8088219177@sliceaxis",
        "payer_app": "AXIS_BIZ",
        "masked_bank_account_number": "XXXXXXX20000",
        "bank_name": "MYPSP",
        "bank_code": "500001"
      },
      "udf9": "",
      "udf8": "",
      "udf7": "",
      "udf6": "",
      "udf5": "",
      "udf4": "",
      "udf3": "",
      "udf2": "",
      "udf10": "",
      "udf1": "",
      "txn_uuid": "eul2PiJnWLDUnC9SKr2",
      "txn_id": "slice-R670115430-1",
      "txn_detail": {
        "txn_uuid": "eul2PiJnWLDUnC9SKr2",
        "txn_id": "slice-R670115430-1",
        "txn_amount": 200001,
        "tax_amount": 0,
        "surcharge_amount": 0,
        "status": "AUTHENTICATION_FAILED",
        "redirect": true,
        "order_id": "R670115430",
        "net_amount": 200001,
        "gateway_id": 511,
        "gateway": "AXIS_BIZ",
        "express_checkout": false,
        "error_message": "Bank is taking too long to respond. Please try again!",
        "error_code": "U09",
        "currency": "INR",
        "created": "2022-01-28T09:16:23Z"
      },
      "status_id": 26,
      "status": "AUTHENTICATION_FAILED",
      "rewards_breakup": null,
      "return_url": "https://links.slicepay.in/repayments",
      "refunded": false,
      "product_id": "",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_links": {
        "web": "https://sandbox.juspay.in/merchant/pay/ordeu_a9d8fc9ee3a9497da961537fc045f66e",
        "mobile": "https://sandbox.juspay.in/merchant/pay/ordeu_a9d8fc9ee3a9497da961537fc045f66e?mobile=true",
        "iframe": "https://sandbox.juspay.in/merchant/ipay/ordeu_a9d8fc9ee3a9497da961537fc045f66e"
      },
      "payment_gateway_response": {
        "txn_id": "eul2PiJnWLDUnC9SKr2",
        "rrn": "202814514190",
        "resp_message": "Bank is taking too long to respond. Please try again!",
        "resp_code": "U09",
        "gateway_response": {
          "merchantChannelId": "SLICEAPP",
          "amount": "200001.00",
          "merchantId": "SLICE",
          "gatewayResponseMessage": "Bank is taking too long to respond. Please try again!",
          "payerVpa": "8088219177@sliceaxis",
          "merchantRequestId": "eul2PiJnWLDUnC9SKr2",
          "gatewayResponseCode": "U09",
          "gatewayReferenceId": "202814514190",
          "gatewayTransactionId": "AXB961f2e31e3614bdca113b3a9959092cd",
          "payeeVpa": "repayments@sliceaxis",
          "transactionTimestamp": "2022-01-28T14:46:20+05:30",
          "udfParameters": "{}",
          "type": "MERCHANT_CREDITED_VIA_PAY"
        },
        "epg_txn_id": "AXB961f2e31e3614bdca113b3a9959092cd",
        "created": "2022-01-28T09:16:46Z",
        "auth_id_code": null
      },
      "payer_vpa": "8088219177@sliceaxis",
      "order_id": "R670115430",
      "offers": [

      ],
      "metadata": null,
      "merchant_id": "slice",
      "id": "ordeu_a9d8fc9ee3a9497da961537fc045f66e",
      "gateway_reference_id": null,
      "gateway_id": 511,
      "effective_amount": 200001,
      "date_created": "2022-01-28T09:16:22Z",
      "customer_phone": "",
      "customer_id": "8088219177",
      "customer_email": null,
      "currency": "INR",
      "bank_pg": null,
      "bank_error_message": "Bank is taking too long to respond. Please try again!",
      "bank_error_code": "U09",
      "auth_type": "",
      "amount_refunded": 0,
      "amount": 200001
    }
  }
}

//block:end:orderFailed

//block:end:bankAccountLinkedByCustomer

{
  "id": "evt_gsu1c0r7umcfrxeb",
  "date_created": "2021-05-05T10:42:25Z",
  "event_name": "MERCHANT_CUSTOMER_LINKED_BANK_ACCOUNT",
  "content": {
	"merchant_customer": {
            "payment_method_type" : "UPI",
            "payment_method" : "UPI",
            "merchant_id" : "Slice",
            "merchant_customer_id": "DEMO-CUST-1234",
            "customer_mobile_numer": "91xxxxxxxxxx",
            "upi" : {
             "upi_app" : "YES_BIZ",
             "bank_accounts" : [{
	         "masked_account_number" : "xxxxxxx123045678",
                "account_number" : "12345678921233",
                "ifsc_code": "HDFC012345",
                "upi_bank_account_reference_id": "Unique id",
                "bank_name": "HDFC",
                "bank_code": "HDFC",
                "juspay_bank_code": "JP_HDFC",
                "account_name": "Customer Name",
                "account_type": "SAVINGS"
            } ]
          }
        }
    }
}

//block:end:bankAccountLinkedByCustomer

//block:end:merchantCustomerPortedUpiNumber

{
  "id": "evt_gsu1c0r7umcfrxeb",
  "date_created": "2021-05-05T10:42:25Z",
  "event_name": "MERCHANT_CUSTOMER_PORTED_UPI_NUMBER",
  "content": {
	  "merchant_customer": {
    }
  }
}

//block:end:merchantCustomerPortedUpiNumber

//block:start:mandateCallback

{
   "id": "evt_V2_4b83ba211443b53fc020d4c",
   "event_name": "ORDER_SUCCEEDED",
   "date_created": "2021-03-20T07:48:31Z",
   "content": {
     "order": {
       "udf8": "",
       "udf7": "",
       "udf6": "",
       "udf5": "",
       "udf4": "",
       "udf3": "",
       "udf2": "",
       "udf10": "",
       "udf1": "",
       "txn_uuid": "eulmy******y1Syy",
       "txn_id": "juspay-2348******3498-1",
       "txn_detail": {
         "txn_uuid": "eulmy******y1Syy",
         "txn_object_type": "EMANDATE_REGISTER",
         "txn_id": "juspay-2348******3498-1",
         "txn_amount": 1,
         "tax_amount": null,
         "surcharge_amount": null,
         "status": "CHARGED",
         "source_object_id": "91887",
         "source_object": "MANDATE",
         "redirect": true,
         "order_id": "2348******3498",
         "net_amount": 1,
         "gateway_id": 19,
         "gateway": "YES_BIZ",
         "express_checkout": false,
         "error_message": "",
         "error_code": "",
         "currency": "INR",
         "created": "2020-08-30T09:53:17Z"
       },
       "status_id": 21,
       "status": "CHARGED",
       "refunded": false,
       "product_id": "",
       "payment_method_type": "UPI",
       "payment_method": "UPI",
       "payment_links": {
         "web": "https://sandbox.juspay.in/merchant/pay/ordeu_9a092980*******4d0206",
         "mobile": "https://sandbox.juspay.in/merchant/pay/ordeu_9a092980*******4d0206?mobile=true",
         "iframe": "https://sandbox.juspay.in/merchant/ipay/ordeu_9a092980*******4d0206"
       },
       "upi": {
           "txn_flow_type" : "INAPP",
           "masked_bank_account_number": "4XXXXXXXX2323",
           "bank_name": "HDFC bank",
           "bank_code": "HDFC",
           "upi_bank_account_reference_id": "A0760cb548bb4dda9d32e3030863dd5",
           "payer_vpa" : "customer@vpa",
           "payer_app" : "AXIS_UPI",
       },
       "payment_gateway_response":  {
            "resp_code": "00",
            "rrn": null,
            "created": "2021-08-17T13:44:21Z",
            "epg_txn_id": "YJP9999rv9999a99c19a4877ede7954984e",// Its the orgMandateId . Common ID between Juspay and NPCI .
            "resp_message": "Your transaction is successful",
            "auth_id_code": null,
            "txn_id": "eul7yc7TReHhAyNVsGp"
       },
       "payer_vpa" : "customer@vpa",
       "order_id": "2348******3498",
       "merchant_id": "juspay",
       "mandate": {
         "start_date": "1598745600",
         "rule_value": 30,
         "rule_type": "AFTER",
         "revokable_by_customer": true,
         "max_amount": 1000,
         "mandate_type": "EMANDATE",
         "mandate_token": "ad1d221******0f3",
         "mandate_status": "ACTIVE",
         "mandate_id": "3XMEcS******Ybzj", // common id between Groww and Juspay
         "frequency": "MONTHLY",
         "end_date": "160***10",
         "block_fund": false,
         "amount_rule": "VARIABLE"
       },
       "id": "ordeu_9a092980*******4d0206",
       "gateway_reference_id": "upimandate",
       "gateway_id": 514,
       "date_created": "2020-08-30T09:47:46Z",
       "customer_phone": "9999999999",
       "customer_id": "cst_lz*****okv",
       "customer_email": "customer@gmail.com",
       "currency": "INR",
       "bank_error_message": "",
       "bank_error_code": "",
       "amount_refunded": 0,
       "amount": 1
     }
   }
 }

//block:end:mandateCallback
```

#### Swift Code Snippet:

```swift
// block:start:incomingCollectRequestToCustomer

{
  "id": "evt_V2_03c6ec0681124450b55cf92fa35df241",
  "event_name": "MERCHANT_CUSTOMER_COLLECT_REQUEST_RECEIVED",
  "date_created": "2021-12-07T13:46:40Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "customer1@abc",
        "payer_merchant_customer_id": "DEMO-CUST-1234",
        "payee_vpa": "customer@xyz",
        "payee_name": "Customer Name",
        "payee_merchant_customer_id": "DEMO-CUST-5678",
        "payee_mcc": "4121",
        "merchant_id": "DEMOUAT01"
      },
      "transaction": {
        "umn": "DCR123be148c7ba3b14f6db5cde57c65ccf@bank",
        "seq_number": "1",
        "ref_url": "https://www.abcxyz.com/",
        "is_verified_payee": true,
        "is_marked_spam": true,
        "gateway_transaction_id": "XYZd0c077f39c454979...",
        "gateway_reference_id": "806115044725",
        "custom_response": "{}"
      },
      "remarks": "This is remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "merchant_customer_id": "DEMO-CUST-1234",
      "expiry": "2016-11-24T19:00:00Z",
      "date_created": "2016-11-24T18:30:00Z",
      "amount": "100.00"
    }
  }
}

// block:end:incomingCollectRequestToCustomer

// block:start:outgoingCollectRequestFromCustomer

{
  "id": "evt_V2_6051eb4f1dd545bb8ac82d80c86db763",
  "event_name": "MERCHANT_CUSTOMER_COLLECT_REQUEST_SENT",
  "date_created": "2021-12-07T13:53:50Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "customer1@abc",
        "payer_name": "Customer Name",
        "payee_vpa": "customer@xyz",
        "payee_mobile_number": "919876543210",
        "payee_merchant_customer_id": "DEMO-CUST-1234",
        "payee_mcc": "4121",
        "merchant_id": "DEMOUAT01",
        "merchant_channel_id": "DEMOUAT01",
        "masked_account_number": "XXXXXXX9988",
        "bank_code": "123456",
        "bank_account_unique_id": "4536baef...32cdba67"
      },
      "transaction": {
        "udf_parameters": "{}",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "TXN1234567",
        "gateway_transaction_id": "XYZd0c077f39c454979...",
        "gateway_response_code": "00",
        "gateway_reference_id": "806115044725",
        "custom_response": "{}"
      },
      "remarks": "This is remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Collect request sent successfully",
      "merchant_customer_id": "DEMO-CUST-1234",
      "expiry": "2016-11-24T19:00:00Z",
      "date_created": "2016-11-24T18:30:00Z",
      "amount": "100.00"
    }
  }
}

// block:end:outgoingCollectRequestFromCustomer

// block:start:incomingMoneyToCustomerPay

{
  "id": "evt_V2_fc893a0229b94a05bcac4e1d4ba31c47",
  "event_name": "MERCHANT_CUSTOMER_RECEIVED_MONEY",
  "date_created": "2021-12-07T13:51:16Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "customer@xyz",
        "payer_name": "Customer Name",
        "payee_vpa": "customer1@abc",
        "payee_mobile_number": "919812388554",
        "payee_merchant_customer_id": "DEMO-CUST-1234",
        "payee_mcc": "4121",
        "merchant_id": "DEMOUAT01",
        "masked_account_number": "XXXX123456",
        "bank_code": "123456",
        "bank_account_unique_id": "fb96f8b2b1ab0c070d0d894......"
      },
      "transaction": {
        "udf_parameters": "{}",
        "ref_url": "https://www.abcxyz.com/",
        "gateway_transaction_id": "XYZd0c077f39c454979...",
        "gateway_response_code": "00",
        "gateway_reference_id": "806115044725",
        "custom_response": "{}"
      },
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Transaction is approved",
      "merchant_customer_id": "DEMO-CUST-1234",
      "date_created": "2016-11-24T18:30:00Z",
      "amount": "100.00"
    }
  }
}

// block:end:incomingMoneyToCustomerPay

// block:start:outgoingMoneyFromCustomer

{
  "id": "evt_V2_764d477007844e0aa8728d1dc3e617f2",
  "event_name": "MERCHANT_CUSTOMER_DEBITED_VIA_PAY",
  "date_created": "2021-12-07T13:52:49Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "customer1@abc",
        "payer_mobile_number": "919812388554",
        "payer_merchant_customer_id": "DEMO-CUST-1234",
        "payee_vpa": "customer@xyz",
        "payee_name": "Customer Name",
        "payee_mcc": "4121",
        "merchant_id": "MERCHANT",
        "merchant_channel_id": "DEMOUATAPP",
        "masked_account_number": "XXXXXXX9988",
        "bank_code": "123456",
        "bank_account_unique_id": "4536baef...32cdba67"
      },
      "transaction": {
        "umn": "DCR123be148c7ba3b14f6db5cde57c65ccf@bank",
        "seq_number": "1",
        "udf_parameters": "{}",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "TXN1234567",
        "gateway_transaction_id": "DEMOUATAPP01TXNfo897fHVTiYq51739",
        "gateway_response_code": "00",
        "gateway_reference_id": "806115044725",
        "custom_response": "{}"
      },
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Transaction is approved",
      "merchant_customer_id": "DEMO-CUST-1234",
      "date_created": "2016-11-24T18:30:00Z",
      "amount": "10.00"
    }
  }
}

// block:end:outgoingMoneyFromCustomer

// block:start:incomingMoneyToCustomerCollect

{
  "id": "evt_V2_0d39b03ca2c64a8588947b71ecbc6ead",
  "event_name": "MERCHANT_CUSTOMER_CREDITED_VIA_COLLECT",
  "date_created": "2021-12-07T13:49:55Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "customer@xyz",
        "payer_name": "Customer Name",
        "payee_vpa": "customer1@abc",
        "payee_mobile_number": "919812388554",
        "payee_merchant_customer_id": "DEMO-CUST-1234",
        "payee_mcc": "4121",
        "merchant_id": "DEMOUAT01",
        "merchant_channel_id": "DEMOUATAPP",
        "masked_account_number": "XXXX123456",
        "bank_code": "123456",
        "bank_account_unique_id": "fb96f8b2b...1ab0c070d0d894"
      },
      "transaction": {
        "udf_parameters": "{}",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "TXN1234567",
        "gateway_transaction_id": "XYZd0c077...f39c454979",
        "gateway_response_code": "00",
        "gateway_reference_id": "806115044725",
        "custom_response": "{}"
      },
      "remarks": "Sample remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Transaction is approved",
      "merchant_customer_id": "DEMO-CUST-1234",
      "expiry": "2016-11-24T18:40:00Z",
      "date_created": "2016-11-24T18:30:00Z",
      "amount": "100.00"
    }
  }
}

// block:end:incomingMoneyToCustomerCollect

// block:start:incomingCreateMandateRequestForCustomer

{
  "id": "evt_V2_eb42521dd872424a84bace92ed050d94",
  "event_name": "MERCHANT_CUSTOMER_INCOMING_MANDATE_CREATE_REQUEST_RECEIVED",
  "date_created": "2021-12-10T12:28:10Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "9962463212@BANK",
        "payee_vpa": "test@BANK",
        "payee_name": "BANKTEST",
        "payee_mcc": "4121",
        "merchant_id": "BANK",
        "merchant_channel_id": "BANK"
      },
      "transaction": {
        "umn": "uniqueMandateNumber@BANK",
        "ref_url": "https://www.abcxyz.com/",
        "is_verified_payee": true,
        "is_marked_spam": true,
        "gateway_reference_id": "809323430413"
      },
      "remarks": "Sample Remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "merchant_customer_id": "DEMO-CUST-1234",
      "mandate": {
        "validity_start": "2020/06/04",
        "validity_end": "2020/06/05",
        "transaction_type": "UPI_MANDATE",
        "share_to_payee": true,
        "role": "PAYER",
        "recurrence_value": "5",
        "recurrence_rule": "ON",
        "recurrence_pattern": "MONTHLY",
        "payer_revocable": true,
        "org_mandate_id": "BJJMsleiuryufhuhsoisdjfadb48003sdaa0",
        "mandate_timestamp": "2020-06-01T10:10:42Z",
        "mandate_name": "merchant mandate",
        "initiated_by": "PAYER",
        "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "block_fund": true,
        "amount_rule": "VARIABLE"
      },
      "expiry": "2020-07-24T19:00:00Z",
      "amount": "100.00"
    }
  }
}

// block:end:incomingCreateMandateRequestForCustomer

// block:start:incomingCreateMandateForCustomer

{
  "id": "evt_V2_487dcbcb0bcb4052a015ce4d8a7ede7c",
  "event_name": "MERCHANT_CUSTOMER_INCOMING_MANDATE_CREATED",
  "date_created": "2021-12-07T14:27:30Z",
  "content": {
    "merchant_customer": {
      "payee_vpa": "test@BANK",
      "payee_name": "BANKTEST",
      "payee_mcc": "4121",
      "merchant_id": "BANK",
      "merchant_channel_id": "BANK",
      "masked_account_number": "XXXXXXX9988",
      "bank_code": "123456"
    },
    "transaction": {
      "udf_parameters": "{}",
      "umn": "uniqueMandateNumber@bank",
      "ref_url": "https://www.abcxyz.com/",
      "merchant_request_id": "6138ne3wswbsssddc4dddc",
      "gateway_response_status": "SUCCESS",
      "gateway_response_code": "00",
      "gateway_reference_id": "809323430413"
    },
    "remarks": "Sample Remarks",
    "payment_method_type": "UPI",
    "payment_method": "UPI",
    "message": "Mandate is successfully created",
    "merchant_customer_id": "DEMO-CUST-1234",
    "mandate": {
      "validity_start": "2020/06/04",
      "validity_end": "2020/06/05",
      "transaction_type": "UPI_MANDATE",
      "share_to_payee": true,
      "role": "PAYER",
      "recurrence_value": "5",
      "recurrence_rule": "ON",
      "recurrence_pattern": "MONTHLY",
      "payer_revocable": true,
      "org_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
      "mandate_timestamp": "2020-06-01T10:10:42Z",
      "mandate_name": "merchant mandate",
      "mandate_approval_timestamp": "2017-06-09T12:28:49Z",
      "initiated_by": "PAYEE",
      "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
      "block_fund": true,
      "amount_rule": "VARIABLE"
    },
    "expiry": "2020-07-24T19:00:00Z",
    "amount": "100.00"
  }
}
}

// block:end:incomingCreateMandateForCustomer

// block:start:outgoingCreateMandateFromCustomer

{
  "id": "evt_V2_487dcbcb0bcb4052a015ce4d8a7ede7c",
  "event_name": "MERCHANT_CUSTOMER_OUTGOING_MANDATE_CREATED",
  "date_created": "2021-12-07T14:27:30Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "9962463212@BANK",
        "payer_name": "ABC",
        "payee_vpa": "test@BANK",
        "payee_name": "BANKTEST",
        "payee_mcc": "4121",
        "merchant_id": "BANK",
        "merchant_channel_id": "BANK",
        "masked_account_number": "XXXXXXX9988",
        "bank_code": "123456"
      },
      "transaction": {
        "udf_parameters": "{}",
        "umn": "uniqueMandateNumber@bank",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "6138ne3wswbsssddc4dddc", //the txn uuid in transaction
        "gateway_response_status": "SUCCESS",
        "gateway_response_code": "00",
        "gateway_reference_id": "809323430413"
      },
      "remarks": "Sample Remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Mandate is successfully created",
      "merchant_customer_id": "DEMO-CUST-1234",
      "mandate": {
        "validity_start": "2020/06/04",
        "validity_end": "2020/06/05",
        "transaction_type": "UPI_MANDATE",
        "share_to_payee": true,
        "role": "PAYEE",
        "recurrence_value": "5",
        "recurrence_rule": "ON",
        "recurrence_pattern": "MONTHLY",
        "payer_revocable": true,
        "org_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "mandate_timestamp": "2020-06-01T10:10:42Z",
        "mandate_name": "merchant mandate",
        "mandate_approval_timestamp": "2017-06-09T12:28:49Z",
        "initiated_by": "PAYER",
        "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "block_fund": true,
        "amount_rule": "FIXED"
      },
      "expiry": "2020-07-24T19:00:00Z",
      "amount": "100.00"
    }
  }
}

// block:end:outgoingCreateMandateFromCustomer

// block:start:incomingUpdateMandateRequestForCustomer

{
  "id": "evt_V2_912b61c9770c4049a73badb1b8ef806a",
  "event_name": "MERCHANT_CUSTOMER_INCOMING_MANDATE_UPDATE_REQUEST_RECEIVED",
  "date_created": "2021-12-07T14:29:47Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "9962463212@BANK",
        "payer_name": "ABC",
        "payee_vpa": "test@BANK",
        "payee_name": "BANKTEST",
        "payee_mcc": "4121",
        "merchant_id": "BANK",
        "merchant_channel_id": "BANK"
      },
      "transaction": {
        "umn": "uniqueMandateNumber@bank",
        "ref_url": "https://www.abcxyz.com/",
        "gateway_reference_id": "809323430413"
      },
      "remarks": "Sample Remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "merchant_customer_id": "DEMO-CUST-1234",
      "mandate": {
        "validity_start": "2020/06/04",
        "validity_end": "2020/06/05",
        "transaction_type": "UPI_MANDATE",
        "share_to_payee": true,
        "role": "PAYER",
        "recurrence_value": "5",
        "recurrence_rule": "ON",
        "recurrence_pattern": "MONTHLY",
        "payer_revocable": true,
        "org_mandate_id": "BJJMsleiuryufhuhsoisdjfadb48003sdaa0",
        "mandate_type": "UPDATE",
        "mandate_timestamp": "2020-06-01T10:10:42Z",
        "mandate_name": "merchant mandate",
        "initiated_by": "PAYER",
        "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "block_fund": true,
        "amount_rule": "VARIABLE"
      },
      "expiry": "2020-07-24T19:00:00Z",
      "amount": "100.00"
    }
  }
}

// block:end:incomingUpdateMandateRequestForCustomer

// block:start:incomingUpdateMandateForCustomer

{
  "id": "evt_V2_793089c9a7234c1080b8a1137a7a2be8",
  "event_name": "MERCHANT_CUSTOMER_INCOMING_MANDATE_UPDATED",
  "date_created": "2021-12-07T14:31:02Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "9962463212@BANK",
        "payer_name": "ABC",
        "payee_vpa": "test@BANK",
        "payee_name": "BANKTEST",
        "payee_mcc": "4121",
        "merchant_id": "BANK",
        "merchant_channel_id": "BANK"
      },
      "transaction": {
        "udf_parameters": "{}",
        "umn": "uniqueMandateNumber@bank",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "6138ne3wswbsssddc4dddc",
        "gateway_response_status": "SUCCESS",
        "gateway_response_code": "00",
        "gateway_reference_id": "809323430413"
      },
      "remarks": "Sample Remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Mandate is successfully updated",
      "merchant_customer_id": "DEMO-CUST-1234",
      "mandate": {
        "validity_start": "2020/06/04",
        "validity_end": "2020/06/05",
        "transaction_type": "UPI_MANDATE",
        "share_to_payee": true,
        "role": "PAYER",
        "recurrence_value": "5",
        "recurrence_rule": "ON",
        "recurrence_pattern": "MONTHLY",
        "payer_revocable": true,
        "org_mandate_id": "BJJMsleiuryufhuhsoisdjfadb48003sdaa0",
        "mandate_type": "UPDATE",
        "mandate_timestamp": "2020-06-01T10:10:42Z",
        "mandate_name": "merchant mandate",
        "initiated_by": "PAYER",
        "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "block_fund": true
      },
      "expiry": "2020-07-24T19:00:00Z",
      "amount": "100.00"
    }
  }
}

// block:end:incomingUpdateMandateForCustomer

// block:start:outgoingUpdateMandateFromCustomer

{
  "id": "evt_V2_793089c9a7234c1080b8a1137a7a2be8",
  "event_name": "MERCHANT_CUSTOMER_OUTGOING_MANDATE_UPDATED",
  "date_created": "2021-12-07T14:31:02Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "9962463212@BANK",
        "payer_name": "ABC",
        "payee_vpa": "test@BANK",
        "payee_name": "BANKTEST",
        "payee_mcc": "4121",
        "merchant_id": "BANK",
        "merchant_channel_id": "BANK"
      },
      "transaction": {
        "udf_parameters": "{}",
        "umn": "uniqueMandateNumber@bank",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "6138ne3wswbsssddc4dddc",
        "gateway_response_status": "SUCCESS",
        "gateway_response_code": "00",
        "gateway_reference_id": "809323430413"
      },
      "remarks": "Sample Remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Mandate is successfully updated",
      "merchant_customer_id": "DEMO-CUST-1234",
      "mandate": {
        "validity_start": "2020/06/04",
        "validity_end": "2020/06/05",
        "transaction_type": "UPI_MANDATE",
        "share_to_payee": true,
        "role": "PAYER",
        "recurrence_value": "5",
        "recurrence_rule": "ON",
        "recurrence_pattern": "MONTHLY",
        "payer_revocable": true,
        "org_mandate_id": "BJJMsleiuryufhuhsoisdjfadb48003sdaa0",
        "mandate_type": "UPDATE",
        "mandate_timestamp": "2020-06-01T10:10:42Z",
        "mandate_name": "merchant mandate",
        "initiated_by": "PAYER",
        "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "block_fund": true
      },
      "expiry": "2020-07-24T19:00:00Z",
      "amount": "100.00"
    }
  }
}

// block:end:outgoingUpdateMandateFromCustomer

// block:start:outgoingPauseMandateFromCustomer

{
  "id": "evt_V2_99b99545a8ea471c9a33af80759b6502",
  "event_name": "MERCHANT_CUSTOMER_OUTGOING_MANDATE_PAUSED",
  "date_created": "2021-12-07T14:33:06Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "9962463212@BANK",
        "payer_name": "ABC",
        "payee_vpa": "test@BANK",
        "payee_name": "BANKTEST",
        "payee_mcc": "4121",
        "merchant_id": "BANK",
        "merchant_channel_id": "BANK"
      },
      "transaction": {
        "udf_parameters": "{}",
        "umn": "uniqueMandateNumber@bank",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "6138ne3wswbsssddc4dddc",
        "gateway_response_status": "SUCCESS",
        "gateway_response_code": "00",
        "gateway_reference_id": "809323430413"
      },
      "remarks": "Sample Remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Mandate is successfully paused",
      "merchant_customer_id": "DEMO-CUST-1234",
      "mandate": {
        "validity_start": "2020/06/04",
        "validity_end": "2020/06/05",
        "transaction_type": "UPI_MANDATE",
        "share_to_payee": true,
        "role": "PAYER",
        "recurrence_value": "5",
        "recurrence_rule": "ON",
        "recurrence_pattern": "MONTHLY",
        "payer_revocable": true,
        "pause_start": "2019/09/17",
        "pause_end": "2019/09/19",
        "org_mandate_id": "BJJMsleiuryufhuhsoisdjfadb48003sdaa0",
        "mandate_type": "PAUSE",
        "mandate_timestamp": "2020-06-01T10:10:42Z",
        "mandate_name": "merchant mandate",
        "initiated_by": "PAYER",
        "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "block_fund": true
      },
      "amount": "100.00"
    }
  }
}

// block:end:outgoingPauseMandateFromCustomer

// block:start:incomingPrePaymentNotificationMandateForCustomer

{
  "id": "evt_V2_f20bfac484f4456486e5a1e0bbd85776",
  "event_name": "MERCHANT_CUSTOMER_INCOMING_PRE_PAYMENT_NOTIFICATION_MANDATE_RECEIVED",
  "date_created": "2021-12-10T13:18:38Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "merchant_id": "MERCHANT",
        "merchant_channel_id": "MERCHANTAPP"
      },
      "transaction": {
        "umn": "customervpa@bank",
        "seq_number": "1",
        "merchant_request_id": "TXN1234567",
        "gateway_response_status": "SUCCESS",
        "gateway_response_code": "00",
        "gateway_reference_id": "809323430413"
      },
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "merchant_customer_id": "DEMO_CUST-1234",
      "mandate": {
        "org_mandate_id": "BJJ0f018ee5b832468779cb4a53ea9bde",
        "next_execution": "2017-06-09T12:27:49Z",
        "gateway_mandate_id": "BJJ0f018ee5bc8b428fb979cb4a53ea9bde"
      },
      "amount": "9.00"
    }
  }
}

// block:end:incomingPrePaymentNotificationMandateForCustomer

//block:start:complaintRaised

{
  "event_name": "MERCHANT_CUSTOMER_COMPLAINT_RAISED",
  "content": {
    "merchant_customer": {
      "upi": {
        "payer_mobile_number": "9876543210",
        "upi_app": "YES_BIZ",
        "merchant_channel_id": "TESTAPP",
        "payer_vpa": "123454306@upi",
        "merchant_id": "TEST",
        "payee_vpa": "83746598743@upi"
      },
      "amount": "1.00",
      "payment_method": "UPI",
      "payment_method_type": "UPI",
      "gateway_webhook_payload": {
        "payer_mobile_number": "919988776655",
        "req_adj_code": "U010",
        "gateway_response_status": "SUCCESS",
        "transaction_amount": "1.00",
        "req_adj_flag": "PBRB",
        "gateway_response_message": "Complaint is Raised",
        "org_resp_code": "RR",
        "merchant_customer_id": "test-merchantcustomer-1",
        "original_transaction_timestamp": "2021-08-12T22:50:00+05:30",
        "gateway_response_code": "00",
        "merchant_channel_id": "TESTAPP",
        "payer_vpa": "123454306@upi",
        "crn": "302570532",
        "original_gateway_transaction_id": "AIX699393106f865d1a9467c59725789tgh",
        "gateway_complaint_id": "AIX699393106f865d1a9467c59725789tgh",
        "req_adj_amount": "0.50",
        "merchant_id": "TEST",
        "payee_vpa": "83746598743@upi",
        "type": "CUSTOMER_COMPLAINT_RAISED",
        "remarks": "Goods not received"
      },
      "complaint": {
        "adj_flag": "PBRB",
        "gateway_response_status": "SUCCESS",
        "transaction_amount": "1.00",
        "adj_code": "U010",
        "original_transaction_timestamp": "2021-08-12T17:20:00Z",
        "gateway_response_code": "00",
        "adj_amount": "0.50",
        "crn": "302570532",
        "original_gateway_transaction_id": "AIX699393106f865d1a9467c59725789tgh",
        "gateway_complaint_id": "AIX699393106f865d1a9467c59725789tgh"
      },
      "message": "Complaint is Raised",
      "remarks": "Goods not received"
    }
  },
  "id": "evt_V2_0342cf251aa9460ba6500e0b7fe9aef3",
  "date_created": "2023-02-09T10:17:56Z"
}

// block:end:complaintRaised

//block:start:complaintResolved

{
  "id": "evt_V2_5049b27bcc264930b45c8d25a398f665",
  "event_name": "MERCHANT_CUSTOMER_COMPLAINT_RESOLVED",
  "date_created": "2022-03-30T21:23:39Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "merchant_channel_id": "TESTAPP",
        "merchant_id": "TEST",
        "upi_app": "AXIS_BIZ",
        "payer_vpa": "123454306@axb",
        "payee_vpa": "83746598743@axb"
      },
      "remarks": "Goods not received",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Complaint is Resolved",
      "merchant_customer_id": "test-merchantcustomer-1",
      "customer_mobile_number": "919988776655",
      "complaint": {
        "gateway_response_status": "SUCCESS",
        "gateway_complaint_id": "AIX699393106f865d1a9467c59725789tgh",
        "adj_code": "U010",
        "org_sett_resp_code": "RR",
        "custom_response": "{}",
        "original_transaction_timestamp": "2021-08-12T17:20:00Z",
        "adj_flag": "PBRB",
        "gateway_response_code": "00",
        "gateway_reference_id": "123456",
        "crn": "302570532",
        "transaction_amount": "1.00",
        "original_gateway_transaction_id": "AIX699393106f865d1a9467c59725789tgh",
        "adj_amount": "0.50",
        "curr_cycle": "Y"
      }
    }
  }
}

// block:end:complaintResolved

//block:start:txnCreated

{
  "id": "evt_V2_5c08a08095ea4279ad28347241678c0b",
  "event_name": "TXN_CREATED",
  "date_created": "2022-01-28T09:14:52Z",
  "content": {
    "order": {
      "upi": {
        "upi_bank_account_reference_id": "Afeb13dcb1c14e7eb0a2dba7ad8b2b",
        "txn_type": "UPI_INAPP",
        "payer_vpa": "8088219177@sliceaxis",
        "payer_app": "AXIS_BIZ",
        "masked_bank_account_number": "XXXXXXX20000",
        "bank_name": "MYPSP",
        "bank_code": "500001"
      },
      "udf9": "",
      "udf8": "",
      "udf7": "",
      "udf6": "",
      "udf5": "",
      "udf4": "",
      "udf3": "",
      "udf2": "",
      "udf10": "",
      "udf1": "",
      "txn_uuid": "eulwh64Rw6dQSNBUZUE",
      "txn_id": "slice-R7648276171-1",
      "txn_detail": {
        "txn_uuid": "eulwh64Rw6dQSNBUZUE",
        "txn_id": "slice-R7648276171-1",
        "txn_amount": 10000,
        "tax_amount": 0,
        "surcharge_amount": 0,
        "status": "PENDING_VBV",
        "redirect": true,
        "order_id": "R7648276171",
        "net_amount": 10000,
        "gateway_id": 511,
        "gateway": "AXIS_BIZ",
        "express_checkout": false,
        "error_message": "",
        "error_code": null,
        "currency": "INR",
        "created": "2022-01-28T09:14:52Z"
      },
      "status_id": 23,
      "status": "PENDING_VBV",
      "rewards_breakup": null,
      "return_url": "https://links.slicepay.in/repayments",
      "refunded": false,
      "product_id": "",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_links": {
        "web": "https://sandbox.juspay.in/merchant/pay/ordeu_f07e1293e5684eb5ae815dbf6c998644",
        "mobile": "https://sandbox.juspay.in/merchant/pay/ordeu_f07e1293e5684eb5ae815dbf6c998644?mobile=true",
        "iframe": "https://sandbox.juspay.in/merchant/ipay/ordeu_f07e1293e5684eb5ae815dbf6c998644"
      },
      "payer_vpa": "8088219177@sliceaxis",
      "order_id": "R7648276171",
      "offers": [

      ],
      "metadata": null,
      "merchant_id": "slice",
      "id": "ordeu_f07e1293e5684eb5ae815dbf6c998644",
      "gateway_reference_id": null,
      "gateway_id": 511,
      "effective_amount": 10000,
      "date_created": "2022-01-28T09:14:51Z",
      "customer_phone": "",
      "customer_id": "8088219177",
      "customer_email": null,
      "currency": "INR",
      "bank_pg": null,
      "bank_error_message": "",
      "bank_error_code": "",
      "auth_type": "",
      "amount_refunded": 0,
      "amount": 10000
    }
  }
}

//block:end:txnCreated

//block:start:txnCharged

{
  "id": "evt_V2_0605110330aa49cea64215d095bf050b",
  "event_name": "TXN_CHARGED",
  "date_created": "2022-01-28T09:15:04Z",
  "content": {
    "txn": {
      "txn_uuid": "eulwh64Rw6dQSNBUZUE",
      "txn_id": "slice-R7648276171-1",
      "txn_amount": 10000,
      "tax_amount": 0,
      "surcharge_amount": 0,
      "status_id": 21,
      "status": "CHARGED",
      "redirect": true,
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_gateway_response": {
        "txn_id": "eulwh64Rw6dQSNBUZUE",
        "rrn": "202814207184",
        "resp_message": "Your transaction is successful",
        "resp_code": "00",
        "epg_txn_id": "AXB22f8d0fafdf9455bb9d7b657c2ab14e4",
        "created": "2022-01-28T09:15:04Z",
        "auth_id_code": null
      },
      "order_id": "R7648276171",
      "net_amount": 10000,
      "gateway_id": 511,
      "gateway": "AXIS_BIZ",
      "express_checkout": false,
      "error_message": "",
      "error_code": "",
      "currency": "INR",
      "created": "2022-01-28T09:14:52Z"
    }
  }
}

//block:end:txnCharged

//block:start:orderSucceeded

{
  "id": "evt_V2_45dca165c3364d2db56f2df48fac2f7a",
  "event_name": "ORDER_SUCCEEDED",
  "date_created": "2022-01-28T09:15:04Z",
  "content": {
    "order": {
      "upi": {
        "upi_bank_account_reference_id": "Afeb13dcb1c14e7eb0a2dba7ad8b2b",
        "txn_type": "UPI_INAPP",
        "payer_vpa": "8088219177@sliceaxis",
        "payer_app": "AXIS_BIZ",
        "masked_bank_account_number": "XXXXXXX20000",
        "bank_name": "MYPSP",
        "bank_code": "500001"
      },
      "udf9": "",
      "udf8": "",
      "udf7": "",
      "udf6": "",
      "udf5": "",
      "udf4": "",
      "udf3": "",
      "udf2": "",
      "udf10": "",
      "udf1": "",
      "txn_uuid": "eulwh64Rw6dQSNBUZUE",
      "txn_id": "slice-R7648276171-1",
      "txn_detail": {
        "txn_uuid": "eulwh64Rw6dQSNBUZUE",
        "txn_id": "slice-R7648276171-1",
        "txn_amount": 10000,
        "tax_amount": 0,
        "surcharge_amount": 0,
        "status": "CHARGED",
        "redirect": true,
        "order_id": "R7648276171",
        "net_amount": 10000,
        "gateway_id": 511,
        "gateway": "AXIS_BIZ",
        "express_checkout": false,
        "error_message": "",
        "error_code": "",
        "currency": "INR",
        "created": "2022-01-28T09:14:52Z"
      },
      "status_id": 21,
      "status": "CHARGED",
      "rewards_breakup": null,
      "return_url": "https://links.slicepay.in/repayments",
      "refunded": false,
      "product_id": "",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_links": {
        "web": "https://sandbox.juspay.in/merchant/pay/ordeu_f07e1293e5684eb5ae815dbf6c998644",
        "mobile": "https://sandbox.juspay.in/merchant/pay/ordeu_f07e1293e5684eb5ae815dbf6c998644?mobile=true",
        "iframe": "https://sandbox.juspay.in/merchant/ipay/ordeu_f07e1293e5684eb5ae815dbf6c998644"
      },
      "payment_gateway_response": {
        "txn_id": "eulwh64Rw6dQSNBUZUE",
        "rrn": "202814207184",
        "resp_message": "Your transaction is successful",
        "resp_code": "00",
        "gateway_response": {
          "merchantChannelId": "SLICEAPP",
          "amount": "10000.00",
          "merchantId": "SLICE",
          "gatewayResponseMessage": "Your transaction is successful",
          "payerVpa": "8088219177@sliceaxis",
          "merchantRequestId": "eulwh64Rw6dQSNBUZUE",
          "gatewayResponseCode": "00",
          "gatewayReferenceId": "202814207184",
          "gatewayTransactionId": "AXB22f8d0fafdf9455bb9d7b657c2ab14e4",
          "payeeVpa": "repayments@sliceaxis",
          "transactionTimestamp": "2022-01-28T14:44:51+05:30",
          "udfParameters": "{}",
          "type": "MERCHANT_CREDITED_VIA_PAY"
        },
        "epg_txn_id": "AXB22f8d0fafdf9455bb9d7b657c2ab14e4",
        "created": "2022-01-28T09:15:04Z",
        "auth_id_code": null
      },
      "payer_vpa": "8088219177@sliceaxis",
      "order_id": "R7648276171",
      "offers": [

      ],
      "metadata": null,
      "merchant_id": "slice",
      "id": "ordeu_f07e1293e5684eb5ae815dbf6c998644",
      "gateway_reference_id": null,
      "gateway_id": 511,
      "effective_amount": 10000,
      "date_created": "2022-01-28T09:14:51Z",
      "customer_phone": "",
      "customer_id": "8088219177",
      "customer_email": null,
      "currency": "INR",
      "bank_pg": null,
      "bank_error_message": "",
      "bank_error_code": "",
      "auth_type": "",
      "amount_refunded": 0,
      "amount": 10000
    }
  }
}

//block:end:orderSucceeded

//block:start:txnFailed

{
  "id": "evt_V2_311d1b273a084b06bfd957e01293f8ce",
  "event_name": "TXN_FAILED",
  "date_created": "2022-01-28T09:16:46Z",
  "content": {
    "txn": {
      "txn_uuid": "eul2PiJnWLDUnC9SKr2",
      "txn_id": "slice-R670115430-1",
      "txn_amount": 200001,
      "tax_amount": 0,
      "surcharge_amount": 0,
      "status_id": 26,
      "status": "AUTHENTICATION_FAILED",
      "redirect": true,
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_gateway_response": {
        "txn_id": "eul2PiJnWLDUnC9SKr2",
        "rrn": "202814514190",
        "resp_message": "Bank is taking too long to respond. Please try again!",
        "resp_code": "U09",
        "epg_txn_id": "AXB961f2e31e3614bdca113b3a9959092cd",
        "created": "2022-01-28T09:16:46Z",
        "auth_id_code": null
      },
      "order_id": "R670115430",
      "net_amount": 200001,
      "gateway_id": 511,
      "gateway": "AXIS_BIZ",
      "express_checkout": false,
      "error_message": "Bank is taking too long to respond. Please try again!",
      "error_code": "U09",
      "currency": "INR",
      "created": "2022-01-28T09:16:23Z"
    }
  }
}

//block:end:txnFailed

//block:start:orderFailed

{
  "id": "evt_V2_adedb85fc8d7404ab5c044a25ca1303f",
  "event_name": "ORDER_FAILED",
  "date_created": "2022-01-28T09:16:46Z",
  "content": {
    "order": {
      "upi": {
        "upi_bank_account_reference_id": "Afeb13dcb1c14e7eb0a2dba7ad8b2b",
        "txn_type": "UPI_INAPP",
        "payer_vpa": "8088219177@sliceaxis",
        "payer_app": "AXIS_BIZ",
        "masked_bank_account_number": "XXXXXXX20000",
        "bank_name": "MYPSP",
        "bank_code": "500001"
      },
      "udf9": "",
      "udf8": "",
      "udf7": "",
      "udf6": "",
      "udf5": "",
      "udf4": "",
      "udf3": "",
      "udf2": "",
      "udf10": "",
      "udf1": "",
      "txn_uuid": "eul2PiJnWLDUnC9SKr2",
      "txn_id": "slice-R670115430-1",
      "txn_detail": {
        "txn_uuid": "eul2PiJnWLDUnC9SKr2",
        "txn_id": "slice-R670115430-1",
        "txn_amount": 200001,
        "tax_amount": 0,
        "surcharge_amount": 0,
        "status": "AUTHENTICATION_FAILED",
        "redirect": true,
        "order_id": "R670115430",
        "net_amount": 200001,
        "gateway_id": 511,
        "gateway": "AXIS_BIZ",
        "express_checkout": false,
        "error_message": "Bank is taking too long to respond. Please try again!",
        "error_code": "U09",
        "currency": "INR",
        "created": "2022-01-28T09:16:23Z"
      },
      "status_id": 26,
      "status": "AUTHENTICATION_FAILED",
      "rewards_breakup": null,
      "return_url": "https://links.slicepay.in/repayments",
      "refunded": false,
      "product_id": "",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_links": {
        "web": "https://sandbox.juspay.in/merchant/pay/ordeu_a9d8fc9ee3a9497da961537fc045f66e",
        "mobile": "https://sandbox.juspay.in/merchant/pay/ordeu_a9d8fc9ee3a9497da961537fc045f66e?mobile=true",
        "iframe": "https://sandbox.juspay.in/merchant/ipay/ordeu_a9d8fc9ee3a9497da961537fc045f66e"
      },
      "payment_gateway_response": {
        "txn_id": "eul2PiJnWLDUnC9SKr2",
        "rrn": "202814514190",
        "resp_message": "Bank is taking too long to respond. Please try again!",
        "resp_code": "U09",
        "gateway_response": {
          "merchantChannelId": "SLICEAPP",
          "amount": "200001.00",
          "merchantId": "SLICE",
          "gatewayResponseMessage": "Bank is taking too long to respond. Please try again!",
          "payerVpa": "8088219177@sliceaxis",
          "merchantRequestId": "eul2PiJnWLDUnC9SKr2",
          "gatewayResponseCode": "U09",
          "gatewayReferenceId": "202814514190",
          "gatewayTransactionId": "AXB961f2e31e3614bdca113b3a9959092cd",
          "payeeVpa": "repayments@sliceaxis",
          "transactionTimestamp": "2022-01-28T14:46:20+05:30",
          "udfParameters": "{}",
          "type": "MERCHANT_CREDITED_VIA_PAY"
        },
        "epg_txn_id": "AXB961f2e31e3614bdca113b3a9959092cd",
        "created": "2022-01-28T09:16:46Z",
        "auth_id_code": null
      },
      "payer_vpa": "8088219177@sliceaxis",
      "order_id": "R670115430",
      "offers": [

      ],
      "metadata": null,
      "merchant_id": "slice",
      "id": "ordeu_a9d8fc9ee3a9497da961537fc045f66e",
      "gateway_reference_id": null,
      "gateway_id": 511,
      "effective_amount": 200001,
      "date_created": "2022-01-28T09:16:22Z",
      "customer_phone": "",
      "customer_id": "8088219177",
      "customer_email": null,
      "currency": "INR",
      "bank_pg": null,
      "bank_error_message": "Bank is taking too long to respond. Please try again!",
      "bank_error_code": "U09",
      "auth_type": "",
      "amount_refunded": 0,
      "amount": 200001
    }
  }
}

//block:end:orderFailed

//block:end:bankAccountLinkedByCustomer

{
  "id": "evt_gsu1c0r7umcfrxeb",
  "date_created": "2021-05-05T10:42:25Z",
  "event_name": "MERCHANT_CUSTOMER_LINKED_BANK_ACCOUNT",
  "content": {
	"merchant_customer": {
            "payment_method_type" : "UPI",
            "payment_method" : "UPI",
            "merchant_id" : "Slice",
            "merchant_customer_id": "DEMO-CUST-1234",
            "customer_mobile_numer": "91xxxxxxxxxx",
            "upi" : {
             "upi_app" : "YES_BIZ",
             "bank_accounts" : [{
	         "masked_account_number" : "xxxxxxx123045678",
                "account_number" : "12345678921233",
                "ifsc_code": "HDFC012345",
                "upi_bank_account_reference_id": "Unique id",
                "bank_name": "HDFC",
                "bank_code": "HDFC",
                "juspay_bank_code": "JP_HDFC",
                "account_name": "Customer Name",
                "account_type": "SAVINGS"
            } ]
          }
        }
    }
}

//block:end:bankAccountLinkedByCustomer

//block:end:merchantCustomerPortedUpiNumber

{
  "id": "evt_gsu1c0r7umcfrxeb",
  "date_created": "2021-05-05T10:42:25Z",
  "event_name": "MERCHANT_CUSTOMER_PORTED_UPI_NUMBER",
  "content": {
	  "merchant_customer": {
    }
  }
}

//block:end:merchantCustomerPortedUpiNumber

//block:start:mandateCallback

{
   "id": "evt_V2_4b83ba211443b53fc020d4c",
   "event_name": "ORDER_SUCCEEDED",
   "date_created": "2021-03-20T07:48:31Z",
   "content": {
     "order": {
       "udf8": "",
       "udf7": "",
       "udf6": "",
       "udf5": "",
       "udf4": "",
       "udf3": "",
       "udf2": "",
       "udf10": "",
       "udf1": "",
       "txn_uuid": "eulmy******y1Syy",
       "txn_id": "juspay-2348******3498-1",
       "txn_detail": {
         "txn_uuid": "eulmy******y1Syy",
         "txn_object_type": "EMANDATE_REGISTER",
         "txn_id": "juspay-2348******3498-1",
         "txn_amount": 1,
         "tax_amount": null,
         "surcharge_amount": null,
         "status": "CHARGED",
         "source_object_id": "91887",
         "source_object": "MANDATE",
         "redirect": true,
         "order_id": "2348******3498",
         "net_amount": 1,
         "gateway_id": 19,
         "gateway": "YES_BIZ",
         "express_checkout": false,
         "error_message": "",
         "error_code": "",
         "currency": "INR",
         "created": "2020-08-30T09:53:17Z"
       },
       "status_id": 21,
       "status": "CHARGED",
       "refunded": false,
       "product_id": "",
       "payment_method_type": "UPI",
       "payment_method": "UPI",
       "payment_links": {
         "web": "https://sandbox.juspay.in/merchant/pay/ordeu_9a092980*******4d0206",
         "mobile": "https://sandbox.juspay.in/merchant/pay/ordeu_9a092980*******4d0206?mobile=true",
         "iframe": "https://sandbox.juspay.in/merchant/ipay/ordeu_9a092980*******4d0206"
       },
       "upi": {
           "txn_flow_type" : "INAPP",
           "masked_bank_account_number": "4XXXXXXXX2323",
           "bank_name": "HDFC bank",
           "bank_code": "HDFC",
           "upi_bank_account_reference_id": "A0760cb548bb4dda9d32e3030863dd5",
           "payer_vpa" : "customer@vpa",
           "payer_app" : "AXIS_UPI",
       },
       "payment_gateway_response":  {
            "resp_code": "00",
            "rrn": null,
            "created": "2021-08-17T13:44:21Z",
            "epg_txn_id": "YJP9999rv9999a99c19a4877ede7954984e",// Its the orgMandateId . Common ID between Juspay and NPCI .
            "resp_message": "Your transaction is successful",
            "auth_id_code": null,
            "txn_id": "eul7yc7TReHhAyNVsGp"
       },
       "payer_vpa" : "customer@vpa",
       "order_id": "2348******3498",
       "merchant_id": "juspay",
       "mandate": {
         "start_date": "1598745600",
         "rule_value": 30,
         "rule_type": "AFTER",
         "revokable_by_customer": true,
         "max_amount": 1000,
         "mandate_type": "EMANDATE",
         "mandate_token": "ad1d221******0f3",
         "mandate_status": "ACTIVE",
         "mandate_id": "3XMEcS******Ybzj", // common id between Groww and Juspay
         "frequency": "MONTHLY",
         "end_date": "160***10",
         "block_fund": false,
         "amount_rule": "VARIABLE"
       },
       "id": "ordeu_9a092980*******4d0206",
       "gateway_reference_id": "upimandate",
       "gateway_id": 514,
       "date_created": "2020-08-30T09:47:46Z",
       "customer_phone": "9999999999",
       "customer_id": "cst_lz*****okv",
       "customer_email": "customer@gmail.com",
       "currency": "INR",
       "bank_error_message": "",
       "bank_error_code": "",
       "amount_refunded": 0,
       "amount": 1
     }
   }
 }

//block:end:mandateCallback
```



### 1.15 Port UPI Number


A callback with following POST data will be sent to the configured webhook URL.Event: **MERCHANT_CUSTOMER_PORTED_UPI_NUMBER** 


### Payload
- **Id**:
  - Description: Event ID
  - Value: evt_V2_03c6ec0681124450b55cf92fa35df241
- **Event_name**:
  - Description: Server sends a callback to the Payer to the url configured when pre-payment notification is received prior to mandate execution for the particular recurring cycle denoted by seqNumber.
  - Value: MERCHANT_CUSTOMER_PORTED_UPI_NUMBER
- **Date_created**:
  - Description: timestamp when webhook was created
  - Value: 2021-12-07T13:46:40Z
- **Content**:
  - Description: Details of the event
  - Value:
    - **Merchant_customer**:
      - Description: Details of the event
      - Value:




#### Code Snippets: -

#### Objective-C Code Snippet:

```objective-c
// block:start:incomingCollectRequestToCustomer

{
  "id": "evt_V2_03c6ec0681124450b55cf92fa35df241",
  "event_name": "MERCHANT_CUSTOMER_COLLECT_REQUEST_RECEIVED",
  "date_created": "2021-12-07T13:46:40Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "customer1@abc",
        "payer_merchant_customer_id": "DEMO-CUST-1234",
        "payee_vpa": "customer@xyz",
        "payee_name": "Customer Name",
        "payee_merchant_customer_id": "DEMO-CUST-5678",
        "payee_mcc": "4121",
        "merchant_id": "DEMOUAT01"
      },
      "transaction": {
        "umn": "DCR123be148c7ba3b14f6db5cde57c65ccf@bank",
        "seq_number": "1",
        "ref_url": "https://www.abcxyz.com/",
        "is_verified_payee": true,
        "is_marked_spam": true,
        "gateway_transaction_id": "XYZd0c077f39c454979...",
        "gateway_reference_id": "806115044725",
        "custom_response": "{}"
      },
      "remarks": "This is remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "merchant_customer_id": "DEMO-CUST-1234",
      "expiry": "2016-11-24T19:00:00Z",
      "date_created": "2016-11-24T18:30:00Z",
      "amount": "100.00"
    }
  }
}

// block:end:incomingCollectRequestToCustomer

// block:start:outgoingCollectRequestFromCustomer

{
  "id": "evt_V2_6051eb4f1dd545bb8ac82d80c86db763",
  "event_name": "MERCHANT_CUSTOMER_COLLECT_REQUEST_SENT",
  "date_created": "2021-12-07T13:53:50Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "customer1@abc",
        "payer_name": "Customer Name",
        "payee_vpa": "customer@xyz",
        "payee_mobile_number": "919876543210",
        "payee_merchant_customer_id": "DEMO-CUST-1234",
        "payee_mcc": "4121",
        "merchant_id": "DEMOUAT01",
        "merchant_channel_id": "DEMOUAT01",
        "masked_account_number": "XXXXXXX9988",
        "bank_code": "123456",
        "bank_account_unique_id": "4536baef...32cdba67"
      },
      "transaction": {
        "udf_parameters": "{}",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "TXN1234567",
        "gateway_transaction_id": "XYZd0c077f39c454979...",
        "gateway_response_code": "00",
        "gateway_reference_id": "806115044725",
        "custom_response": "{}"
      },
      "remarks": "This is remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Collect request sent successfully",
      "merchant_customer_id": "DEMO-CUST-1234",
      "expiry": "2016-11-24T19:00:00Z",
      "date_created": "2016-11-24T18:30:00Z",
      "amount": "100.00"
    }
  }
}

// block:end:outgoingCollectRequestFromCustomer

// block:start:incomingMoneyToCustomerPay

{
  "id": "evt_V2_fc893a0229b94a05bcac4e1d4ba31c47",
  "event_name": "MERCHANT_CUSTOMER_RECEIVED_MONEY",
  "date_created": "2021-12-07T13:51:16Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "customer@xyz",
        "payer_name": "Customer Name",
        "payee_vpa": "customer1@abc",
        "payee_mobile_number": "919812388554",
        "payee_merchant_customer_id": "DEMO-CUST-1234",
        "payee_mcc": "4121",
        "merchant_id": "DEMOUAT01",
        "masked_account_number": "XXXX123456",
        "bank_code": "123456",
        "bank_account_unique_id": "fb96f8b2b1ab0c070d0d894......"
      },
      "transaction": {
        "udf_parameters": "{}",
        "ref_url": "https://www.abcxyz.com/",
        "gateway_transaction_id": "XYZd0c077f39c454979...",
        "gateway_response_code": "00",
        "gateway_reference_id": "806115044725",
        "custom_response": "{}"
      },
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Transaction is approved",
      "merchant_customer_id": "DEMO-CUST-1234",
      "date_created": "2016-11-24T18:30:00Z",
      "amount": "100.00"
    }
  }
}

// block:end:incomingMoneyToCustomerPay

// block:start:outgoingMoneyFromCustomer

{
  "id": "evt_V2_764d477007844e0aa8728d1dc3e617f2",
  "event_name": "MERCHANT_CUSTOMER_DEBITED_VIA_PAY",
  "date_created": "2021-12-07T13:52:49Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "customer1@abc",
        "payer_mobile_number": "919812388554",
        "payer_merchant_customer_id": "DEMO-CUST-1234",
        "payee_vpa": "customer@xyz",
        "payee_name": "Customer Name",
        "payee_mcc": "4121",
        "merchant_id": "MERCHANT",
        "merchant_channel_id": "DEMOUATAPP",
        "masked_account_number": "XXXXXXX9988",
        "bank_code": "123456",
        "bank_account_unique_id": "4536baef...32cdba67"
      },
      "transaction": {
        "umn": "DCR123be148c7ba3b14f6db5cde57c65ccf@bank",
        "seq_number": "1",
        "udf_parameters": "{}",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "TXN1234567",
        "gateway_transaction_id": "DEMOUATAPP01TXNfo897fHVTiYq51739",
        "gateway_response_code": "00",
        "gateway_reference_id": "806115044725",
        "custom_response": "{}"
      },
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Transaction is approved",
      "merchant_customer_id": "DEMO-CUST-1234",
      "date_created": "2016-11-24T18:30:00Z",
      "amount": "10.00"
    }
  }
}

// block:end:outgoingMoneyFromCustomer

// block:start:incomingMoneyToCustomerCollect

{
  "id": "evt_V2_0d39b03ca2c64a8588947b71ecbc6ead",
  "event_name": "MERCHANT_CUSTOMER_CREDITED_VIA_COLLECT",
  "date_created": "2021-12-07T13:49:55Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "customer@xyz",
        "payer_name": "Customer Name",
        "payee_vpa": "customer1@abc",
        "payee_mobile_number": "919812388554",
        "payee_merchant_customer_id": "DEMO-CUST-1234",
        "payee_mcc": "4121",
        "merchant_id": "DEMOUAT01",
        "merchant_channel_id": "DEMOUATAPP",
        "masked_account_number": "XXXX123456",
        "bank_code": "123456",
        "bank_account_unique_id": "fb96f8b2b...1ab0c070d0d894"
      },
      "transaction": {
        "udf_parameters": "{}",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "TXN1234567",
        "gateway_transaction_id": "XYZd0c077...f39c454979",
        "gateway_response_code": "00",
        "gateway_reference_id": "806115044725",
        "custom_response": "{}"
      },
      "remarks": "Sample remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Transaction is approved",
      "merchant_customer_id": "DEMO-CUST-1234",
      "expiry": "2016-11-24T18:40:00Z",
      "date_created": "2016-11-24T18:30:00Z",
      "amount": "100.00"
    }
  }
}

// block:end:incomingMoneyToCustomerCollect

// block:start:incomingCreateMandateRequestForCustomer

{
  "id": "evt_V2_eb42521dd872424a84bace92ed050d94",
  "event_name": "MERCHANT_CUSTOMER_INCOMING_MANDATE_CREATE_REQUEST_RECEIVED",
  "date_created": "2021-12-10T12:28:10Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "9962463212@BANK",
        "payee_vpa": "test@BANK",
        "payee_name": "BANKTEST",
        "payee_mcc": "4121",
        "merchant_id": "BANK",
        "merchant_channel_id": "BANK"
      },
      "transaction": {
        "umn": "uniqueMandateNumber@BANK",
        "ref_url": "https://www.abcxyz.com/",
        "is_verified_payee": true,
        "is_marked_spam": true,
        "gateway_reference_id": "809323430413"
      },
      "remarks": "Sample Remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "merchant_customer_id": "DEMO-CUST-1234",
      "mandate": {
        "validity_start": "2020/06/04",
        "validity_end": "2020/06/05",
        "transaction_type": "UPI_MANDATE",
        "share_to_payee": true,
        "role": "PAYER",
        "recurrence_value": "5",
        "recurrence_rule": "ON",
        "recurrence_pattern": "MONTHLY",
        "payer_revocable": true,
        "org_mandate_id": "BJJMsleiuryufhuhsoisdjfadb48003sdaa0",
        "mandate_timestamp": "2020-06-01T10:10:42Z",
        "mandate_name": "merchant mandate",
        "initiated_by": "PAYER",
        "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "block_fund": true,
        "amount_rule": "VARIABLE"
      },
      "expiry": "2020-07-24T19:00:00Z",
      "amount": "100.00"
    }
  }
}

// block:end:incomingCreateMandateRequestForCustomer

// block:start:incomingCreateMandateForCustomer

{
  "id": "evt_V2_487dcbcb0bcb4052a015ce4d8a7ede7c",
  "event_name": "MERCHANT_CUSTOMER_INCOMING_MANDATE_CREATED",
  "date_created": "2021-12-07T14:27:30Z",
  "content": {
    "merchant_customer": {
      "payee_vpa": "test@BANK",
      "payee_name": "BANKTEST",
      "payee_mcc": "4121",
      "merchant_id": "BANK",
      "merchant_channel_id": "BANK",
      "masked_account_number": "XXXXXXX9988",
      "bank_code": "123456"
    },
    "transaction": {
      "udf_parameters": "{}",
      "umn": "uniqueMandateNumber@bank",
      "ref_url": "https://www.abcxyz.com/",
      "merchant_request_id": "6138ne3wswbsssddc4dddc",
      "gateway_response_status": "SUCCESS",
      "gateway_response_code": "00",
      "gateway_reference_id": "809323430413"
    },
    "remarks": "Sample Remarks",
    "payment_method_type": "UPI",
    "payment_method": "UPI",
    "message": "Mandate is successfully created",
    "merchant_customer_id": "DEMO-CUST-1234",
    "mandate": {
      "validity_start": "2020/06/04",
      "validity_end": "2020/06/05",
      "transaction_type": "UPI_MANDATE",
      "share_to_payee": true,
      "role": "PAYER",
      "recurrence_value": "5",
      "recurrence_rule": "ON",
      "recurrence_pattern": "MONTHLY",
      "payer_revocable": true,
      "org_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
      "mandate_timestamp": "2020-06-01T10:10:42Z",
      "mandate_name": "merchant mandate",
      "mandate_approval_timestamp": "2017-06-09T12:28:49Z",
      "initiated_by": "PAYEE",
      "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
      "block_fund": true,
      "amount_rule": "VARIABLE"
    },
    "expiry": "2020-07-24T19:00:00Z",
    "amount": "100.00"
  }
}
}

// block:end:incomingCreateMandateForCustomer

// block:start:outgoingCreateMandateFromCustomer

{
  "id": "evt_V2_487dcbcb0bcb4052a015ce4d8a7ede7c",
  "event_name": "MERCHANT_CUSTOMER_OUTGOING_MANDATE_CREATED",
  "date_created": "2021-12-07T14:27:30Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "9962463212@BANK",
        "payer_name": "ABC",
        "payee_vpa": "test@BANK",
        "payee_name": "BANKTEST",
        "payee_mcc": "4121",
        "merchant_id": "BANK",
        "merchant_channel_id": "BANK",
        "masked_account_number": "XXXXXXX9988",
        "bank_code": "123456"
      },
      "transaction": {
        "udf_parameters": "{}",
        "umn": "uniqueMandateNumber@bank",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "6138ne3wswbsssddc4dddc", //the txn uuid in transaction
        "gateway_response_status": "SUCCESS",
        "gateway_response_code": "00",
        "gateway_reference_id": "809323430413"
      },
      "remarks": "Sample Remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Mandate is successfully created",
      "merchant_customer_id": "DEMO-CUST-1234",
      "mandate": {
        "validity_start": "2020/06/04",
        "validity_end": "2020/06/05",
        "transaction_type": "UPI_MANDATE",
        "share_to_payee": true,
        "role": "PAYEE",
        "recurrence_value": "5",
        "recurrence_rule": "ON",
        "recurrence_pattern": "MONTHLY",
        "payer_revocable": true,
        "org_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "mandate_timestamp": "2020-06-01T10:10:42Z",
        "mandate_name": "merchant mandate",
        "mandate_approval_timestamp": "2017-06-09T12:28:49Z",
        "initiated_by": "PAYER",
        "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "block_fund": true,
        "amount_rule": "FIXED"
      },
      "expiry": "2020-07-24T19:00:00Z",
      "amount": "100.00"
    }
  }
}

// block:end:outgoingCreateMandateFromCustomer

// block:start:incomingUpdateMandateRequestForCustomer

{
  "id": "evt_V2_912b61c9770c4049a73badb1b8ef806a",
  "event_name": "MERCHANT_CUSTOMER_INCOMING_MANDATE_UPDATE_REQUEST_RECEIVED",
  "date_created": "2021-12-07T14:29:47Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "9962463212@BANK",
        "payer_name": "ABC",
        "payee_vpa": "test@BANK",
        "payee_name": "BANKTEST",
        "payee_mcc": "4121",
        "merchant_id": "BANK",
        "merchant_channel_id": "BANK"
      },
      "transaction": {
        "umn": "uniqueMandateNumber@bank",
        "ref_url": "https://www.abcxyz.com/",
        "gateway_reference_id": "809323430413"
      },
      "remarks": "Sample Remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "merchant_customer_id": "DEMO-CUST-1234",
      "mandate": {
        "validity_start": "2020/06/04",
        "validity_end": "2020/06/05",
        "transaction_type": "UPI_MANDATE",
        "share_to_payee": true,
        "role": "PAYER",
        "recurrence_value": "5",
        "recurrence_rule": "ON",
        "recurrence_pattern": "MONTHLY",
        "payer_revocable": true,
        "org_mandate_id": "BJJMsleiuryufhuhsoisdjfadb48003sdaa0",
        "mandate_type": "UPDATE",
        "mandate_timestamp": "2020-06-01T10:10:42Z",
        "mandate_name": "merchant mandate",
        "initiated_by": "PAYER",
        "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "block_fund": true,
        "amount_rule": "VARIABLE"
      },
      "expiry": "2020-07-24T19:00:00Z",
      "amount": "100.00"
    }
  }
}

// block:end:incomingUpdateMandateRequestForCustomer

// block:start:incomingUpdateMandateForCustomer

{
  "id": "evt_V2_793089c9a7234c1080b8a1137a7a2be8",
  "event_name": "MERCHANT_CUSTOMER_INCOMING_MANDATE_UPDATED",
  "date_created": "2021-12-07T14:31:02Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "9962463212@BANK",
        "payer_name": "ABC",
        "payee_vpa": "test@BANK",
        "payee_name": "BANKTEST",
        "payee_mcc": "4121",
        "merchant_id": "BANK",
        "merchant_channel_id": "BANK"
      },
      "transaction": {
        "udf_parameters": "{}",
        "umn": "uniqueMandateNumber@bank",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "6138ne3wswbsssddc4dddc",
        "gateway_response_status": "SUCCESS",
        "gateway_response_code": "00",
        "gateway_reference_id": "809323430413"
      },
      "remarks": "Sample Remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Mandate is successfully updated",
      "merchant_customer_id": "DEMO-CUST-1234",
      "mandate": {
        "validity_start": "2020/06/04",
        "validity_end": "2020/06/05",
        "transaction_type": "UPI_MANDATE",
        "share_to_payee": true,
        "role": "PAYER",
        "recurrence_value": "5",
        "recurrence_rule": "ON",
        "recurrence_pattern": "MONTHLY",
        "payer_revocable": true,
        "org_mandate_id": "BJJMsleiuryufhuhsoisdjfadb48003sdaa0",
        "mandate_type": "UPDATE",
        "mandate_timestamp": "2020-06-01T10:10:42Z",
        "mandate_name": "merchant mandate",
        "initiated_by": "PAYER",
        "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "block_fund": true
      },
      "expiry": "2020-07-24T19:00:00Z",
      "amount": "100.00"
    }
  }
}

// block:end:incomingUpdateMandateForCustomer

// block:start:outgoingUpdateMandateFromCustomer

{
  "id": "evt_V2_793089c9a7234c1080b8a1137a7a2be8",
  "event_name": "MERCHANT_CUSTOMER_OUTGOING_MANDATE_UPDATED",
  "date_created": "2021-12-07T14:31:02Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "9962463212@BANK",
        "payer_name": "ABC",
        "payee_vpa": "test@BANK",
        "payee_name": "BANKTEST",
        "payee_mcc": "4121",
        "merchant_id": "BANK",
        "merchant_channel_id": "BANK"
      },
      "transaction": {
        "udf_parameters": "{}",
        "umn": "uniqueMandateNumber@bank",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "6138ne3wswbsssddc4dddc",
        "gateway_response_status": "SUCCESS",
        "gateway_response_code": "00",
        "gateway_reference_id": "809323430413"
      },
      "remarks": "Sample Remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Mandate is successfully updated",
      "merchant_customer_id": "DEMO-CUST-1234",
      "mandate": {
        "validity_start": "2020/06/04",
        "validity_end": "2020/06/05",
        "transaction_type": "UPI_MANDATE",
        "share_to_payee": true,
        "role": "PAYER",
        "recurrence_value": "5",
        "recurrence_rule": "ON",
        "recurrence_pattern": "MONTHLY",
        "payer_revocable": true,
        "org_mandate_id": "BJJMsleiuryufhuhsoisdjfadb48003sdaa0",
        "mandate_type": "UPDATE",
        "mandate_timestamp": "2020-06-01T10:10:42Z",
        "mandate_name": "merchant mandate",
        "initiated_by": "PAYER",
        "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "block_fund": true
      },
      "expiry": "2020-07-24T19:00:00Z",
      "amount": "100.00"
    }
  }
}

// block:end:outgoingUpdateMandateFromCustomer

// block:start:outgoingPauseMandateFromCustomer

{
  "id": "evt_V2_99b99545a8ea471c9a33af80759b6502",
  "event_name": "MERCHANT_CUSTOMER_OUTGOING_MANDATE_PAUSED",
  "date_created": "2021-12-07T14:33:06Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "9962463212@BANK",
        "payer_name": "ABC",
        "payee_vpa": "test@BANK",
        "payee_name": "BANKTEST",
        "payee_mcc": "4121",
        "merchant_id": "BANK",
        "merchant_channel_id": "BANK"
      },
      "transaction": {
        "udf_parameters": "{}",
        "umn": "uniqueMandateNumber@bank",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "6138ne3wswbsssddc4dddc",
        "gateway_response_status": "SUCCESS",
        "gateway_response_code": "00",
        "gateway_reference_id": "809323430413"
      },
      "remarks": "Sample Remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Mandate is successfully paused",
      "merchant_customer_id": "DEMO-CUST-1234",
      "mandate": {
        "validity_start": "2020/06/04",
        "validity_end": "2020/06/05",
        "transaction_type": "UPI_MANDATE",
        "share_to_payee": true,
        "role": "PAYER",
        "recurrence_value": "5",
        "recurrence_rule": "ON",
        "recurrence_pattern": "MONTHLY",
        "payer_revocable": true,
        "pause_start": "2019/09/17",
        "pause_end": "2019/09/19",
        "org_mandate_id": "BJJMsleiuryufhuhsoisdjfadb48003sdaa0",
        "mandate_type": "PAUSE",
        "mandate_timestamp": "2020-06-01T10:10:42Z",
        "mandate_name": "merchant mandate",
        "initiated_by": "PAYER",
        "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "block_fund": true
      },
      "amount": "100.00"
    }
  }
}

// block:end:outgoingPauseMandateFromCustomer

// block:start:incomingPrePaymentNotificationMandateForCustomer

{
  "id": "evt_V2_f20bfac484f4456486e5a1e0bbd85776",
  "event_name": "MERCHANT_CUSTOMER_INCOMING_PRE_PAYMENT_NOTIFICATION_MANDATE_RECEIVED",
  "date_created": "2021-12-10T13:18:38Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "merchant_id": "MERCHANT",
        "merchant_channel_id": "MERCHANTAPP"
      },
      "transaction": {
        "umn": "customervpa@bank",
        "seq_number": "1",
        "merchant_request_id": "TXN1234567",
        "gateway_response_status": "SUCCESS",
        "gateway_response_code": "00",
        "gateway_reference_id": "809323430413"
      },
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "merchant_customer_id": "DEMO_CUST-1234",
      "mandate": {
        "org_mandate_id": "BJJ0f018ee5b832468779cb4a53ea9bde",
        "next_execution": "2017-06-09T12:27:49Z",
        "gateway_mandate_id": "BJJ0f018ee5bc8b428fb979cb4a53ea9bde"
      },
      "amount": "9.00"
    }
  }
}

// block:end:incomingPrePaymentNotificationMandateForCustomer

//block:start:complaintRaised

{
  "event_name": "MERCHANT_CUSTOMER_COMPLAINT_RAISED",
  "content": {
    "merchant_customer": {
      "upi": {
        "payer_mobile_number": "9876543210",
        "upi_app": "YES_BIZ",
        "merchant_channel_id": "TESTAPP",
        "payer_vpa": "123454306@upi",
        "merchant_id": "TEST",
        "payee_vpa": "83746598743@upi"
      },
      "amount": "1.00",
      "payment_method": "UPI",
      "payment_method_type": "UPI",
      "gateway_webhook_payload": {
        "payer_mobile_number": "919988776655",
        "req_adj_code": "U010",
        "gateway_response_status": "SUCCESS",
        "transaction_amount": "1.00",
        "req_adj_flag": "PBRB",
        "gateway_response_message": "Complaint is Raised",
        "org_resp_code": "RR",
        "merchant_customer_id": "test-merchantcustomer-1",
        "original_transaction_timestamp": "2021-08-12T22:50:00+05:30",
        "gateway_response_code": "00",
        "merchant_channel_id": "TESTAPP",
        "payer_vpa": "123454306@upi",
        "crn": "302570532",
        "original_gateway_transaction_id": "AIX699393106f865d1a9467c59725789tgh",
        "gateway_complaint_id": "AIX699393106f865d1a9467c59725789tgh",
        "req_adj_amount": "0.50",
        "merchant_id": "TEST",
        "payee_vpa": "83746598743@upi",
        "type": "CUSTOMER_COMPLAINT_RAISED",
        "remarks": "Goods not received"
      },
      "complaint": {
        "adj_flag": "PBRB",
        "gateway_response_status": "SUCCESS",
        "transaction_amount": "1.00",
        "adj_code": "U010",
        "original_transaction_timestamp": "2021-08-12T17:20:00Z",
        "gateway_response_code": "00",
        "adj_amount": "0.50",
        "crn": "302570532",
        "original_gateway_transaction_id": "AIX699393106f865d1a9467c59725789tgh",
        "gateway_complaint_id": "AIX699393106f865d1a9467c59725789tgh"
      },
      "message": "Complaint is Raised",
      "remarks": "Goods not received"
    }
  },
  "id": "evt_V2_0342cf251aa9460ba6500e0b7fe9aef3",
  "date_created": "2023-02-09T10:17:56Z"
}

// block:end:complaintRaised

//block:start:complaintResolved

{
  "id": "evt_V2_5049b27bcc264930b45c8d25a398f665",
  "event_name": "MERCHANT_CUSTOMER_COMPLAINT_RESOLVED",
  "date_created": "2022-03-30T21:23:39Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "merchant_channel_id": "TESTAPP",
        "merchant_id": "TEST",
        "upi_app": "AXIS_BIZ",
        "payer_vpa": "123454306@axb",
        "payee_vpa": "83746598743@axb"
      },
      "remarks": "Goods not received",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Complaint is Resolved",
      "merchant_customer_id": "test-merchantcustomer-1",
      "customer_mobile_number": "919988776655",
      "complaint": {
        "gateway_response_status": "SUCCESS",
        "gateway_complaint_id": "AIX699393106f865d1a9467c59725789tgh",
        "adj_code": "U010",
        "org_sett_resp_code": "RR",
        "custom_response": "{}",
        "original_transaction_timestamp": "2021-08-12T17:20:00Z",
        "adj_flag": "PBRB",
        "gateway_response_code": "00",
        "gateway_reference_id": "123456",
        "crn": "302570532",
        "transaction_amount": "1.00",
        "original_gateway_transaction_id": "AIX699393106f865d1a9467c59725789tgh",
        "adj_amount": "0.50",
        "curr_cycle": "Y"
      }
    }
  }
}

// block:end:complaintResolved

//block:start:txnCreated

{
  "id": "evt_V2_5c08a08095ea4279ad28347241678c0b",
  "event_name": "TXN_CREATED",
  "date_created": "2022-01-28T09:14:52Z",
  "content": {
    "order": {
      "upi": {
        "upi_bank_account_reference_id": "Afeb13dcb1c14e7eb0a2dba7ad8b2b",
        "txn_type": "UPI_INAPP",
        "payer_vpa": "8088219177@sliceaxis",
        "payer_app": "AXIS_BIZ",
        "masked_bank_account_number": "XXXXXXX20000",
        "bank_name": "MYPSP",
        "bank_code": "500001"
      },
      "udf9": "",
      "udf8": "",
      "udf7": "",
      "udf6": "",
      "udf5": "",
      "udf4": "",
      "udf3": "",
      "udf2": "",
      "udf10": "",
      "udf1": "",
      "txn_uuid": "eulwh64Rw6dQSNBUZUE",
      "txn_id": "slice-R7648276171-1",
      "txn_detail": {
        "txn_uuid": "eulwh64Rw6dQSNBUZUE",
        "txn_id": "slice-R7648276171-1",
        "txn_amount": 10000,
        "tax_amount": 0,
        "surcharge_amount": 0,
        "status": "PENDING_VBV",
        "redirect": true,
        "order_id": "R7648276171",
        "net_amount": 10000,
        "gateway_id": 511,
        "gateway": "AXIS_BIZ",
        "express_checkout": false,
        "error_message": "",
        "error_code": null,
        "currency": "INR",
        "created": "2022-01-28T09:14:52Z"
      },
      "status_id": 23,
      "status": "PENDING_VBV",
      "rewards_breakup": null,
      "return_url": "https://links.slicepay.in/repayments",
      "refunded": false,
      "product_id": "",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_links": {
        "web": "https://sandbox.juspay.in/merchant/pay/ordeu_f07e1293e5684eb5ae815dbf6c998644",
        "mobile": "https://sandbox.juspay.in/merchant/pay/ordeu_f07e1293e5684eb5ae815dbf6c998644?mobile=true",
        "iframe": "https://sandbox.juspay.in/merchant/ipay/ordeu_f07e1293e5684eb5ae815dbf6c998644"
      },
      "payer_vpa": "8088219177@sliceaxis",
      "order_id": "R7648276171",
      "offers": [

      ],
      "metadata": null,
      "merchant_id": "slice",
      "id": "ordeu_f07e1293e5684eb5ae815dbf6c998644",
      "gateway_reference_id": null,
      "gateway_id": 511,
      "effective_amount": 10000,
      "date_created": "2022-01-28T09:14:51Z",
      "customer_phone": "",
      "customer_id": "8088219177",
      "customer_email": null,
      "currency": "INR",
      "bank_pg": null,
      "bank_error_message": "",
      "bank_error_code": "",
      "auth_type": "",
      "amount_refunded": 0,
      "amount": 10000
    }
  }
}

//block:end:txnCreated

//block:start:txnCharged

{
  "id": "evt_V2_0605110330aa49cea64215d095bf050b",
  "event_name": "TXN_CHARGED",
  "date_created": "2022-01-28T09:15:04Z",
  "content": {
    "txn": {
      "txn_uuid": "eulwh64Rw6dQSNBUZUE",
      "txn_id": "slice-R7648276171-1",
      "txn_amount": 10000,
      "tax_amount": 0,
      "surcharge_amount": 0,
      "status_id": 21,
      "status": "CHARGED",
      "redirect": true,
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_gateway_response": {
        "txn_id": "eulwh64Rw6dQSNBUZUE",
        "rrn": "202814207184",
        "resp_message": "Your transaction is successful",
        "resp_code": "00",
        "epg_txn_id": "AXB22f8d0fafdf9455bb9d7b657c2ab14e4",
        "created": "2022-01-28T09:15:04Z",
        "auth_id_code": null
      },
      "order_id": "R7648276171",
      "net_amount": 10000,
      "gateway_id": 511,
      "gateway": "AXIS_BIZ",
      "express_checkout": false,
      "error_message": "",
      "error_code": "",
      "currency": "INR",
      "created": "2022-01-28T09:14:52Z"
    }
  }
}

//block:end:txnCharged

//block:start:orderSucceeded

{
  "id": "evt_V2_45dca165c3364d2db56f2df48fac2f7a",
  "event_name": "ORDER_SUCCEEDED",
  "date_created": "2022-01-28T09:15:04Z",
  "content": {
    "order": {
      "upi": {
        "upi_bank_account_reference_id": "Afeb13dcb1c14e7eb0a2dba7ad8b2b",
        "txn_type": "UPI_INAPP",
        "payer_vpa": "8088219177@sliceaxis",
        "payer_app": "AXIS_BIZ",
        "masked_bank_account_number": "XXXXXXX20000",
        "bank_name": "MYPSP",
        "bank_code": "500001"
      },
      "udf9": "",
      "udf8": "",
      "udf7": "",
      "udf6": "",
      "udf5": "",
      "udf4": "",
      "udf3": "",
      "udf2": "",
      "udf10": "",
      "udf1": "",
      "txn_uuid": "eulwh64Rw6dQSNBUZUE",
      "txn_id": "slice-R7648276171-1",
      "txn_detail": {
        "txn_uuid": "eulwh64Rw6dQSNBUZUE",
        "txn_id": "slice-R7648276171-1",
        "txn_amount": 10000,
        "tax_amount": 0,
        "surcharge_amount": 0,
        "status": "CHARGED",
        "redirect": true,
        "order_id": "R7648276171",
        "net_amount": 10000,
        "gateway_id": 511,
        "gateway": "AXIS_BIZ",
        "express_checkout": false,
        "error_message": "",
        "error_code": "",
        "currency": "INR",
        "created": "2022-01-28T09:14:52Z"
      },
      "status_id": 21,
      "status": "CHARGED",
      "rewards_breakup": null,
      "return_url": "https://links.slicepay.in/repayments",
      "refunded": false,
      "product_id": "",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_links": {
        "web": "https://sandbox.juspay.in/merchant/pay/ordeu_f07e1293e5684eb5ae815dbf6c998644",
        "mobile": "https://sandbox.juspay.in/merchant/pay/ordeu_f07e1293e5684eb5ae815dbf6c998644?mobile=true",
        "iframe": "https://sandbox.juspay.in/merchant/ipay/ordeu_f07e1293e5684eb5ae815dbf6c998644"
      },
      "payment_gateway_response": {
        "txn_id": "eulwh64Rw6dQSNBUZUE",
        "rrn": "202814207184",
        "resp_message": "Your transaction is successful",
        "resp_code": "00",
        "gateway_response": {
          "merchantChannelId": "SLICEAPP",
          "amount": "10000.00",
          "merchantId": "SLICE",
          "gatewayResponseMessage": "Your transaction is successful",
          "payerVpa": "8088219177@sliceaxis",
          "merchantRequestId": "eulwh64Rw6dQSNBUZUE",
          "gatewayResponseCode": "00",
          "gatewayReferenceId": "202814207184",
          "gatewayTransactionId": "AXB22f8d0fafdf9455bb9d7b657c2ab14e4",
          "payeeVpa": "repayments@sliceaxis",
          "transactionTimestamp": "2022-01-28T14:44:51+05:30",
          "udfParameters": "{}",
          "type": "MERCHANT_CREDITED_VIA_PAY"
        },
        "epg_txn_id": "AXB22f8d0fafdf9455bb9d7b657c2ab14e4",
        "created": "2022-01-28T09:15:04Z",
        "auth_id_code": null
      },
      "payer_vpa": "8088219177@sliceaxis",
      "order_id": "R7648276171",
      "offers": [

      ],
      "metadata": null,
      "merchant_id": "slice",
      "id": "ordeu_f07e1293e5684eb5ae815dbf6c998644",
      "gateway_reference_id": null,
      "gateway_id": 511,
      "effective_amount": 10000,
      "date_created": "2022-01-28T09:14:51Z",
      "customer_phone": "",
      "customer_id": "8088219177",
      "customer_email": null,
      "currency": "INR",
      "bank_pg": null,
      "bank_error_message": "",
      "bank_error_code": "",
      "auth_type": "",
      "amount_refunded": 0,
      "amount": 10000
    }
  }
}

//block:end:orderSucceeded

//block:start:txnFailed

{
  "id": "evt_V2_311d1b273a084b06bfd957e01293f8ce",
  "event_name": "TXN_FAILED",
  "date_created": "2022-01-28T09:16:46Z",
  "content": {
    "txn": {
      "txn_uuid": "eul2PiJnWLDUnC9SKr2",
      "txn_id": "slice-R670115430-1",
      "txn_amount": 200001,
      "tax_amount": 0,
      "surcharge_amount": 0,
      "status_id": 26,
      "status": "AUTHENTICATION_FAILED",
      "redirect": true,
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_gateway_response": {
        "txn_id": "eul2PiJnWLDUnC9SKr2",
        "rrn": "202814514190",
        "resp_message": "Bank is taking too long to respond. Please try again!",
        "resp_code": "U09",
        "epg_txn_id": "AXB961f2e31e3614bdca113b3a9959092cd",
        "created": "2022-01-28T09:16:46Z",
        "auth_id_code": null
      },
      "order_id": "R670115430",
      "net_amount": 200001,
      "gateway_id": 511,
      "gateway": "AXIS_BIZ",
      "express_checkout": false,
      "error_message": "Bank is taking too long to respond. Please try again!",
      "error_code": "U09",
      "currency": "INR",
      "created": "2022-01-28T09:16:23Z"
    }
  }
}

//block:end:txnFailed

//block:start:orderFailed

{
  "id": "evt_V2_adedb85fc8d7404ab5c044a25ca1303f",
  "event_name": "ORDER_FAILED",
  "date_created": "2022-01-28T09:16:46Z",
  "content": {
    "order": {
      "upi": {
        "upi_bank_account_reference_id": "Afeb13dcb1c14e7eb0a2dba7ad8b2b",
        "txn_type": "UPI_INAPP",
        "payer_vpa": "8088219177@sliceaxis",
        "payer_app": "AXIS_BIZ",
        "masked_bank_account_number": "XXXXXXX20000",
        "bank_name": "MYPSP",
        "bank_code": "500001"
      },
      "udf9": "",
      "udf8": "",
      "udf7": "",
      "udf6": "",
      "udf5": "",
      "udf4": "",
      "udf3": "",
      "udf2": "",
      "udf10": "",
      "udf1": "",
      "txn_uuid": "eul2PiJnWLDUnC9SKr2",
      "txn_id": "slice-R670115430-1",
      "txn_detail": {
        "txn_uuid": "eul2PiJnWLDUnC9SKr2",
        "txn_id": "slice-R670115430-1",
        "txn_amount": 200001,
        "tax_amount": 0,
        "surcharge_amount": 0,
        "status": "AUTHENTICATION_FAILED",
        "redirect": true,
        "order_id": "R670115430",
        "net_amount": 200001,
        "gateway_id": 511,
        "gateway": "AXIS_BIZ",
        "express_checkout": false,
        "error_message": "Bank is taking too long to respond. Please try again!",
        "error_code": "U09",
        "currency": "INR",
        "created": "2022-01-28T09:16:23Z"
      },
      "status_id": 26,
      "status": "AUTHENTICATION_FAILED",
      "rewards_breakup": null,
      "return_url": "https://links.slicepay.in/repayments",
      "refunded": false,
      "product_id": "",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_links": {
        "web": "https://sandbox.juspay.in/merchant/pay/ordeu_a9d8fc9ee3a9497da961537fc045f66e",
        "mobile": "https://sandbox.juspay.in/merchant/pay/ordeu_a9d8fc9ee3a9497da961537fc045f66e?mobile=true",
        "iframe": "https://sandbox.juspay.in/merchant/ipay/ordeu_a9d8fc9ee3a9497da961537fc045f66e"
      },
      "payment_gateway_response": {
        "txn_id": "eul2PiJnWLDUnC9SKr2",
        "rrn": "202814514190",
        "resp_message": "Bank is taking too long to respond. Please try again!",
        "resp_code": "U09",
        "gateway_response": {
          "merchantChannelId": "SLICEAPP",
          "amount": "200001.00",
          "merchantId": "SLICE",
          "gatewayResponseMessage": "Bank is taking too long to respond. Please try again!",
          "payerVpa": "8088219177@sliceaxis",
          "merchantRequestId": "eul2PiJnWLDUnC9SKr2",
          "gatewayResponseCode": "U09",
          "gatewayReferenceId": "202814514190",
          "gatewayTransactionId": "AXB961f2e31e3614bdca113b3a9959092cd",
          "payeeVpa": "repayments@sliceaxis",
          "transactionTimestamp": "2022-01-28T14:46:20+05:30",
          "udfParameters": "{}",
          "type": "MERCHANT_CREDITED_VIA_PAY"
        },
        "epg_txn_id": "AXB961f2e31e3614bdca113b3a9959092cd",
        "created": "2022-01-28T09:16:46Z",
        "auth_id_code": null
      },
      "payer_vpa": "8088219177@sliceaxis",
      "order_id": "R670115430",
      "offers": [

      ],
      "metadata": null,
      "merchant_id": "slice",
      "id": "ordeu_a9d8fc9ee3a9497da961537fc045f66e",
      "gateway_reference_id": null,
      "gateway_id": 511,
      "effective_amount": 200001,
      "date_created": "2022-01-28T09:16:22Z",
      "customer_phone": "",
      "customer_id": "8088219177",
      "customer_email": null,
      "currency": "INR",
      "bank_pg": null,
      "bank_error_message": "Bank is taking too long to respond. Please try again!",
      "bank_error_code": "U09",
      "auth_type": "",
      "amount_refunded": 0,
      "amount": 200001
    }
  }
}

//block:end:orderFailed

//block:end:bankAccountLinkedByCustomer

{
  "id": "evt_gsu1c0r7umcfrxeb",
  "date_created": "2021-05-05T10:42:25Z",
  "event_name": "MERCHANT_CUSTOMER_LINKED_BANK_ACCOUNT",
  "content": {
	"merchant_customer": {
            "payment_method_type" : "UPI",
            "payment_method" : "UPI",
            "merchant_id" : "Slice",
            "merchant_customer_id": "DEMO-CUST-1234",
            "customer_mobile_numer": "91xxxxxxxxxx",
            "upi" : {
             "upi_app" : "YES_BIZ",
             "bank_accounts" : [{
	         "masked_account_number" : "xxxxxxx123045678",
                "account_number" : "12345678921233",
                "ifsc_code": "HDFC012345",
                "upi_bank_account_reference_id": "Unique id",
                "bank_name": "HDFC",
                "bank_code": "HDFC",
                "juspay_bank_code": "JP_HDFC",
                "account_name": "Customer Name",
                "account_type": "SAVINGS"
            } ]
          }
        }
    }
}

//block:end:bankAccountLinkedByCustomer

//block:end:merchantCustomerPortedUpiNumber

{
  "id": "evt_gsu1c0r7umcfrxeb",
  "date_created": "2021-05-05T10:42:25Z",
  "event_name": "MERCHANT_CUSTOMER_PORTED_UPI_NUMBER",
  "content": {
	  "merchant_customer": {
    }
  }
}

//block:end:merchantCustomerPortedUpiNumber

//block:start:mandateCallback

{
   "id": "evt_V2_4b83ba211443b53fc020d4c",
   "event_name": "ORDER_SUCCEEDED",
   "date_created": "2021-03-20T07:48:31Z",
   "content": {
     "order": {
       "udf8": "",
       "udf7": "",
       "udf6": "",
       "udf5": "",
       "udf4": "",
       "udf3": "",
       "udf2": "",
       "udf10": "",
       "udf1": "",
       "txn_uuid": "eulmy******y1Syy",
       "txn_id": "juspay-2348******3498-1",
       "txn_detail": {
         "txn_uuid": "eulmy******y1Syy",
         "txn_object_type": "EMANDATE_REGISTER",
         "txn_id": "juspay-2348******3498-1",
         "txn_amount": 1,
         "tax_amount": null,
         "surcharge_amount": null,
         "status": "CHARGED",
         "source_object_id": "91887",
         "source_object": "MANDATE",
         "redirect": true,
         "order_id": "2348******3498",
         "net_amount": 1,
         "gateway_id": 19,
         "gateway": "YES_BIZ",
         "express_checkout": false,
         "error_message": "",
         "error_code": "",
         "currency": "INR",
         "created": "2020-08-30T09:53:17Z"
       },
       "status_id": 21,
       "status": "CHARGED",
       "refunded": false,
       "product_id": "",
       "payment_method_type": "UPI",
       "payment_method": "UPI",
       "payment_links": {
         "web": "https://sandbox.juspay.in/merchant/pay/ordeu_9a092980*******4d0206",
         "mobile": "https://sandbox.juspay.in/merchant/pay/ordeu_9a092980*******4d0206?mobile=true",
         "iframe": "https://sandbox.juspay.in/merchant/ipay/ordeu_9a092980*******4d0206"
       },
       "upi": {
           "txn_flow_type" : "INAPP",
           "masked_bank_account_number": "4XXXXXXXX2323",
           "bank_name": "HDFC bank",
           "bank_code": "HDFC",
           "upi_bank_account_reference_id": "A0760cb548bb4dda9d32e3030863dd5",
           "payer_vpa" : "customer@vpa",
           "payer_app" : "AXIS_UPI",
       },
       "payment_gateway_response":  {
            "resp_code": "00",
            "rrn": null,
            "created": "2021-08-17T13:44:21Z",
            "epg_txn_id": "YJP9999rv9999a99c19a4877ede7954984e",// Its the orgMandateId . Common ID between Juspay and NPCI .
            "resp_message": "Your transaction is successful",
            "auth_id_code": null,
            "txn_id": "eul7yc7TReHhAyNVsGp"
       },
       "payer_vpa" : "customer@vpa",
       "order_id": "2348******3498",
       "merchant_id": "juspay",
       "mandate": {
         "start_date": "1598745600",
         "rule_value": 30,
         "rule_type": "AFTER",
         "revokable_by_customer": true,
         "max_amount": 1000,
         "mandate_type": "EMANDATE",
         "mandate_token": "ad1d221******0f3",
         "mandate_status": "ACTIVE",
         "mandate_id": "3XMEcS******Ybzj", // common id between Groww and Juspay
         "frequency": "MONTHLY",
         "end_date": "160***10",
         "block_fund": false,
         "amount_rule": "VARIABLE"
       },
       "id": "ordeu_9a092980*******4d0206",
       "gateway_reference_id": "upimandate",
       "gateway_id": 514,
       "date_created": "2020-08-30T09:47:46Z",
       "customer_phone": "9999999999",
       "customer_id": "cst_lz*****okv",
       "customer_email": "customer@gmail.com",
       "currency": "INR",
       "bank_error_message": "",
       "bank_error_code": "",
       "amount_refunded": 0,
       "amount": 1
     }
   }
 }

//block:end:mandateCallback
```

#### Swift Code Snippet:

```swift
// block:start:incomingCollectRequestToCustomer

{
  "id": "evt_V2_03c6ec0681124450b55cf92fa35df241",
  "event_name": "MERCHANT_CUSTOMER_COLLECT_REQUEST_RECEIVED",
  "date_created": "2021-12-07T13:46:40Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "customer1@abc",
        "payer_merchant_customer_id": "DEMO-CUST-1234",
        "payee_vpa": "customer@xyz",
        "payee_name": "Customer Name",
        "payee_merchant_customer_id": "DEMO-CUST-5678",
        "payee_mcc": "4121",
        "merchant_id": "DEMOUAT01"
      },
      "transaction": {
        "umn": "DCR123be148c7ba3b14f6db5cde57c65ccf@bank",
        "seq_number": "1",
        "ref_url": "https://www.abcxyz.com/",
        "is_verified_payee": true,
        "is_marked_spam": true,
        "gateway_transaction_id": "XYZd0c077f39c454979...",
        "gateway_reference_id": "806115044725",
        "custom_response": "{}"
      },
      "remarks": "This is remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "merchant_customer_id": "DEMO-CUST-1234",
      "expiry": "2016-11-24T19:00:00Z",
      "date_created": "2016-11-24T18:30:00Z",
      "amount": "100.00"
    }
  }
}

// block:end:incomingCollectRequestToCustomer

// block:start:outgoingCollectRequestFromCustomer

{
  "id": "evt_V2_6051eb4f1dd545bb8ac82d80c86db763",
  "event_name": "MERCHANT_CUSTOMER_COLLECT_REQUEST_SENT",
  "date_created": "2021-12-07T13:53:50Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "customer1@abc",
        "payer_name": "Customer Name",
        "payee_vpa": "customer@xyz",
        "payee_mobile_number": "919876543210",
        "payee_merchant_customer_id": "DEMO-CUST-1234",
        "payee_mcc": "4121",
        "merchant_id": "DEMOUAT01",
        "merchant_channel_id": "DEMOUAT01",
        "masked_account_number": "XXXXXXX9988",
        "bank_code": "123456",
        "bank_account_unique_id": "4536baef...32cdba67"
      },
      "transaction": {
        "udf_parameters": "{}",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "TXN1234567",
        "gateway_transaction_id": "XYZd0c077f39c454979...",
        "gateway_response_code": "00",
        "gateway_reference_id": "806115044725",
        "custom_response": "{}"
      },
      "remarks": "This is remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Collect request sent successfully",
      "merchant_customer_id": "DEMO-CUST-1234",
      "expiry": "2016-11-24T19:00:00Z",
      "date_created": "2016-11-24T18:30:00Z",
      "amount": "100.00"
    }
  }
}

// block:end:outgoingCollectRequestFromCustomer

// block:start:incomingMoneyToCustomerPay

{
  "id": "evt_V2_fc893a0229b94a05bcac4e1d4ba31c47",
  "event_name": "MERCHANT_CUSTOMER_RECEIVED_MONEY",
  "date_created": "2021-12-07T13:51:16Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "customer@xyz",
        "payer_name": "Customer Name",
        "payee_vpa": "customer1@abc",
        "payee_mobile_number": "919812388554",
        "payee_merchant_customer_id": "DEMO-CUST-1234",
        "payee_mcc": "4121",
        "merchant_id": "DEMOUAT01",
        "masked_account_number": "XXXX123456",
        "bank_code": "123456",
        "bank_account_unique_id": "fb96f8b2b1ab0c070d0d894......"
      },
      "transaction": {
        "udf_parameters": "{}",
        "ref_url": "https://www.abcxyz.com/",
        "gateway_transaction_id": "XYZd0c077f39c454979...",
        "gateway_response_code": "00",
        "gateway_reference_id": "806115044725",
        "custom_response": "{}"
      },
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Transaction is approved",
      "merchant_customer_id": "DEMO-CUST-1234",
      "date_created": "2016-11-24T18:30:00Z",
      "amount": "100.00"
    }
  }
}

// block:end:incomingMoneyToCustomerPay

// block:start:outgoingMoneyFromCustomer

{
  "id": "evt_V2_764d477007844e0aa8728d1dc3e617f2",
  "event_name": "MERCHANT_CUSTOMER_DEBITED_VIA_PAY",
  "date_created": "2021-12-07T13:52:49Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "customer1@abc",
        "payer_mobile_number": "919812388554",
        "payer_merchant_customer_id": "DEMO-CUST-1234",
        "payee_vpa": "customer@xyz",
        "payee_name": "Customer Name",
        "payee_mcc": "4121",
        "merchant_id": "MERCHANT",
        "merchant_channel_id": "DEMOUATAPP",
        "masked_account_number": "XXXXXXX9988",
        "bank_code": "123456",
        "bank_account_unique_id": "4536baef...32cdba67"
      },
      "transaction": {
        "umn": "DCR123be148c7ba3b14f6db5cde57c65ccf@bank",
        "seq_number": "1",
        "udf_parameters": "{}",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "TXN1234567",
        "gateway_transaction_id": "DEMOUATAPP01TXNfo897fHVTiYq51739",
        "gateway_response_code": "00",
        "gateway_reference_id": "806115044725",
        "custom_response": "{}"
      },
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Transaction is approved",
      "merchant_customer_id": "DEMO-CUST-1234",
      "date_created": "2016-11-24T18:30:00Z",
      "amount": "10.00"
    }
  }
}

// block:end:outgoingMoneyFromCustomer

// block:start:incomingMoneyToCustomerCollect

{
  "id": "evt_V2_0d39b03ca2c64a8588947b71ecbc6ead",
  "event_name": "MERCHANT_CUSTOMER_CREDITED_VIA_COLLECT",
  "date_created": "2021-12-07T13:49:55Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "customer@xyz",
        "payer_name": "Customer Name",
        "payee_vpa": "customer1@abc",
        "payee_mobile_number": "919812388554",
        "payee_merchant_customer_id": "DEMO-CUST-1234",
        "payee_mcc": "4121",
        "merchant_id": "DEMOUAT01",
        "merchant_channel_id": "DEMOUATAPP",
        "masked_account_number": "XXXX123456",
        "bank_code": "123456",
        "bank_account_unique_id": "fb96f8b2b...1ab0c070d0d894"
      },
      "transaction": {
        "udf_parameters": "{}",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "TXN1234567",
        "gateway_transaction_id": "XYZd0c077...f39c454979",
        "gateway_response_code": "00",
        "gateway_reference_id": "806115044725",
        "custom_response": "{}"
      },
      "remarks": "Sample remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Transaction is approved",
      "merchant_customer_id": "DEMO-CUST-1234",
      "expiry": "2016-11-24T18:40:00Z",
      "date_created": "2016-11-24T18:30:00Z",
      "amount": "100.00"
    }
  }
}

// block:end:incomingMoneyToCustomerCollect

// block:start:incomingCreateMandateRequestForCustomer

{
  "id": "evt_V2_eb42521dd872424a84bace92ed050d94",
  "event_name": "MERCHANT_CUSTOMER_INCOMING_MANDATE_CREATE_REQUEST_RECEIVED",
  "date_created": "2021-12-10T12:28:10Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "9962463212@BANK",
        "payee_vpa": "test@BANK",
        "payee_name": "BANKTEST",
        "payee_mcc": "4121",
        "merchant_id": "BANK",
        "merchant_channel_id": "BANK"
      },
      "transaction": {
        "umn": "uniqueMandateNumber@BANK",
        "ref_url": "https://www.abcxyz.com/",
        "is_verified_payee": true,
        "is_marked_spam": true,
        "gateway_reference_id": "809323430413"
      },
      "remarks": "Sample Remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "merchant_customer_id": "DEMO-CUST-1234",
      "mandate": {
        "validity_start": "2020/06/04",
        "validity_end": "2020/06/05",
        "transaction_type": "UPI_MANDATE",
        "share_to_payee": true,
        "role": "PAYER",
        "recurrence_value": "5",
        "recurrence_rule": "ON",
        "recurrence_pattern": "MONTHLY",
        "payer_revocable": true,
        "org_mandate_id": "BJJMsleiuryufhuhsoisdjfadb48003sdaa0",
        "mandate_timestamp": "2020-06-01T10:10:42Z",
        "mandate_name": "merchant mandate",
        "initiated_by": "PAYER",
        "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "block_fund": true,
        "amount_rule": "VARIABLE"
      },
      "expiry": "2020-07-24T19:00:00Z",
      "amount": "100.00"
    }
  }
}

// block:end:incomingCreateMandateRequestForCustomer

// block:start:incomingCreateMandateForCustomer

{
  "id": "evt_V2_487dcbcb0bcb4052a015ce4d8a7ede7c",
  "event_name": "MERCHANT_CUSTOMER_INCOMING_MANDATE_CREATED",
  "date_created": "2021-12-07T14:27:30Z",
  "content": {
    "merchant_customer": {
      "payee_vpa": "test@BANK",
      "payee_name": "BANKTEST",
      "payee_mcc": "4121",
      "merchant_id": "BANK",
      "merchant_channel_id": "BANK",
      "masked_account_number": "XXXXXXX9988",
      "bank_code": "123456"
    },
    "transaction": {
      "udf_parameters": "{}",
      "umn": "uniqueMandateNumber@bank",
      "ref_url": "https://www.abcxyz.com/",
      "merchant_request_id": "6138ne3wswbsssddc4dddc",
      "gateway_response_status": "SUCCESS",
      "gateway_response_code": "00",
      "gateway_reference_id": "809323430413"
    },
    "remarks": "Sample Remarks",
    "payment_method_type": "UPI",
    "payment_method": "UPI",
    "message": "Mandate is successfully created",
    "merchant_customer_id": "DEMO-CUST-1234",
    "mandate": {
      "validity_start": "2020/06/04",
      "validity_end": "2020/06/05",
      "transaction_type": "UPI_MANDATE",
      "share_to_payee": true,
      "role": "PAYER",
      "recurrence_value": "5",
      "recurrence_rule": "ON",
      "recurrence_pattern": "MONTHLY",
      "payer_revocable": true,
      "org_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
      "mandate_timestamp": "2020-06-01T10:10:42Z",
      "mandate_name": "merchant mandate",
      "mandate_approval_timestamp": "2017-06-09T12:28:49Z",
      "initiated_by": "PAYEE",
      "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
      "block_fund": true,
      "amount_rule": "VARIABLE"
    },
    "expiry": "2020-07-24T19:00:00Z",
    "amount": "100.00"
  }
}
}

// block:end:incomingCreateMandateForCustomer

// block:start:outgoingCreateMandateFromCustomer

{
  "id": "evt_V2_487dcbcb0bcb4052a015ce4d8a7ede7c",
  "event_name": "MERCHANT_CUSTOMER_OUTGOING_MANDATE_CREATED",
  "date_created": "2021-12-07T14:27:30Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "9962463212@BANK",
        "payer_name": "ABC",
        "payee_vpa": "test@BANK",
        "payee_name": "BANKTEST",
        "payee_mcc": "4121",
        "merchant_id": "BANK",
        "merchant_channel_id": "BANK",
        "masked_account_number": "XXXXXXX9988",
        "bank_code": "123456"
      },
      "transaction": {
        "udf_parameters": "{}",
        "umn": "uniqueMandateNumber@bank",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "6138ne3wswbsssddc4dddc", //the txn uuid in transaction
        "gateway_response_status": "SUCCESS",
        "gateway_response_code": "00",
        "gateway_reference_id": "809323430413"
      },
      "remarks": "Sample Remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Mandate is successfully created",
      "merchant_customer_id": "DEMO-CUST-1234",
      "mandate": {
        "validity_start": "2020/06/04",
        "validity_end": "2020/06/05",
        "transaction_type": "UPI_MANDATE",
        "share_to_payee": true,
        "role": "PAYEE",
        "recurrence_value": "5",
        "recurrence_rule": "ON",
        "recurrence_pattern": "MONTHLY",
        "payer_revocable": true,
        "org_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "mandate_timestamp": "2020-06-01T10:10:42Z",
        "mandate_name": "merchant mandate",
        "mandate_approval_timestamp": "2017-06-09T12:28:49Z",
        "initiated_by": "PAYER",
        "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "block_fund": true,
        "amount_rule": "FIXED"
      },
      "expiry": "2020-07-24T19:00:00Z",
      "amount": "100.00"
    }
  }
}

// block:end:outgoingCreateMandateFromCustomer

// block:start:incomingUpdateMandateRequestForCustomer

{
  "id": "evt_V2_912b61c9770c4049a73badb1b8ef806a",
  "event_name": "MERCHANT_CUSTOMER_INCOMING_MANDATE_UPDATE_REQUEST_RECEIVED",
  "date_created": "2021-12-07T14:29:47Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "9962463212@BANK",
        "payer_name": "ABC",
        "payee_vpa": "test@BANK",
        "payee_name": "BANKTEST",
        "payee_mcc": "4121",
        "merchant_id": "BANK",
        "merchant_channel_id": "BANK"
      },
      "transaction": {
        "umn": "uniqueMandateNumber@bank",
        "ref_url": "https://www.abcxyz.com/",
        "gateway_reference_id": "809323430413"
      },
      "remarks": "Sample Remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "merchant_customer_id": "DEMO-CUST-1234",
      "mandate": {
        "validity_start": "2020/06/04",
        "validity_end": "2020/06/05",
        "transaction_type": "UPI_MANDATE",
        "share_to_payee": true,
        "role": "PAYER",
        "recurrence_value": "5",
        "recurrence_rule": "ON",
        "recurrence_pattern": "MONTHLY",
        "payer_revocable": true,
        "org_mandate_id": "BJJMsleiuryufhuhsoisdjfadb48003sdaa0",
        "mandate_type": "UPDATE",
        "mandate_timestamp": "2020-06-01T10:10:42Z",
        "mandate_name": "merchant mandate",
        "initiated_by": "PAYER",
        "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "block_fund": true,
        "amount_rule": "VARIABLE"
      },
      "expiry": "2020-07-24T19:00:00Z",
      "amount": "100.00"
    }
  }
}

// block:end:incomingUpdateMandateRequestForCustomer

// block:start:incomingUpdateMandateForCustomer

{
  "id": "evt_V2_793089c9a7234c1080b8a1137a7a2be8",
  "event_name": "MERCHANT_CUSTOMER_INCOMING_MANDATE_UPDATED",
  "date_created": "2021-12-07T14:31:02Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "9962463212@BANK",
        "payer_name": "ABC",
        "payee_vpa": "test@BANK",
        "payee_name": "BANKTEST",
        "payee_mcc": "4121",
        "merchant_id": "BANK",
        "merchant_channel_id": "BANK"
      },
      "transaction": {
        "udf_parameters": "{}",
        "umn": "uniqueMandateNumber@bank",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "6138ne3wswbsssddc4dddc",
        "gateway_response_status": "SUCCESS",
        "gateway_response_code": "00",
        "gateway_reference_id": "809323430413"
      },
      "remarks": "Sample Remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Mandate is successfully updated",
      "merchant_customer_id": "DEMO-CUST-1234",
      "mandate": {
        "validity_start": "2020/06/04",
        "validity_end": "2020/06/05",
        "transaction_type": "UPI_MANDATE",
        "share_to_payee": true,
        "role": "PAYER",
        "recurrence_value": "5",
        "recurrence_rule": "ON",
        "recurrence_pattern": "MONTHLY",
        "payer_revocable": true,
        "org_mandate_id": "BJJMsleiuryufhuhsoisdjfadb48003sdaa0",
        "mandate_type": "UPDATE",
        "mandate_timestamp": "2020-06-01T10:10:42Z",
        "mandate_name": "merchant mandate",
        "initiated_by": "PAYER",
        "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "block_fund": true
      },
      "expiry": "2020-07-24T19:00:00Z",
      "amount": "100.00"
    }
  }
}

// block:end:incomingUpdateMandateForCustomer

// block:start:outgoingUpdateMandateFromCustomer

{
  "id": "evt_V2_793089c9a7234c1080b8a1137a7a2be8",
  "event_name": "MERCHANT_CUSTOMER_OUTGOING_MANDATE_UPDATED",
  "date_created": "2021-12-07T14:31:02Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "9962463212@BANK",
        "payer_name": "ABC",
        "payee_vpa": "test@BANK",
        "payee_name": "BANKTEST",
        "payee_mcc": "4121",
        "merchant_id": "BANK",
        "merchant_channel_id": "BANK"
      },
      "transaction": {
        "udf_parameters": "{}",
        "umn": "uniqueMandateNumber@bank",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "6138ne3wswbsssddc4dddc",
        "gateway_response_status": "SUCCESS",
        "gateway_response_code": "00",
        "gateway_reference_id": "809323430413"
      },
      "remarks": "Sample Remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Mandate is successfully updated",
      "merchant_customer_id": "DEMO-CUST-1234",
      "mandate": {
        "validity_start": "2020/06/04",
        "validity_end": "2020/06/05",
        "transaction_type": "UPI_MANDATE",
        "share_to_payee": true,
        "role": "PAYER",
        "recurrence_value": "5",
        "recurrence_rule": "ON",
        "recurrence_pattern": "MONTHLY",
        "payer_revocable": true,
        "org_mandate_id": "BJJMsleiuryufhuhsoisdjfadb48003sdaa0",
        "mandate_type": "UPDATE",
        "mandate_timestamp": "2020-06-01T10:10:42Z",
        "mandate_name": "merchant mandate",
        "initiated_by": "PAYER",
        "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "block_fund": true
      },
      "expiry": "2020-07-24T19:00:00Z",
      "amount": "100.00"
    }
  }
}

// block:end:outgoingUpdateMandateFromCustomer

// block:start:outgoingPauseMandateFromCustomer

{
  "id": "evt_V2_99b99545a8ea471c9a33af80759b6502",
  "event_name": "MERCHANT_CUSTOMER_OUTGOING_MANDATE_PAUSED",
  "date_created": "2021-12-07T14:33:06Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "payer_vpa": "9962463212@BANK",
        "payer_name": "ABC",
        "payee_vpa": "test@BANK",
        "payee_name": "BANKTEST",
        "payee_mcc": "4121",
        "merchant_id": "BANK",
        "merchant_channel_id": "BANK"
      },
      "transaction": {
        "udf_parameters": "{}",
        "umn": "uniqueMandateNumber@bank",
        "ref_url": "https://www.abcxyz.com/",
        "merchant_request_id": "6138ne3wswbsssddc4dddc",
        "gateway_response_status": "SUCCESS",
        "gateway_response_code": "00",
        "gateway_reference_id": "809323430413"
      },
      "remarks": "Sample Remarks",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Mandate is successfully paused",
      "merchant_customer_id": "DEMO-CUST-1234",
      "mandate": {
        "validity_start": "2020/06/04",
        "validity_end": "2020/06/05",
        "transaction_type": "UPI_MANDATE",
        "share_to_payee": true,
        "role": "PAYER",
        "recurrence_value": "5",
        "recurrence_rule": "ON",
        "recurrence_pattern": "MONTHLY",
        "payer_revocable": true,
        "pause_start": "2019/09/17",
        "pause_end": "2019/09/19",
        "org_mandate_id": "BJJMsleiuryufhuhsoisdjfadb48003sdaa0",
        "mandate_type": "PAUSE",
        "mandate_timestamp": "2020-06-01T10:10:42Z",
        "mandate_name": "merchant mandate",
        "initiated_by": "PAYER",
        "gateway_mandate_id": "BJJ71f7d43bdf64d72d9saddfded",
        "block_fund": true
      },
      "amount": "100.00"
    }
  }
}

// block:end:outgoingPauseMandateFromCustomer

// block:start:incomingPrePaymentNotificationMandateForCustomer

{
  "id": "evt_V2_f20bfac484f4456486e5a1e0bbd85776",
  "event_name": "MERCHANT_CUSTOMER_INCOMING_PRE_PAYMENT_NOTIFICATION_MANDATE_RECEIVED",
  "date_created": "2021-12-10T13:18:38Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "upi_app": "YES_BIZ",
        "merchant_id": "MERCHANT",
        "merchant_channel_id": "MERCHANTAPP"
      },
      "transaction": {
        "umn": "customervpa@bank",
        "seq_number": "1",
        "merchant_request_id": "TXN1234567",
        "gateway_response_status": "SUCCESS",
        "gateway_response_code": "00",
        "gateway_reference_id": "809323430413"
      },
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "merchant_customer_id": "DEMO_CUST-1234",
      "mandate": {
        "org_mandate_id": "BJJ0f018ee5b832468779cb4a53ea9bde",
        "next_execution": "2017-06-09T12:27:49Z",
        "gateway_mandate_id": "BJJ0f018ee5bc8b428fb979cb4a53ea9bde"
      },
      "amount": "9.00"
    }
  }
}

// block:end:incomingPrePaymentNotificationMandateForCustomer

//block:start:complaintRaised

{
  "event_name": "MERCHANT_CUSTOMER_COMPLAINT_RAISED",
  "content": {
    "merchant_customer": {
      "upi": {
        "payer_mobile_number": "9876543210",
        "upi_app": "YES_BIZ",
        "merchant_channel_id": "TESTAPP",
        "payer_vpa": "123454306@upi",
        "merchant_id": "TEST",
        "payee_vpa": "83746598743@upi"
      },
      "amount": "1.00",
      "payment_method": "UPI",
      "payment_method_type": "UPI",
      "gateway_webhook_payload": {
        "payer_mobile_number": "919988776655",
        "req_adj_code": "U010",
        "gateway_response_status": "SUCCESS",
        "transaction_amount": "1.00",
        "req_adj_flag": "PBRB",
        "gateway_response_message": "Complaint is Raised",
        "org_resp_code": "RR",
        "merchant_customer_id": "test-merchantcustomer-1",
        "original_transaction_timestamp": "2021-08-12T22:50:00+05:30",
        "gateway_response_code": "00",
        "merchant_channel_id": "TESTAPP",
        "payer_vpa": "123454306@upi",
        "crn": "302570532",
        "original_gateway_transaction_id": "AIX699393106f865d1a9467c59725789tgh",
        "gateway_complaint_id": "AIX699393106f865d1a9467c59725789tgh",
        "req_adj_amount": "0.50",
        "merchant_id": "TEST",
        "payee_vpa": "83746598743@upi",
        "type": "CUSTOMER_COMPLAINT_RAISED",
        "remarks": "Goods not received"
      },
      "complaint": {
        "adj_flag": "PBRB",
        "gateway_response_status": "SUCCESS",
        "transaction_amount": "1.00",
        "adj_code": "U010",
        "original_transaction_timestamp": "2021-08-12T17:20:00Z",
        "gateway_response_code": "00",
        "adj_amount": "0.50",
        "crn": "302570532",
        "original_gateway_transaction_id": "AIX699393106f865d1a9467c59725789tgh",
        "gateway_complaint_id": "AIX699393106f865d1a9467c59725789tgh"
      },
      "message": "Complaint is Raised",
      "remarks": "Goods not received"
    }
  },
  "id": "evt_V2_0342cf251aa9460ba6500e0b7fe9aef3",
  "date_created": "2023-02-09T10:17:56Z"
}

// block:end:complaintRaised

//block:start:complaintResolved

{
  "id": "evt_V2_5049b27bcc264930b45c8d25a398f665",
  "event_name": "MERCHANT_CUSTOMER_COMPLAINT_RESOLVED",
  "date_created": "2022-03-30T21:23:39Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "merchant_channel_id": "TESTAPP",
        "merchant_id": "TEST",
        "upi_app": "AXIS_BIZ",
        "payer_vpa": "123454306@axb",
        "payee_vpa": "83746598743@axb"
      },
      "remarks": "Goods not received",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Complaint is Resolved",
      "merchant_customer_id": "test-merchantcustomer-1",
      "customer_mobile_number": "919988776655",
      "complaint": {
        "gateway_response_status": "SUCCESS",
        "gateway_complaint_id": "AIX699393106f865d1a9467c59725789tgh",
        "adj_code": "U010",
        "org_sett_resp_code": "RR",
        "custom_response": "{}",
        "original_transaction_timestamp": "2021-08-12T17:20:00Z",
        "adj_flag": "PBRB",
        "gateway_response_code": "00",
        "gateway_reference_id": "123456",
        "crn": "302570532",
        "transaction_amount": "1.00",
        "original_gateway_transaction_id": "AIX699393106f865d1a9467c59725789tgh",
        "adj_amount": "0.50",
        "curr_cycle": "Y"
      }
    }
  }
}

// block:end:complaintResolved

//block:start:txnCreated

{
  "id": "evt_V2_5c08a08095ea4279ad28347241678c0b",
  "event_name": "TXN_CREATED",
  "date_created": "2022-01-28T09:14:52Z",
  "content": {
    "order": {
      "upi": {
        "upi_bank_account_reference_id": "Afeb13dcb1c14e7eb0a2dba7ad8b2b",
        "txn_type": "UPI_INAPP",
        "payer_vpa": "8088219177@sliceaxis",
        "payer_app": "AXIS_BIZ",
        "masked_bank_account_number": "XXXXXXX20000",
        "bank_name": "MYPSP",
        "bank_code": "500001"
      },
      "udf9": "",
      "udf8": "",
      "udf7": "",
      "udf6": "",
      "udf5": "",
      "udf4": "",
      "udf3": "",
      "udf2": "",
      "udf10": "",
      "udf1": "",
      "txn_uuid": "eulwh64Rw6dQSNBUZUE",
      "txn_id": "slice-R7648276171-1",
      "txn_detail": {
        "txn_uuid": "eulwh64Rw6dQSNBUZUE",
        "txn_id": "slice-R7648276171-1",
        "txn_amount": 10000,
        "tax_amount": 0,
        "surcharge_amount": 0,
        "status": "PENDING_VBV",
        "redirect": true,
        "order_id": "R7648276171",
        "net_amount": 10000,
        "gateway_id": 511,
        "gateway": "AXIS_BIZ",
        "express_checkout": false,
        "error_message": "",
        "error_code": null,
        "currency": "INR",
        "created": "2022-01-28T09:14:52Z"
      },
      "status_id": 23,
      "status": "PENDING_VBV",
      "rewards_breakup": null,
      "return_url": "https://links.slicepay.in/repayments",
      "refunded": false,
      "product_id": "",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_links": {
        "web": "https://sandbox.juspay.in/merchant/pay/ordeu_f07e1293e5684eb5ae815dbf6c998644",
        "mobile": "https://sandbox.juspay.in/merchant/pay/ordeu_f07e1293e5684eb5ae815dbf6c998644?mobile=true",
        "iframe": "https://sandbox.juspay.in/merchant/ipay/ordeu_f07e1293e5684eb5ae815dbf6c998644"
      },
      "payer_vpa": "8088219177@sliceaxis",
      "order_id": "R7648276171",
      "offers": [

      ],
      "metadata": null,
      "merchant_id": "slice",
      "id": "ordeu_f07e1293e5684eb5ae815dbf6c998644",
      "gateway_reference_id": null,
      "gateway_id": 511,
      "effective_amount": 10000,
      "date_created": "2022-01-28T09:14:51Z",
      "customer_phone": "",
      "customer_id": "8088219177",
      "customer_email": null,
      "currency": "INR",
      "bank_pg": null,
      "bank_error_message": "",
      "bank_error_code": "",
      "auth_type": "",
      "amount_refunded": 0,
      "amount": 10000
    }
  }
}

//block:end:txnCreated

//block:start:txnCharged

{
  "id": "evt_V2_0605110330aa49cea64215d095bf050b",
  "event_name": "TXN_CHARGED",
  "date_created": "2022-01-28T09:15:04Z",
  "content": {
    "txn": {
      "txn_uuid": "eulwh64Rw6dQSNBUZUE",
      "txn_id": "slice-R7648276171-1",
      "txn_amount": 10000,
      "tax_amount": 0,
      "surcharge_amount": 0,
      "status_id": 21,
      "status": "CHARGED",
      "redirect": true,
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_gateway_response": {
        "txn_id": "eulwh64Rw6dQSNBUZUE",
        "rrn": "202814207184",
        "resp_message": "Your transaction is successful",
        "resp_code": "00",
        "epg_txn_id": "AXB22f8d0fafdf9455bb9d7b657c2ab14e4",
        "created": "2022-01-28T09:15:04Z",
        "auth_id_code": null
      },
      "order_id": "R7648276171",
      "net_amount": 10000,
      "gateway_id": 511,
      "gateway": "AXIS_BIZ",
      "express_checkout": false,
      "error_message": "",
      "error_code": "",
      "currency": "INR",
      "created": "2022-01-28T09:14:52Z"
    }
  }
}

//block:end:txnCharged

//block:start:orderSucceeded

{
  "id": "evt_V2_45dca165c3364d2db56f2df48fac2f7a",
  "event_name": "ORDER_SUCCEEDED",
  "date_created": "2022-01-28T09:15:04Z",
  "content": {
    "order": {
      "upi": {
        "upi_bank_account_reference_id": "Afeb13dcb1c14e7eb0a2dba7ad8b2b",
        "txn_type": "UPI_INAPP",
        "payer_vpa": "8088219177@sliceaxis",
        "payer_app": "AXIS_BIZ",
        "masked_bank_account_number": "XXXXXXX20000",
        "bank_name": "MYPSP",
        "bank_code": "500001"
      },
      "udf9": "",
      "udf8": "",
      "udf7": "",
      "udf6": "",
      "udf5": "",
      "udf4": "",
      "udf3": "",
      "udf2": "",
      "udf10": "",
      "udf1": "",
      "txn_uuid": "eulwh64Rw6dQSNBUZUE",
      "txn_id": "slice-R7648276171-1",
      "txn_detail": {
        "txn_uuid": "eulwh64Rw6dQSNBUZUE",
        "txn_id": "slice-R7648276171-1",
        "txn_amount": 10000,
        "tax_amount": 0,
        "surcharge_amount": 0,
        "status": "CHARGED",
        "redirect": true,
        "order_id": "R7648276171",
        "net_amount": 10000,
        "gateway_id": 511,
        "gateway": "AXIS_BIZ",
        "express_checkout": false,
        "error_message": "",
        "error_code": "",
        "currency": "INR",
        "created": "2022-01-28T09:14:52Z"
      },
      "status_id": 21,
      "status": "CHARGED",
      "rewards_breakup": null,
      "return_url": "https://links.slicepay.in/repayments",
      "refunded": false,
      "product_id": "",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_links": {
        "web": "https://sandbox.juspay.in/merchant/pay/ordeu_f07e1293e5684eb5ae815dbf6c998644",
        "mobile": "https://sandbox.juspay.in/merchant/pay/ordeu_f07e1293e5684eb5ae815dbf6c998644?mobile=true",
        "iframe": "https://sandbox.juspay.in/merchant/ipay/ordeu_f07e1293e5684eb5ae815dbf6c998644"
      },
      "payment_gateway_response": {
        "txn_id": "eulwh64Rw6dQSNBUZUE",
        "rrn": "202814207184",
        "resp_message": "Your transaction is successful",
        "resp_code": "00",
        "gateway_response": {
          "merchantChannelId": "SLICEAPP",
          "amount": "10000.00",
          "merchantId": "SLICE",
          "gatewayResponseMessage": "Your transaction is successful",
          "payerVpa": "8088219177@sliceaxis",
          "merchantRequestId": "eulwh64Rw6dQSNBUZUE",
          "gatewayResponseCode": "00",
          "gatewayReferenceId": "202814207184",
          "gatewayTransactionId": "AXB22f8d0fafdf9455bb9d7b657c2ab14e4",
          "payeeVpa": "repayments@sliceaxis",
          "transactionTimestamp": "2022-01-28T14:44:51+05:30",
          "udfParameters": "{}",
          "type": "MERCHANT_CREDITED_VIA_PAY"
        },
        "epg_txn_id": "AXB22f8d0fafdf9455bb9d7b657c2ab14e4",
        "created": "2022-01-28T09:15:04Z",
        "auth_id_code": null
      },
      "payer_vpa": "8088219177@sliceaxis",
      "order_id": "R7648276171",
      "offers": [

      ],
      "metadata": null,
      "merchant_id": "slice",
      "id": "ordeu_f07e1293e5684eb5ae815dbf6c998644",
      "gateway_reference_id": null,
      "gateway_id": 511,
      "effective_amount": 10000,
      "date_created": "2022-01-28T09:14:51Z",
      "customer_phone": "",
      "customer_id": "8088219177",
      "customer_email": null,
      "currency": "INR",
      "bank_pg": null,
      "bank_error_message": "",
      "bank_error_code": "",
      "auth_type": "",
      "amount_refunded": 0,
      "amount": 10000
    }
  }
}

//block:end:orderSucceeded

//block:start:txnFailed

{
  "id": "evt_V2_311d1b273a084b06bfd957e01293f8ce",
  "event_name": "TXN_FAILED",
  "date_created": "2022-01-28T09:16:46Z",
  "content": {
    "txn": {
      "txn_uuid": "eul2PiJnWLDUnC9SKr2",
      "txn_id": "slice-R670115430-1",
      "txn_amount": 200001,
      "tax_amount": 0,
      "surcharge_amount": 0,
      "status_id": 26,
      "status": "AUTHENTICATION_FAILED",
      "redirect": true,
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_gateway_response": {
        "txn_id": "eul2PiJnWLDUnC9SKr2",
        "rrn": "202814514190",
        "resp_message": "Bank is taking too long to respond. Please try again!",
        "resp_code": "U09",
        "epg_txn_id": "AXB961f2e31e3614bdca113b3a9959092cd",
        "created": "2022-01-28T09:16:46Z",
        "auth_id_code": null
      },
      "order_id": "R670115430",
      "net_amount": 200001,
      "gateway_id": 511,
      "gateway": "AXIS_BIZ",
      "express_checkout": false,
      "error_message": "Bank is taking too long to respond. Please try again!",
      "error_code": "U09",
      "currency": "INR",
      "created": "2022-01-28T09:16:23Z"
    }
  }
}

//block:end:txnFailed

//block:start:orderFailed

{
  "id": "evt_V2_adedb85fc8d7404ab5c044a25ca1303f",
  "event_name": "ORDER_FAILED",
  "date_created": "2022-01-28T09:16:46Z",
  "content": {
    "order": {
      "upi": {
        "upi_bank_account_reference_id": "Afeb13dcb1c14e7eb0a2dba7ad8b2b",
        "txn_type": "UPI_INAPP",
        "payer_vpa": "8088219177@sliceaxis",
        "payer_app": "AXIS_BIZ",
        "masked_bank_account_number": "XXXXXXX20000",
        "bank_name": "MYPSP",
        "bank_code": "500001"
      },
      "udf9": "",
      "udf8": "",
      "udf7": "",
      "udf6": "",
      "udf5": "",
      "udf4": "",
      "udf3": "",
      "udf2": "",
      "udf10": "",
      "udf1": "",
      "txn_uuid": "eul2PiJnWLDUnC9SKr2",
      "txn_id": "slice-R670115430-1",
      "txn_detail": {
        "txn_uuid": "eul2PiJnWLDUnC9SKr2",
        "txn_id": "slice-R670115430-1",
        "txn_amount": 200001,
        "tax_amount": 0,
        "surcharge_amount": 0,
        "status": "AUTHENTICATION_FAILED",
        "redirect": true,
        "order_id": "R670115430",
        "net_amount": 200001,
        "gateway_id": 511,
        "gateway": "AXIS_BIZ",
        "express_checkout": false,
        "error_message": "Bank is taking too long to respond. Please try again!",
        "error_code": "U09",
        "currency": "INR",
        "created": "2022-01-28T09:16:23Z"
      },
      "status_id": 26,
      "status": "AUTHENTICATION_FAILED",
      "rewards_breakup": null,
      "return_url": "https://links.slicepay.in/repayments",
      "refunded": false,
      "product_id": "",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_links": {
        "web": "https://sandbox.juspay.in/merchant/pay/ordeu_a9d8fc9ee3a9497da961537fc045f66e",
        "mobile": "https://sandbox.juspay.in/merchant/pay/ordeu_a9d8fc9ee3a9497da961537fc045f66e?mobile=true",
        "iframe": "https://sandbox.juspay.in/merchant/ipay/ordeu_a9d8fc9ee3a9497da961537fc045f66e"
      },
      "payment_gateway_response": {
        "txn_id": "eul2PiJnWLDUnC9SKr2",
        "rrn": "202814514190",
        "resp_message": "Bank is taking too long to respond. Please try again!",
        "resp_code": "U09",
        "gateway_response": {
          "merchantChannelId": "SLICEAPP",
          "amount": "200001.00",
          "merchantId": "SLICE",
          "gatewayResponseMessage": "Bank is taking too long to respond. Please try again!",
          "payerVpa": "8088219177@sliceaxis",
          "merchantRequestId": "eul2PiJnWLDUnC9SKr2",
          "gatewayResponseCode": "U09",
          "gatewayReferenceId": "202814514190",
          "gatewayTransactionId": "AXB961f2e31e3614bdca113b3a9959092cd",
          "payeeVpa": "repayments@sliceaxis",
          "transactionTimestamp": "2022-01-28T14:46:20+05:30",
          "udfParameters": "{}",
          "type": "MERCHANT_CREDITED_VIA_PAY"
        },
        "epg_txn_id": "AXB961f2e31e3614bdca113b3a9959092cd",
        "created": "2022-01-28T09:16:46Z",
        "auth_id_code": null
      },
      "payer_vpa": "8088219177@sliceaxis",
      "order_id": "R670115430",
      "offers": [

      ],
      "metadata": null,
      "merchant_id": "slice",
      "id": "ordeu_a9d8fc9ee3a9497da961537fc045f66e",
      "gateway_reference_id": null,
      "gateway_id": 511,
      "effective_amount": 200001,
      "date_created": "2022-01-28T09:16:22Z",
      "customer_phone": "",
      "customer_id": "8088219177",
      "customer_email": null,
      "currency": "INR",
      "bank_pg": null,
      "bank_error_message": "Bank is taking too long to respond. Please try again!",
      "bank_error_code": "U09",
      "auth_type": "",
      "amount_refunded": 0,
      "amount": 200001
    }
  }
}

//block:end:orderFailed

//block:end:bankAccountLinkedByCustomer

{
  "id": "evt_gsu1c0r7umcfrxeb",
  "date_created": "2021-05-05T10:42:25Z",
  "event_name": "MERCHANT_CUSTOMER_LINKED_BANK_ACCOUNT",
  "content": {
	"merchant_customer": {
            "payment_method_type" : "UPI",
            "payment_method" : "UPI",
            "merchant_id" : "Slice",
            "merchant_customer_id": "DEMO-CUST-1234",
            "customer_mobile_numer": "91xxxxxxxxxx",
            "upi" : {
             "upi_app" : "YES_BIZ",
             "bank_accounts" : [{
	         "masked_account_number" : "xxxxxxx123045678",
                "account_number" : "12345678921233",
                "ifsc_code": "HDFC012345",
                "upi_bank_account_reference_id": "Unique id",
                "bank_name": "HDFC",
                "bank_code": "HDFC",
                "juspay_bank_code": "JP_HDFC",
                "account_name": "Customer Name",
                "account_type": "SAVINGS"
            } ]
          }
        }
    }
}

//block:end:bankAccountLinkedByCustomer

//block:end:merchantCustomerPortedUpiNumber

{
  "id": "evt_gsu1c0r7umcfrxeb",
  "date_created": "2021-05-05T10:42:25Z",
  "event_name": "MERCHANT_CUSTOMER_PORTED_UPI_NUMBER",
  "content": {
	  "merchant_customer": {
    }
  }
}

//block:end:merchantCustomerPortedUpiNumber

//block:start:mandateCallback

{
   "id": "evt_V2_4b83ba211443b53fc020d4c",
   "event_name": "ORDER_SUCCEEDED",
   "date_created": "2021-03-20T07:48:31Z",
   "content": {
     "order": {
       "udf8": "",
       "udf7": "",
       "udf6": "",
       "udf5": "",
       "udf4": "",
       "udf3": "",
       "udf2": "",
       "udf10": "",
       "udf1": "",
       "txn_uuid": "eulmy******y1Syy",
       "txn_id": "juspay-2348******3498-1",
       "txn_detail": {
         "txn_uuid": "eulmy******y1Syy",
         "txn_object_type": "EMANDATE_REGISTER",
         "txn_id": "juspay-2348******3498-1",
         "txn_amount": 1,
         "tax_amount": null,
         "surcharge_amount": null,
         "status": "CHARGED",
         "source_object_id": "91887",
         "source_object": "MANDATE",
         "redirect": true,
         "order_id": "2348******3498",
         "net_amount": 1,
         "gateway_id": 19,
         "gateway": "YES_BIZ",
         "express_checkout": false,
         "error_message": "",
         "error_code": "",
         "currency": "INR",
         "created": "2020-08-30T09:53:17Z"
       },
       "status_id": 21,
       "status": "CHARGED",
       "refunded": false,
       "product_id": "",
       "payment_method_type": "UPI",
       "payment_method": "UPI",
       "payment_links": {
         "web": "https://sandbox.juspay.in/merchant/pay/ordeu_9a092980*******4d0206",
         "mobile": "https://sandbox.juspay.in/merchant/pay/ordeu_9a092980*******4d0206?mobile=true",
         "iframe": "https://sandbox.juspay.in/merchant/ipay/ordeu_9a092980*******4d0206"
       },
       "upi": {
           "txn_flow_type" : "INAPP",
           "masked_bank_account_number": "4XXXXXXXX2323",
           "bank_name": "HDFC bank",
           "bank_code": "HDFC",
           "upi_bank_account_reference_id": "A0760cb548bb4dda9d32e3030863dd5",
           "payer_vpa" : "customer@vpa",
           "payer_app" : "AXIS_UPI",
       },
       "payment_gateway_response":  {
            "resp_code": "00",
            "rrn": null,
            "created": "2021-08-17T13:44:21Z",
            "epg_txn_id": "YJP9999rv9999a99c19a4877ede7954984e",// Its the orgMandateId . Common ID between Juspay and NPCI .
            "resp_message": "Your transaction is successful",
            "auth_id_code": null,
            "txn_id": "eul7yc7TReHhAyNVsGp"
       },
       "payer_vpa" : "customer@vpa",
       "order_id": "2348******3498",
       "merchant_id": "juspay",
       "mandate": {
         "start_date": "1598745600",
         "rule_value": 30,
         "rule_type": "AFTER",
         "revokable_by_customer": true,
         "max_amount": 1000,
         "mandate_type": "EMANDATE",
         "mandate_token": "ad1d221******0f3",
         "mandate_status": "ACTIVE",
         "mandate_id": "3XMEcS******Ybzj", // common id between Groww and Juspay
         "frequency": "MONTHLY",
         "end_date": "160***10",
         "block_fund": false,
         "amount_rule": "VARIABLE"
       },
       "id": "ordeu_9a092980*******4d0206",
       "gateway_reference_id": "upimandate",
       "gateway_id": 514,
       "date_created": "2020-08-30T09:47:46Z",
       "customer_phone": "9999999999",
       "customer_id": "cst_lz*****okv",
       "customer_email": "customer@gmail.com",
       "currency": "INR",
       "bank_error_message": "",
       "bank_error_code": "",
       "amount_refunded": 0,
       "amount": 1
     }
   }
 }

//block:end:mandateCallback
```



### 2. UDIR Callbacks




### 2.1 Complaint Raised



### Payload
- **Id**:
  - Description: Event ID
  - Value: evt_V2_03c6ec0681124450b55cf92fa35df241
- **Event_name**:
  - Description: Server sends a callback to the customer when a complaint is raised
  - Value: MERCHANT_CUSTOMER_COMPLAINT_RAISED
- **Date_created**:
  - Description: timestamp when webhook was created
  - Value: 2021-12-07T13:46:40Z
- **Content**:
  - Description: Details of the event
  - Value:
    - **Merchant_customer**:
      - Value:
        - **Upi**:
          - Value:
            - **Merchant_channel_id**:
              - Value: TESTAPP
            - **Merchant_id**:
              - Value: DEMOUAT01
            - **Upi_app**:
              - Value: YES_BIZ
            - **Payer_mobile_number**:
              - Value: 9876543210
            - **Payee_vpa**:
              - Value: customer@xyz
        - **Remarks**:
          - Value: Goods not received
        - **Message**:
          - Value: Complaint is Raised
        - **Gateway_webhook_payload**:
          - Value:
            - **Payer_mobile_number**:
              - Value: 9876543210
            - **Req_adj_code**:
              - Value: U010
            - **Gateway_response_status**:
              - Value: SUCCESS
            - **Transaction_amount**:
              - Value: 1.00
            - **Gateway_response_message**:
              - Value: Complaint is Raised
            - **Org_resp_code**:
              - Value: RR
            - **Merchant_customer_id**:
              - Value: test-merchantcustomer-1
            - **Original_transaction_timestamp**:
              - Value: 2021-08-12T17:20:00Z
            - **Gateway_response_code**:
              - Value: 00
            - **Merchant_channel_id**:
              - Value: TESTAPP
            - **Payer_vpa**:
              - Value: customer@handle
            - **Crn**:
              - Value: 302570532
            - **Original_gateway_transaction_id**:
              - Value: AIX699393106f865d1a9467c59725789tgh
            - **Gateway_complaint_id**:
              - Value: AIX699393106f865d1a9467c59725789tgh
            - **Req_adj_amount**:
              - Value: 0.50
            - **Merchant_id**:
              - Value: TEST
            - **Payee_vpa**:
              - Value: customer@xyz
            - **Type**:
              - Value: CUSTOMER_COMPLAINT_RAISED
            - **Remarks**:
              - Value: Goods not received
        - **Complaint**:
          - Value:
            - **Gateway_response_status**:
              - Value: SUCCESS
            - **Gateway_complaint_id**:
              - Value: AIX699393106f865d1a9467c59725789tgh
            - **Adj_code**:
              - Value: U010
            - **Original_transaction_timestamp**:
              - Value: 2021-08-12T17:20:00Z
            - **Adj_flag**:
              - Value: PBRB
            - **Gateway_response_code**:
              - Value: 00
            - **Crn**:
              - Value: 302570532
            - **Transaction_amount**:
              - Value: 1.00
            - **Original_gateway_transaction_id**:
              - Value: AIX699393106f865d1a9467c59725789tgh
            - **Adj_amount**:
              - Value: 0.50


> **Note**
> For Mandate amount greater than 5000 , seq_number and umn will be there in collect request received callback.





#### Code Snippets: -

#### Objective-C Code Snippet:

```objective-c
{
  "event_name": "MERCHANT_CUSTOMER_COMPLAINT_RAISED",
  "content": {
    "merchant_customer": {
      "upi": {
        "payer_mobile_number": "9876543210",
        "upi_app": "YES_BIZ",
        "merchant_channel_id": "TESTAPP",
        "payer_vpa": "123454306@upi",
        "merchant_id": "TEST",
        "payee_vpa": "83746598743@upi"
      },
      "amount": "1.00",
      "payment_method": "UPI",
      "payment_method_type": "UPI",
      "gateway_webhook_payload": {
        "payer_mobile_number": "919988776655",
        "req_adj_code": "U010",
        "gateway_response_status": "SUCCESS",
        "transaction_amount": "1.00",
        "req_adj_flag": "PBRB",
        "gateway_response_message": "Complaint is Raised",
        "org_resp_code": "RR",
        "merchant_customer_id": "test-merchantcustomer-1",
        "original_transaction_timestamp": "2021-08-12T22:50:00+05:30",
        "gateway_response_code": "00",
        "merchant_channel_id": "TESTAPP",
        "payer_vpa": "123454306@upi",
        "crn": "302570532",
        "original_gateway_transaction_id": "AIX699393106f865d1a9467c59725789tgh",
        "gateway_complaint_id": "AIX699393106f865d1a9467c59725789tgh",
        "req_adj_amount": "0.50",
        "merchant_id": "TEST",
        "payee_vpa": "83746598743@upi",
        "type": "CUSTOMER_COMPLAINT_RAISED",
        "remarks": "Goods not received"
      },
      "complaint": {
        "adj_flag": "PBRB",
        "gateway_response_status": "SUCCESS",
        "transaction_amount": "1.00",
        "adj_code": "U010",
        "original_transaction_timestamp": "2021-08-12T17:20:00Z",
        "gateway_response_code": "00",
        "adj_amount": "0.50",
        "crn": "302570532",
        "original_gateway_transaction_id": "AIX699393106f865d1a9467c59725789tgh",
        "gateway_complaint_id": "AIX699393106f865d1a9467c59725789tgh"
      },
      "message": "Complaint is Raised",
      "remarks": "Goods not received"
    }
  },
  "id": "evt_V2_0342cf251aa9460ba6500e0b7fe9aef3",
  "date_created": "2023-02-09T10:17:56Z"
}
```

#### Swift Code Snippet:

```swift
{
  "event_name": "MERCHANT_CUSTOMER_COMPLAINT_RAISED",
  "content": {
    "merchant_customer": {
      "upi": {
        "payer_mobile_number": "9876543210",
        "upi_app": "YES_BIZ",
        "merchant_channel_id": "TESTAPP",
        "payer_vpa": "123454306@upi",
        "merchant_id": "TEST",
        "payee_vpa": "83746598743@upi"
      },
      "amount": "1.00",
      "payment_method": "UPI",
      "payment_method_type": "UPI",
      "gateway_webhook_payload": {
        "payer_mobile_number": "919988776655",
        "req_adj_code": "U010",
        "gateway_response_status": "SUCCESS",
        "transaction_amount": "1.00",
        "req_adj_flag": "PBRB",
        "gateway_response_message": "Complaint is Raised",
        "org_resp_code": "RR",
        "merchant_customer_id": "test-merchantcustomer-1",
        "original_transaction_timestamp": "2021-08-12T22:50:00+05:30",
        "gateway_response_code": "00",
        "merchant_channel_id": "TESTAPP",
        "payer_vpa": "123454306@upi",
        "crn": "302570532",
        "original_gateway_transaction_id": "AIX699393106f865d1a9467c59725789tgh",
        "gateway_complaint_id": "AIX699393106f865d1a9467c59725789tgh",
        "req_adj_amount": "0.50",
        "merchant_id": "TEST",
        "payee_vpa": "83746598743@upi",
        "type": "CUSTOMER_COMPLAINT_RAISED",
        "remarks": "Goods not received"
      },
      "complaint": {
        "adj_flag": "PBRB",
        "gateway_response_status": "SUCCESS",
        "transaction_amount": "1.00",
        "adj_code": "U010",
        "original_transaction_timestamp": "2021-08-12T17:20:00Z",
        "gateway_response_code": "00",
        "adj_amount": "0.50",
        "crn": "302570532",
        "original_gateway_transaction_id": "AIX699393106f865d1a9467c59725789tgh",
        "gateway_complaint_id": "AIX699393106f865d1a9467c59725789tgh"
      },
      "message": "Complaint is Raised",
      "remarks": "Goods not received"
    }
  },
  "id": "evt_V2_0342cf251aa9460ba6500e0b7fe9aef3",
  "date_created": "2023-02-09T10:17:56Z"
}
```



### 2.2 Compalint Resolved



### Payload
- **Id**:
  - Description: Event ID
  - Value: evt_V2_03c6ec0681124450b55cf92fa35df241
- **Event_name**:
  - Description: Server sends a callback to the customer when a complaint is resolved.
  - Value: MERCHANT_CUSTOMER_COMPLAINT_RESOLVED
- **Date_created**:
  - Description: timestamp when webhook was created
  - Value: 2021-12-07T13:46:40Z
- **Content**:
  - Description: Details of the event
  - Value:
    - **Merchant_customer**:
      - Value:
        - **Upi**:
          - Value:
            - **Merchant_channel_id**:
              - Value: TESTAPP
            - **Merchant_id**:
              - Value: DEMOUAT01
            - **Upi_app**:
              - Value: YES_BIZ
            - **Payer_vpa**:
              - Value: customer1@abc
            - **Payee_vpa**:
              - Value: customer@xyz
        - **Remarks**:
          - Value: This is remarks
        - **Payment_method_type**:
          - Value: UPI
        - **Payment_method**:
          - Value: UPI
        - **Message**:
          - Value: Complaint is Resolved
        - **Merchant_customer_id**:
          - Value: DEMO-CUST-1234
        - **Customer_mobile_number**:
          - Value: 919988776655
        - **Complaint**:
          - Value:
            - **Gateway_response_status**:
              - Value: SUCCESS
            - **Gateway_complaint_id**:
              - Value: AIX699393106f865d1a9467c59725789tgh
            - **Adj_code**:
              - Value: U010
            - **Org_sett_resp_code**:
              - Value: RR
            - **Custom_response**:
              - Value: {}
            - **Original_transaction_timestamp**:
              - Value: 2021-08-12T17:20:00Z
            - **Adj_flag**:
              - Value: PBRB
            - **Gateway_response_code**:
              - Value: 00
            - **Gateway_reference_id**:
              - Value: 12345
            - **Crn**:
              - Value: 302570532
            - **Transaction_amount**:
              - Value: 1.00
            - **Original_gateway_transaction_id**:
              - Value: AIX699393106f865d1a9467c59725789tgh
            - **Adj_amount**:
              - Value: 0.50
            - **Curr_cycle**:
              - Value: Y


> **Note**
> For Mandate amount greater than 5000 , seq_number and umn will be there in collect request received callback.




| Optional Fields | Constrains |
|---|---|
| umn | Will be received only during mandate executions. |
| seqNumber | Will be received only during mandate executions. |




#### Code Snippets: -

#### Objective-C Code Snippet:

```objective-c
{
  "id": "evt_V2_5049b27bcc264930b45c8d25a398f665",
  "event_name": "MERCHANT_CUSTOMER_COMPLAINT_RESOLVED",
  "date_created": "2022-03-30T21:23:39Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "merchant_channel_id": "TESTAPP",
        "merchant_id": "TEST",
        "upi_app": "AXIS_BIZ",
        "payer_vpa": "123454306@axb",
        "payee_vpa": "83746598743@axb"
      },
      "remarks": "Goods not received",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Complaint is Resolved",
      "merchant_customer_id": "test-merchantcustomer-1",
      "customer_mobile_number": "919988776655",
      "complaint": {
        "gateway_response_status": "SUCCESS",
        "gateway_complaint_id": "AIX699393106f865d1a9467c59725789tgh",
        "adj_code": "U010",
        "org_sett_resp_code": "RR",
        "custom_response": "{}",
        "original_transaction_timestamp": "2021-08-12T17:20:00Z",
        "adj_flag": "PBRB",
        "gateway_response_code": "00",
        "gateway_reference_id": "123456",
        "crn": "302570532",
        "transaction_amount": "1.00",
        "original_gateway_transaction_id": "AIX699393106f865d1a9467c59725789tgh",
        "adj_amount": "0.50",
        "curr_cycle": "Y"
      }
    }
  }
}
```

#### Swift Code Snippet:

```swift
{
  "id": "evt_V2_5049b27bcc264930b45c8d25a398f665",
  "event_name": "MERCHANT_CUSTOMER_COMPLAINT_RESOLVED",
  "date_created": "2022-03-30T21:23:39Z",
  "content": {
    "merchant_customer": {
      "upi": {
        "merchant_channel_id": "TESTAPP",
        "merchant_id": "TEST",
        "upi_app": "AXIS_BIZ",
        "payer_vpa": "123454306@axb",
        "payee_vpa": "83746598743@axb"
      },
      "remarks": "Goods not received",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "message": "Complaint is Resolved",
      "merchant_customer_id": "test-merchantcustomer-1",
      "customer_mobile_number": "919988776655",
      "complaint": {
        "gateway_response_status": "SUCCESS",
        "gateway_complaint_id": "AIX699393106f865d1a9467c59725789tgh",
        "adj_code": "U010",
        "org_sett_resp_code": "RR",
        "custom_response": "{}",
        "original_transaction_timestamp": "2021-08-12T17:20:00Z",
        "adj_flag": "PBRB",
        "gateway_response_code": "00",
        "gateway_reference_id": "123456",
        "crn": "302570532",
        "transaction_amount": "1.00",
        "original_gateway_transaction_id": "AIX699393106f865d1a9467c59725789tgh",
        "adj_amount": "0.50",
        "curr_cycle": "Y"
      }
    }
  }
}
```



### 3. P2M Callbacks



 After the completion of every payment/refund call, Juspay will provide direct notification to your server regarding the event. These are called Webhooks. You must configure a valid HTTP endpoint that is reachable from our servers to consume these notifications. Our servers will push data using HTTP POST call to your endpoint.Based on the API version configured in the dashboard, webhooks will be triggered for the events below:

* Payment Success
* Payment Failure
* Refund Success
* Refund failure
* Order Creation
* Transaction Creation
* Refund Moved to Manual Review.


###   Callback Structure



### Payload
- **Id**:
  - Description: Event ID
  - Value: evt_V2_03c6ec0681124450b55cf92fa35df241
- **Event_name**:
  - Value: TXN_CREATED
- **Date_created**:
  - Description: timestamp when webhook was created
  - Value: 2021-12-07T13:46:40Z
- **Content**:
  - Description: Details of the event
  - Value:
    - **Order**:
      - Value: Complete order data as obtained from /order/status API


> **Note**
> [Click here](../backend-apis/p2m-transaction-s) for order status api.




| Event Name | Description | Webhook API Version |
|---|---|---|
| ORDER_SUCCEEDED | Generated when payment is successful for an order | For all the versions |
| ORDER_REFUNDED | Generated when a refund is successful | For all the versions |
| ORDER_FAILED | Generated when an order payment fails | For all the versions >= '2016-07-19'  |
| ORDER_REFUND_FAILED | Generated when an order refund fails | For all the versions |
| TXN_CREATED | Generated when payment is initiated for an order | For all the versions >= "2016-10-27" |
| REFUND_MANUAL_REVIEW_NEEDED | Generated when the refund status is ambiguous and the refund has to be manually reconciled by the merchant with the payment processor. | For all the versions |
| AUTO_REFUND_SUCCEEDED | Generated when the transaction is auto refunded and refund is success | For all the versions >= "2019-11-11" |
| AUTO_REFUND_FAILED | Generated when the transaction is auto refunded and refund is failure | For all the versions >= "2019-11-11" |
| MANDATE_CREATED | Generated when the mandate is created | For all the versions |
| MANDATE_ACTIVATED | Generated when the mandate is successful registered | For all the versions |
| MANDATE_FAILED | Generated when the mandate registration fails | For all the versions |
| MANDATE_REVOKED | Generated when the mandate is revoked by the merchant | For all the versions |
| ORDER_AUTHORIZED | Generated for pre-auth enabled transactions when the payment is AUTHORIZED | For all the versions |
| TXN_CHARGED | Transaction level webhook, generated when a transaction become successful | For all the versions >="2020-10-31" |
| TXN_FAILED | Transaction level webhook, generated when a transaction fails | For all the versions >="2020-10-31" |





### Sample Callbacks:




### 3.1 TXN_CREATED



### Payload
- **Id**:
  - Description: Event ID
  - Value: evt_V2_03c6ec0681124450b55cf92fa35df241
- **Event_name**:
  - Value: TXN_CREATED
- **Date_created**:
  - Description: timestamp when webhook was created
  - Value: 2021-12-07T13:46:40Z
- **Content**:
  - Description: Details of the event
  - Value:
    - **Order**:
      - Value:
        - **Upi**:
          - Value:
            - **Upi_bank_account_reference_id**:
              - Value: Afeb13dcb1c14e7eb0a2dba7ad8b2b
            - **Txn_type**:
              - Value: UPI_INAPP
            - **Payer_vpa**:
              - Value: 8088219177@stockaxis
            - **Payer_app**:
              - Value: AXIS_BIZ
            - **Masked_bank_account_number**:
              - Value: XXXXXXX20000
            - **Bank_name**:
              - Value: MYPSP
            - **Bank_code**:
              - Value: 500001
        - **Udf10**:
        - **Udf9**:
        - **Udf8**:
        - **Udf7**:
        - **Udf6**:
        - **Udf5**:
        - **Udf4**:
        - **Udf3**:
        - **Udf2**:
        - **Udf1**:
        - **Txn_uuid**:
          - Value: eulwh64Rw6dQSNBUZUE
        - **Txn_id**:
          - Value: stock-R7648276171-1
        - **Txn_detail**:
          - Value:
            - **Recurrence_value/txn_uuid**:
              - Value: eulwh64Rw6dQSNBUZUE
            - **Txn_id**:
              - Value: stock-R7648276171-1
            - **Txn_amount**:
              - Value: 10000
            - **Tax_amount**:
              - Value: 0
            - **Surcharge_amount**:
              - Value: 0
            - **Status**:
              - Value: PENDING_VBV
            - **Redirect**:
              - Value: true
            - **Order_id**:
              - Value: R7648276171
            - **Net_amount**:
              - Value: 1000
            - **Gateway_id**:
              - Value: 511
            - **Gateway**:
              - Value: AXIS_BIZ
            - **Express_checkout**:
              - Value: false
            - **Error_message**:
            - **Error_code**:
              - Value: null
            - **Currency**:
              - Value: INR
            - **Created**:
              - Value: 2022-01-28T09:14:52Z
        - **Status_id**:
          - Value: PENDING_VBV
        - **Rewards_breakup**:
          - Value: null
        - **Status**:
          - Value: PENDING_VBV
        - **Payment_method**:
          - Value: UPI
        - **Return_url**:
          - Value: https://links.stockpay.in/repayments
        - **Refunded**:
          - Value: false
        - **Product_id**:
        - **Payment_method_type**:
          - Value: UPI
        - **Payment_links**:
          - Value:
            - **Web**:
              - Value: https://sandbox.juspay.in/merchant/pay/ordeu_f07e1293e5684eb5ae815dbf6c998644
            - **Mobile**:
              - Value: https://sandbox.juspay.in/merchant/pay/ordeu_f07e1293e5684eb5ae815dbf6c998644?mobile=true
            - **Iframe**:
              - Value: https://sandbox.juspay.in/merchant/ipay/ordeu_f07e1293e5684eb5ae815dbf6c998644
        - **Amount**:
          - Value: 100.00
    - **Payer_vpa**:
      - Value: 8088219177@stockaxis
    - **Order_id**:
      - Value: R7648276171
    - **Offers**:
      - Value: [ ]
    - **Metadata**:
      - Value: null
    - **Merchant_id**:
      - Value: stock
    - **Id**:
      - Value: ordeu_f07e1293e5684eb5ae815dbf6c998644
    - **Gateway_reference_id**:
      - Value: null
    - **Gateway_id**:
      - Value: 511
    - **Effective_amount**:
      - Value: 1000
    - **Date_created**:
      - Value: 2022-01-28T09:14:51Z
    - **Customer_phone**:
      - Value: 8088219177
    - **Customer_id**:
    - **Customer_email**:
      - Value: null
    - **Currency**:
      - Value: INR
    - **Bank_pg**:
      - Value: null
    - **Bank_error_message**:
      - Value: null
    - **Bank_error_code**:
      - Value: null
    - **Auth_type**:
      - Value: null
    - **Amount_refunded**:
      - Value: 0
    - **Amount**:
      - Value: 1000




#### Code Snippets: -

#### Objective-C Code Snippet:

```objective-c
{
  "id": "evt_V2_5c08a08095ea4279ad28347241678c0b",
  "event_name": "TXN_CREATED",
  "date_created": "2022-01-28T09:14:52Z",
  "content": {
    "order": {
      "upi": {
        "upi_bank_account_reference_id": "Afeb13dcb1c14e7eb0a2dba7ad8b2b",
        "txn_type": "UPI_INAPP",
        "payer_vpa": "8088219177@sliceaxis",
        "payer_app": "AXIS_BIZ",
        "masked_bank_account_number": "XXXXXXX20000",
        "bank_name": "MYPSP",
        "bank_code": "500001"
      },
      "udf9": "",
      "udf8": "",
      "udf7": "",
      "udf6": "",
      "udf5": "",
      "udf4": "",
      "udf3": "",
      "udf2": "",
      "udf10": "",
      "udf1": "",
      "txn_uuid": "eulwh64Rw6dQSNBUZUE",
      "txn_id": "slice-R7648276171-1",
      "txn_detail": {
        "txn_uuid": "eulwh64Rw6dQSNBUZUE",
        "txn_id": "slice-R7648276171-1",
        "txn_amount": 10000,
        "tax_amount": 0,
        "surcharge_amount": 0,
        "status": "PENDING_VBV",
        "redirect": true,
        "order_id": "R7648276171",
        "net_amount": 10000,
        "gateway_id": 511,
        "gateway": "AXIS_BIZ",
        "express_checkout": false,
        "error_message": "",
        "error_code": null,
        "currency": "INR",
        "created": "2022-01-28T09:14:52Z"
      },
      "status_id": 23,
      "status": "PENDING_VBV",
      "rewards_breakup": null,
      "return_url": "https://links.slicepay.in/repayments",
      "refunded": false,
      "product_id": "",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_links": {
        "web": "https://sandbox.juspay.in/merchant/pay/ordeu_f07e1293e5684eb5ae815dbf6c998644",
        "mobile": "https://sandbox.juspay.in/merchant/pay/ordeu_f07e1293e5684eb5ae815dbf6c998644?mobile=true",
        "iframe": "https://sandbox.juspay.in/merchant/ipay/ordeu_f07e1293e5684eb5ae815dbf6c998644"
      },
      "payer_vpa": "8088219177@sliceaxis",
      "order_id": "R7648276171",
      "offers": [

      ],
      "metadata": null,
      "merchant_id": "slice",
      "id": "ordeu_f07e1293e5684eb5ae815dbf6c998644",
      "gateway_reference_id": null,
      "gateway_id": 511,
      "effective_amount": 10000,
      "date_created": "2022-01-28T09:14:51Z",
      "customer_phone": "",
      "customer_id": "8088219177",
      "customer_email": null,
      "currency": "INR",
      "bank_pg": null,
      "bank_error_message": "",
      "bank_error_code": "",
      "auth_type": "",
      "amount_refunded": 0,
      "amount": 10000
    }
  }
}
```

#### Swift Code Snippet:

```swift
{
  "id": "evt_V2_5c08a08095ea4279ad28347241678c0b",
  "event_name": "TXN_CREATED",
  "date_created": "2022-01-28T09:14:52Z",
  "content": {
    "order": {
      "upi": {
        "upi_bank_account_reference_id": "Afeb13dcb1c14e7eb0a2dba7ad8b2b",
        "txn_type": "UPI_INAPP",
        "payer_vpa": "8088219177@sliceaxis",
        "payer_app": "AXIS_BIZ",
        "masked_bank_account_number": "XXXXXXX20000",
        "bank_name": "MYPSP",
        "bank_code": "500001"
      },
      "udf9": "",
      "udf8": "",
      "udf7": "",
      "udf6": "",
      "udf5": "",
      "udf4": "",
      "udf3": "",
      "udf2": "",
      "udf10": "",
      "udf1": "",
      "txn_uuid": "eulwh64Rw6dQSNBUZUE",
      "txn_id": "slice-R7648276171-1",
      "txn_detail": {
        "txn_uuid": "eulwh64Rw6dQSNBUZUE",
        "txn_id": "slice-R7648276171-1",
        "txn_amount": 10000,
        "tax_amount": 0,
        "surcharge_amount": 0,
        "status": "PENDING_VBV",
        "redirect": true,
        "order_id": "R7648276171",
        "net_amount": 10000,
        "gateway_id": 511,
        "gateway": "AXIS_BIZ",
        "express_checkout": false,
        "error_message": "",
        "error_code": null,
        "currency": "INR",
        "created": "2022-01-28T09:14:52Z"
      },
      "status_id": 23,
      "status": "PENDING_VBV",
      "rewards_breakup": null,
      "return_url": "https://links.slicepay.in/repayments",
      "refunded": false,
      "product_id": "",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_links": {
        "web": "https://sandbox.juspay.in/merchant/pay/ordeu_f07e1293e5684eb5ae815dbf6c998644",
        "mobile": "https://sandbox.juspay.in/merchant/pay/ordeu_f07e1293e5684eb5ae815dbf6c998644?mobile=true",
        "iframe": "https://sandbox.juspay.in/merchant/ipay/ordeu_f07e1293e5684eb5ae815dbf6c998644"
      },
      "payer_vpa": "8088219177@sliceaxis",
      "order_id": "R7648276171",
      "offers": [

      ],
      "metadata": null,
      "merchant_id": "slice",
      "id": "ordeu_f07e1293e5684eb5ae815dbf6c998644",
      "gateway_reference_id": null,
      "gateway_id": 511,
      "effective_amount": 10000,
      "date_created": "2022-01-28T09:14:51Z",
      "customer_phone": "",
      "customer_id": "8088219177",
      "customer_email": null,
      "currency": "INR",
      "bank_pg": null,
      "bank_error_message": "",
      "bank_error_code": "",
      "auth_type": "",
      "amount_refunded": 0,
      "amount": 10000
    }
  }
}
```



### 3.2 TXN_CHARGED



### Payload
- **Id**:
  - Description: Event ID
  - Value: evt_V2_03c6ec0681124450b55cf92fa35df241
- **Event_name**:
  - Value: TXN_CHARGED
- **Date_created**:
  - Description: timestamp when webhook was created
  - Value: 2021-12-07T13:46:40Z
- **Content**:
  - Description: Details of the event
  - Value:
    - **Txn**:
      - Value:
        - **Txn_uuid**:
          - Value: eulwh64Rw6dQSNBUZUE
        - **Txn_id**:
          - Value: stock-R7648276171-1
        - **Txn_amount**:
          - Value: 1000
        - **Tax_amount**:
          - Value: 0
        - **Surcharge_amount**:
          - Value: 0
        - **Status_id**:
          - Value: 21
        - **Status**:
          - Value: CHARGED
        - **Redirect**:
          - Value: true
        - **Payment_method_type**:
          - Value: UPI
        - **Payment_method**:
          - Value: UPI
        - **Payment_gateway_response**:
          - Value:
            - **Txn_id**:
              - Value: eulwh64Rw6dQSNBUZUE
            - **Rrn**:
              - Value: 202814207184
            - **Resp_message**:
              - Value: Your transaction is successful
            - **Resp_code**:
              - Value: 00
            - **Epg_txn_id**:
              - Value: AXB22f8d0fafdf9455bb9d7b657c2ab14e4
            - **Created**:
              - Value: 2022-01-28T09:15:04Z
            - **Auth_id_code**:
              - Value: null
        - **Order_id**:
          - Value: R7648276171
        - **Net_amount**:
          - Value: 10000
        - **Gateway_id**:
          - Value: 511
        - **Gateway**:
          - Value: AXIS_BIZ
        - **Express_checkout**:
          - Value: false
        - **Error_message**:
        - **Error_code**:
        - **Currency**:
          - Value: INR
        - **Created**:
          - Value: 2022-01-28T09:14:52Z




#### Code Snippets: -

#### Objective-C Code Snippet:

```objective-c
{
  "id": "evt_V2_0605110330aa49cea64215d095bf050b",
  "event_name": "TXN_CHARGED",
  "date_created": "2022-01-28T09:15:04Z",
  "content": {
    "txn": {
      "txn_uuid": "eulwh64Rw6dQSNBUZUE",
      "txn_id": "slice-R7648276171-1",
      "txn_amount": 10000,
      "tax_amount": 0,
      "surcharge_amount": 0,
      "status_id": 21,
      "status": "CHARGED",
      "redirect": true,
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_gateway_response": {
        "txn_id": "eulwh64Rw6dQSNBUZUE",
        "rrn": "202814207184",
        "resp_message": "Your transaction is successful",
        "resp_code": "00",
        "epg_txn_id": "AXB22f8d0fafdf9455bb9d7b657c2ab14e4",
        "created": "2022-01-28T09:15:04Z",
        "auth_id_code": null
      },
      "order_id": "R7648276171",
      "net_amount": 10000,
      "gateway_id": 511,
      "gateway": "AXIS_BIZ",
      "express_checkout": false,
      "error_message": "",
      "error_code": "",
      "currency": "INR",
      "created": "2022-01-28T09:14:52Z"
    }
  }
}
```

#### Swift Code Snippet:

```swift
{
  "id": "evt_V2_0605110330aa49cea64215d095bf050b",
  "event_name": "TXN_CHARGED",
  "date_created": "2022-01-28T09:15:04Z",
  "content": {
    "txn": {
      "txn_uuid": "eulwh64Rw6dQSNBUZUE",
      "txn_id": "slice-R7648276171-1",
      "txn_amount": 10000,
      "tax_amount": 0,
      "surcharge_amount": 0,
      "status_id": 21,
      "status": "CHARGED",
      "redirect": true,
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_gateway_response": {
        "txn_id": "eulwh64Rw6dQSNBUZUE",
        "rrn": "202814207184",
        "resp_message": "Your transaction is successful",
        "resp_code": "00",
        "epg_txn_id": "AXB22f8d0fafdf9455bb9d7b657c2ab14e4",
        "created": "2022-01-28T09:15:04Z",
        "auth_id_code": null
      },
      "order_id": "R7648276171",
      "net_amount": 10000,
      "gateway_id": 511,
      "gateway": "AXIS_BIZ",
      "express_checkout": false,
      "error_message": "",
      "error_code": "",
      "currency": "INR",
      "created": "2022-01-28T09:14:52Z"
    }
  }
}
```



### 3.3 ORDER_SUCCEEDED



### Payload
- **Id**:
  - Description: Event ID
  - Value: evt_V2_03c6ec0681124450b55cf92fa35df241
- **Event_name**:
  - Value: ORDER_SUCCEEDED
- **Date_created**:
  - Description: timestamp when webhook was created
  - Value: 2021-12-07T13:46:40Z
- **Content**:
  - Description: Details of the event
  - Value:
    - **Order**:
      - Value:
        - **Upi**:
          - Value:
            - **Upi_bank_account_reference_id**:
              - Value: Afeb13dcb1c14e7eb0a2dba7ad8b2b
            - **Txn_type**:
              - Value: UPI_INAPP
            - **Payer_vpa**:
              - Value: 8088219177@stockaxis
            - **Payer_app**:
              - Value: AXIS_BIZ
            - **Masked_bank_account_number**:
              - Value: XXXXXXX20000
            - **Bank_name**:
              - Value: MYPSP
            - **Bank_code**:
              - Value: 500001
        - **Udf10**:
        - **Udf9**:
        - **Udf8**:
        - **Udf7**:
        - **Udf6**:
        - **Udf5**:
        - **Udf4**:
        - **Udf3**:
        - **Udf2**:
        - **Udf1**:
        - **Txn_uuid**:
          - Value: eulwh64Rw6dQSNBUZUE
        - **Txn_id**:
          - Value: stock-R7648276171-1
        - **Txn_detail**:
          - Value:
            - **Txn_uuid**:
              - Value: eulwh64Rw6dQSNBUZUE
            - **Txn_id**:
              - Value: stock-R7648276171-1
            - **Txn_amount**:
              - Value: 10000
            - **Tax_amount**:
              - Value: 0
            - **Surcharge_amount**:
              - Value: 0
            - **Status**:
              - Value: CHARGED
            - **Redirect**:
              - Value: true
            - **Order_id**:
              - Value: R7648276171
            - **Net_amount**:
              - Value: 1000
            - **Gateway_id**:
              - Value: 511
            - **Gateway**:
              - Value: AXIS_BIZ
            - **Express_checkout**:
              - Value: false
            - **Error_message**:
            - **Error_code**:
              - Value: null
            - **Currency**:
              - Value: INR
            - **Created**:
              - Value: 2022-01-28T09:14:52Z
        - **Status_id**:
          - Value: 21
        - **Rewards_breakup**:
          - Value: null
        - **Status**:
          - Value: CHARGED
        - **Payment_method**:
          - Value: UPI
        - **Return_url**:
          - Value: https://links.stockpay.in/repayments
        - **Refunded**:
          - Value: false
        - **Product_id**:
        - **Payment_method_type**:
          - Value: UPI
        - **Payment_links**:
          - Value:
            - **Web**:
              - Value: https://sandbox.juspay.in/merchant/pay/ordeu_f07e1293e5684eb5ae815dbf6c998644
            - **Mobile**:
              - Value: https://sandbox.juspay.in/merchant/pay/ordeu_f07e1293e5684eb5ae815dbf6c998644?mobile=true
            - **Iframe**:
              - Value: https://sandbox.juspay.in/merchant/ipay/ordeu_f07e1293e5684eb5ae815dbf6c998644
        - **Payment_gateway_response**:
          - Value:
            - **Txn_id**:
              - Value: eulwh64Rw6dQSNBUZUE
            - **Rrn**:
              - Value: 202814207184
            - **Resp_message**:
              - Value: Your transaction is successful
            - **Resp_code**:
              - Value: 00
            - **Gateway_response**:
              - Value:
                - **MerchantChannelId**:
                  - Value: stockAPP
                - **Amount**:
                  - Value: 10000.00
                - **MerchantId**:
                  - Value: stock
                - **GatewayResponseMessage**:
                  - Value: Your transaction is successful
                - **PayerVpa**:
                  - Value: 8088219177@stockaxis
                - **MerchantRequestId**:
                  - Value: eulwh64Rw6dQSNBUZUE
                - **GatewayResponseCode**:
                  - Value: 00
                - **GatewayReferenceId**:
                  - Value: 202814207184
                - **GatewayTransactionId**:
                  - Value: AXB22f8d0fafdf9455bb9d7b657c2ab14e4
                - **PayeeVpa**:
                  - Value: repayments@stockaxis
                - **TransactionTimestamp**:
                  - Value: 2022-01-28T14:44:51+05:30
                - **UdfParameters**:
                  - Description: Stringified json for udf parameters
                  - Value: {}
                - **Type**:
                  - Value: MERCHANT_CREDITED_VIA_PAY
            - **Epg_txn_id**:
              - Value: AXB22f8d0fafdf9455bb9d7b657c2ab14e4
            - **Created**:
              - Value: 2022-01-28T09:15:04Z
            - **Auth_id_code**:
              - Value: null
        - **Payer_vpa**:
          - Value: 8088219177@stockaxis
        - **Order_id**:
          - Value: R7648276171
        - **Offers**:
          - Value: [ ]
        - **Metadata**:
          - Value: null
        - **Merchant_id**:
          - Value: stock
        - **Id**:
          - Value: ordeu_f07e1293e5684eb5ae815dbf6c998644
        - **Gateway_reference_id**:
          - Value: null
        - **Gateway_id**:
          - Value: 511
        - **Effective_amount**:
          - Value: 1000
        - **Date_created**:
          - Value: 2022-01-28T09:14:51Z
        - **Customer_phone**:
          - Value: 8088219177
        - **Customer_id**:
        - **Customer_email**:
          - Value: null
        - **Currency**:
          - Value: INR
        - **Bank_pg**:
          - Value: null
        - **Bank_error_message**:
          - Value: null
        - **Bank_error_code**:
          - Value: null
        - **Auth_type**:
          - Value: null
        - **Amount_refunded**:
          - Value: 0
        - **Amount**:
          - Value: 1000




#### Code Snippets: -

#### Objective-C Code Snippet:

```objective-c
{
  "id": "evt_V2_45dca165c3364d2db56f2df48fac2f7a",
  "event_name": "ORDER_SUCCEEDED",
  "date_created": "2022-01-28T09:15:04Z",
  "content": {
    "order": {
      "upi": {
        "upi_bank_account_reference_id": "Afeb13dcb1c14e7eb0a2dba7ad8b2b",
        "txn_type": "UPI_INAPP",
        "payer_vpa": "8088219177@sliceaxis",
        "payer_app": "AXIS_BIZ",
        "masked_bank_account_number": "XXXXXXX20000",
        "bank_name": "MYPSP",
        "bank_code": "500001"
      },
      "udf9": "",
      "udf8": "",
      "udf7": "",
      "udf6": "",
      "udf5": "",
      "udf4": "",
      "udf3": "",
      "udf2": "",
      "udf10": "",
      "udf1": "",
      "txn_uuid": "eulwh64Rw6dQSNBUZUE",
      "txn_id": "slice-R7648276171-1",
      "txn_detail": {
        "txn_uuid": "eulwh64Rw6dQSNBUZUE",
        "txn_id": "slice-R7648276171-1",
        "txn_amount": 10000,
        "tax_amount": 0,
        "surcharge_amount": 0,
        "status": "CHARGED",
        "redirect": true,
        "order_id": "R7648276171",
        "net_amount": 10000,
        "gateway_id": 511,
        "gateway": "AXIS_BIZ",
        "express_checkout": false,
        "error_message": "",
        "error_code": "",
        "currency": "INR",
        "created": "2022-01-28T09:14:52Z"
      },
      "status_id": 21,
      "status": "CHARGED",
      "rewards_breakup": null,
      "return_url": "https://links.slicepay.in/repayments",
      "refunded": false,
      "product_id": "",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_links": {
        "web": "https://sandbox.juspay.in/merchant/pay/ordeu_f07e1293e5684eb5ae815dbf6c998644",
        "mobile": "https://sandbox.juspay.in/merchant/pay/ordeu_f07e1293e5684eb5ae815dbf6c998644?mobile=true",
        "iframe": "https://sandbox.juspay.in/merchant/ipay/ordeu_f07e1293e5684eb5ae815dbf6c998644"
      },
      "payment_gateway_response": {
        "txn_id": "eulwh64Rw6dQSNBUZUE",
        "rrn": "202814207184",
        "resp_message": "Your transaction is successful",
        "resp_code": "00",
        "gateway_response": {
          "merchantChannelId": "SLICEAPP",
          "amount": "10000.00",
          "merchantId": "SLICE",
          "gatewayResponseMessage": "Your transaction is successful",
          "payerVpa": "8088219177@sliceaxis",
          "merchantRequestId": "eulwh64Rw6dQSNBUZUE",
          "gatewayResponseCode": "00",
          "gatewayReferenceId": "202814207184",
          "gatewayTransactionId": "AXB22f8d0fafdf9455bb9d7b657c2ab14e4",
          "payeeVpa": "repayments@sliceaxis",
          "transactionTimestamp": "2022-01-28T14:44:51+05:30",
          "udfParameters": "{}",
          "type": "MERCHANT_CREDITED_VIA_PAY"
        },
        "epg_txn_id": "AXB22f8d0fafdf9455bb9d7b657c2ab14e4",
        "created": "2022-01-28T09:15:04Z",
        "auth_id_code": null
      },
      "payer_vpa": "8088219177@sliceaxis",
      "order_id": "R7648276171",
      "offers": [

      ],
      "metadata": null,
      "merchant_id": "slice",
      "id": "ordeu_f07e1293e5684eb5ae815dbf6c998644",
      "gateway_reference_id": null,
      "gateway_id": 511,
      "effective_amount": 10000,
      "date_created": "2022-01-28T09:14:51Z",
      "customer_phone": "",
      "customer_id": "8088219177",
      "customer_email": null,
      "currency": "INR",
      "bank_pg": null,
      "bank_error_message": "",
      "bank_error_code": "",
      "auth_type": "",
      "amount_refunded": 0,
      "amount": 10000
    }
  }
}
```

#### Swift Code Snippet:

```swift
{
  "id": "evt_V2_45dca165c3364d2db56f2df48fac2f7a",
  "event_name": "ORDER_SUCCEEDED",
  "date_created": "2022-01-28T09:15:04Z",
  "content": {
    "order": {
      "upi": {
        "upi_bank_account_reference_id": "Afeb13dcb1c14e7eb0a2dba7ad8b2b",
        "txn_type": "UPI_INAPP",
        "payer_vpa": "8088219177@sliceaxis",
        "payer_app": "AXIS_BIZ",
        "masked_bank_account_number": "XXXXXXX20000",
        "bank_name": "MYPSP",
        "bank_code": "500001"
      },
      "udf9": "",
      "udf8": "",
      "udf7": "",
      "udf6": "",
      "udf5": "",
      "udf4": "",
      "udf3": "",
      "udf2": "",
      "udf10": "",
      "udf1": "",
      "txn_uuid": "eulwh64Rw6dQSNBUZUE",
      "txn_id": "slice-R7648276171-1",
      "txn_detail": {
        "txn_uuid": "eulwh64Rw6dQSNBUZUE",
        "txn_id": "slice-R7648276171-1",
        "txn_amount": 10000,
        "tax_amount": 0,
        "surcharge_amount": 0,
        "status": "CHARGED",
        "redirect": true,
        "order_id": "R7648276171",
        "net_amount": 10000,
        "gateway_id": 511,
        "gateway": "AXIS_BIZ",
        "express_checkout": false,
        "error_message": "",
        "error_code": "",
        "currency": "INR",
        "created": "2022-01-28T09:14:52Z"
      },
      "status_id": 21,
      "status": "CHARGED",
      "rewards_breakup": null,
      "return_url": "https://links.slicepay.in/repayments",
      "refunded": false,
      "product_id": "",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_links": {
        "web": "https://sandbox.juspay.in/merchant/pay/ordeu_f07e1293e5684eb5ae815dbf6c998644",
        "mobile": "https://sandbox.juspay.in/merchant/pay/ordeu_f07e1293e5684eb5ae815dbf6c998644?mobile=true",
        "iframe": "https://sandbox.juspay.in/merchant/ipay/ordeu_f07e1293e5684eb5ae815dbf6c998644"
      },
      "payment_gateway_response": {
        "txn_id": "eulwh64Rw6dQSNBUZUE",
        "rrn": "202814207184",
        "resp_message": "Your transaction is successful",
        "resp_code": "00",
        "gateway_response": {
          "merchantChannelId": "SLICEAPP",
          "amount": "10000.00",
          "merchantId": "SLICE",
          "gatewayResponseMessage": "Your transaction is successful",
          "payerVpa": "8088219177@sliceaxis",
          "merchantRequestId": "eulwh64Rw6dQSNBUZUE",
          "gatewayResponseCode": "00",
          "gatewayReferenceId": "202814207184",
          "gatewayTransactionId": "AXB22f8d0fafdf9455bb9d7b657c2ab14e4",
          "payeeVpa": "repayments@sliceaxis",
          "transactionTimestamp": "2022-01-28T14:44:51+05:30",
          "udfParameters": "{}",
          "type": "MERCHANT_CREDITED_VIA_PAY"
        },
        "epg_txn_id": "AXB22f8d0fafdf9455bb9d7b657c2ab14e4",
        "created": "2022-01-28T09:15:04Z",
        "auth_id_code": null
      },
      "payer_vpa": "8088219177@sliceaxis",
      "order_id": "R7648276171",
      "offers": [

      ],
      "metadata": null,
      "merchant_id": "slice",
      "id": "ordeu_f07e1293e5684eb5ae815dbf6c998644",
      "gateway_reference_id": null,
      "gateway_id": 511,
      "effective_amount": 10000,
      "date_created": "2022-01-28T09:14:51Z",
      "customer_phone": "",
      "customer_id": "8088219177",
      "customer_email": null,
      "currency": "INR",
      "bank_pg": null,
      "bank_error_message": "",
      "bank_error_code": "",
      "auth_type": "",
      "amount_refunded": 0,
      "amount": 10000
    }
  }
}
```



### 3.4 TXN_FAILED



### Payload
- **Id**:
  - Description: Event ID
  - Value: evt_V2_03c6ec0681124450b55cf92fa35df241
- **Event_name**:
  - Value: TXN_FAILED
- **Date_created**:
  - Description: timestamp when webhook was created
  - Value: 2021-12-07T13:46:40Z
- **Content**:
  - Description: Details of the event
  - Value:
    - **Txn**:
      - Value:
        - **Txn_uuid**:
          - Value: eulwh64Rw6dQSNBUZUE
        - **Txn_id**:
          - Value: stock-R7648276171-1
        - **Txn_amount**:
          - Value: 1000
        - **Tax_amount**:
          - Value: 0
        - **Surcharge_amount**:
          - Value: 0
        - **Status_id**:
          - Value: 21
        - **Status**:
          - Value: AUTHENTICATION_FAILED
        - **Redirect**:
          - Value: true
        - **Payment_method_type**:
          - Value: UPI
        - **Payment_method**:
          - Value: UPI
        - **Payment_gateway_response**:
          - Value:
            - **Txn_id**:
              - Value: eulwh64Rw6dQSNBUZUE
            - **Rrn**:
              - Value: 202814207184
            - **Resp_message**:
              - Value: Bank is taking too long to respond. Please try again!
            - **Resp_code**:
              - Value: U09
            - **Epg_txn_id**:
              - Value: AXB22f8d0fafdf9455bb9d7b657c2ab14e4
            - **Created**:
              - Value: 2022-01-28T09:15:04Z
            - **Auth_id_code**:
              - Value: null
        - **Order_id**:
          - Value: R7648276171
        - **Net_amount**:
          - Value: 10000
        - **Gateway_id**:
          - Value: 511
        - **Gateway**:
          - Value: AXIS_BIZ
        - **Express_checkout**:
          - Value: false
        - **Error_message**:
          - Value: Bank is taking too long to respond. Please try again!
        - **Error_code**:
          - Value: U09
        - **Currency**:
          - Value: INR
        - **Created**:
          - Value: 2022-01-28T09:14:52Z




#### Code Snippets: -

#### Objective-C Code Snippet:

```objective-c
{
  "id": "evt_V2_311d1b273a084b06bfd957e01293f8ce",
  "event_name": "TXN_FAILED",
  "date_created": "2022-01-28T09:16:46Z",
  "content": {
    "txn": {
      "txn_uuid": "eul2PiJnWLDUnC9SKr2",
      "txn_id": "slice-R670115430-1",
      "txn_amount": 200001,
      "tax_amount": 0,
      "surcharge_amount": 0,
      "status_id": 26,
      "status": "AUTHENTICATION_FAILED",
      "redirect": true,
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_gateway_response": {
        "txn_id": "eul2PiJnWLDUnC9SKr2",
        "rrn": "202814514190",
        "resp_message": "Bank is taking too long to respond. Please try again!",
        "resp_code": "U09",
        "epg_txn_id": "AXB961f2e31e3614bdca113b3a9959092cd",
        "created": "2022-01-28T09:16:46Z",
        "auth_id_code": null
      },
      "order_id": "R670115430",
      "net_amount": 200001,
      "gateway_id": 511,
      "gateway": "AXIS_BIZ",
      "express_checkout": false,
      "error_message": "Bank is taking too long to respond. Please try again!",
      "error_code": "U09",
      "currency": "INR",
      "created": "2022-01-28T09:16:23Z"
    }
  }
}
```

#### Swift Code Snippet:

```swift
{
  "id": "evt_V2_311d1b273a084b06bfd957e01293f8ce",
  "event_name": "TXN_FAILED",
  "date_created": "2022-01-28T09:16:46Z",
  "content": {
    "txn": {
      "txn_uuid": "eul2PiJnWLDUnC9SKr2",
      "txn_id": "slice-R670115430-1",
      "txn_amount": 200001,
      "tax_amount": 0,
      "surcharge_amount": 0,
      "status_id": 26,
      "status": "AUTHENTICATION_FAILED",
      "redirect": true,
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_gateway_response": {
        "txn_id": "eul2PiJnWLDUnC9SKr2",
        "rrn": "202814514190",
        "resp_message": "Bank is taking too long to respond. Please try again!",
        "resp_code": "U09",
        "epg_txn_id": "AXB961f2e31e3614bdca113b3a9959092cd",
        "created": "2022-01-28T09:16:46Z",
        "auth_id_code": null
      },
      "order_id": "R670115430",
      "net_amount": 200001,
      "gateway_id": 511,
      "gateway": "AXIS_BIZ",
      "express_checkout": false,
      "error_message": "Bank is taking too long to respond. Please try again!",
      "error_code": "U09",
      "currency": "INR",
      "created": "2022-01-28T09:16:23Z"
    }
  }
}
```



### 3.5 ORDER_FAILED



### Payload
- **Id**:
  - Description: Event ID
  - Value: evt_V2_03c6ec0681124450b55cf92fa35df241
- **Event_name**:
  - Value: ORDER_FAILED
- **Date_created**:
  - Description: timestamp when webhook was created
  - Value: 2021-12-07T13:46:40Z
- **Content**:
  - Description: Details of the event
  - Value:
    - **Order**:
      - Value:
        - **Upi**:
          - Value:
            - **Upi_bank_account_reference_id**:
              - Value: Afeb13dcb1c14e7eb0a2dba7ad8b2b
            - **Txn_type**:
              - Value: UPI_INAPP
            - **Payer_vpa**:
              - Value: 8088219177@stockaxis
            - **Payer_app**:
              - Value: AXIS_BIZ
            - **Masked_bank_account_number**:
              - Value: XXXXXXX20000
            - **Bank_name**:
              - Value: MYPSP
            - **Bank_code**:
              - Value: 500001
        - **Udf10**:
        - **Udf9**:
        - **Udf8**:
        - **Udf7**:
        - **Udf6**:
        - **Udf5**:
        - **Udf4**:
        - **Udf3**:
        - **Udf2**:
        - **Udf1**:
        - **Txn_uuid**:
          - Value: eulwh64Rw6dQSNBUZUE
        - **Txn_id**:
          - Value: stock-R7648276171-1
        - **Txn_detail**:
          - Value:
            - **Txn_uuid**:
              - Value: eulwh64Rw6dQSNBUZUE
            - **Txn_id**:
              - Value: stock-R7648276171-1
            - **Txn_amount**:
              - Value: 10000
            - **Tax_amount**:
              - Value: 0
            - **Surcharge_amount**:
              - Value: 0
            - **Status**:
              - Value: AUTHENTICATION_FAILED
            - **Redirect**:
              - Value: true
            - **Order_id**:
              - Value: R7648276171
            - **Net_amount**:
              - Value: 1000
            - **Gateway_id**:
              - Value: 511
            - **Gateway**:
              - Value: AXIS_BIZ
            - **Express_checkout**:
              - Value: false
            - **Error_message**:
              - Value: Bank is taking too long to respond. Please try again!
            - **Error_code**:
              - Value: U09
            - **Currency**:
              - Value: INR
            - **Created**:
              - Value: 2022-01-28T09:14:52Z
        - **Status_id**:
          - Value: 26
        - **Rewards_breakup**:
          - Value: null
        - **Status**:
          - Value: AUTHENTICATION_FAILED
        - **Payment_method**:
          - Value: UPI
        - **Return_url**:
          - Value: https://links.stockpay.in/repayments
        - **Refunded**:
          - Value: false
        - **Product_id**:
        - **Payment_method_type**:
          - Value: UPI
        - **Payment_links**:
          - Value:
            - **Web**:
              - Value: https://sandbox.juspay.in/merchant/pay/ordeu_f07e1293e5684eb5ae815dbf6c998644
            - **Mobile**:
              - Value: https://sandbox.juspay.in/merchant/pay/ordeu_f07e1293e5684eb5ae815dbf6c998644?mobile=true
            - **Iframe**:
              - Value: https://sandbox.juspay.in/merchant/ipay/ordeu_f07e1293e5684eb5ae815dbf6c998644
        - **Payment_gateway_response**:
          - Value:
            - **Txn_id**:
              - Value: eulwh64Rw6dQSNBUZUE
            - **Rrn**:
              - Value: 202814207184
            - **Resp_message**:
              - Value: Bank is taking too long to respond. Please try again!
            - **Resp_code**:
              - Value: U09
            - **Gateway_response**:
              - Value:
                - **MerchantChannelId**:
                  - Value: stockAPP
                - **Amount**:
                  - Value: 10000.00
                - **MerchantId**:
                  - Value: stock
                - **GatewayResponseMessage**:
                  - Value: Bank is taking too long to respond. Please try again!
                - **PayerVpa**:
                  - Value: 8088219177@stockaxis
                - **MerchantRequestId**:
                  - Value: eulwh64Rw6dQSNBUZUE
                - **GatewayResponseCode**:
                  - Value: U09
                - **GatewayReferenceId**:
                  - Value: 202814207184
                - **GatewayTransactionId**:
                  - Value: AXB22f8d0fafdf9455bb9d7b657c2ab14e4
                - **PayeeVpa**:
                  - Value: repayments@stockaxis
                - **TransactionTimestamp**:
                  - Value: 2022-01-28T14:44:51+05:30
                - **UdfParameters**:
                  - Description: Stringified json for udf parameters
                  - Value: {}
                - **Type**:
                  - Value: MERCHANT_CREDITED_VIA_PAY
            - **Epg_txn_id**:
              - Value: AXB22f8d0fafdf9455bb9d7b657c2ab14e4
            - **Created**:
              - Value: 2022-01-28T09:15:04Z
            - **Auth_id_code**:
              - Value: null
        - **Payer_vpa**:
          - Value: 8088219177@stockaxis
        - **Order_id**:
          - Value: R7648276171
        - **Offers**:
          - Value: [ ]
        - **Metadata**:
          - Value: null
        - **Merchant_id**:
          - Value: stock
        - **Id**:
          - Value: ordeu_f07e1293e5684eb5ae815dbf6c998644
        - **Gateway_reference_id**:
          - Value: null
        - **Gateway_id**:
          - Value: 511
        - **Effective_amount**:
          - Value: 1000
        - **Date_created**:
          - Value: 2022-01-28T09:14:51Z
        - **Customer_phone**:
          - Value: 8088219177
        - **Customer_id**:
        - **Customer_email**:
          - Value: null
        - **Currency**:
          - Value: INR
        - **Bank_pg**:
          - Value: null
        - **Bank_error_message**:
          - Value: Bank is taking too long to respond. Please try again!
        - **Bank_error_code**:
          - Value: U09
        - **Auth_type**:
        - **Amount_refunded**:
          - Value: 0
        - **Amount**:
          - Value: 1000




#### Code Snippets: -

#### Objective-C Code Snippet:

```objective-c
{
  "id": "evt_V2_adedb85fc8d7404ab5c044a25ca1303f",
  "event_name": "ORDER_FAILED",
  "date_created": "2022-01-28T09:16:46Z",
  "content": {
    "order": {
      "upi": {
        "upi_bank_account_reference_id": "Afeb13dcb1c14e7eb0a2dba7ad8b2b",
        "txn_type": "UPI_INAPP",
        "payer_vpa": "8088219177@sliceaxis",
        "payer_app": "AXIS_BIZ",
        "masked_bank_account_number": "XXXXXXX20000",
        "bank_name": "MYPSP",
        "bank_code": "500001"
      },
      "udf9": "",
      "udf8": "",
      "udf7": "",
      "udf6": "",
      "udf5": "",
      "udf4": "",
      "udf3": "",
      "udf2": "",
      "udf10": "",
      "udf1": "",
      "txn_uuid": "eul2PiJnWLDUnC9SKr2",
      "txn_id": "slice-R670115430-1",
      "txn_detail": {
        "txn_uuid": "eul2PiJnWLDUnC9SKr2",
        "txn_id": "slice-R670115430-1",
        "txn_amount": 200001,
        "tax_amount": 0,
        "surcharge_amount": 0,
        "status": "AUTHENTICATION_FAILED",
        "redirect": true,
        "order_id": "R670115430",
        "net_amount": 200001,
        "gateway_id": 511,
        "gateway": "AXIS_BIZ",
        "express_checkout": false,
        "error_message": "Bank is taking too long to respond. Please try again!",
        "error_code": "U09",
        "currency": "INR",
        "created": "2022-01-28T09:16:23Z"
      },
      "status_id": 26,
      "status": "AUTHENTICATION_FAILED",
      "rewards_breakup": null,
      "return_url": "https://links.slicepay.in/repayments",
      "refunded": false,
      "product_id": "",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_links": {
        "web": "https://sandbox.juspay.in/merchant/pay/ordeu_a9d8fc9ee3a9497da961537fc045f66e",
        "mobile": "https://sandbox.juspay.in/merchant/pay/ordeu_a9d8fc9ee3a9497da961537fc045f66e?mobile=true",
        "iframe": "https://sandbox.juspay.in/merchant/ipay/ordeu_a9d8fc9ee3a9497da961537fc045f66e"
      },
      "payment_gateway_response": {
        "txn_id": "eul2PiJnWLDUnC9SKr2",
        "rrn": "202814514190",
        "resp_message": "Bank is taking too long to respond. Please try again!",
        "resp_code": "U09",
        "gateway_response": {
          "merchantChannelId": "SLICEAPP",
          "amount": "200001.00",
          "merchantId": "SLICE",
          "gatewayResponseMessage": "Bank is taking too long to respond. Please try again!",
          "payerVpa": "8088219177@sliceaxis",
          "merchantRequestId": "eul2PiJnWLDUnC9SKr2",
          "gatewayResponseCode": "U09",
          "gatewayReferenceId": "202814514190",
          "gatewayTransactionId": "AXB961f2e31e3614bdca113b3a9959092cd",
          "payeeVpa": "repayments@sliceaxis",
          "transactionTimestamp": "2022-01-28T14:46:20+05:30",
          "udfParameters": "{}",
          "type": "MERCHANT_CREDITED_VIA_PAY"
        },
        "epg_txn_id": "AXB961f2e31e3614bdca113b3a9959092cd",
        "created": "2022-01-28T09:16:46Z",
        "auth_id_code": null
      },
      "payer_vpa": "8088219177@sliceaxis",
      "order_id": "R670115430",
      "offers": [

      ],
      "metadata": null,
      "merchant_id": "slice",
      "id": "ordeu_a9d8fc9ee3a9497da961537fc045f66e",
      "gateway_reference_id": null,
      "gateway_id": 511,
      "effective_amount": 200001,
      "date_created": "2022-01-28T09:16:22Z",
      "customer_phone": "",
      "customer_id": "8088219177",
      "customer_email": null,
      "currency": "INR",
      "bank_pg": null,
      "bank_error_message": "Bank is taking too long to respond. Please try again!",
      "bank_error_code": "U09",
      "auth_type": "",
      "amount_refunded": 0,
      "amount": 200001
    }
  }
}
```

#### Swift Code Snippet:

```swift
{
  "id": "evt_V2_adedb85fc8d7404ab5c044a25ca1303f",
  "event_name": "ORDER_FAILED",
  "date_created": "2022-01-28T09:16:46Z",
  "content": {
    "order": {
      "upi": {
        "upi_bank_account_reference_id": "Afeb13dcb1c14e7eb0a2dba7ad8b2b",
        "txn_type": "UPI_INAPP",
        "payer_vpa": "8088219177@sliceaxis",
        "payer_app": "AXIS_BIZ",
        "masked_bank_account_number": "XXXXXXX20000",
        "bank_name": "MYPSP",
        "bank_code": "500001"
      },
      "udf9": "",
      "udf8": "",
      "udf7": "",
      "udf6": "",
      "udf5": "",
      "udf4": "",
      "udf3": "",
      "udf2": "",
      "udf10": "",
      "udf1": "",
      "txn_uuid": "eul2PiJnWLDUnC9SKr2",
      "txn_id": "slice-R670115430-1",
      "txn_detail": {
        "txn_uuid": "eul2PiJnWLDUnC9SKr2",
        "txn_id": "slice-R670115430-1",
        "txn_amount": 200001,
        "tax_amount": 0,
        "surcharge_amount": 0,
        "status": "AUTHENTICATION_FAILED",
        "redirect": true,
        "order_id": "R670115430",
        "net_amount": 200001,
        "gateway_id": 511,
        "gateway": "AXIS_BIZ",
        "express_checkout": false,
        "error_message": "Bank is taking too long to respond. Please try again!",
        "error_code": "U09",
        "currency": "INR",
        "created": "2022-01-28T09:16:23Z"
      },
      "status_id": 26,
      "status": "AUTHENTICATION_FAILED",
      "rewards_breakup": null,
      "return_url": "https://links.slicepay.in/repayments",
      "refunded": false,
      "product_id": "",
      "payment_method_type": "UPI",
      "payment_method": "UPI",
      "payment_links": {
        "web": "https://sandbox.juspay.in/merchant/pay/ordeu_a9d8fc9ee3a9497da961537fc045f66e",
        "mobile": "https://sandbox.juspay.in/merchant/pay/ordeu_a9d8fc9ee3a9497da961537fc045f66e?mobile=true",
        "iframe": "https://sandbox.juspay.in/merchant/ipay/ordeu_a9d8fc9ee3a9497da961537fc045f66e"
      },
      "payment_gateway_response": {
        "txn_id": "eul2PiJnWLDUnC9SKr2",
        "rrn": "202814514190",
        "resp_message": "Bank is taking too long to respond. Please try again!",
        "resp_code": "U09",
        "gateway_response": {
          "merchantChannelId": "SLICEAPP",
          "amount": "200001.00",
          "merchantId": "SLICE",
          "gatewayResponseMessage": "Bank is taking too long to respond. Please try again!",
          "payerVpa": "8088219177@sliceaxis",
          "merchantRequestId": "eul2PiJnWLDUnC9SKr2",
          "gatewayResponseCode": "U09",
          "gatewayReferenceId": "202814514190",
          "gatewayTransactionId": "AXB961f2e31e3614bdca113b3a9959092cd",
          "payeeVpa": "repayments@sliceaxis",
          "transactionTimestamp": "2022-01-28T14:46:20+05:30",
          "udfParameters": "{}",
          "type": "MERCHANT_CREDITED_VIA_PAY"
        },
        "epg_txn_id": "AXB961f2e31e3614bdca113b3a9959092cd",
        "created": "2022-01-28T09:16:46Z",
        "auth_id_code": null
      },
      "payer_vpa": "8088219177@sliceaxis",
      "order_id": "R670115430",
      "offers": [

      ],
      "metadata": null,
      "merchant_id": "slice",
      "id": "ordeu_a9d8fc9ee3a9497da961537fc045f66e",
      "gateway_reference_id": null,
      "gateway_id": 511,
      "effective_amount": 200001,
      "date_created": "2022-01-28T09:16:22Z",
      "customer_phone": "",
      "customer_id": "8088219177",
      "customer_email": null,
      "currency": "INR",
      "bank_pg": null,
      "bank_error_message": "Bank is taking too long to respond. Please try again!",
      "bank_error_code": "U09",
      "auth_type": "",
      "amount_refunded": 0,
      "amount": 200001
    }
  }
}
```



###   Mandate Transaction status callback


There will be a separate Mandate block in status check response/callback for mandate Transactions. For Mandate Status check, we need to pass the order id , used during the creation of Mandate



#### Code Snippets: -

#### Objective-C Code Snippet:

```objective-c
{
   "id": "evt_V2_4b83ba211443b53fc020d4c",
   "event_name": "ORDER_SUCCEEDED",
   "date_created": "2021-03-20T07:48:31Z",
   "content": {
     "order": {
       "udf8": "",
       "udf7": "",
       "udf6": "",
       "udf5": "",
       "udf4": "",
       "udf3": "",
       "udf2": "",
       "udf10": "",
       "udf1": "",
       "txn_uuid": "eulmy******y1Syy",
       "txn_id": "juspay-2348******3498-1",
       "txn_detail": {
         "txn_uuid": "eulmy******y1Syy",
         "txn_object_type": "EMANDATE_REGISTER",
         "txn_id": "juspay-2348******3498-1",
         "txn_amount": 1,
         "tax_amount": null,
         "surcharge_amount": null,
         "status": "CHARGED",
         "source_object_id": "91887",
         "source_object": "MANDATE",
         "redirect": true,
         "order_id": "2348******3498",
         "net_amount": 1,
         "gateway_id": 19,
         "gateway": "YES_BIZ",
         "express_checkout": false,
         "error_message": "",
         "error_code": "",
         "currency": "INR",
         "created": "2020-08-30T09:53:17Z"
       },
       "status_id": 21,
       "status": "CHARGED",
       "refunded": false,
       "product_id": "",
       "payment_method_type": "UPI",
       "payment_method": "UPI",
       "payment_links": {
         "web": "https://sandbox.juspay.in/merchant/pay/ordeu_9a092980*******4d0206",
         "mobile": "https://sandbox.juspay.in/merchant/pay/ordeu_9a092980*******4d0206?mobile=true",
         "iframe": "https://sandbox.juspay.in/merchant/ipay/ordeu_9a092980*******4d0206"
       },
       "upi": {
           "txn_flow_type" : "INAPP",
           "masked_bank_account_number": "4XXXXXXXX2323",
           "bank_name": "HDFC bank",
           "bank_code": "HDFC",
           "upi_bank_account_reference_id": "A0760cb548bb4dda9d32e3030863dd5",
           "payer_vpa" : "customer@vpa",
           "payer_app" : "AXIS_UPI",
       },
       "payment_gateway_response":  {
            "resp_code": "00",
            "rrn": null,
            "created": "2021-08-17T13:44:21Z",
            "epg_txn_id": "YJP9999rv9999a99c19a4877ede7954984e",// Its the orgMandateId . Common ID between Juspay and NPCI .
            "resp_message": "Your transaction is successful",
            "auth_id_code": null,
            "txn_id": "eul7yc7TReHhAyNVsGp"
       },
       "payer_vpa" : "customer@vpa",
       "order_id": "2348******3498",
       "merchant_id": "juspay",
       "mandate": {
         "start_date": "1598745600",
         "rule_value": 30,
         "rule_type": "AFTER",
         "revokable_by_customer": true,
         "max_amount": 1000,
         "mandate_type": "EMANDATE",
         "mandate_token": "ad1d221******0f3",
         "mandate_status": "ACTIVE",
         "mandate_id": "3XMEcS******Ybzj", // common id between Groww and Juspay
         "frequency": "MONTHLY",
         "end_date": "160***10",
         "block_fund": false,
         "amount_rule": "VARIABLE"
       },
       "id": "ordeu_9a092980*******4d0206",
       "gateway_reference_id": "upimandate",
       "gateway_id": 514,
       "date_created": "2020-08-30T09:47:46Z",
       "customer_phone": "9999999999",
       "customer_id": "cst_lz*****okv",
       "customer_email": "customer@gmail.com",
       "currency": "INR",
       "bank_error_message": "",
       "bank_error_code": "",
       "amount_refunded": 0,
       "amount": 1
     }
   }
 }
```

#### Swift Code Snippet:

```swift
{
   "id": "evt_V2_4b83ba211443b53fc020d4c",
   "event_name": "ORDER_SUCCEEDED",
   "date_created": "2021-03-20T07:48:31Z",
   "content": {
     "order": {
       "udf8": "",
       "udf7": "",
       "udf6": "",
       "udf5": "",
       "udf4": "",
       "udf3": "",
       "udf2": "",
       "udf10": "",
       "udf1": "",
       "txn_uuid": "eulmy******y1Syy",
       "txn_id": "juspay-2348******3498-1",
       "txn_detail": {
         "txn_uuid": "eulmy******y1Syy",
         "txn_object_type": "EMANDATE_REGISTER",
         "txn_id": "juspay-2348******3498-1",
         "txn_amount": 1,
         "tax_amount": null,
         "surcharge_amount": null,
         "status": "CHARGED",
         "source_object_id": "91887",
         "source_object": "MANDATE",
         "redirect": true,
         "order_id": "2348******3498",
         "net_amount": 1,
         "gateway_id": 19,
         "gateway": "YES_BIZ",
         "express_checkout": false,
         "error_message": "",
         "error_code": "",
         "currency": "INR",
         "created": "2020-08-30T09:53:17Z"
       },
       "status_id": 21,
       "status": "CHARGED",
       "refunded": false,
       "product_id": "",
       "payment_method_type": "UPI",
       "payment_method": "UPI",
       "payment_links": {
         "web": "https://sandbox.juspay.in/merchant/pay/ordeu_9a092980*******4d0206",
         "mobile": "https://sandbox.juspay.in/merchant/pay/ordeu_9a092980*******4d0206?mobile=true",
         "iframe": "https://sandbox.juspay.in/merchant/ipay/ordeu_9a092980*******4d0206"
       },
       "upi": {
           "txn_flow_type" : "INAPP",
           "masked_bank_account_number": "4XXXXXXXX2323",
           "bank_name": "HDFC bank",
           "bank_code": "HDFC",
           "upi_bank_account_reference_id": "A0760cb548bb4dda9d32e3030863dd5",
           "payer_vpa" : "customer@vpa",
           "payer_app" : "AXIS_UPI",
       },
       "payment_gateway_response":  {
            "resp_code": "00",
            "rrn": null,
            "created": "2021-08-17T13:44:21Z",
            "epg_txn_id": "YJP9999rv9999a99c19a4877ede7954984e",// Its the orgMandateId . Common ID between Juspay and NPCI .
            "resp_message": "Your transaction is successful",
            "auth_id_code": null,
            "txn_id": "eul7yc7TReHhAyNVsGp"
       },
       "payer_vpa" : "customer@vpa",
       "order_id": "2348******3498",
       "merchant_id": "juspay",
       "mandate": {
         "start_date": "1598745600",
         "rule_value": 30,
         "rule_type": "AFTER",
         "revokable_by_customer": true,
         "max_amount": 1000,
         "mandate_type": "EMANDATE",
         "mandate_token": "ad1d221******0f3",
         "mandate_status": "ACTIVE",
         "mandate_id": "3XMEcS******Ybzj", // common id between Groww and Juspay
         "frequency": "MONTHLY",
         "end_date": "160***10",
         "block_fund": false,
         "amount_rule": "VARIABLE"
       },
       "id": "ordeu_9a092980*******4d0206",
       "gateway_reference_id": "upimandate",
       "gateway_id": 514,
       "date_created": "2020-08-30T09:47:46Z",
       "customer_phone": "9999999999",
       "customer_id": "cst_lz*****okv",
       "customer_email": "customer@gmail.com",
       "currency": "INR",
       "bank_error_message": "",
       "bank_error_code": "",
       "amount_refunded": 0,
       "amount": 1
     }
   }
 }
```



###   Mandate States


> **Note**
> During the entire journey, a mandate once created can take up any of the following states refer the table for the same: [Click Here](https://developer.juspay.in/reference/create-mandate-order)



