Get Recurring

Retrieve the details and current status of an existing recurring payment plan using DigetPay's Server-to-Server (S2S) API.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

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.

HeaderValue
x-api-keyYOUR_API_KEY

DigetPay uses the same API base URL for Test and Live environments. The API key determines which environment is used.


Query Parameters

ParameterTypeRequiredDescription
RecurringIdStringYes, for single-plan lookupUnique 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

ParameterTypeDescription
IsSuccessBooleanIndicates whether the API request was processed successfully.
MessageStringGeneral API response message.
DataObjectContains recurring payment information and pagination details.
Data.RecurringPaymentArrayList of recurring payment plans matching the request.
Data.PageIntegerCurrent page number returned by the API.
Data.PageSizeIntegerNumber of records per page in the response.
Data.TotalIntegerTotal number of matching recurring plans.

RecurringPayment Object

ParameterTypeDescription
RecurringIdStringUnique identifier of the recurring payment plan.
RecurringStatusStringCurrent status of the recurring plan, such as Active.
CreationDateString (DateTime)Date and time when the recurring plan was created.
RecurringValueNumberPayment amount configured for the recurring plan.
RecurringTypeStringBilling frequency: Daily, Weekly, Monthly, or Custom.
IntervalDaysInteger / NullNumber of days between payments for Custom recurring plans.
ExecutedTimesIntegerNumber of recorded payment executions, including the initial successful payment in the supplied example.
IterationIntegerConfigured number of recurring payment iterations.
RetryCountIntegerConfigured retry count for failed payments.
LastPayDateString (DateTime) / NullDate and time of the latest recorded payment.
NextPayDateString (DateTime) / NullScheduled date and time of the next payment.
IsActiveBooleanIndicates whether the recurring plan is currently active.
LastFailureReasonString / NullReason associated with the latest recorded payment failure, if available.
RecurringInvoicesArrayInvoices associated with the recurring payment plan.

RecurringInvoices Object

ParameterTypeDescription
InvoiceIdIntegerInvoice identifier associated with a payment.
PaymentIdStringPayment identifier associated with the invoice.
CustomerReferenceString / NullMerchant-defined customer reference, if provided.
CustomerNameStringCustomer name associated with the invoice.
CustomerMobileStringCustomer mobile number associated with the invoice.
CreatedDateString (DateTime)Date and time when the invoice was created.
InvoiceStatusStringCurrent invoice payment status, such as Paid.
FailureReasonString / NullReason for payment failure, if available.
KindStringInvoice 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.

StatusDescription
PendingPaymentThe recurring plan has been created, but the initial payment has not yet been completed.
ActiveThe 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: 1
  • Iteration: 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:

  1. Verify that a newly created recurring plan is active after the initial payment.
  2. Retrieve the current status of an existing recurring plan.
  3. Check the configured billing frequency and number of iterations.
  4. Monitor recorded recurring payment executions.
  5. Retrieve the next scheduled payment date.
  6. Review recurring invoice information and available failure details.

Best Practices

  • Store the RecurringId returned by Make Recurring in your secure backend.
  • Verify the recurring plan status before activating a customer's subscription.
  • Use RecurringStatus and IsActive to determine whether the plan is currently active.
  • Monitor LastPayDate and NextPayDate for recurring billing management.
  • Review RecurringInvoices when 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.

Path Params
string
required
Response
200
Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here!