> For the complete documentation index, see [llms.txt](https://docs.smartfastpay.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.smartfastpay.com/methods-and-markets/payin/latam/colombia/pse-by-checkout.md).

# PSE by Checkout

Call the Payments API to request payments via PSE on Colombia

***

### <mark style="color:orange;">POST</mark> /v2/transaction/checkout

{% hint style="info" %}
**Request**
{% endhint %}

{% code overflow="wrap" %}

```bash
curl -v --location --request POST 'https://sandbox.smartfastpay.com/v2/transaction/checkout' \
    --header 'Content-Type: application/json' \
    --header 'Authorization: Bearer <Access-Token>' \
    --data-raw '{
        "customer": {
            "id": "2663ded1-874a-480a-8b0e-8f6117415a70",
            "name": "John Doe",
            "email": "john.doe@teste.com",
            "document": {
                "type": "CC",
                "number": "12345678"
            },
            "phone": "+573041093694",
            "address": {
                "address_1": "Dare Groves",
                "address_2": null,
                "number": "130",
                "neighborhood": "Courtney Jacobi",
                "city": "East Savionbury",
                "state": "CUN",
                "postal_code": "757126",
                "country_code": "COL"
            }
        },
        "country": "COL",
        "payment_method": ["pse"],
        "notification_url": "https://annalise.net",
        "transaction": {
            "id": "37e9d594-630c-412c-b8d0-9a7e00cb5b14",
            "currency": "COP",
            "amount": 34.74,
            "redirect_url": "https://www.smartfastpay.com/"
        }
    }'
```

{% endcode %}

{% hint style="info" %}
**Parameters details**
{% endhint %}

<table><thead><tr><th width="266">Parameter</th><th width="120" align="center">Type</th><th align="center">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>customer.id</code></td><td align="center"><mark style="color:red;"><code>string</code></mark></td><td align="center"><strong>yes</strong></td><td>Unique identifier for the customer in your system. This value should remain consistent across all transactions for the same customer</td></tr><tr><td><code>customer.name</code></td><td align="center"><mark style="color:red;"><code>string</code></mark></td><td align="center"><strong>yes</strong></td><td>The full name of the customer making the payment. It should match the name on the customer's identification documents</td></tr><tr><td><code>customer.email</code></td><td align="center"><mark style="color:red;"><code>string</code></mark></td><td align="center">no</td><td>The email address of the customer. This will be used for sending payment confirmations and notifications</td></tr><tr><td><code>customer.phone</code></td><td align="center"><mark style="color:red;"><code>string</code></mark><br><mark style="color:red;"><code>(E.164)</code></mark></td><td align="center">no</td><td>The phone number of the customer, including the country code. This parameter may be optional or required depending on the payment method used.<br><a href="https://www.twilio.com/docs/glossary/what-e164">https://www.twilio.com/docs/glossary/what-e164</a></td></tr><tr><td><code>customer.birthdate</code></td><td align="center"><mark style="color:red;"><code>string</code></mark></td><td align="center">no</td><td>The birthdate of the customer, provided in the format <code>mm-dd-yyyy</code>. This parameter may be required depending on the country regulations or the payment method</td></tr><tr><td><code>customer.document.number</code></td><td align="center"><mark style="color:red;"><code>string</code></mark><br><mark style="color:red;"><code>Format: 99999999999 / 9999999999999</code></mark></td><td align="center"><strong>yes</strong></td><td>The official identification number of the customer. This is typically a national ID, or other government-issued document</td></tr><tr><td><code>customer.document.type</code></td><td align="center"><mark style="color:red;"><code>string</code></mark></td><td align="center"><strong>yes</strong></td><td>The type of document provided by the customer. Common types include national ID, or driver's license. <a href="/thesmartway/api-requests/document-type.md">List of documents allowed</a>.</td></tr><tr><td><code>customer.address.addres_1</code></td><td align="center"><mark style="color:red;"><code>string</code></mark></td><td align="center"><strong>yes</strong></td><td>The primary street address of the customer </td></tr><tr><td><code>customer.address.addres_2</code></td><td align="center"><mark style="color:red;"><code>string</code></mark></td><td align="center"><strong>yes</strong></td><td>Additional address information, such as apartment number or suite</td></tr><tr><td><code>customer.address.city</code></td><td align="center"><mark style="color:red;"><code>string</code></mark></td><td align="center"><strong>yes</strong></td><td>The city in which the customer resides</td></tr><tr><td><code>customer.address.country_code</code></td><td align="center"><mark style="color:red;"><code>string</code></mark></td><td align="center"><strong>yes</strong></td><td>The ISO 3166-1 alpha-3 country code for the customer's address. <a href="/thesmartway/api-requests/country-codes.md">List of country codes.</a></td></tr><tr><td><code>customer.address.neightborhood</code></td><td align="center"><mark style="color:red;"><code>string</code></mark></td><td align="center"><strong>yes</strong></td><td>The neighborhood or district of the customer's address</td></tr><tr><td><code>customer.address.number</code></td><td align="center"><mark style="color:red;"><code>string</code></mark></td><td align="center"><strong>yes</strong></td><td>The street number of the address</td></tr><tr><td><code>customer.address.postal_code</code></td><td align="center"><mark style="color:red;"><code>string</code></mark></td><td align="center"><strong>yes</strong></td><td>The postal or ZIP code for the customer's address</td></tr><tr><td><code>customer.address.state</code></td><td align="center"><mark style="color:red;"><code>string</code></mark></td><td align="center"><strong>yes</strong></td><td>The state or region of the customer's address </td></tr><tr><td><code>transaction.id</code></td><td align="center"><mark style="color:red;"><code>string</code></mark></td><td align="center"><strong>yes</strong></td><td>A unique identifier for the transaction. This ID should be generated by your system to track the specific payment process</td></tr><tr><td><code>transaction.currency</code></td><td align="center"><mark style="color:red;"><code>string</code></mark></td><td align="center"><strong>yes</strong></td><td>The currency in which the transaction is being conducted. Use standard ISO 4217 currency codes (e.g., COP). <a href="/thesmartway/api-requests/currency-codes.md">List of currency codes</a><br><strong>Default: COP</strong></td></tr><tr><td><code>transaction.amount</code></td><td align="center"><mark style="color:red;"><code>decimal</code></mark><br><mark style="color:red;"><code>(10,2)</code></mark></td><td align="center"><strong>yes</strong></td><td>The total amount of the transaction in the specified currency. This value should be a numeric amount (use dot instead of comma)<br><mark style="color:red;"><code>Eg: 300.10</code></mark></td></tr><tr><td><code>transaction.expire</code></td><td align="center"><mark style="color:red;"><code>integer (11)</code></mark></td><td align="center">no</td><td>The time in seconds until the transaction expires and is no longer valid</td></tr><tr><td><code>transaction.redirect_url</code></td><td align="center"><mark style="color:red;">url</mark></td><td align="center">no</td><td>The URL to which the customer will be redirected after completing the payment. This parameter is optional and typically used for providing a success or failure page</td></tr><tr><td><code>branch</code></td><td align="center"><mark style="color:red;"><code>string</code></mark><br><mark style="color:red;"><code>min: 1 | max: 255</code></mark></td><td align="center">no</td><td>The specific branch or location identifier where the transaction is being processed, if applicable</td></tr><tr><td><code>country</code></td><td align="center"><mark style="color:red;"><code>string</code></mark></td><td align="center"><strong>yes</strong></td><td>The country code where the transaction is taking place. The format is <code>ISO 3166-1 alpha-3</code> (e.g., COL). <a href="/thesmartway/api-requests/country-codes.md">List of country codes.</a></td></tr><tr><td><code>payment_method</code></td><td align="center"><mark style="color:red;"><code>array ["pse"] min:1 | max: 1</code></mark></td><td align="center"><strong>yes</strong></td><td>The method of payment being used for the transaction, such as bank transfer, credit card...</td></tr><tr><td><code>notification_url</code></td><td align="center"><mark style="color:red;"><code>string</code></mark></td><td align="center"><strong>yes</strong></td><td>The URL to which payment notifications will be sent. Ensure this URL is accessible and configured to handle the notification format</td></tr></tbody></table>

{% hint style="info" %}
**Response (URL)**
{% endhint %}

```json
{
	"requestId": "885b5a8b3b6d618fc00af18acfc6398e\/5600721297656558446;o=1",
	"data": {
		"url": "https:\/\/sandbox-checkout.smartfastpay.com\/v1\/67407dc8-594d-4bcd-ba31-asdf\/cHNl\/eyJkb2N1bWVudCI6eyJ0eXBlIjoiQ0MiLCJudW1iZXIiOiIxMjM0NTY3OCJ9LCJwaG9uZSI6Iis1NzMwNTEwMDAwMDIiLCJhZGRyZXNzIjp7ImFkZHJlc3NfMSI6IkRhcmUgR3JvdmVzIiwiYWRkcmVzc18yIjpudWxsLCJudW1iZXIiOiIxMzAiLCJuZWlnaGJvcmhvb2QiOiJDb3VydG5leSBKYWNvYmkiLCJjaXR5IjoiRWFzdCBTYXZpb25idXJ5Iiwic3RhdGUiOiJDVU4iLCJwb3N0YWxfY29kZSI6Ijc1NzEyNiIsImNvdW50cnlfY29kZSI6IkNPTCJ9LCJleHRyYSI6eyJiYW5rX2NvZGUiOiIxMDIy9999",
		"transaction_id": "67407dc8-594d-4bcd-ba31-ab5ff17ddfdd",
		"expires_in": 1727202935
	}
}
```

{% hint style="info" %}
**Response details following the link:** [**overview**](/methods-and-markets/payin/overview.md)
{% endhint %}

<table><thead><tr><th width="296">Parameter</th><th>Description</th></tr></thead><tbody><tr><td>transaction_<code>id</code></td><td>A unique identifier for the response generated by the payment system, used to track the transaction. Can be used to verify the payment status in the<br><a href="/thesmartway/api-requests/transactions.md"> <mark style="color:green;"><strong>GET</strong> /transaction/{id}</mark></a> endpoint</td></tr><tr><td><code>expires_in</code></td><td>The time in seconds until the transaction expires and is no longer valid</td></tr><tr><td><code>url</code></td><td>The URL provided to the customer for completing the payment.</td></tr></tbody></table>

{% hint style="info" %}
**Response (HTML)**
{% endhint %}

<div><figure><img src="https://content.gitbook.com/content/nuIDlPYNfNFiZPgmfSit/blobs/0IzNZc9nmPliMAMojmuZ/initial.png" alt=""><figcaption></figcaption></figure> <figure><img src="https://content.gitbook.com/content/nuIDlPYNfNFiZPgmfSit/blobs/A5dH0wKi8rWws8jU3sO0/payment_method.png" alt=""><figcaption></figcaption></figure></div>

<div><figure><img src="https://content.gitbook.com/content/nuIDlPYNfNFiZPgmfSit/blobs/yu2Dd1CbOX7aY2yOpIMr/pix%20(1).png" alt=""><figcaption></figcaption></figure> <figure><img src="https://content.gitbook.com/content/nuIDlPYNfNFiZPgmfSit/blobs/QS9WnJOoh5VEMVz6ZrJW/picpay.png" alt=""><figcaption></figcaption></figure></div>

<div><figure><img src="https://content.gitbook.com/content/nuIDlPYNfNFiZPgmfSit/blobs/QScTueq7vMAwPRHW4KnM/bank-transfer.png" alt=""><figcaption></figcaption></figure> <figure><img src="https://content.gitbook.com/content/nuIDlPYNfNFiZPgmfSit/blobs/8cwl7nCGwwW96OrcUrZO/boleto-1.png" alt=""><figcaption></figcaption></figure> <figure><img src="https://content.gitbook.com/content/nuIDlPYNfNFiZPgmfSit/blobs/Q1T13IlxJRybUl3PHmyc/boleto-2.png" alt=""><figcaption></figcaption></figure></div>
