Skip to main content

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

Body

required

    transactionType stringrequired

    Possible values: [purchase, refund]

    Transaction type.

    transactionAmount stringrequired

    Transaction amount as an integer in the smallest denomination of the currency.

    currencyCode string

    Default value: USD

    ISO 4217 currency code.

    cardPan stringrequired

    Possible values: Value must match regular expression ^[0-9]{16}$

    Card number.

    cardExpiry stringrequired

    Possible values: Value must match regular expression ^[0-9]{6}$

    Card expiry in YYYYMM format.

    cardCvv stringrequired

    Possible values: Value must match regular expression ^[0-9]{3}$

    Card CVV.

    authorizationRequestMsg string

    requestMsg of previous authorization returned by this endpoint.

Responses

Schema

    requestMsg string

    XML formatted ISO 8583 message sent to the simulated card scheme

    responseMsg string

    XML formatted ISO 8583 message returned from the simulated card scheme

    transactionId number

    ID of the transaction

Loading...