Theme switcher

Search Recurring Payment

Body Parameters

merchantIdsarray

Provide a list of merchant IDs you want to fetch records. Please note that this field is optional and should only be utilized when employing a level API key and secret. If you are utilizing an API key and secret of a merchant, by default, this will retrieve data associated with the merchant tagged with the API key and secret.

startDatestring

Start date is a conditional field. It is mandatory when the date type is specified as EXPIRING_PAYMENT. In the case of date type selected as CONTRACT, it is solely utilized to retrieve records within the specified date range. The start date adheres to UTC and follows the format YYYY-MM-DD.

endDatestring

End date is a conditional field. It is mandatory when the date type is specified as EXPIRING_PAYMENT. In the case of date type selected as CONTRACT, it is solely utilized to retrieve records within the specified date range. The end date adheres to UTC and follows the format YYYY-MM-DD.

dateTypestring

When a date range is chosen, the date type is applicable to either of the following values.

Enum values:
CONTRACT
Fetch the records based on the contract start date of the Recurring Payment schedule.
EXPIRING_PAYMENTS
Fetch the record based on the contract end date or expiring Recurring Payment schedule within the selected date range.
agreementIdstring

Search based on the unique agreement ID provided by TNS.

frequencystring

Search based on the Recurring Payment schedule frequency.

Enum values:
DAILY
Daily Recurring Payment schedule
WEEKLY
Weekly Recurring Payment schedule
MONTHLY
Monthly Recurring Payment schedule
YEARLY
Yearly Recurring Payment schedule
contractStatusstring

Recurring Payment schedule contract status

Enum values:
ALL
Fetch records of all contract status
ACTIVE
Fetch only active Recurring Payment schedules
ON_HOLD
Fetch only on hold Recurring Payment schedules
ENDED
Fetch expired Recurring Payment schedules
transactionAmountstring

Fetch Recurring Payment schedule for provided transaction amount. Amount is provided in lowest unit of currency formatted as a string. Send the amount without a decimal in it. e.g. $10.25 should be sent as 1025.

paymentMethodTypestring

Search based on the payment type selected for the Recurring Payment schedule

Enum values:
CREDITCARD
Search transactions for payment method selected as credit card
TOKEN
Search transactions for payment method selected as token
tokenstring

Search transaction based on the token value

cardHolderNamestring

Search based on the card holder name

cardFirst6string

Search based on PAN first six digit

cardLast4string

Search based on PAN last four digit

expirystring

Search based on the card expiry date. Formatted as MMYY.

Response

200
Object

Response Attributes

recurringPaymentSetupIdstring

This is the unique identifier of the Recurring Payment Schedule in our system.

merchantIdstring

This is the unique identifier of the merchant in our system.

tenantIdstring
merchantTimeZonestring

Merchant time zone as mentioned in the merchant record.

startDatestring

Recurring Payment schedule start date and time in UTC format.

endDatestring

Recurring Payment schedule end date and time in UTC format.

lastRunDatestring

This is the date of the last executed recurring payment.

nextRunDatestring

This is the upcoming effective date on which the recurring payment will be executed.

resumePaymentOnstring

If the Recurring Payment is paused, this defines the date when Recurring Payment schedule will become active again.

isDeletedboolean

True if the Recurring Payment schedule is deleted.

isPausedboolean

True if the Recurring Payment schedule is currently paused.

isActiveboolean

True if the Recurring Payment schedule is currently active.

agreementIdstring

This is an auto generated field. Once the schedule contract is confirmed, this id is generated.

transactionAmountstring

The recurring payment amount, to be charged to the customer for every recurring schedule. Amount is provided in lowest unit of currency i.e. $10.25 should be sent as 1025.

transactionReferencestring

The identifier for the transaction in your system formatted as a string.

createdBystring

Recurring Payment schedule created by user name.

createdDatestring

Date time the Recurring Payment schedule was created.

updatedBystring

Recurring Payment schedule updated by user name.

updatedDatestring

Date time the Recurring Payment schedule was updated.

paymentMethodTypestring

Selected payment method for Recurring Payment schedule.

tokenstring

Token value in case of payment method selected as token.

first6string

First six digit of the PAN.

last4string

Last four digit of the PAN.

cardHolderNamestring

Card holder name.

expirystring

Card expiry date.

frequencyTypestring

This indicates frequency of the schedule for this recurring payment.

frequencystring

This indicates the frequency of the recurring payment. For example, if the value is 2 and the frequency type is 'DAILY', then the card will be charged every 2 days.

monthOfYearstring

This specifies the month of the year to charge the card, applicable when the frequency type is 'YEARLY'. Accepted values range from 1 to 12, corresponding to January through December.

dayOfMonthstring

This indicates the specific day of the month when the card will be charged.

dayOfWeekstring

This specifies the day of the week on which to charge the card, applicable when the frequency type is 'WEEKLY'. Accepted values range from 1 to 7, where 1 corresponds to Sunday and the numbers follow sequentially through the week.

weekDaysboolean

This indicates the system to perform this Recurring Payment Schedule only on the week days. Applicable when the frequencyType is 'DAILY'.

merchantNamestring

The name of the merchant as it appears in the merchant portal.

transactionStatusstring

Last executed transaction status.

currencyCodestring

This is the 3 digit ISO 4217 numeric code. Please refer https://en.wikipedia.org/wiki/ISO_4217 for list of all currency codes.

maskedNumberstring

Masked card number if payment method is selected as credit card.

400
Object

Bad Request

Response Attributes

errorsarray

List of error messages.

401
Object

Unauthorized

404
Object

The server is temporarily unavailable. Please try again later.

500
Object

Response Attributes

timestampstring

Request date and time.

statusnumber

HTTP Status code.

errorstring

Error message.

pathstring

API path.

Was this section helpful?

Base URL

Production:

Sandbox:

POST

/

Select
1

Response

Was this section helpful?