Retrieve the details and current status of an existing recurring payment plan using DigetPay's Server-to-Server (S2S) API.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
The Get Recurring API allows merchants to retrieve a specific recurring payment plan using its unique RecurringId.
This API provides information about the recurring plan's status, billing configuration, payment execution history, upcoming payment date, and associated invoices.
Merchants can use this endpoint to verify the activation of a recurring plan after the initial payment and monitor its payment activity.
API Endpoint
Method: GET
Endpoint:
https://api.digetpay.com/v1/payment/s2s/GetRecurring
Authentication
Include your DigetPay API key in the request header.
| Header | Value |
|---|---|
x-api-key | YOUR_API_KEY |
DigetPay uses the same API base URL for Test and Live environments. The API key determines which environment is used.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
RecurringId | String | Yes, for single-plan lookup | Unique identifier of the recurring payment plan returned by the Make Recurring API. |
Request Example
Retrieve the recurring payment plan with ID RECUR18.
curl --location 'https://api.digetpay.com/v1/payment/s2s/GetRecurring?RecurringId=RECUR18' \
--header 'x-api-key: YOUR_API_KEY'Success Response Example
The following response represents an active monthly recurring plan after the initial payment was successfully completed.
{
"IsSuccess": true,
"Message": "Success",
"Data": {
"RecurringPayment": [
{
"RecurringId": "RECUR18",
"RecurringStatus": "Active",
"CreationDate": "2026-11-02T09:55:08.812Z",
"RecurringValue": 20,
"RecurringType": "Monthly",
"IntervalDays": null,
"ExecutedTimes": 1,
"Iteration": 12,
"RetryCount": 2,
"LastPayDate": "2026-11-02T09:57:49.852Z",
"NextPayDate": "2026-12-01T21:00:00.000Z",
"IsActive": true,
"LastFailureReason": null,
"RecurringInvoices": [
{
"InvoiceId": 7331354,
"PaymentId": "07077331354392824673",
"CustomerReference": null,
"CustomerName": "fname lname",
"CustomerMobile": "966512345678",
"CreatedDate": "2026-11-02T09:55:11.930Z",
"InvoiceStatus": "Paid",
"FailureReason": null,
"Kind": "INITIAL"
}
]
}
],
"Page": 1,
"PageSize": 1,
"Total": 1
}
}Response Parameters
General Response
| Parameter | Type | Description |
|---|---|---|
IsSuccess | Boolean | Indicates whether the API request was processed successfully. |
Message | String | General API response message. |
Data | Object | Contains recurring payment information and pagination details. |
Data.RecurringPayment | Array | List of recurring payment plans matching the request. |
Data.Page | Integer | Current page number returned by the API. |
Data.PageSize | Integer | Number of records per page in the response. |
Data.Total | Integer | Total number of matching recurring plans. |
RecurringPayment Object
| Parameter | Type | Description |
|---|---|---|
RecurringId | String | Unique identifier of the recurring payment plan. |
RecurringStatus | String | Current status of the recurring plan, such as Active. |
CreationDate | String (DateTime) | Date and time when the recurring plan was created. |
RecurringValue | Number | Payment amount configured for the recurring plan. |
RecurringType | String | Billing frequency: Daily, Weekly, Monthly, or Custom. |
IntervalDays | Integer / Null | Number of days between payments for Custom recurring plans. |
ExecutedTimes | Integer | Number of recorded payment executions, including the initial successful payment in the supplied example. |
Iteration | Integer | Configured number of recurring payment iterations. |
RetryCount | Integer | Configured retry count for failed payments. |
LastPayDate | String (DateTime) / Null | Date and time of the latest recorded payment. |
NextPayDate | String (DateTime) / Null | Scheduled date and time of the next payment. |
IsActive | Boolean | Indicates whether the recurring plan is currently active. |
LastFailureReason | String / Null | Reason associated with the latest recorded payment failure, if available. |
RecurringInvoices | Array | Invoices associated with the recurring payment plan. |
RecurringInvoices Object
| Parameter | Type | Description |
|---|---|---|
InvoiceId | Integer | Invoice identifier associated with a payment. |
PaymentId | String | Payment identifier associated with the invoice. |
CustomerReference | String / Null | Merchant-defined customer reference, if provided. |
CustomerName | String | Customer name associated with the invoice. |
CustomerMobile | String | Customer mobile number associated with the invoice. |
CreatedDate | String (DateTime) | Date and time when the invoice was created. |
InvoiceStatus | String | Current invoice payment status, such as Paid. |
FailureReason | String / Null | Reason for payment failure, if available. |
Kind | String | Invoice type, such as INITIAL for the initial payment. |
Understanding Recurring Plan Status
The RecurringStatus field indicates the current state of the recurring payment plan.
The following statuses have been observed in the supplied integration responses.
| Status | Description |
|---|---|
PendingPayment | The recurring plan has been created, but the initial payment has not yet been completed. |
Active | The initial payment has been completed successfully, and the recurring plan is active. |
Additional status values, if supported, should be documented according to the API's confirmed response schema.
Example: Active Recurring Plan
{
"RecurringId": "RECUR18",
"RecurringStatus": "Active",
"IsActive": true,
"ExecutedTimes": 1,
"Iteration": 12
}This indicates that:
- The recurring plan is active.
- The initial successful payment has been recorded.
- One payment execution has been recorded.
- The configured plan contains 12 payment iterations.
Monitoring Recurring Payments
Merchants can use the Get Recurring API to monitor billing activity and subscription status.
Last Payment Date
LastPayDate identifies the date and time of the most recently recorded payment.
Example:
2026-11-02T09:57:49.852Z
Next Scheduled Payment
NextPayDate indicates when the next recurring payment is scheduled.
Example:
2026-12-01T21:00:00.000Z
The timestamps in this response use ISO 8601 UTC format.
Payment Execution Count
ExecutedTimes indicates the number of payment executions recorded for the recurring plan.
In the supplied response:
ExecutedTimes:1Iteration:12
The initial successful payment is included in the execution count.
Recurring Invoice History
The RecurringInvoices array contains invoice information associated with the recurring payment plan.
For example:
{
"InvoiceId": 7331354,
"PaymentId": "07077331354392824673",
"InvoiceStatus": "Paid",
"FailureReason": null,
"Kind": "INITIAL"
}The Kind: INITIAL value identifies the initial payment used to activate the recurring plan.
Merchants can use invoice information for payment tracking, subscription management, and reconciliation.
When to Use This API
Use the Get Recurring API to:
- Verify that a newly created recurring plan is active after the initial payment.
- Retrieve the current status of an existing recurring plan.
- Check the configured billing frequency and number of iterations.
- Monitor recorded recurring payment executions.
- Retrieve the next scheduled payment date.
- Review recurring invoice information and available failure details.
Best Practices
- Store the
RecurringIdreturned by Make Recurring in your secure backend. - Verify the recurring plan status before activating a customer's subscription.
- Use
RecurringStatusandIsActiveto determine whether the plan is currently active. - Monitor
LastPayDateandNextPayDatefor recurring billing management. - Review
RecurringInvoiceswhen reconciling payment activity. - Handle failed payment information according to your merchant billing policies.
- Do not expose merchant API keys in frontend code.
Related APIs
- Make Recurring — Create a recurring payment plan.
- List Recurring Plans — Retrieve multiple recurring plans using pagination.
- Cancel Recurring — Cancel an existing recurring payment plan.
For additional information, refer to the Recurring Payments Overview.
200
