Submit Simulator Authorization
POST/api/simulator/authorize
This endpoint can be used to test authorizing a transaction on a simulated card network.
An incremental authorization can be tested by creating an initial authorization
then including the requestMsg
from this response in the request body of a subsequent authorization.
Request
- application/json
Body
required
Possible values: [purchase
, refund
]
Transaction type.
Transaction amount as an integer in the smallest denomination of the currency.
Default value: USD
ISO 4217 currency code.
Possible values: Value must match regular expression ^[0-9]{16}$
Card number.
Possible values: Value must match regular expression ^[0-9]{6}$
Card expiry in YYYYMM format.
Possible values: Value must match regular expression ^[0-9]{3}$
Card CVV.
requestMsg of previous authorization returned by this endpoint.
Responses
- 200
- 400
- 403
- application/json
- Schema
- Example (from schema)
Schema
XML formatted ISO 8583 message sent to the simulated card scheme
XML formatted ISO 8583 message returned from the simulated card scheme
ID of the transaction
{
"requestMsg": "string",
"responseMsg": "string",
"transactionId": 0
}
Request fields are invalid
- application/json
- Schema
- Example (from schema)
Schema
{
"statusCode": 400,
"statusName": "Bad Request",
"errorCode": "BAD_REQUEST",
"errors": [
"Expected string, received number"
]
}
No Authorization to access resource.
- application/json
- Schema
- Example (from schema)
Schema
{
"statusCode": 403,
"statusName": "Forbidden",
"errorCode": "FORBIDDEN",
"reason": "Unauthorized"
}