{"_id":"59a45d477ee621000fc9d444","category":{"_id":"59a45d447ee621000fc9d3bb","version":"59a45d437ee621000fc9d3b7","project":"57336fd5a6a9c40e00e13a0b","__v":0,"sync":{"url":"","isSync":false},"reference":true,"createdAt":"2016-01-13T18:38:47.347Z","from_sync":false,"order":3,"slug":"ecp-transaction-service","title":"ACH/ECP Transactions"},"project":"57336fd5a6a9c40e00e13a0b","parentDoc":null,"user":"560d5913af97231900938124","version":{"_id":"59a45d437ee621000fc9d3b7","project":"57336fd5a6a9c40e00e13a0b","__v":1,"createdAt":"2017-08-28T18:13:23.840Z","releaseDate":"2017-08-28T18:13:23.840Z","categories":["59a45d447ee621000fc9d3b8","59a45d447ee621000fc9d3b9","59a45d447ee621000fc9d3ba","59a45d447ee621000fc9d3bb","59a45d447ee621000fc9d3bc","59a45d447ee621000fc9d3bd","59a45d447ee621000fc9d3be","59a45d447ee621000fc9d3bf","59a45d447ee621000fc9d3c0","59a45d447ee621000fc9d3c1","59a45d447ee621000fc9d3c2","59a45d447ee621000fc9d3c3","59a45d447ee621000fc9d3c4","59a45d447ee621000fc9d3c5","59a45d447ee621000fc9d3c6","59a45d447ee621000fc9d3c7"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":false,"codename":"3.22.1","version_clean":"8976.0.0-XML","version":"8976-XML"},"__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-01-22T17:46:50.622Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[]},"method":"get","results":{"codes":[{"code":"","language":"text"}]},"settings":"","auth":"optional","params":[{"_id":"56953ff3fe18811700c9bfcc","ref":"","in":"path","required":true,"desc":"transaction ID received in the response from BlueSnap","default":"","type":"string","name":"transaction-id"}],"url":"/alt-transactions/:transaction-id"},"isReference":true,"order":10,"body":"This request gets details about a past ECP transaction, such as the transaction ID, amount, currency, payer info or vaulted shopper, and so on.\n\n<a class=\"btn btn-success\" href=\"#section-api-explorer-for-request-based-on-transaction-id-\" role=\"button\">Try it in the API Explorer</a>\n\n###Request Content\nNo content is required in the request body. Enter the relevant IDs in the request URL, as follows:\n\n**Retrieve based on Transaction ID**\nEnter the `transaction-id` into the web service URL, in the format:\n`services/2/alt-transactions/{transaction-id}`\n\nFor example:\n`services/2/transactions/38504790`\n\n**Retrieve based on Merchant Transaction ID and Merchant ID**\nEnter the `merchant-id` and `merchant-transaction-id` into the web service URL, in the format:\n`services/2/alt-transactions/{merchant-transaction-id},{merchant-id}`\n\nFor example:\n`services/2/alt-transactions/unique_001,395608`\n\n###Response Details\nIf successful, the response HTTP status code is 200 OK.\nThe response contains the retrieved `alt-transaction` resource (see [alt-transaction](doc:alt-transaction)).\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/alt-transactions/38504790 \\\\\\n-H 'Content-Type: application/xml' \\\\\\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ='\",\n      \"language\": \"curl\",\n      \"name\": \"Retrieve ECP Transaction Request: by Transaction ID\"\n    },\n    {\n      \"code\": \"curl -v -X GET https://sandbox.bluesnap.com/services/2/alt-transactions/unique_001,395608 \\\\\\n-H 'Content-Type: application/xml' \\\\\\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ='\",\n      \"language\": \"curl\",\n      \"name\": \"by Merchant Transaction ID and Merchant ID\"\n    }\n  ]\n}\n[/block]\n###Response Examples\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n<alt-transaction xmlns=\\\"http://ws.plimus.com\\\">\\n   <transaction-id>38504790</transaction-id>\\n   <soft-descriptor>ABC COMPANY</soft-descriptor>\\n   <amount>100</amount>\\n   <currency>USD</currency>\\n   <payer-info>\\n      <first-name>John</first-name>\\n      <last-name>Doe</last-name>\\n      <zip>12345</zip>\\n      <phone>1234567890</phone>\\n   </payer-info>\\n   <ecp-transaction>\\n      <account-number>4099999992</account-number>\\n      <routing-number>011075150</routing-number>\\n      <account-type>CONSUMER_CHECKING</account-type>\\n   </ecp-transaction>\\n   <processing-info>\\n      <processing-status>SUCCESS</processing-status>\\n   </processing-info>\\n</alt-transaction>\",\n      \"language\": \"xml\",\n      \"name\": \"Retrieve ECP Transaction Response: 200 OK - by Transaction ID\"\n    },\n    {\n      \"code\": \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"yes\\\"?>\\n<alt-transaction xmlns=\\\"http://ws.plimus.com\\\">\\n    <merchant-transaction-id>unique_001</merchant-transaction-id>\\n    <transaction-id>38504788</transaction-id>\\n    <amount>100</amount>\\n    <currency>USD</currency>\\n    <payer-info>\\n        <first-name>John</first-name>\\n        <last-name>Doe</last-name>\\n        <zip>12345</zip>\\n        <phone>1234567890</phone>\\n    </payer-info>\\n    <ecp-transaction>\\n        <account-number>4099999992</account-number>\\n        <routing-number>011075150</routing-number>\\n        <account-type>CONSUMER_CHECKING</account-type>\\n    </ecp-transaction>\\n    <processing-info>\\n        <processing-status>SUCCESS</processing-status>\\n    </processing-info>\\n</alt-transaction>\",\n      \"language\": \"xml\",\n      \"name\": \"200 OK - by Merchant Transaction ID and Merchant ID\"\n    },\n    {\n      \"code\": \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"yes\\\"?>\\n<alt-transaction xmlns=\\\"http://ws.plimus.com\\\">\\n    <merchant-transaction-id>456</merchant-transaction-id>\\n    <transaction-id>38418384</transaction-id>\\n    <vendor-info>\\n        <vendor-id>397808</vendor-id>\\n        <commission-percent>20</commission-percent>\\n    </vendor-info>\\n    <soft-descriptor>ABC COMPANY</soft-descriptor>\\n    <amount>50</amount>\\n    <currency>USD</currency>\\n    <payer-info>\\n      <first-name>John</first-name>\\n      <last-name>Doe</last-name>\\n      <zip>12345</zip>\\n      <phone>1234567890</phone>\\n    </payer-info>\\n    <ecp-transaction>\\n      <account-number>4099999992</account-number>\\n      <routing-number>011075150</routing-number>\\n      <account-type>CONSUMER_CHECKING</account-type>\\n    </ecp-transaction>\\n    <processing-info>\\n        <processing-status>REFUNDED</processing-status>\\n    </processing-info>\\n    <refunds>\\n        <balance-amount>49.00</balance-amount>\\n        <vendor-balance-amount>9.80</vendor-balance-amount>\\n        <refund>\\n            <amount>1.00</amount>\\n            <vendor-amount>0.20</vendor-amount>\\n            <currency>USD</currency>\\n            <date>2016-09-29</date>\\n        </refund>\\n    </refunds>\\n</alt-transaction>\\n\",\n      \"language\": \"xml\",\n      \"name\": \"200 - OK with vendor ID\"\n    }\n  ]\n}\n[/block]\n##API Explorer (for request based on Transaction ID)\nTo test out a call, enter an existing transaction ID in the `transaction-id` field. This will automatically insert the ID into the request URL. Leave the Body Content field empty.","excerpt":"","slug":"retrieve-ecp-transaction","type":"get","title":"Retrieve ECP Transaction"}

