{"_id":"59dfa5848b51880010b74ade","category":{"_id":"59dfa5828b51880010b74abe","version":"59dfa5828b51880010b74ab6","project":"57336fd5a6a9c40e00e13a0b","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-07-27T10:22:06.636Z","from_sync":false,"order":7,"slug":"subscriptions","title":"Subscriptions"},"project":"57336fd5a6a9c40e00e13a0b","parentDoc":null,"user":"560d5913af97231900938124","version":{"_id":"59dfa5828b51880010b74ab6","project":"57336fd5a6a9c40e00e13a0b","__v":1,"createdAt":"2017-10-12T17:25:22.850Z","releaseDate":"2017-10-12T17:25:22.850Z","categories":["59dfa5828b51880010b74ab7","59dfa5828b51880010b74ab8","59dfa5828b51880010b74ab9","59dfa5828b51880010b74aba","59dfa5828b51880010b74abb","59dfa5828b51880010b74abc","59dfa5828b51880010b74abd","59dfa5828b51880010b74abe","59dfa5828b51880010b74abf","59dfa5828b51880010b74ac0","59dfa5828b51880010b74ac1","59dfa5828b51880010b74ac2","59dfa5828b51880010b74ac3","59dfa5828b51880010b74ac4","59dfa5828b51880010b74ac5"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":false,"codename":"3.23 Release","version_clean":"8976.0.0-JSON","version":"8976-JSON"},"__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-07-29T15:17:29.885Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"method":"get","results":{"codes":[{"code":"","language":"text"}]},"settings":"57ee593a21ceb20e0061959e","examples":{"codes":[]},"auth":"optional","params":[{"_id":"56953ff3fe18811700c9bfcc","ref":"","in":"path","required":true,"desc":"BlueSnap identifier for the plan.","default":"","type":"int","name":"planId"}],"url":"/recurring/plans/:planId"},"isReference":false,"order":3,"body":"The Retrieve Specific Plan request enables you to retrieve details about one existing subscription billing plan.\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 `planId` into the web service URL, in the format:\n`services/2/recurring/plans/{planId}`\n\nFor example:\n`services/2/recurring/plans/2111111`\n\n###Response Details\nIf successful, the response HTTP status code is 200 OK.\nThe response contains the retrieved **[plan](doc:plan)** object.\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/plans/2283845 \\\\\\n-H 'Content-Type: application/json' \\\\\\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\",\n      \"language\": \"curl\",\n      \"name\": \"Retrieve Specific Plan Request\"\n    }\n  ]\n}\n[/block]\n###Response Examples\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n    \\\"chargeFrequency\\\": \\\"MONTHLY\\\",\\n    \\\"gracePeriodDays\\\": 10,\\n    \\\"trialPeriodDays\\\": 14,\\n    \\\"initialChargeAmount\\\": 100,\\n    \\\"name\\\": \\\"Gold Plan\\\",\\n    \\\"planId\\\": 2283845,\\n    \\\"currency\\\": \\\"USD\\\",\\n    \\\"maxNumberOfCharges\\\": 12,\\n    \\\"recurringChargeAmount\\\": 29.99,\\n    \\\"chargeOnPlanSwitch\\\": true,\\n    \\\"status\\\": \\\"ACTIVE\\\"\\n}\",\n      \"language\": \"json\",\n      \"name\": \"Retrieve Specifc Plan Response: 200 OK\"\n    }\n  ]\n}\n[/block]\n<hr>\n\n##Example Descriptions\nAbove is an example request. Note that no content is required in the request body. You simply need to include the plan ID in the request URL.\n\nThe plan ID is the unique ID sent in the `planId` property in the [Create Plan](doc:create-plan) response.\n\nThe response contains the retrieved **[plan](doc:plan)** object.\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 plan ID (e.g *2283845*) in the `planId` field. This will automatically insert the ID into the request URL. Leave the Body Content field empty.","excerpt":"","slug":"retrieve-specific-plan","type":"get","title":"Retrieve Specific Plan"}

getRetrieve Specific Plan


Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

planId:
required
integer
BlueSnap identifier for the plan.

Documentation

The Retrieve Specific Plan request enables you to retrieve details about one existing subscription billing plan.

Try it in the API Explorer

Request Content

Enter the planId into the web service URL, in the format:
services/2/recurring/plans/{planId}

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

Response Details

If successful, the response HTTP status code is 200 OK.
The response contains the retrieved plan object.


Examples

Request Examples

curl -v -X GET https://sandbox.bluesnap.com/services/2/recurring/plans/2283845 \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \ 
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '

Response Examples

{
    "chargeFrequency": "MONTHLY",
    "gracePeriodDays": 10,
    "trialPeriodDays": 14,
    "initialChargeAmount": 100,
    "name": "Gold Plan",
    "planId": 2283845,
    "currency": "USD",
    "maxNumberOfCharges": 12,
    "recurringChargeAmount": 29.99,
    "chargeOnPlanSwitch": true,
    "status": "ACTIVE"
}


Example Descriptions

Above is an example request. Note that no content is required in the request body. You simply need to include the plan ID in the request URL.

The plan ID is the unique ID sent in the planId property in the Create Plan response.

The response contains the retrieved plan object.



Back to Top


API Explorer

To test out a call, enter an existing plan ID (e.g 2283845) in the planId 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 }}