POST
/
cards
/
simulator
/
authorization
curl --request POST \
  --url https://api.sandbox.sudo.cards/cards/simulator/authorization \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "cardId": "<string>",
  "channel": "web",
  "type": "purchase",
  "amount": 123,
  "currency": "NGN",
  "merchant": {
    "category": "<string>",
    "merchantId": "<string>",
    "name": "<string>",
    "city": "<string>",
    "state": "<string>",
    "country": "<string>"
  }
}'
"{}"

Authorizations

Authorization
string
header
required

Body

application/json
cardId
string
required

The _id of the card.

channel
enum<string>
default:
web
required

The channel to simulate the authorization on.

Available options:
web,
pos,
atm
type
enum<string>
default:
purchase
required

The authorization type.

Available options:
purchase,
cash_withdrawal,
deposit,
transfer,
payment
amount
number
required

The amount to simulate.

currency
enum<string>
default:
NGN
required

The currency type.

Available options:
NGN,
USD
merchant
object
required

The merchant information.

Response

200
application/json
200

The response is of type object.