getRetrieve ECP Transaction


Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

transaction-id:
required
string
transaction ID received in the response from BlueSnap

Documentation

This request gets details about a past ECP transaction, such as the transaction ID, amount, currency, payer info or vaulted shopper, and so on.

Try it in the API Explorer

Request Content

No content is required in the request body. Enter the relevant IDs in the request URL, as follows:

Retrieve based on Transaction ID
Enter the transaction-id into the web service URL, in the format:
services/2/alt-transactions/{transaction-id}

For example:
services/2/transactions/38504790

Retrieve based on Merchant Transaction ID and Merchant ID
Enter the merchant-id and merchant-transaction-id into the web service URL, in the format:
services/2/alt-transactions/{merchant-transaction-id},{merchant-id}

For example:
services/2/alt-transactions/unique_001,395608

Response Details

If successful, the response HTTP status code is 200 OK.
The response contains the retrieved alt-transaction resource (see alt-transaction).


Examples

Request Examples

curl -v -X GET https://sandbox.bluesnap.com/services/2/alt-transactions/38504790 \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ='
curl -v -X GET https://sandbox.bluesnap.com/services/2/alt-transactions/unique_001,395608 \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ='

Response Examples

<?xml version="1.0" encoding="UTF-8"?>
<alt-transaction xmlns="http://ws.plimus.com">
   <transaction-id>38504790</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>12345</zip>
      <phone>1234567890</phone>
   </payer-info>
   <ecp-transaction>
      <account-number>4099999992</account-number>
      <routing-number>011075150</routing-number>
      <account-type>CONSUMER_CHECKING</account-type>
   </ecp-transaction>
   <processing-info>
      <processing-status>SUCCESS</processing-status>
   </processing-info>
