Get Debit Log Entries

GET /mintchip/payments/{startindex}/{stopindex}/{responseformat}

Description

Retrieves a list of value-creation log-entries present on the authenticated MintChip.

Request Parameters

URI Parameters Description
{startindex} specifies the index of the first log entry to return.
{stopindex} specifies the index of the last log entry to return.
{responseformat} specifies the format of the response. Can be either "xml" or "json".

The startindex and stopindex parameters should be specified using base-0 (0 is the index of the first log entry.)

To determine how many log entries exist, the GET /mintchip/info/json service can be used beforehand.

Example URL

Returns the first 2 value-creation log entries, from index 0 to index 1, in JSON format.

https://remote.mintchipchallenge.com/mintchip/payments/0/1/json

Example Response (JSON)

[{ 
    "amount": 500
    "challenge":"FA5E25AA", 
    "index":0, 
    "logType":1, 
    "payerId":"1110000000000005", 
    "payeeId":"1210000010104206", 
    "transactionTime":"February 14, 2012, 9:26:23 PM", 
    "currencyCode":1
},
{ 
    "amount": 250
    "challenge":"B57F3924", 
    "index":1, 
    "logType":1, 
    "payerId":"1110000000000005", 
    "payeeId":"1210000011110206", 
    "transactionTime":"February 14, 2012, 11:26:23 PM", 
    "currencyCode":1
}]

Example Response (XML)

     
         
            500 
            FA5E25AA 
            0 
            1 
            1110000000000005 
            1210000010104206 
            February 14, 2012, 9:26:23 PM  
            1 
         
         
            250 
            B57F3924 
            1
            1 
            1110000000000005 
            1210000011110206 
            February 14, 2012, 11:26:23 PM  
            1 
         
    

Notes:

  1. The amount is specified in cents
  2. A currencyCode value of 1 represents $CAD
  3. The transactionTime is the time of value-creation by the Remote MintChip server. The time-zone is GMT.

Custom HTTP error codes

Error Meaning
452 System related
453 Crypto related
454 Format related
455 MintChip related

In all cases, the HTTP status message describes the details of the error.