Amount
Describes an amount of money. It is used to describe a payment, for example when an user makes a donation. The amount includes the Blink fee and the payment processor fees.
Example
{
"currency": "usd",
"amount": "2.00",
"amountInSubunits": 200,
"amountPrecise": 2000000,
"amountPreciseExponent": 6
}
Description
| name | type | always present | description |
|---|---|---|---|
currency | String | ☑ | currency ISO 4217 code (i.e. usd/gbp/eur) |
amount | String | ☑ | amount expressed in currency units |
amountInSubunits | Number | ☑ | amount expressed in currency subunits |
amountPrecise | Number | ☑ | amount expressed with more precision : amount x 10 ᵃᵐᵒᵘⁿᵗᴾʳᵉᶜⁱˢᵉᴱˣᵖᵒⁿᵉⁿᵗ |
amountPreciseExponent | Number | ☑ | the power of 10 used to define amountPrecise |