PayOrc
Subscription Plan

Get Subscription Plan Details

Retrieve detailed information about a specific subscription plan including billing, terms, and payment schedule.

Get Subscription Plan Details

Version: 3.0.0

Generate an API Key for the Subscription channel before making requests.

Use this endpoint to retrieve detailed information about a specific subscription plan. The response includes the full plan configuration, billing frequency, installment amounts, terms, status, payment schedule, and associated QR code and payment link.

Endpoint

MethodURL
GEThttps://api.payorc.com/subscriptions/v1/details

Please use the test credentials for sandbox testing.

Authentication

Include the following headers in every request:

HeaderTypeDescription
merchant-keyStringYour merchant key
merchant-secretStringYour merchant secret

All API requests must be made over HTTPS. Requests made over plain HTTP will be rejected.

Query Parameters

ParameterTypeRequiredDescription
data_idStringYesEncrypted plan identifier from Plan List or create-plan response.

Use data_id from Plan List — not the plain plan_id display number.

Response (200 OK)

FieldTypeDescription
dataObjectPlan details object
data.data_idStringEncrypted plan identifier (same value used in API requests)
data.merchant_nameStringName of the merchant
data.super_merchant_nameStringName of the super merchant
data.plan_idStringPlain display plan number
data.plan_nameStringPlan name
data.plan_descriptionStringPlan description
data.billing_frequencyObjectBilling frequency details
data.billing_frequency.frequencyStringBilling frequency type (e.g., Daily, Monthly)
data.billing_frequency.intervalNumberBilling frequency interval
data.installment_amountObjectInstallment amount details
data.installment_amount.currencyStringCurrency of the installment amount
data.installment_amount.valueStringValue of the installment amount
data.termsObjectTerms of the plan
data.terms.unlimitedStringWhether terms are unlimited
data.terms.valueNumberString
data.terms.discount_termNumberDiscount term value
data.terms.discount_amountStringDiscount amount
data.statusStringStatus of the plan: Active, Deactivated, or Expired
data.start_dateStringStart date (DD-MM-YYYY HH:mm:ss)
data.expiry_dateStringExpiry date (DD-MM-YYYY HH:mm:ss)
data.initial_payment_amountStringInitial payment amount
data.final_payment_amountStringFinal payment amount
data.shipping_feeNumberShipping fee
data.convenience_feeNumberConvenience fee
data.noteStringAdditional notes
data.product_detailsStringProduct details
data.qr_codeStringBase64-encoded image data (data URI) of the plan's QR code
data.payment_linkStringPayment link URL
data.payment_scheduleArrayArray of payment schedule entries
data.payment_schedule[].sr_noNumberSerial number
data.payment_schedule[].paymentStringPayment label. One of Initial Payment (first term), an ordinal word label such as Second payment / Third payment (intermediate terms), or Final Payment (last term)
data.payment_schedule[].amountStringPayment amount
messageStringHuman-readable status message
statusStringsuccess or error
codeStringStatus code (00 for success)

Code Examples

curl -X GET "https://api.payorc.com/subscriptions/v1/details?data_id=ak80VjZGeURhT2hSM" \
  -H "merchant-key: YOUR_MERCHANT_KEY" \
  -H "merchant-secret: YOUR_MERCHANT_SECRET"

Example Response

{
    "data": {
        "data_id": "ak80VjZGeURhT2hSM",
        "merchant_name": "MUSIC COMPANY pvt",
        "super_merchant_name": "Utkarsha Patil",
        "plan_id": "10000145",
        "plan_name": "Shree ram yatra",
        "plan_description": "Pran pratishtha samaroh",
        "billing_frequency": {
            "frequency": "Daily",
            "interval": 2
        },
        "installment_amount": {
            "currency": "AED",
            "value": "300.00"
        },
        "terms": {
            "unlimited": "no",
            "value": 20,
            "discount_term": 5,
            "discount_amount": "90.00"
        },
        "status": "Active",
        "start_date": "19-02-2024 23:50:00",
        "expiry_date": "25-02-2024 23:59:00",
        "initial_payment_amount": "109.00",
        "final_payment_amount": "80.00",
        "shipping_fee": "20",
        "convenience_fee": "10",
        "note": "",
        "product_details": "",
        "qr_code": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...",
        "payment_link": "https://example.com/pay/{plan_id}",
        "payment_schedule": [
            {
                "sr_no": 1,
                "payment": "Initial Payment",
                "amount": "139.00"
            },
            {
                "sr_no": 2,
                "payment": "Second payment",
                "amount": "120.00"
            },
            {
                "sr_no": 20,
                "payment": "Final Payment",
                "amount": "110.00"
            }
        ]
    },
    "message": "Details fetched successfully.",
    "status": "success",
    "code": "00"
}

The data_id is returned when you create a plan or list plans. Use it to fetch the full details of any plan.

On this page