Skip to content

Simulate Receipt

Simulate receipt
post/v1/simulate/payments/receipt

Simulates a receipt of a Payment.

Body Parameters
tokenstring

Customer-generated payment token used to uniquely identify the simulated payment

formatuuid
amountnumber

Amount

minimum0
financial_account_tokenstring

Financial Account Token

formatuuid
receipt_typeenum
Accepts one of the following: "RECEIPT_CREDIT", "RECEIPT_DEBIT"

Receipt Type

Hide ParametersShow Parameters
"RECEIPT_CREDIT"
"RECEIPT_DEBIT"
memostring
optional

Memo

Returns
debugging_request_idstring

Debugging Request Id

formatuuid
resultenum
Accepts one of the following: "APPROVED", "DECLINED"

Request Result

Hide ParametersShow Parameters
"APPROVED"
"DECLINED"
transaction_event_tokenstring

Transaction Event Token

formatuuid
Request example Request
curl https://api.lithic.com/v1/simulate/payments/receipt \
    -H 'Content-Type: application/json' \
    -H "Authorization: $LITHIC_API_KEY" \
    -d '{
      "token": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
      "amount": 0,
      "financial_account_token": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
      "receipt_type": "RECEIPT_CREDIT"
    }'
200 Example
{
  "debugging_request_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
  "result": "APPROVED",
  "transaction_event_token": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}