{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"optional","examples":{"codes":[]},"method":"get","results":{"codes":[]},"settings":"","params":[]},"next":{"description":"","pages":[]},"title":"Retrieve Subscription Charge","type":"endpoint","slug":"retrieve-subscription-charge","excerpt":"","body":"##Definition\nhttps<span>://sandbox.bluesnap.com/services/2/subscriptions/:subscription-id/subscription-charges/:charge-id</span>\n\n<hr>\n\n##Documentation\nThe Retrieve Subscription Charge request enables you to retrieve details of a single charge that is connected to a specific subscription.\n\n###Request Content\nEnter the `subscription-id` and `charge-id` into the web service URL, in the format:\n`services/2/subscriptions/{subscription-id}/subscription-charges/{charge-id}`\n\nFor example:\n`services/2/subscriptions/123456/subscription-charges/898`\n\n###Response Details\nIf successful, the response HTTP status code is 200 OK.\nThe response contains the retrieved `subscription-charge` resource (see [subscription-charge](doc:subscription-charge)).\nFor details about possible errors, see: [General Errors](doc:general-errors), [Payment & Processor Errors](doc:payment-errors), and [Fraud Errors](doc:fraud-errors).\n\n<hr>\n\n##Examples\n\n###Request Example\n[block:code]\n{\n \"codes\": [\n {\n \"code\": \"curl -v -X GET https://sandbox.bluesnap.com/services/2/subscriptions/123456/subscription-charges/629 \\\\\\n-H 'Content-Type: application/xml' \\\\\\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ='\",\n \"language\": \"curl\",\n \"name\": \"Retrieve Subscription Charge Request\"\n }\n ]\n}\n[/block]\n###Response Example\n[block:code]\n{\n \"codes\": [\n {\n \"code\": \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"yes\\\"?>\\n<subscription-charge>\\n <charge-info>\\n <charge-description>some text</charge-description>\\n <from-date>1/1/2017</from-date>\\n <to-date>31/12/2017</to-date>\\n </charge-info>\\n <charge-invoice-info>\\n <date-created>1/1/2013<date-created>\\n <invoice-id>123456</invoice-id>\\n <invoice-amount>100</invoice-amount>\\n <invoice-currency>USD</invoice-currency>\\n </charge-invoice-info>\\n</subscription-charge>\",\n \"language\": \"xml\",\n \"name\": \"Retrieve Subscription Charge Response\"\n }\n ]\n}\n[/block]\n\n<br>\n<a class=\"btn btn-primary\" href=\"#\" role=\"button\">Back to Top</a>","updates":[],"order":4,"isReference":true,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"61a5033cd3c4d201e7b58471","category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"Subscriptions","slug":"ecp-transaction-service","order":5,"from_sync":false,"reference":true,"_id":"61a5033cd3c4d201e7b583bf","version":"61a5033cd3c4d201e7b5848b","project":"57336fd5a6a9c40e00e13a0b","createdAt":"2016-01-13T18:38:47.347Z","__v":0},"project":"57336fd5a6a9c40e00e13a0b","user":"560d5913af97231900938124","parentDoc":null,"version":{"version":"8976-Extended","version_clean":"8976.0.0-Extended","codename":"3.40 Release","is_stable":false,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["61a5033cd3c4d201e7b583ba","61a5033cd3c4d201e7b583bb","61a5033cd3c4d201e7b583bc","61a5033cd3c4d201e7b583bd","61a5033cd3c4d201e7b583be","61a5033cd3c4d201e7b583bf","61a5033cd3c4d201e7b583c0","61a5033cd3c4d201e7b583c1","61a5033cd3c4d201e7b583c2","61a5033cd3c4d201e7b583c3","61a5033cd3c4d201e7b583c4"],"_id":"61a5033cd3c4d201e7b5848b","project":"57336fd5a6a9c40e00e13a0b","__v":0,"forked_from":"6040037678d626005641a154","createdAt":"2018-04-24T15:33:45.744Z","releaseDate":"2018-04-24T15:33:45.744Z"},"createdAt":"2016-06-30T14:27:00.800Z","githubsync":"","__v":0}
getRetrieve Subscription Charge
Definition
https://sandbox.bluesnap.com/services/2/subscriptions/:subscription-id/subscription-charges/:charge-id
Documentation
The Retrieve Subscription Charge request enables you to retrieve details of a single charge that is connected to a specific subscription.
Request Content
Enter the subscription-id
and charge-id
into the web service URL, in the format:services/2/subscriptions/{subscription-id}/subscription-charges/{charge-id}
For example:services/2/subscriptions/123456/subscription-charges/898
Response Details
If successful, the response HTTP status code is 200 OK.
The response contains the retrieved subscription-charge
resource (see subscription-charge).
For details about possible errors, see: General Errors, Payment & Processor Errors, and Fraud Errors.
Examples
Request Example
curl -v -X GET https://sandbox.bluesnap.com/services/2/subscriptions/123456/subscription-charges/629 \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ='
<subscription-charge>
<charge-info>
<charge-description>some text</charge-description>
<from-date>1/1/2017</from-date>
<to-date>31/12/2017</to-date>
</charge-info>
<charge-invoice-info>
<date-created>1/1/2013<date-created>
<invoice-id>123456</invoice-id>
<invoice-amount>100</invoice-amount>
<invoice-currency>USD</invoice-currency>
</charge-invoice-info>
</subscription-charge>