Retrieve Batch Transaction

Retrieve is a request that gets details about a submitted batch transaction, such as the callback URL, and the details of each transaction within the batch.

📘

Note

The retrieve batch call will not have an up-to-date status of each ACH transaction (approved or declined by the bank). For this information, you use IPNs or do a retrieve on a per-transaction basis.


📘

Tip

You can test out a request that hits our sandbox in real-time. Follow the instructions here to use the "Try It!" feature on the right side.

Request Content

Enter the batch-id into the web service URL, in the format:
services/2/batch-transactions/{batch-id}

For example:
services/2/batch-transactions/567890

Response Details

If successful, the response HTTP status code is 200 OK.
The response contains the retrieved batch-transaction resource (see batch-transaction) with the request properties plus these additions:

PropertyNotes
transaction-countnumber of transactions within the batch
transaction-idID for each transaction in the batch
processing-infoprocessing status for the entire batch and for each transaction in the batch

Examples

Request Example

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

Response Example

HTTP/ 1.1 200 OK

<batch-transaction xmlns="http://ws.plimus.com">
    <batch-id>567892</batch-id>
    <callback-url>http&#x3a;&#x2f;&#x2f;example.com&#x2f;batch_callback</callback-url>
    <transaction-count>3</transaction-count>
    <card-transaction>
        <card-transaction-type>AUTH_CAPTURE</card-transaction-type>
        <merchant-transaction-id>566</merchant-transaction-id>
        <transaction-id>1029337513</transaction-id>
        <recurring-transaction>ECOMMERCE</recurring-transaction>
        <soft-descriptor>DescTest txn1</soft-descriptor>
        <amount>11</amount>
        <currency>USD</currency>
        <card-holder-info>
            <first-name>test first name</first-name>
            <last-name>test last name</last-name>
        </card-holder-info>
        <credit-card>
            <card-last-four-digits>1881</card-last-four-digits>
            <card-type>VISA</card-type>
            <expiration-month>7</expiration-month>
            <expiration-year>2023</expiration-year>
        </credit-card>
        <transaction-meta-data/>
        <processing-info>
            <processing-status>SUCCESS</processing-status>
            <authorization-code>654321</authorization-code>
            <transaction-region>US</transaction-region>
        </processing-info>
    </card-transaction>
    <alt-transaction>
        <transaction-id>1029337515</transaction-id>
        <soft-descriptor>ABC COMPANY</soft-descriptor>
        <amount>100</amount>
        <currency>USD</currency>
        <payer-info>
            <first-name>John</first-name>
            <last-name>Doe</last-name>
            <zip>02453</zip>
            <phone>1234567890</phone>
        </payer-info>
        <vaulted-shopper-id>26818793</vaulted-shopper-id>
        <ecp-transaction>
            <account-number>4099999992</account-number>
            <routing-number>011075150</routing-number>
            <account-type>CONSUMER_CHECKING</account-type>
            <public-account-number>99992</public-account-number>
            <public-routing-number>75150</public-routing-number>
        </ecp-transaction>
        <processing-info>
            <processing-status>PENDING</processing-status>
            <transaction-region>US</transaction-region>
        </processing-info>
    </alt-transaction>
    <alt-transaction>
        <transaction-id>1029337517</transaction-id>
        <soft-descriptor>SepaPapi</soft-descriptor>
        <amount>20</amount>
        <currency>EUR</currency>
        <payer-info>
            <first-name>John</first-name>
            <last-name>Doe</last-name>
            <country>it</country>
            <state>ca</state>
            <address>blue lane 21</address>
            <city>london</city>
            <zip>45353434</zip>
            <phone>23123133213</phone>
        </payer-info>
        <vaulted-shopper-id>26818795</vaulted-shopper-id>
        <sepa-direct-debit-transaction>
            <bic>PBNKDEFFXXX</bic>
            <iban-first-four>DE09</iban-first-four>
            <iban-last-four>7891</iban-last-four>
            <mandate-id>Mys229845</mandate-id>
            <mandate-date>09-Mar-20</mandate-date>
            <pre-notification-text>The amount of 20.00 EUR will be collected using SEPA Direct Debit with Mandate Mys229845 from your bank account IBAN DE09XXXXXX7891 in the next few days. Please ensure sufficient funds in your account.</pre-notification-text>
        </sepa-direct-debit-transaction>
        <processing-info>
            <processing-status>PENDING</processing-status>
            <transaction-region>US</transaction-region>
        </processing-info>
    </alt-transaction>
    <processing-info>
        <processing-status>COMPLETED</processing-status>
        <transaction-region>US</transaction-region>
    </processing-info>
</batch-transaction>

Back to Top


API Explorer (for request based on Transaction ID)

To test out a call, enter an existing batch ID (e.g 567890) in the batch-id field. This will automatically insert the ID into the request URL.

Language
Authorization
Header
Click Try It! to start a request and see the response here!