Skip to main content

Get Subscription Details

Get the subscription details.

Request Parametersapplication/json
GetSubscriptionDetailsRequestModel
object
dateFormat
string
The date format in which you want to receive the information. Possible values:
a - "yyyy-MM-ddTHH:mm:ss.fff"
b - "M/d/yyyy"
c - "d-MMM-yyyy"
subscriptionId
integer
required
The subscription ID that needs to be updated.
vendorAccountId
integer
required
The vendor account ID identifies your PayPro Global account.
It can be found in Account settings > Business info.
apiSecretKey
string
required
The vendor account API secret key is a unique key
that was generated specifically for authenticating API requests.
It can be found in Store settings > General settings > Integration tab.
Response Parametersapplication/json
GetSubscriptionDetailsResponseModel
object
response
object
status
string
The status of the subscription.
createdAt
string
The subscription creation date in the chosen format in dateFormat.
nextPayment
string
The date of the upcoming subscription payment.
lastPayment
string
The date of the last subscription payment.
currentChargeCounter
integer
The number of the subscription payments that took place. 
subscriptionName
string
The name of the subscription.
subscriptionPrice
number
The subscription recurring price.
subscriptionCurrency
string
The currency in which the subscription is paid.
subscriptionPeriod
string
The subscription billing period. 
subscriptionPeriodValue
integer
The value of the subscription billing period. 
quantity
integer
The chosen subscription quantity.
isTrial
boolean
Possible values are true or false.
If true, the subscription is on trial period.
If false, there is no trial period.
renewalType
string
The subscription renewal type. 
discountToBeApplied
string
The discount amount applied to the subscription via API method Apply Discount.
orders
array[object]
The list of all orders of the current subscription.
id
integer
The order ID. 
billingCurrencyCode
string
The billing currency code. 
billingTotalPrice
number
The total price in a billing currency. 
billingTotalTaxesAmount
number
The total tax amount in a billing currency.
billingTotalPriceWithTaxes
number
The total price with the tax amount in a billing currency.
orderStatusId
integer
The order status ID.
Possible values: 1 – Waiting,
2 – Canceled, 3 –Refunded,
4 – Chargeback, 5 – Processed.
paymentMethodId
integer
The payment method ID.
orderStatusName
string
The text representation of the order status.
paymentMethodName
string
The text representation of the payment method.
createdAt
string
The date when the order was created.
request
object
dateFormat
string
Date format. Possible values:
a - "yyyy-MM-ddTHH:mm:ss.fff"
b - "M/d/yyyy"
c - "d-MMM-yyyy"
subscriptionId
integer
Subscription id.
vendorAccountId
integer
Vendor account id.
apiSecretKey
string
Vendor account API secret key.
errors
array[object]
propertyWithError
string
propertyErrorMessages
array[string]
isSuccess
boolean
Request Sample
{
"dateFormat": "sample string 1",
"subscriptionId": 954874,
"vendorAccountId": 123456,
"apiSecretKey": "your_api_secret_key"
}
Response Sample
{
"response": {
"status": "sample string 1",
"createdAt": "sample string 2",
"nextPayment": "sample string 3",
"lastPayment": "sample string 4",
"currentChargeCounter": 5,
"subscriptionName": "sample string 6",
"subscriptionPrice": 7.0,
"subscriptionCurrency": "sample string 8",
"subscriptionPeriod": "sample string 9",
"subscriptionPeriodValue": 10,
"quantity": 11,
"isTrial": true,
"renewalType": "sample string 13",
"discountToBeApplied": "sample string 14",
"orders": [
{
"id": 1,
"billingCurrencyCode": "sample string 2",
"billingTotalPrice": 99.95,
"billingTotalTaxesAmount": 4.0,
"billingTotalPriceWithTaxes": 103.95,
"orderStatusId": 5,
"paymentMethodId": 6,
"orderStatusName": "Processed",
"paymentMethodName": "Discover",
"createdAt": "sample string 7"
},
{
"id": 1,
"billingCurrencyCode": "sample string 2",
"billingTotalPrice": 99.95,
"billingTotalTaxesAmount": 4.0,
"billingTotalPriceWithTaxes": 103.95,
"orderStatusId": 5,
"paymentMethodId": 6,
"orderStatusName": "Processed",
"paymentMethodName": "Discover",
"createdAt": "sample string 7"
}
]
},
"request": {
"dateFormat": "sample string 1",
"subscriptionId": 954874,
"vendorAccountId": 123456,
"apiSecretKey": "your_api_secret_key"
},
"errors": [
{
"propertyWithError": "orderId",
"propertyErrorMessages": [
"Error message 1",
"Error message 2"
]
},
{
"propertyWithError": "orderId",
"propertyErrorMessages": [
"Error message 1",
"Error message 2"
]
}
],
"isSuccess": false
}