Retrieve Subscription Charge

Definition

https://sandbox.bluesnap.com/services/2/subscriptions/:subscription-id/subscription-charges/:charge-id


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>

Back to Top