Test Data Generator (Sandbox-only)

Generate Test Transactions

Changed on

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 for details.

PURCHASE and CASH_WITHDRAWAL amounts must be negative or zero. PURCHASE_REFUND and PURCHASE_CHARGEBACK amounts must be positive. merchant accepts only name and externalId. Merchant country and MCC cannot be set; they are chosen at random. A card restricted to one country will decline generated purchases whenever that random country is outside the list.

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!

post/test-data-generator/transactions

Request

Request body

cardTokenstring 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. This is NOT the UUID of the card (cardId).

numberOfTransactionsinteger

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).

Response

Ok

Changes

    • breaking

      the response's body type changed from no type to object for status

    • breaking

      the response's body type changed from no type to object for status

    • breaking

      the response's body type changed from no type to object for status

    • breaking

      the response's body type changed from no type to object for status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status