8 API Reference‎ > ‎Resources‎ > ‎

Currency

Represents a currency.

Common attributes:
  • currency_code string. You can read about ISO-4217 standard currency codes at wikipedia.
  • amount integer
Distribution API specific attributes:
  • formatted_amount string.

Data examples

JSON

{
    "currency_code": "USD",
    "amount": "1099",
    "formatted_amount": "$10.99"
}

XML

<price>
    <currency_code>USD</currency_code>
    <amount>1099</amount>
    <formatted_amount>$10.99</formatted_amount>
</price>

NOTE: On submission you need to pass only currency_code and amount as formatted_amount is always set by the system.

Actions

No actions supported.


Comments