</alt-transaction>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<alt-transaction xmlns="http://ws.plimus.com">
    <merchant-transaction-id>unique_001</merchant-transaction-id>
    <transaction-id>38504788</transaction-id>
    <amount>100</amount>
    <currency>USD</currency>
    <payer-info>
        <first-name>John</first-name>
        <last-name>Doe</last-name>
        <zip>12345</zip>
        <phone>1234567890</phone>
    </payer-info>
    <ecp-transaction>
        <account-number>4099999992</account-number>
        <routing-number>011075150</routing-number>
        <account-type>CONSUMER_CHECKING</account-type>
    </ecp-transaction>
    <processing-info>
        <processing-status>SUCCESS</processing-status>
    </processing-info>
</alt-transaction>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<alt-transaction xmlns="http://ws.plimus.com">
    <merchant-transaction-id>456</merchant-transaction-id>
    <transaction-id>38418384</transaction-id>
    <vendor-info>
        <vendor-id>397808</vendor-id>
        <commission-percent>20</commission-percent>
    </vendor-info>
    <soft-descriptor>ABC COMPANY</soft-descriptor>
    <amount>50</amount>
    <currency>USD</currency>
    <payer-info>
      <first-name>John</first-name>
      <last-name>Doe</last-name>
      <zip>12345</zip>
      <phone>1234567890</phone>
    </payer-info>
    <ecp-transaction>
      <account-number>4099999992</account-number>
      <routing-number>011075150</routing-number>
      <account-type>CONSUMER_CHECKING</account-type>
    </ecp-transaction>
    <processing-info>
        <processing-status>REFUNDED</processing-status>
    </processing-info>
    <refunds>
        <balance-amount>49.00</balance-amount>
        <vendor-balance-amount>9.80</vendor-balance-amount>
        <refund>
            <amount>1.00</amount>
            <vendor-amount>0.20</vendor-amount>
            <currency>USD</currency>
            <date>2016-09-29</date>
        </refund>
    </refunds>
</alt-transaction>

API Explorer (for request based on Transaction ID)

To test out a call, enter an existing transaction ID in the transaction-id 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 }}