{"_id":"59df6a533b756800107b204c","category":{"_id":"59df6a523b756800107b2027","version":"59df6a523b756800107b201e","project":"57336fd5a6a9c40e00e13a0b","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-07-27T10:22:06.636Z","from_sync":false,"order":8,"slug":"subscriptions","title":"Subscriptions"},"parentDoc":null,"user":"560d5913af97231900938124","project":"57336fd5a6a9c40e00e13a0b","version":{"_id":"59df6a523b756800107b201e","project":"57336fd5a6a9c40e00e13a0b","__v":1,"createdAt":"2017-10-12T13:12:50.128Z","releaseDate":"2017-10-12T13:12:50.128Z","categories":["59df6a523b756800107b201f","59df6a523b756800107b2020","59df6a523b756800107b2021","59df6a523b756800107b2022","59df6a523b756800107b2023","59df6a523b756800107b2024","59df6a523b756800107b2025","59df6a523b756800107b2026","59df6a523b756800107b2027","59df6a523b756800107b2028","59df6a523b756800107b2029","59df6a523b756800107b202a","59df6a523b756800107b202b","59df6a523b756800107b202c","59df6a523b756800107b202d","59df6a523b756800107b202e"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":false,"codename":"3.23 Release","version_clean":"8976.0.0-XML","version":"8976-XML"},"__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-07-29T19:20:45.628Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"settings":"","examples":{"codes":[]},"method":"get","results":{"codes":[{"code":"","language":"text"}]},"auth":"optional","params":[{"_id":"56953ff3fe18811700c9bfcc","ref":"","in":"path","required":true,"desc":"BlueSnap identifier for the subscription.","default":"","type":"int","name":"subscription-id"}],"url":"/recurring/subscriptions/:subscription-id"},"isReference":false,"order":9,"body":"The Retrieve Specific Subscription request enables you to retrieve details about one existing subscription.\n\n<a class=\"btn btn-success\" href=\"#section-api-explorer\" role=\"button\">Try it in the API Explorer</a>\n\n###Request Content\nEnter the `subscription-id` into the web service URL, in the format:\n`services/2/recurring/subscriptions/{subscription-id}`\n\nFor example:\n`services/2/recurring/subscriptions/2111111`\n\n###Response Details\nIf successful, the response HTTP status code is 200 OK.\nThe response contains the retrieved [recurring-subscription](doc:recurring-subscription) resource.\n\n<hr>\n\n##Examples\n\n###Request Examples\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl -v -X GET https://sandbox.bluesnap.com/services/2/recurring/subscriptions/8491535 \\\\\\n-H 'Content-Type: application/xml' \\\\\\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ='\",\n      \"language\": \"curl\",\n      \"name\": \"Retrieve Specific Subscription Request\"\n    }\n  ]\n}\n[/block]\n###Response Examples\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"HTTP/ 1.1 200 OK\\n\\n<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"yes\\\"?>\\n<recurring-subscription xmlns=\\\"http://ws.plimus.com\\\">\\n  <subscription-id>8491535</subscription-id>\\n  <plan-id>2283845</plan-id>\\n  <vaulted-shopper-id>21188039</vaulted-shopper-id>\\n  <status>ACTIVE</status>\\n  <quantity>1</quantity>\\n  <soft-descriptor>Example descriptor</soft-descriptor>\\n  <charge-frequency>MONTHLY</charge-frequency>\\n  <trial-period-days>14</trial-period-days>\\n  <recurring-charge-amount>29.99</recurring-charge-amount>\\n  <currency>USD</currency>\\n  <initial-charge-amount>100.00</initial-charge-amount>\\n  <auto-renew>true</auto-renew>\\n  <next-charge-date>2016-08-15</next-charge-date>\\n  <payer-info>\\n    <first-name>John</first-name>\\n    <last-name>Doe</last-name>\\n  </payer-info>\\n  <payment-source>\\n    <credit-card-info>\\n      <billing-contact-info>\\n        <first-name>John</first-name>\\n        <last-name>Doe</last-name>\\n      </billing-contact-info>\\n      <credit-card>\\n        <card-last-four-digits>1111</card-last-four-digits>\\n        <card-type>VISA</card-type>\\n        <card-sub-type>CREDIT</card-sub-type>\\n        <card-category>CLASSIC</card-category>\\n        <expiration-month>07</expiration-month>\\n        <expiration-year>2019</expiration-year>\\n      </credit-card>\\n    </credit-card-info>\\n  </payment-source>\\n</recurring-subscription>\",\n      \"language\": \"xml\",\n      \"name\": \"Retrieve Specific Subscription Response: 200 OK\"\n    }\n  ]\n}\n[/block]\n<hr>\n\n##Example Descriptions\nAbove is an example request. Note that no XML content is required in the request body. You simply need to include the subscription ID in the request URL. The subscription ID is the unique ID sent in the `subscription-id` property in the [Create Subscription](doc:create-subscription) response.\n\n<br>\n<a class=\"btn btn-primary\" href=\"#\" role=\"button\">Back to Top</a>\n\n<hr>\n\n##API Explorer\nTo test out a call, enter an existing subscription ID (e.g *8491535*) in the `subscription-id` field. This will automatically insert the ID into the request URL. Leave the Body Content field empty.","excerpt":"","slug":"retrieve-specific-subscription","type":"get","title":"Retrieve Specific Subscription"}

getRetrieve Specific Subscription


Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

subscription-id:
required
integer
BlueSnap identifier for the subscription.

Documentation

The Retrieve Specific Subscription request enables you to retrieve details about one existing subscription.

Try it in the API Explorer

Request Content

Enter the subscription-id into the web service URL, in the format:
services/2/recurring/subscriptions/{subscription-id}

For example:
services/2/recurring/subscriptions/2111111

Response Details

If successful, the response HTTP status code is 200 OK.
The response contains the retrieved recurring-subscription resource.


Examples

Request Examples

curl -v -X GET https://sandbox.bluesnap.com/services/2/recurring/subscriptions/8491535 \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ='

Response Examples

HTTP/ 1.1 200 OK

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<recurring-subscription xmlns="http://ws.plimus.com">
  <subscription-id>8491535</subscription-id>
  <plan-id>2283845</plan-id>
  <vaulted-shopper-id>21188039</vaulted-shopper-id>
  <status>ACTIVE</status>
  <quantity>1</quantity>
  <soft-descriptor>Example descriptor</soft-descriptor>
  <charge-frequency>MONTHLY</charge-frequency>
  <trial-period-days>14</trial-period-days>
  <recurring-charge-amount>29.99</recurring-charge-amount>
  <currency>USD</currency>
  <initial-charge-amount>100.00</initial-charge-amount>
  <auto-renew>true</auto-renew>
  <next-charge-date>2016-08-15</next-charge-date>
  <payer-info>
    <first-name>John</first-name>
    <last-name>Doe</last-name>
  </payer-info>
  <payment-source>
    <credit-card-info>
      <billing-contact-info>
        <first-name>John</first-name>
        <last-name>Doe</last-name>
      </billing-contact-info>
      <credit-card>
        <card-last-four-digits>1111</card-last-four-digits>
        <card-type>VISA</card-type>
        <card-sub-type>CREDIT</card-sub-type>
        <card-category>CLASSIC</card-category>
        <expiration-month>07</expiration-month>
        <expiration-year>2019</expiration-year>
      </credit-card>
    </credit-card-info>
  </payment-source>
</recurring-subscription>


Example Descriptions

Above is an example request. Note that no XML content is required in the request body. You simply need to include the subscription ID in the request URL. The subscription ID is the unique ID sent in the subscription-id property in the Create Subscription response.



Back to Top


API Explorer

To test out a call, enter an existing subscription ID (e.g 8491535) in the subscription-id field. This will automatically insert the ID into the request URL. Leave the Body Content field empty.


User Information

Try It Out


get
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}