---
title: "Create test payment details"
method: POST
path: "/testPaymentData"
tags: ["Test payment data"]
---

# Create test payment details

`POST /testPaymentData`

## Request body

- object
  - `type` 'visa' | 'mastercard' | 'diners club international' | 'jcb' | 'maestro' | 'sepa' | 'discover' | 'unionpay' | 'unionpay (19 digits)', required — Test payment data type
  - `emulate3ds` boolean, required — Set to <b>true</b> to emulate the 3DS flow for this test payment data
  - `balance` integer, required — Balance of the test payment details
  - `currency` 'USD' | 'EUR' | 'GBP', ISO3, required — Currency of operation in ISO3 format
  - `allowedIps` string[], required — Allowed IPs array
  - `comment` string — Optional comment for additional context

## Response `200`

OK

- object
  - `id` string — Unique test payment ID
  - `type` string — Test payment data type
  - `emulate3ds` boolean — Set to <b>true</b> to emulate the 3DS or SCA authentication process for this transaction
  - `number` string — Test payment data
  - `balance` integer — Test payment data balance
  - `blocked` boolean — Set to <b>true</b> to emulate blocked payment amount
  - `allowedIps` string[] — List of allowed IPs
  - `createdAt` integer — Date when test payment details were created
  - `updatedAt` integer — Date when test payment details were updated
  - `comment` string — Comment for additional context

## Other responses

- `500` — Internal Server Error

---

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