application/json

Body

Responses

  • 200

    200 OK

    Hide response attribute Show response attribute object
  • 400

    400 Bad Request

    Hide response attributes Show response attributes object
    • errorCode string Required

      Values are internal, invalidAmount, badInput, transactionTooLarge, unsupportedLocation, notEnabled, paymetNotFound, wrongAccount, alreadyCancelled, authMissing, or authInvalid.

    • errorMessage string Required
  • 401

    401 Unauthorized

    Hide response attributes Show response attributes object
    • errorCode string Required

      Values are internal, invalidAmount, badInput, transactionTooLarge, unsupportedLocation, notEnabled, paymetNotFound, wrongAccount, alreadyCancelled, authMissing, or authInvalid.

    • errorMessage string Required
  • 500

    500 Internal Server Error

    Hide response attributes Show response attributes object
    • errorCode string Required

      Values are internal, invalidAmount, badInput, transactionTooLarge, unsupportedLocation, notEnabled, paymetNotFound, wrongAccount, alreadyCancelled, authMissing, or authInvalid.

    • errorMessage string Required
POST /api/payments/nano-to-usd
curl \
 -X POST https://madora.io/api/payments/nano-to-usd \
 --user "username:password" \
 -H "Content-Type: application/json" \
 -d '{"nanoAmount":"1000000000000000000000000000000"}'
Request example
{
  "nanoAmount": "1000000000000000000000000000000"
}
Response examples (200)
{
  "usdAmount": "2.05"
}
Response examples (400)
{
  "errorCode": "internal",
  "errorMessage": "string"
}
Response examples (401)
{
  "errorCode": "internal",
  "errorMessage": "string"
}
Response examples (500)
{
  "errorCode": "internal",
  "errorMessage": "string"
}