Subscriptions: Get

Request

GET https://api.univapay.com/stores/{storeId}/subscriptions/{subscriptionId}

Parameters:

Parameters
pollingboolean
Tells the API to internally poll for the status of a charge until it’s status has changed from Pending (its initial status) to something else.

Headers:

Authorization: Bearer {secret}.{jwt}

Body:

curl --request GET \
--url https://api.univapay.com/stores/37ff5664-18c6-11e7-8221-ff4914d76afc/subscriptions/aaadee6a-18e3-11e7-a461-e3b078a7dc52 \
--header 'Authorization: Bearer {secret}.{jwt}'

Response

Code: 200

Headers:

Content-Type: application/json

Body:

{
  "id": "aaadee6a-18e3-11e7-a461-e3b078a7dc52",
  "store_id": "37ff5664-18c6-11e7-8221-ff4914d76afc",
  "amount": 1250,
  "currency": "USD",
  "amount_formatted": 12.5,
  "period": "daily",
  "status": "unverified",
  "metadata": {
    "ServiceId": 78435694
  },
  "mode": "test",
  "created_on": 1491275175825
}