Simulate authorization

Parameters

amount

Amount (in cents) to authorize. For credit authorizations and financial credit authorizations, any value entered will be converted into a negative amount in the simulated transaction. For example, entering 100 in this field will result in a -100 amount in the transaction. For balance inquiries, this field must be set to 0.

descriptor

Merchant descriptor.

mcc

Merchant category code for the transaction to be simulated. A four-digit number listed in ISO 18245.
Supported merchant category codes can be found here.

merchant_acceptor_id

Unique identifier to identify the payment card acceptor.

merchant_acceptor_city

Merchant acceptor city

merchant_acceptor_state

Merchant acceptor state/province (ISO 3166-2 subdivision code)

merchant_acceptor_country

Merchant acceptor country code (ISO 3166-1 alpha-3)

merchant_amount

Amount of the transaction to be simulated in currency specified in merchant_currency, including any acquirer fees.

merchant_currency

3-character alphabetic ISO 4217 currency code. Note: Simulator only accepts USD, GBP, EUR and defaults to GBP if another ISO 4217 code is provided

pan

Sixteen digit card number.

partial_approval_capable

Set to true if the terminal is capable of partial approval otherwise false. Partial approval is when part of a transaction is approved and another payment must be used for the remainder.

pin

Simulate entering a PIN. If omitted, PIN check will not be performed.

status

Responses

200 OK

400 Bad Request

401 Unauthorized

422 Unprocessable Entity

429 Too Many Requests

Example Request

curl --request POST \
     --url https://sandbox.lithic.com/v1/simulate/authorize \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '  
{  
  "amount": 3831,  
  "descriptor": "COFFEE SHOP",  
  "merchant_acceptor_city": "LOS ANGELES",  
  "merchant_acceptor_state": "CA",  
  "merchant_acceptor_country": "USA",  
  "pan": "4111111289144142",  
  "status": "AUTHORIZATION"  
}  
'  

Example Response

{  
  "debugging_request_id": "d31645af-da9e-4952-b7dc-3ffb06618b39",  
  "token": "fabd829d-7f7b-4432-a8f2-07ea4889aaac"  
}