---
title: "Simulate credit authorization advice"
method: POST
path: "/v1/simulate/credit_authorization_advice"
tags: ["Transaction"]
---

# Simulate credit authorization advice

`POST /v1/simulate/credit_authorization_advice`

Simulates a credit authorization advice from the card network.
This message indicates that the network approved a credit authorization on your behalf.

## Request body

- object
  - `amount` integer, required — Amount (in cents). Any value entered will be converted into a negative amount in the simulated transaction. For example, entering 100 in this field will appear as a -100 amount in the transaction.
  - `descriptor` string, required — Merchant descriptor.
  - `mcc` string — 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](https://docs.lithic.com/docs/transactions#merchant-category-codes-mccs).
  - `merchant_acceptor_id` string — Unique identifier to identify the payment card acceptor.
  - `merchant_acceptor_city` string — Merchant acceptor city
  - `merchant_acceptor_state` string — Merchant acceptor state/province (ISO 3166-2 subdivision code)
  - `merchant_acceptor_country` string — Merchant acceptor country code (ISO 3166-1 alpha-3)
  - `pan` string, required — Sixteen digit card number.

## Response `201`

OK

- object
  - `debugging_request_id` string, uuid — Debugging request ID to share with Lithic Support team.
  - `token` string, uuid — A unique token to reference this transaction.

## Other responses

- `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 | The API key used is no longer active | | Could not find API key | The API key provided is not associated with any user | | Please provide API key in Authorization header | The Authorization header is not in the request | | Please provide API key in the form Authorization: [api-key] | The Authorization header is not formatted properly | | Insufficient privileges. Issuing API key required | Write access requires an Issuing API key. Reach out at [lithic.com/contact](https://lithic.com/contact) | | Insufficient privileges to create virtual cards. | Creating virtual cards requires an additional privilege | Reach out at [lithic.com/contact](https://lithic.com/contact) |
- `422` — Unprocessable Entity.
- `429` — Client has exceeded the number of allowed requests in a given time period. | | | |---|---| | Rate limited, too many requests per second | User has exceeded their per second rate limit | | Rate limited, reached daily limit | User has exceeded their daily rate limit | | Rate limited, too many keys tried | One IP has queried too many different API keys |

---

[API](https://skmtc.net/lithic-com/apis/lithic-developer-api.md) · [All operations](https://skmtc.net/lithic-com/apis/lithic-developer-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lithic-com/lithic-developer-api/revisions/53ab5d4e2adb/schema)
