Get Chip Info

GET /mintchip/info/{responseformat}

Returns information on the authenticated MintChip.


Request Parameters

URI Parameters Description
{responseformat} Specifies the format of the response. Can be either "xml" or "json".

Example URL

https://remote.mintchipchallenge.com/mintchip/info/json

Example Response (JSON)

{ 
    "id":"1110000000000005", 
    "currencyCode":1, 
    "balance":7500, 
    "creditLogCount":5, 
    "debitLogCount":20, 
    "creditLogCountRemaining":495,
    "debitLogCountRemaining":480, 
    "maxCreditAllowed":50000,
    "maxDebitAllowed":7500, 
    "version":"2.6" 
}

Example Response (XML)


    <id>1110000000000005</id>
    1 
    7500 
    5 
    20
    495 
    480
    50000 
    7500 
    <version>2.6</version> 

Notes:

  1. The three monetary values, balance, maxcreditallowed and maxdebitallowed are represented in cents.
  2. The maxcreditallowed and maxdebitallowed are limits which are applicable only to the next transaction. These limits may change as the MintChip creates and accepts new transactions.
  3. A currencycode of 1 represents $CAD.
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. For example,

452 - "Unable to find HSM mapping"