POST api/Transactions

Used to retrieve transactions performed by a token. It only returns transactions performed within the last 30 days, to help identify a particular token, or to identify a particular recent transaction. It is not intended to provide the full transaction history of a token or Account PAN. NOTE: The Transaction History API response is not supported for static Card on File (CoF) tokens.

Request Information

URI Parameters

None.

Body Parameters

TransactionsRequest

TransactionsRequest
NameDescriptionTypeAdditional information
TokenUniqueReference

The TokenUniqueReference of the token. Length - 48 Characters Example: DWSPMC00000000010906a349d9ca4eb1a4d53e3c90a11d9c

string

Required

AuditInfo

Audit Info - See AuditInfo Object Documentation

AuditInfo

Required

Request Formats

application/json, text/json

Sample:
{
  "tokenUniqueReference": "sample string 1",
  "auditInfo": {
    "userId": "sample string 1",
    "userName": "sample string 2",
    "organization": "sample string 3",
    "phone": "sample string 4"
  }
}

application/xml, text/xml

Sample:
<TransactionsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MDES.CustomerService.Models">
  <AuditInfo>
    <Organization>sample string 3</Organization>
    <Phone>sample string 4</Phone>
    <UserId>sample string 1</UserId>
    <UserName>sample string 2</UserName>
  </AuditInfo>
  <TokenUniqueReference>sample string 1</TokenUniqueReference>
</TransactionsRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

TransactionsResponse

TransactionsResponse
NameDescriptionTypeAdditional information
Transactions

Collection of Transaction Objects

Collection of Transaction

None.

Response Formats

application/json, text/json

Sample:
{
  "transactions": [
    {
      "transactionDateTime": "sample string 1",
      "currencyCode": "sample string 2",
      "transactionAmount": "sample string 3",
      "transactionTypeCode": "sample string 4",
      "transactionTypeDescription": "sample string 5",
      "transactionStatusCode": "sample string 6",
      "merchantName": "sample string 7",
      "merchantCategoryCode": "sample string 8",
      "merchantCategoryDescription": "sample string 9",
      "posEntryMode": "sample string 10"
    },
    {
      "transactionDateTime": "sample string 1",
      "currencyCode": "sample string 2",
      "transactionAmount": "sample string 3",
      "transactionTypeCode": "sample string 4",
      "transactionTypeDescription": "sample string 5",
      "transactionStatusCode": "sample string 6",
      "merchantName": "sample string 7",
      "merchantCategoryCode": "sample string 8",
      "merchantCategoryDescription": "sample string 9",
      "posEntryMode": "sample string 10"
    }
  ]
}

application/xml, text/xml

Sample:
<TransactionsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MDES.CustomerService.Models">
  <Transactions>
    <Transaction>
      <CurrencyCode>sample string 2</CurrencyCode>
      <MerchantCategoryCode>sample string 8</MerchantCategoryCode>
      <MerchantCategoryDescription>sample string 9</MerchantCategoryDescription>
      <MerchantName>sample string 7</MerchantName>
      <POSEntryMode>sample string 10</POSEntryMode>
      <TransactionAmount>sample string 3</TransactionAmount>
      <TransactionDateTime>sample string 1</TransactionDateTime>
      <TransactionStatusCode>sample string 6</TransactionStatusCode>
      <TransactionTypeCode>sample string 4</TransactionTypeCode>
      <TransactionTypeDescription>sample string 5</TransactionTypeDescription>
    </Transaction>
    <Transaction>
      <CurrencyCode>sample string 2</CurrencyCode>
      <MerchantCategoryCode>sample string 8</MerchantCategoryCode>
      <MerchantCategoryDescription>sample string 9</MerchantCategoryDescription>
      <MerchantName>sample string 7</MerchantName>
      <POSEntryMode>sample string 10</POSEntryMode>
      <TransactionAmount>sample string 3</TransactionAmount>
      <TransactionDateTime>sample string 1</TransactionDateTime>
      <TransactionStatusCode>sample string 6</TransactionStatusCode>
      <TransactionTypeCode>sample string 4</TransactionTypeCode>
      <TransactionTypeDescription>sample string 5</TransactionTypeDescription>
    </Transaction>
  </Transactions>
</TransactionsResponse>