{"_id":"5b19742cb3baf90003cab5a8","category":{"_id":"5b19742cb3baf90003cab4ed","version":"5b19742cb3baf90003cab5ae","project":"57336fd5a6a9c40e00e13a0b","__v":0,"sync":{"url":"","isSync":false},"reference":true,"createdAt":"2016-01-13T18:38:47.347Z","from_sync":false,"order":5,"slug":"ecp-transaction-service","title":"Subscriptions"},"project":"57336fd5a6a9c40e00e13a0b","user":"560d5913af97231900938124","parentDoc":null,"version":{"_id":"5b19742cb3baf90003cab5ae","project":"57336fd5a6a9c40e00e13a0b","__v":0,"forked_from":"5adf4e59ac13b80003d23152","createdAt":"2018-04-24T15:33:45.744Z","releaseDate":"2018-04-24T15:33:45.744Z","categories":["5b19742cb3baf90003cab4e8","5b19742cb3baf90003cab4e9","5b19742cb3baf90003cab4ea","5b19742cb3baf90003cab4eb","5b19742cb3baf90003cab4ec","5b19742cb3baf90003cab4ed","5b19742cb3baf90003cab4ee","5b19742cb3baf90003cab4ef","5b19742cb3baf90003cab4f0","5b19742cb3baf90003cab4f1","5b19742cb3baf90003cab4f2"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":false,"codename":"3.26 Release","version_clean":"8976.0.0-Extended","version":"8976-Extended"},"githubsync":"","__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-06-30T14:27:00.800Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[]},"method":"get","results":{"codes":[]},"settings":"","auth":"optional","params":[],"url":""},"isReference":true,"order":3,"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>","excerpt":"","slug":"retrieve-subscription-charge","type":"endpoint","title":"Retrieve Subscription Charge"}

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='

Response Example

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<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>