---
title: "Generate Test Transactions"
method: POST
path: "/test-data-generator/transactions"
tags: ["Test Data Generator (Sandbox-only)"]
---

# Generate Test Transactions

`POST /test-data-generator/transactions`

Generate one or multiple test transactions to test certain endpoints and/or callbacks which deal with transactions.
This endpoint is ONLY available on our sandbox environment and NOT on production. See [documentation](/docs/generate-test-transactions) for details.

Hint: The Pliant web app shows confirmed transactions as pending, since we only switch this status if the transaction is booked/settled. Keep this in mind when using this generator!

## Request body

- object
  - `cardToken` string, required — The 9-digit `token` value from the credit card the transaction(s) should be generated for. You can obtain this token from the [card details endpoint](/reference/get-multiple-card-details). This is NOT the UUID of the card (`cardId`).
  - `numberOfTransactions` integer — How many transactions should be generated?
  - `status` 'PENDING' | 'CONFIRMED' | 'DECLINED' | 'REVERSED' — Status of the transaction(s).
  - `type` 'PURCHASE' | 'CASH_WITHDRAWAL' | 'PURCHASE_CHARGEBACK' | 'PURCHASE_REFUND' | 'STATUS_INQUIRY' — Type of the transaction(s).
  - `transactionCategory` 'ADVERTISING_AND_MARKETING' | 'COMPUTING_AND_SOFTWARE' | 'EDUCATION_AND_TRAINING' | 'ELECTRONICS_AND_IT_EQUIPMENT' | 'ENTERTAINMENT_AND_WELLNESS' | 'FOOD_AND_DRINKS' | 'GIFTS_AND_VOUCHERS' | 'MATERIALS_AND_PACKAGING' | 'OFFICE_SUPPLIES_AND_EQUIPMENT' | 'SERVICES' | 'TRAVEL_AND_ACCOMMODATION' | 'HEALTHCARE' | 'OTHER' — Category of the transaction(s).
  - `amount` object
    - `value` number — The value of the monetary amount, converted to minor units of the currency. For instance 1.00 EUR is 100 cents, thus the value here is `100`. See our [guides](/docs/monetary-values) for more details about how to handle monetary amounts.
    - `currency` string — The currency of the monetary amount in ISO 4217 format, for example `EUR` for Euro or `USD` for US Dollar.
  - `fxAmount` object
    - `value` number — The value of the monetary amount, converted to minor units of the currency. For instance 1.00 EUR is 100 cents, thus the value here is `100`. See our [guides](/docs/monetary-values) for more details about how to handle monetary amounts.
    - `currency` string — The currency of the monetary amount in ISO 4217 format, for example `EUR` for Euro or `USD` for US Dollar.
  - `amountRange` object
    - `from` number
    - `to` number
    - `currency` string — The currency of the monetary amount in ISO 4217 format, for example `EUR` for Euro or `USD` for US Dollar.
  - `merchant` object
    - `name` string — Name of the merchant of this transaction.
    - `externalId` string — Identifier of the merchant at which this transaction occurred.

## Response `200`

Ok

## Other responses

- `400` — unresolved $ref
- `401` — unresolved $ref
- `403` — unresolved $ref
- `429` — unresolved $ref
- `500` — unresolved $ref

---

[API](https://skmtc.dev/getpliant/apis/pliant-customer-api.md) · [All operations](https://skmtc.dev/getpliant/apis/pliant-customer-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/getpliant/pliant-customer-api/revisions/f3f589cfa718/schema)
