Knowledge Base / API
עברית

Ask AI

✦ AI answer

Thinking…

Sources

    Get Recurring Payment Information

    When should this function be used?

    Merchants who want to retrieve information about a recurring payment in the Cardcom website and integrate the recurring payment details into their CRM system or interface can use the Get recurring payment info function.

    This function is intended to provide information on an individual basis for the merchant’s specific needs.

    What does this function return?

    The function returns the number of remaining charges, the number of charges that have already been processed, the internal name of the recurring payment, the next billing date, and several additional parameters related to the recurring payment.

    Required models

    The Recurring Payment and Existing Recurring Payments models are available in the Cardcom interface.

    Here is a link to the function in JSON.

    Request method: GET.

    Get recurring payment info

    https://secure.cardcom.solutions/api/v11/RecuringPayments/GetRecurringPayment

    The following parameters must be passed to the Get recurring payment info function.

    Legend:

    Red parameter — required

    Bold parameter — recommended

    A parameter that is neither red nor bold — optional

    NumberParameterExample valuesDescription
    1apiUserName"test2025"API username
    2apiPassword"test5000$"API user password
    3AccountId13744Customer card number
    4RecurringId37930Recurring payment number for the customer card

    Response from Get recurring payment info

    NumberParameterExample valuesDescription
    1ResponseCode0Response code. If it equals zero, the function was executed successfully. Any other response indicates that the operation was unsuccessful.
    2Description"OK"Response description. “OK” indicates success.

    UpdateList values (3)

    An array of objects.

    NumberParameterExample valuesDescription
    1RecurringId37930Recurring payment number for the customer card
    2InternalDecription"A cute item"Internal description name of the recurring payment
    3NextDateToBill"2025-04-18T00:00:00"Next billing date
    4TotalNumOfBills99999Number of charges
    5NumOfPaymentsAlreadyCharged1Number of charges already processed
    6IsActiveboolean — true / falseWhether the recurring payment is still active
    7ChargeIntervals
    Object containing parameters
    TimeIntervalId - 1
    AddDays - 0
    AddWeeks - 0
    AddMonth - 1
    AddYears - 0

    ChargeIntervals — the billing interval, or the time between charges.

    TimeIntervalId — internal ID of the billing interval defined in Cardcom.

    AddDays — number of days in the billing interval.

    AddWeeks — number of weeks in the billing interval.

    AddMonth — number of months in the billing interval.

    AddYears — number of years in the billing interval.

    8FinalDebitCoinId1

    Currency number.

    1 — shekel

    2 — dollar

    For additional currency codes, see the currency code list.

    9IsDocumentCreateboolean — true / falseWhether document-generation settings are enabled for the recurring payment
    10DocTypeToCreate

    1 — tax invoice/receipt

    2 — credit invoice and refund

    3 — nonprofit/VAT-exempt receipt

    4 — nonprofit credit receipt (refund)

    50 — quote

    100 — order (without payment)

    101 — order confirmation from the website (internal document, not for bookkeeping) — paid order

    102 — order credit from the website (internal document, not for bookkeeping) — refunded order

    200 — delivery note

    210 — return note

    300 — transaction invoice

    301 — payment demand

    302 — payment demand cancellation

    305 — tax invoice

    330 — credit invoice

    400 — receipt (for an invoice)

    410 — customer refund (credit receipt)

    405 — donation receipt

    406 — donation receipt credit (refund)

    303 — receipt invoice (similar to an invoice for an עוסק פטור; rarely used)

    304 — credit receipt invoice

    Document type to generate
    11Comment"VIP customer"Internal note for the recurring payment; not displayed to the customer
    12IsPrintNumOfPaymentsboolean — true / falseWhether the number of payments is configured to be printed on the document
    13IsPrintBillMonthboolean — true / falseWhether the billing month number is configured to be printed
    14DepartmentIdINTInternal number to which the recurring payment is assigned
    15UserIdINTCardcom subscription user number who created the recurring payment
    16ReturnValuestringValue to return; usually an order number
    17ChargeInTerminal1000Terminal that processes the recurring payment
    18FlexItem
    Object containing parameters

    DocumentLineDesc — "Moses’s vacuum cleaners"

    Price — 420

    IsPriceIncludeVat — boolean (true / false)

    ProductId — string

    FlexItem — details of a flexible charge.

    DocumentLineDesc — name of the item being charged.

    Price — price of the item being charged.

    IsPriceIncludeVat — whether the price includes VAT.

    ProductId — internal product code.

    19IsByProductsboolean — true / false

    Whether the recurring payment amount is calculated according to the product list price (ProdList),

    or charged as a flexible charge (FlexItem).

    20ProdList
    Array of objects

    ProductId — string

    Quantity — 5

    ProdList — list of products to which the recurring payment applies.

    ProductId — the product’s internal ID in Cardcom.

    Quantity — product quantity.

    The following is an example of the function together with its response.

    POST request for retrieving recurring payment information:

    {
      "apiUserName": "test2025",
      "apiPassword": "test5000$",
      "AccountId": "13744",
      "RecurringId": "37930"
    }

    Response received from the first request:

    {
      "ResponseCode": 0,
      "Description": "ok",
      "UpdateList": [
        {
          "RecurringId": 37930,
          "InternalDecription": "A cute item",
          "NextDateToBill": "2025-04-18T00:00:00",
          "TotalNumOfBills": 99999,
          "NumOfPaymentsAlreadyCharged": 1,
          "IsActive": true,
          "ChargeIntervals": {
            "TimeIntervalId": 1,
            "AddDays": 0,
            "AddWeeks": 0,
            "AddMonth": 1,
            "AddYears": 0
          },
          "FinalDebitCoinId": 1,
          "IsDocumentCreate": true,
          "DocTypeToCreate": null,
          "Comment": null,
          "IsPrintNumOfPayments": true,
          "IsPrintBillMonth": true,
          "DepartmentId": 0,
          "UserId": 1,
          "ReturnValue": null,
          "ChargeInTerminal": 1002,
          "FlexItem": {
            "DocumentLineDesc": "A cute item",
            "Price": 1111.0000,
            "IsPriceIncludeVat": true,
            "ProductId": null
          },
          "IsByProducts": false,
          "ProdList": null
        }
      ]
    }

    Was this article helpful?