Get Credit Log Entries

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

Description

Retrieves a list of log-entries for value accepted by 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 log entries, from index 0 to index 1, in JSON format.

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

[{ 
    "amount": 500
    "challenge":"AA01FE50", 
    "index":0, 
    "logType":0, 
    "payerId":"1210000010104206", 
    "payeeId":"1110000010100005", 
    "transactionTime":"February 13, 2012, 9:15:13 PM", 
    "currencyCode":1
},
{ 
    "amount": 250
    "challenge":"113C9F2B", 
    "index":1, 
    "logType":0, 
    "payerId":"1210000011110206", 
    "payeeId":"1110000010100005", 
    "transactionTime":"February 13, 2012, 11:16:23 PM", 
    "currencyCode":1

}]

Example Response (XML)

     
         
            500 
            AA01FE50 
            0 
            0 
            1210000010104206 
            1110000010100005 
            February 13, 2012, 9:15:13 PM 
            1 
         
         
            250 
             113C9F2B  
            1 
            0 
            1210000011110206 
            1110000010100005 
            February 13, 2012, 11:16:23 PM 
            1 
         
    

Notes:

  1. The amount is specified in cents
  2. A currencyCode value of 1 represents $CAD
  3. The transactionTime represents the time the value was created (not when it was accepted.) If the value was created on the Remote MintChip server, the time-zone is GMT. If not, the time-zones may vary and are local to the device that generated the value-message.

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.