Get Subscription Details
Get the subscription details.
Post
https://store.payproglobal.com/api/Subscriptions/GetSubscriptionDetailsRequest Parameters
application/jsonGetSubscriptionDetailsRequestModel
objectdateFormat
stringoptional
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"
a - "yyyy-MM-ddTHH:mm:ss.fff"
b - "M/d/yyyy"
c - "d-MMM-yyyy"
subscriptionId
integerrequired
The subscription ID that needs to be updated.
vendorAccountId
integerrequired
The vendor account ID identifies your PayPro Global account.
It can be found in Account settings > Business info.
It can be found in Account settings > Business info.
apiSecretKey
stringrequired
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.
that was generated specifically for authenticating API requests.
It can be found in Store settings > General settings > Integration tab.
Response Parameters
application/jsonGetSubscriptionDetailsResponseModel
objectresponse
objectstatus
stringThe status of the subscription.
createdAt
stringThe subscription creation date in the chosen format in dateFormat.
nextPayment
stringThe date of the upcoming subscription payment.
lastPayment
stringThe date of the last subscription payment.
currentChargeCounter
integerThe number of the subscription payments that took place.
subscriptionName
stringThe name of the subscription.
productId
integerThe product ID associated with the subscription.
subscriptionPrice
numberThe subscription recurring price.
subscriptionCurrency
stringThe currency in which the subscription is paid.
subscriptionPeriod
stringThe subscription billing period.
subscriptionPeriodValue
integerThe value of the subscription billing period.
quantity
integerThe chosen subscription quantity.
isTrial
booleanPossible values are true or false.
If true, the subscription is on trial period.
If false, there is no trial period.
If true, the subscription is on trial period.
If false, there is no trial period.
renewalType
stringThe subscription renewal type.
discountToBeApplied
stringThe discount amount applied to the subscription via API method Apply Discount.
affiliateAgreementId
integerThe affiliate agreement ID assigned to the subscription.
coupons
array[object]name
stringA coupon code name.
isPercentage
booleanPossible values are true or false. If true, the percentage discount was applied; false otherwise.
discount
numberThe percentage or amount of the discount applied by the coupon.
cyclesLeft
numberThe number of remaining cycles the coupon can be used before expiration.
orders
array[object]The list of all orders of the current subscription.
id
integerThe order ID.
billingCurrencyCode
stringThe billing currency code.
billingTotalPrice
numberThe total price in a billing currency.
billingTotalTaxesAmount
numberThe total tax amount in a billing currency.
billingTotalPriceWithTaxes
numberThe total price with the tax amount in a billing currency.
orderStatusId
integerThe order status ID.
Possible values: 1 – Waiting,
2 – Canceled, 3 –Refunded,
4 – Chargeback, 5 – Processed.
Possible values: 1 – Waiting,
2 – Canceled, 3 –Refunded,
4 – Chargeback, 5 – Processed.
paymentMethodId
integerThe payment method ID.
orderStatusName
stringThe text representation of the order status.
paymentMethodName
stringThe text representation of the payment method.
createdAt
stringThe date when the order was created.
affiliateAgreementId
integerThe affiliate agreement ID assigned to the subscription.
request
objectdateFormat
stringDate format. Possible values:
a - "yyyy-MM-ddTHH:mm:ss.fff"
b - "M/d/yyyy"
c - "d-MMM-yyyy"
a - "yyyy-MM-ddTHH:mm:ss.fff"
b - "M/d/yyyy"
c - "d-MMM-yyyy"
subscriptionId
integerSubscription id.
vendorAccountId
integerVendor account id.
apiSecretKey
stringVendor account API secret key.
errors
array[object]propertyWithError
stringpropertyErrorMessages
array[string]isSuccess
booleanRequest Sample
{
"dateFormat": "a",
"subscriptionId": 1111111,
"vendorAccountId": 123456,
"apiSecretKey": "your_api_secret_key"
}
Response Sample
{
"response": {
"status": "Active",
"createdAt": "2023-09-09T10:32:46.097",
"nextPayment": "2024-03-29T11:29:59.837",
"lastPayment": "2024-02-29T11:29:59.837",
"currentChargeCounter": 1,
"subscriptionName": "Premium Subscription (Includes: - basic features)",
"productId": 37491,
"subscriptionPrice": 58.83,
"subscriptionCurrency": "EUR",
"subscriptionPeriod": "Months",
"subscriptionPeriodValue": 1,
"quantity": 1,
"isTrial": false,
"renewalType": "Auto",
"discountToBeApplied": 0.0,
"affiliateAgreementId": null,
"coupon": [
{
"name": "coupon_name",
"isPercentage": true,
"discount": 20.00,
"cyclesLeft": null
}
],
"orders": [{
"id": 12345678,
"billingCurrencyCode": "EUR",
"billingTotalPrice": 105.04,
"billingTotalTaxesAmount": 19.96,
"billingTotalPriceWithTaxes": 125.00,
"orderStatusId": 5,
"paymentMethodId": 2,
"orderStatusName": "Processed",
"paymentMethodName": "Visa",
"createdAt": "2023-09-09T10:32:46.097",
"affiliateAgreementId": null,
}]
},
"request": {
"dateFormat": "a",
"subscriptionId": 1111111,
"vendorAccountId": 123456,
"apiSecretKey": "your_api_secret_key"
},
"errors": [],
"isSuccess": true
}