> For the complete documentation index, see [llms.txt](https://docs.pagsmile.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pagsmile.com/reference/payin/submit-a-payin/venezuela/debito-inmediato.md). Agents can also search and read this documentation through its [MCP server](https://docs.pagsmile.com/~gitbook/mcp).

# Débito Inmediato

Use this endpoint to create a Débito Inmediato checkout payment in Venezuela. After the payment request is created, redirect the customer to the returned `web_url` to select a bank and complete the payment.

Payments are confirmed in real time after the customer completes the payment. Transaction limits vary by bank.

{% hint style="warning" %}
Refunds are not supported for this payment method.
{% endhint %}

### Endpoint

<mark style="color:green;">`POST`</mark> `https://gateway-test.pagsmile.com/trade/create`

### Request headers

| Header          | Required | Description                                               |
| --------------- | -------- | --------------------------------------------------------- |
| `Content-Type`  | Yes      | Fixed value: `application/json; charset=UTF-8`.           |
| `Authorization` | Yes      | Basic authentication using `Base64(app_id:security_key)`. |

### Request body

| Parameter         | Type    | Required | Constraints                                                                                                                                                     | Description                                                            |
| ----------------- | ------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| `app_id`          | string  | Yes      | Use the App ID assigned by Pagsmile.                                                                                                                            | Merchant application ID.                                               |
| `out_trade_no`    | string  | Yes      | Maximum length: 64 characters. Must be unique for the merchant application.                                                                                     | Merchant order number.                                                 |
| `order_currency`  | string  | Yes      | Fixed value: `VES`.                                                                                                                                             | Payment currency.                                                      |
| `method`          | string  | Yes      | Fixed value: `DebitoInmediato`.                                                                                                                                 | Payment method.                                                        |
| `order_amount`    | decimal | Yes      | Supports up to two decimal places. Transaction limits vary by bank.                                                                                             | Payment amount in VES.                                                 |
| `subject`         | string  | Yes      | Maximum length: 128 characters.                                                                                                                                 | Payment subject or order title.                                        |
| `trade_type`      | string  | Yes      | Fixed value: `Web`.                                                                                                                                             | Indicates that the payment is completed on the Pagsmile checkout page. |
| `content`         | string  | No       | Maximum length: 255 characters.                                                                                                                                 | Payment description or order details.                                  |
| `timestamp`       | string  | Yes      | Format: `yyyy-MM-dd HH:mm:ss`.                                                                                                                                  | Time at which the request is sent.                                     |
| `notify_url`      | string  | Yes      | Must be a valid URL beginning with `http://` or `https://`. HTTPS is recommended.                                                                               | Merchant endpoint that receives asynchronous payment notifications.    |
| `buyer_id`        | string  | Yes      | Maximum length: 128 characters.                                                                                                                                 | Merchant-side customer ID.                                             |
| `version`         | string  | No       | Default value: `2.0`.                                                                                                                                           | API version.                                                           |
| `timeout_express` | string  | No       | Use a positive integer followed by `m`, `h`, or `d`, such as `90m`, `24h`, or `15d`. The effective validity period is from 1 minute to 15 days. Default: `90m`. | Payment session validity period.                                       |

### Request example

```json
{
  "app_id": "16***04",
  "out_trade_no": "out_trade_no_3275**33",
  "order_currency": "VES",
  "method": "DebitoInmediato",
  "order_amount": "15.31",
  "subject": "pagsmile test",
  "trade_type": "Web",
  "content": "pagsmile test",
  "timestamp": "2026-10-29 18:50:42",
  "notify_url": "https://merchant.example.com/payment/notify",
  "buyer_id": "buyer123",
  "version": "2.0",
  "timeout_express": "21500m"
}
```

### Response example

```json
{
  "code": "10000",
  "msg": "Success",
  "out_trade_no": "out_trade_no_327***833",
  "trade_no": "2026***00136",
  "web_url": "https://checkout-test.pagsmile.com?prepay_id=QTZJd***24F2c2",
  "prepay_id": "QTZJdW****F2c2"
}
```

### Complete the payment

1. Redirect the customer to the complete `web_url` returned by Pagsmile.
2. Allow the customer to select a supported bank and complete the payment on the checkout page.
3. Use the payment notification or the Payin Detail API to determine the final payment status.

{% hint style="warning" %}
A response with `code=10000` confirms only that the payment request was created. Confirm the final payment result through the asynchronous notification or the Payin Detail API before delivering goods or services.
{% endhint %}
