---
updatedAt: 2026-11-12T11:25:19.000Z
agentTools:
  projectIndex: https://docs.decentro.tech/llms.txt
---

# Reverse Penny Drop/Penny Pull - Intent API

This API allows the platform to create an Intent link using Decentro's Penny pull stack.

> 🙌 Important Note
>
> Please use only **Staging Credentials** on each API Reference page to test the APIs directly from our Documentation.

# Overview

This API empowers platforms to authenticate the bank account information of their customers by leveraging Decentro's [Penny Pull/Reverse Penny Drop](https://docs.decentro.tech/docs/reverse-penny-drop-pa) stack capability through the intent flow where the payer doesn't have to enter a VPA (UPI ID).

## Flow

Below is the flow for using the Penny pull intent link/intent flow through Decentro.

1. The platform creates a penny pull intent link using this API.
   1. The platform can use the shortened link directly on a web/app flow or use individual deep links by passing generate\_psp\_uri as true.
2. Decentro relays the status of the link creation using response keys and the Decentro transaction ID, which can be used to check the status through the [Get Transaction Status API](https://docs.decentro.tech/reference/get-transaction-status-basic) or map the same from the [callback triggered](https://docs.decentro.tech/reference/payments_api-collectionsv3-statuscallback) by Decentro to the platform.
3. The platform sends the shortened link directly to the end customer via SMS, WhatsApp, etc., or can embed it on its web/app.
4. The payer clicks on the link and authenticates the payment by entering their UPI MPIN on the app of their choice.
5. Decentro triggers the [Terminal Transaction Status Callback](https://docs.decentro.tech/reference/payments_api-collectionsv3-statuscallback) to the client's pre-configured endpoint with the transaction status.
6. Alternatively, the platform can check the status of the Intent link using the [Get Transaction Status API](https://docs.decentro.tech/reference/get-transaction-status-basic), which can be done using Decentro's transaction ID, which is available as the response in this API.
7. The payer gets a refund of their INR 1 transaction if successful within 3 working days of the transaction being completed.

## Key Points

Below are the key points about the intent link workflow.

* If the payer uses the link to land on a UPI app within the expiry time of 60 minutes, the payer should be able to complete the transaction, unless you define a custom expiry period.
* If the payer uses the link to land on a UPI app after the expiry time, the payer will not be able to complete the transaction.
* If the payer clicks on the link after expiry, the payer will not be redirected to any UPI app, or shown the UPI QR code. Instead the link will be marked as expired and the same will be shown to the payer on the landing page.

### API Endpoints

Below are the API endpoints to be used by the platform basis the environments.

| Environment       | Endpoint                                                   |
| :---------------- | :--------------------------------------------------------- |
| Staging / Sandbox | <https://staging.api.decentro.tech/v3/payments/rpd/intent> |
| Production        | <https://api.decentro.tech/v3/payments/rpd/intent>         |

<br />

> 📘 Simulation Data
>
> Decentro provides the test data which will simulate various scenarios of the API when a transaction takes place.
>
> **Important:** Please refer to the Simulation Data guide [Click here](https://docs.decentro.tech/docs/simulation-data-payments#reverse-penny-drop-penny-pull-intent-api---simulation-data)

## Response Parameters

Below are the parameters propagated by Decentro in the response.

| Parameters        | Description                                                                             |
| :---------------- | :-------------------------------------------------------------------------------------- |
| decentro\_txn\_id | A unique transaction ID from Decentro for checking the transaction status, refund, etc. |
| api\_status       | Status of the API hit. Note that this is not the status of the transaction.             |
| message           | API status message. Note that this is not about the status of the transaction.          |
| response\_key     | Response key documenting the status of the API hit and various errors.                  |
| response\_code    | Response code documenting the status of the API hit and various errors.                 |
| validation\_link  | A UPI protocol-based link that the payer can use to pay using any app.                  |
| gpay\_uri         | A Google Pay protocol-based link that the payer can use to pay using Google Pay.        |
| phonepe\_uri      | A PhonePe protocol-based link that the payer can use to pay using Phonepe Pay           |
| paytm\_uri        | A PayTm protocol-based link that the payer can use to pay using PayTm.                  |

## Response Keys

Below are the response keys propagated by Decentro in the responseKey parameter, which cover all the scenarios a platform can encounter.

Please note that the below keys don't include transaction-related response keys since the transaction status is relayed only after the payer authorizes payment.

| Scenario                                                      | Response Key                              | Response Message                                                                                                                                                                                                      |
| :------------------------------------------------------------ | :---------------------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Success Scenario                                              | success\_validation\_link\_created        | Validation Link created Successfully.                                                                                                                                                                                 |
| Consumer/Company is disabled                                  | error\_account\_disabled                  | Your account has been disabled. Please reach out to support                                                                                                                                                           |
| Malformed Request                                             | error\_malformed\_request                 | Malformed request detected.                                                                                                                                                                                           |
| Empty Request                                                 | error\_empty\_request                     | The request body is empty. Kindly check the payload and retry.                                                                                                                                                        |
| Invalid HTTP method                                           | error\_invalid\_method                    | The method is not allowed for the requested URL.                                                                                                                                                                      |
| Unsanitized values are passed                                 | error\_unsanitized\_values                | Unsanitized values detected for key(s): \<KEY NAME(s)>. Kindly sanitise the corresponding values by removing unicode, non-ascii, and special characters such as . @ # $ % ^ & \* ! ; : ' " \~ \` ? = + ) ( and retry. |
| Invalid Client ID                                             | error\_invalid\_client\_id                | Authentication failed. Please use a valid Client ID.                                                                                                                                                                  |
| Empty Client ID                                               | error\_empty\_client\_id                  | Client ID cannot be empty. Hint: client\_id (string)                                                                                                                                                                  |
| Client ID is passed in an invalid format                      | error\_invalid\_format\_client\_id        | Client ID is not of type string. Hint: client\_id (string)                                                                                                                                                            |
| Invalid Client Secret                                         | error\_invalid\_client\_secret            | Authentication failed. Please use a valid Client Secret.                                                                                                                                                              |
| Empty Client Secret                                           | error\_empty\_client\_secret              | Client Secret cannot be empty. Hint: client\_secret (string)                                                                                                                                                          |
| Client secret is passed in an invalid format                  | error\_invalid\_format\_client\_secret    | Client Secret is not of type string. Hint: client\_secret (string)                                                                                                                                                    |
| Invalid JWT token                                             | error\_invalid\_jwt                       | Authentication failed. Token either expired or invalid.                                                                                                                                                               |
| Empty JWT token                                               | error\_empty\_jwt                         | JWT cannot be empty. Hint: JWT (JSON)                                                                                                                                                                                 |
| JWT Token is passed in an invalid format                      | error\_invalid\_format\_jwt               | JWT is not of type JSON. Hint: JWT (JSON)                                                                                                                                                                             |
| Consumer URN is not valid                                     | error\_invalid\_consumer\_urn             | Consumer URN passed is not valid.                                                                                                                                                                                     |
| Consumer URN is empty                                         | error\_empty\_consumer\_urn               | Consumer URN cannot be empty. Hint: consumer\_urn (string)                                                                                                                                                            |
| Consumer URN is not in the correct format                     | error\_invalid\_format\_consumer\_urn     | Consumer URN is not of type string. Hint: consumer\_urn (string)                                                                                                                                                      |
| Reference ID is not valid                                     | error\_invalid\_reference\_id             | Reference ID is not valid.                                                                                                                                                                                            |
| Reference ID is empty                                         | error\_empty\_reference\_id               | Reference ID cannot be empty. Hint: reference\_id (string)                                                                                                                                                            |
| Reference ID is not in the correct format                     | error\_invalid\_format\_reference\_id     | Reference ID is not of type string. Hint: reference\_id (string)                                                                                                                                                      |
| Duplicate Reference ID                                        | error\_duplicate\_reference\_id           | Duplicate Reference ID. Please pass an unique value.                                                                                                                                                                  |
| Reference ID value length is incorrect                        | error\_incorrect\_length\_reference\_id   | Reference ID needs to be between 5 and 50 characters                                                                                                                                                                  |
| Expiry Time is not valid                                      | error\_invalid\_expiry\_time              | Expiry Time needs to be strictly greater than 0. Hint: expiry\_time (int)                                                                                                                                             |
| Expiry Time is empty                                          | error\_empty\_expiry\_time                | expiry\_time cannot be empty. Hint: expiry\_time (int)                                                                                                                                                                |
| Expiry Time is not in the correct format                      | error\_invalid\_format\_expiry\_time      | Expiry Time should be of type integer. Hint: expiry\_time (int)                                                                                                                                                       |
| Expiry Time is below or above the max/min limit               | error\_incorrect\_length\_expiry\_time    | Expiry Time cannot exceed <value configured for the consumer> minutes.                                                                                                                                                |
| Incorrect value passed for the generate\_qr flag              | error\_invalid\_generate\_qr\_value       | Invalid value entered for Generate QR field. Generate QR can be either true or false.Hint : generate\_qr (boolean)                                                                                                    |
| Invalid value entered for Generate PSP URI flag               | error\_invalid\_generate\_psp\_uri\_value | Invalid value entered for Generate PSP URI field. Generate PSP URI can be either true or false. Hint : generate\_psp\_uri (boolean)                                                                                   |
| Both generate\_qr and generate\_psp\_uri are passed as 'true' | error\_output\_type\_conflict             | Only one of generate\_psp\_uri or generate\_qr can be true for request                                                                                                                                                |
| Provider API throws an error                                  | error\_provider\_error                    | We faced an unexpected  error when logging the request with the service provider. Please try again.                                                                                                                   |

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "decfin-staging",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://staging.api.decentro.tech"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/v3/payments/rpd/intent": {
      "post": {
        "summary": "Reverse Penny Drop/Penny Pull - Intent API",
        "description": "This API allows the platform to create an Intent link using Decentro's Penny pull stack.",
        "operationId": "penny-pull-intent-api-pa",
        "parameters": [
          {
            "name": "client_id",
            "in": "header",
            "description": "Decentro assigned client_id during on boarding.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "client_secret",
            "in": "header",
            "description": "Decentro assigned client_secret during on boarding.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "reference_id",
                  "consumer_urn"
                ],
                "properties": {
                  "reference_id": {
                    "type": "string",
                    "description": "Unique id assigned to each transaction. Special characters are prohibited."
                  },
                  "consumer_urn": {
                    "type": "string",
                    "description": "A unique identifier assigned to client's by Decentro during On boarding."
                  },
                  "expiry_time": {
                    "type": "integer",
                    "description": "Time parameter in minutes after which the link will expire. Min Value = 1 minute. Max Value = 60 minutes..",
                    "default": 60,
                    "format": "int32"
                  },
                  "generate_qr": {
                    "type": "boolean",
                    "description": "If this value is passed, decfin will generate a QR code instead of an intent link. Possible Values = 'true' or 'false'. Defaults to false.",
                    "default": false
                  },
                  "generate_psp_uri": {
                    "type": "boolean",
                    "description": "If this value is passed, decfin will respond with psp specific deeplinks  Possible Values = 'true' or 'false'. Defaults to false.",
                    "default": false
                  },
                  "redirect_url": {
                    "type": "string",
                    "description": "The custom URL where the user will be redirected after the payment session ends. Only \"https://\" endpoints will be accepted."
                  }
                }
              },
              "examples": {
                "Success: Basic Validation Link": {
                  "value": {
                    "reference_id": "0000-0000-0001",
                    "consumer_urn": "84E9A23xxxxxxxxxxxxxxx9E5FE16A",
                    "expiry_time": 60,
                    "generate_qr": false,
                    "generate_psp_uri": false,
                    "redirect_url": "https://gmail.com"
                  }
                },
                "Success: With UPI QR Code": {
                  "value": {
                    "reference_id": "0000-0000-0001",
                    "consumer_urn": "84E9A23xxxxxxxxxxxxxxx9E5FE16A",
                    "expiry_time": 60,
                    "generate_qr": true,
                    "generate_psp_uri": false,
                    "redirect_url": "https://gmail.com"
                  }
                },
                "Success: With UPI Deep Links": {
                  "value": {
                    "reference_id": "0000-0000-0001",
                    "consumer_urn": "84E9A23xxxxxxxxxxxxxxx9E5FE16A",
                    "expiry_time": 60,
                    "generate_qr": false,
                    "generate_psp_uri": true,
                    "redirect_url": "https://gmail.com"
                  }
                },
                "Failure: Invalid Generate QR value": {
                  "value": {
                    "reference_id": "0000-0000-0001",
                    "consumer_urn": "84E9A23xxxxxxxxxxxxxxx9E5FE16A",
                    "expiry_time": 60,
                    "generate_qr": "FALSE",
                    "generate_psp_uri": false,
                    "redirect_url": "https://gmail.com"
                  }
                },
                "Failure: Invalid Generate PSP URI value": {
                  "value": {
                    "reference_id": "0000-0000-0001",
                    "consumer_urn": "84E9A23xxxxxxxxxxxxxxx9E5FE16A",
                    "expiry_time": 60,
                    "generate_qr": false,
                    "generate_psp_uri": "False",
                    "redirect_url": "https://gmail.com"
                  }
                },
                "Failure: Both generate_psp_uri or generate_qr passed as true": {
                  "value": {
                    "reference_id": "0000-0000-0001",
                    "consumer_urn": "84E9A23xxxxxxxxxxxxxxx9E5FE16A",
                    "expiry_time": 60,
                    "generate_qr": true,
                    "generate_psp_uri": true,
                    "redirect_url": "https://gmail.com"
                  }
                },
                "Failure: Invalid Redirect URL (HTTP)": {
                  "value": {
                    "reference_id": "0000-0000-0001",
                    "consumer_urn": "84E9A23xxxxxxxxxxxxxxx9E5FE16A",
                    "expiry_time": 60,
                    "generate_qr": true,
                    "generate_psp_uri": true,
                    "redirect_url": "http://gmail.com"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Success": {
                    "value": "{\n    \"decentro_txn_id\": \"78C85EDB672A4187B99431CA85EFC604\",\n    \"api_status\": \"SUCCESS\",\n    \"response_code\": \"S00000\",\n    \"message\": \"Validation Link created Successfully.\",\n    \"data\": {\n        \"validation_link\": \"<validation_short_link>\"\n    },\n    \"response_key\": \"success_validation_link_created\"\n}"
                  },
                  "Success: With UPI QR Code": {
                    "value": "{\n    \"decentro_txn_id\": \"78C85EDB672A4187B99431CA85EFC604\",\n    \"api_status\": \"SUCCESS\",\n    \"response_code\": \"S00000\",\n    \"message\": \"Validation Link created Successfully.\",\n    \"data\": {\n        \"validation_link\": \"<validation_short_link>\"\n    },\n    \"response_key\": \"success_validation_link_created\"\n}"
                  },
                  "Success: With UPI Deep Linking URI": {
                    "value": "{\n    \"decentro_txn_id\": \"34B1E3E2EE9C46E696FC80C472E2058E\",\n    \"api_status\": \"SUCCESS\",\n    \"response_code\": \"S00000\",\n    \"message\": \"Validation Link created Successfully.\",\n    \"data\": {\n        \"validation_link\": \"<validation_short_link>\",\n        \"gpay_uri\": \"<validation_short_link_for_GPay>\",\n        \"phonepe_uri\": \"<validation_short_link_for_PhonePe>\",\n        \"paytm_uri\": \"<validation_short_link_for_PayTM>\"\n    },\n    \"response_key\": \"success_validation_link_created\"\n}"
                  }
                },
                "schema": {
                  "oneOf": [
                    {
                      "title": "Success",
                      "type": "object",
                      "properties": {
                        "decentro_txn_id": {
                          "type": "string",
                          "example": "78C85EDB672A4187B99431CA85EFC604"
                        },
                        "api_status": {
                          "type": "string",
                          "example": "SUCCESS"
                        },
                        "response_code": {
                          "type": "string",
                          "example": "S00000"
                        },
                        "message": {
                          "type": "string",
                          "example": "Validation Link created Successfully."
                        },
                        "data": {
                          "type": "object",
                          "properties": {
                            "validation_link": {
                              "type": "string",
                              "example": "<validation_short_link>"
                            }
                          }
                        },
                        "response_key": {
                          "type": "string",
                          "example": "success_validation_link_created"
                        }
                      }
                    },
                    {
                      "title": "Success: With UPI QR Code",
                      "type": "object",
                      "properties": {
                        "decentro_txn_id": {
                          "type": "string",
                          "example": "78C85EDB672A4187B99431CA85EFC604"
                        },
                        "api_status": {
                          "type": "string",
                          "example": "SUCCESS"
                        },
                        "response_code": {
                          "type": "string",
                          "example": "S00000"
                        },
                        "message": {
                          "type": "string",
                          "example": "Validation Link created Successfully."
                        },
                        "data": {
                          "type": "object",
                          "properties": {
                            "validation_link": {
                              "type": "string",
                              "example": "<validation_short_link>"
                            }
                          }
                        },
                        "response_key": {
                          "type": "string",
                          "example": "success_validation_link_created"
                        }
                      }
                    },
                    {
                      "title": "Success: With UPI Deep Linking URI",
                      "type": "object",
                      "properties": {
                        "decentro_txn_id": {
                          "type": "string",
                          "example": "34B1E3E2EE9C46E696FC80C472E2058E"
                        },
                        "api_status": {
                          "type": "string",
                          "example": "SUCCESS"
                        },
                        "response_code": {
                          "type": "string",
                          "example": "S00000"
                        },
                        "message": {
                          "type": "string",
                          "example": "Validation Link created Successfully."
                        },
                        "data": {
                          "type": "object",
                          "properties": {
                            "validation_link": {
                              "type": "string",
                              "example": "<validation_short_link>"
                            },
                            "gpay_uri": {
                              "type": "string",
                              "example": "<validation_short_link_for_GPay>"
                            },
                            "phonepe_uri": {
                              "type": "string",
                              "example": "<validation_short_link_for_PhonePe>"
                            },
                            "paytm_uri": {
                              "type": "string",
                              "example": "<validation_short_link_for_PayTM>"
                            }
                          }
                        },
                        "response_key": {
                          "type": "string",
                          "example": "success_validation_link_created"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Failure: Both generate_psp_uri or generate_qr passed as true": {
                    "value": "{\n    \"decentro_txn_id\": \"62C7402E1E2E401DBFFB69BA093C6388\",\n    \"api_status\": \"FAILURE\",\n    \"response_code\": \"E00009\",\n    \"message\": \"Only one of generate_psp_uri or generate_qr can be true for request\",\n    \"response_key\": \"error_output_type_conflict\"\n}"
                  },
                  "Failure: Invalid Redirect URL (HTTP)": {
                    "value": "{\n    \"decentro_txn_id\": \"88605D85C7854E7CAD3CC56627C8154D\",\n    \"api_status\": \"FAILURE\",\n    \"message\": \"Redirect URL is invalid. Kindly try again with a correct URL.\",\n    \"response_key\": \"error_invalid_redirect_url\"\n}"
                  }
                },
                "schema": {
                  "oneOf": [
                    {
                      "title": "Failure: Both generate_psp_uri or generate_qr passed as true",
                      "type": "object",
                      "properties": {
                        "decentro_txn_id": {
                          "type": "string",
                          "example": "62C7402E1E2E401DBFFB69BA093C6388"
                        },
                        "api_status": {
                          "type": "string",
                          "example": "FAILURE"
                        },
                        "response_code": {
                          "type": "string",
                          "example": "E00009"
                        },
                        "message": {
                          "type": "string",
                          "example": "Only one of generate_psp_uri or generate_qr can be true for request"
                        },
                        "response_key": {
                          "type": "string",
                          "example": "error_output_type_conflict"
                        }
                      }
                    },
                    {
                      "title": "Failure: Invalid Redirect URL (HTTP)",
                      "type": "object",
                      "properties": {
                        "decentro_txn_id": {
                          "type": "string",
                          "example": "88605D85C7854E7CAD3CC56627C8154D"
                        },
                        "api_status": {
                          "type": "string",
                          "example": "FAILURE"
                        },
                        "message": {
                          "type": "string",
                          "example": "Redirect URL is invalid. Kindly try again with a correct URL."
                        },
                        "response_key": {
                          "type": "string",
                          "example": "error_invalid_redirect_url"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "422",
            "content": {
              "application/json": {
                "examples": {
                  "Failure: Unprocessable Content": {
                    "value": "{\n    \"decentro_txn_id\": \"209E2DE224934950AB14E6959D9FD590\",\n    \"api_status\": \"FAILURE\",\n    \"response_code\": \"E00012\",\n    \"message\": \"Unexpected response received from the provider. Please try after sometime.\",\n    \"response_key\": \"error_provider_error\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "decentro_txn_id": {
                      "type": "string",
                      "example": "209E2DE224934950AB14E6959D9FD590"
                    },
                    "api_status": {
                      "type": "string",
                      "example": "FAILURE"
                    },
                    "response_code": {
                      "type": "string",
                      "example": "E00012"
                    },
                    "message": {
                      "type": "string",
                      "example": "Unexpected response received from the provider. Please try after sometime."
                    },
                    "response_key": {
                      "type": "string",
                      "example": "error_provider_error"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```