---
title: "Post test authorization to given card"
method: POST
path: "/test-api/authorization/card/{cardId}"
tags: ["Test authorizations"]
---

# Post test authorization to given card

`POST /test-api/authorization/card/{cardId}`

This operation will create an authorization for given cardId without notification sending. Only available in DEMO environment.

## Path parameters

- `cardId` string, biginteger, required

## Query parameters

- `auditUser` string, required

## Request body

- CreateTestTransactionResourceBody
  - `settlementAmount` number, required — Settlement amount
  - `sicCode` string, required — Standard Industrial Classification code (4 digit), any number works for testing. examples: 5542 = Automated Fuel Dispenser, 5411 = Grocery Stores,supermarkets, 5969 = Direct Marketing-Other Dire, 5734 = Computer Software Stores, 5499 = Miscellaneous Food Stores 5812 = Eating Places,Restaurants 5541 = Service Stations 5814 = Fast Food Res. 5999 = Miscellaneous & specialty 7995 = Casino 7273 = Dating Services
  - `transactionAmount` number, required — Transaction amount
  - `transactionCurrency` string, required — A valid ISO 4217 currency code
  - `transactionDate` string, date-time — The local date (and time) when the transaction was made, i.e. the date/time in the time zone of the payment terminal/merchant. Date-time format YYYY-MM-DDThh:mm:ss. Please note that the authorisation and clearing formats used by card schemes do not support conveying the time zone in which the transaction was made and may only include the date with no specific time. Enfuce relays the date and time as received from the card schemes. If not passed it's defaulted to current date-time.
  - `transactionCountry` string, required — A valid ISO 3166-1 alpha-3 country code, except for QZZ (UNMIK in Kosovo) and ROM for Romania.
  - `transactionType` 'RETAIL' | 'CASH' | 'ATM' | 'CREDIT' | 'UNIQUE' | 'CHPAYMENT' | 'CHDEBIT', required
  - `transactionCity` string, required — Transaction city
  - `transactionDetails` string, required — Merchant name
  - `merchantId` string — Merchant Id
  - `authCode` string — Auth code
  - `sourceNumber` string — Source number
  - `retRefCode` string — Ret ref code

## Response `201`

Successful creation of the product

- ResourceResponse
  - `description` string — Short description of the result of the action
  - `id` string — Will contain the ID of the resource that has been created or updated

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — API is having problems

---

[API](https://skmtc.net/enfuce/apis/transfer-api.md) · [All operations](https://skmtc.net/enfuce/apis/transfer-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/enfuce/transfer-api/revisions/dc4a41118f80/schema)
