Financial Account Token
Parameters
financial_account_token
- Type: uuid
- Required: Yes
- Description: Customer-generated payment token used to uniquely identify the simulated payment
receipt_type
- Type: string
- Enum:
RECEIPT_CREDIT
RECEIPT_DEBIT
- Required: Yes
- Description: Receipt Type
amount
- Type: integer
- Required: Yes
- Condition: ≥ 0
- Description: Amount
memo
- Type: string
- Description: Memo
Responses
200 Created
- Type: object
- Fields:
- result: string (enum), Required
- transaction_event_token: uuid, Required
- debugging_request_id: uuid, Required
Error Codes
- 400: A parameter in the query given in the request does not match the valid queries for the endpoint.
- 401:
- User has not been authenticated
- Invalid or missing API key
- API key is not active
- Could not find API key
- Please provide API key in Authorization header
- Please provide API key in the form
Authorization: [api-key]
- Insufficient privileges. Issuing API key required
- Insufficient privileges to create virtual cards.
- 404: The specified resource was not found.
- 429: Client has exceeded the number of allowed requests in a given time period.
Example Request
curl --request POST \
--url https://sandbox.lithic.com/v1/simulate/payments/receipt \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"financial_account_token": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"token": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"receipt_type": "RECEIPT_CREDIT",
"amount": 0,
"memo": "string"
}
'```
## Example Response
```json
{
"result": "APPROVED",
"transaction_event_token": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"debugging_request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}