These docs are for v2.5. Click to read the latest docs for v3.0.
improved

Major Minor Units

Our API values have now been improved to include and breakdown into their respective major and minor units based on their currency.

The amounts were previously exposed in this way:

"amount": {
  "value": -2323,
  "currency": "GBP"
},

They are now exposed as such:

"amount": {
  "value": -1023,
  "majorUnits": 10,
  "minorUnits": 23,
  "currency": "GBP"
},

"amount": {
  "value": -1023,
  "majorUnits": 1023,
  "minorUnits": 0,
  "currency": "JPY"
},

Value: The amount of the transaction in minor units of the currency, eg. pennies for GBP, negative means money going out of an account, positive means money coming into an account.

Major Units: The major units of the value, based on the values currency, eg. pounds for GBP.

Minor Units: The minor units of the value, based on the values currency, eg. pennies for GBP.

Currency: The currency of the amount