PSE

Call the Payments API to request payments via PSE on Colombia


POST /v2/transaction/checkout

Request

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": "+573051000002",
            "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/"
        }
    }'

Parameters details

Parameter
Type
Required
Description

customer.id

string

yes

Unique identifier for the customer in your system. This value should remain consistent across all transactions for the same customer

customer.name

string

yes

The full name of the customer making the payment. It should match the name on the customer's identification documents

customer.email

string

yes

The email address of the customer. This will be used for sending payment confirmations and notifications

customer.phone

string (E.164)

no

customer.birthdate

string

no

The birthdate of the customer, provided in the format mm-dd-yyyy. This parameter may be required depending on the country regulations or the payment method

customer.document.number

string Format: 99999999999 / 9999999999999

yes

The official identification number of the customer. This is typically a national ID, or other government-issued document

customer.document.type

string (CPF or CNPJ)

yes

customer.address.addres_1

string

no

The primary street address of the customer

customer.address.addres_2

string

no

Additional address information, such as apartment number or suite

customer.address.city

string

no

The city in which the customer resides

customer.address.country_code

string

no

customer.address.neightborhood

string

no

The neighborhood or district of the customer's address

customer.address.number

string

no

The street number of the address

customer.address.postal_code

string

no

The postal or ZIP code for the customer's address

customer.address.state

string

no

The state or region of the customer's address

transaction.id

string

yes

A unique identifier for the transaction. This ID should be generated by your system to track the specific payment process

transaction.currency

string (BRL or USD)

yes

transaction.amount

decimal (10,2)

yes

The total amount of the transaction in the specified currency. This value should be a numeric amount (use dot instead of comma) Eg: 300.10

transaction.expire

integer (11)

no

The time in seconds until the transaction expires and is no longer valid

transaction.redirect_url

url

no

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

branch

string min: 1 | max: 255

no

The specific branch or location identifier where the transaction is being processed, if applicable

country

string

yes

payment_method

array ["pse"] min:1 | max: 1

yes

The method of payment being used for the transaction, such as bank transfer, credit card...

notification_url

string

yes

The URL to which payment notifications will be sent. Ensure this URL is accessible and configured to handle the notification format

Response (URL)

{
	"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
	}
}

Response details following the link: overview

Parameter
Description

transaction_id

expires_in

The time in seconds until the transaction expires and is no longer valid

url

The URL provided to the customer for completing the payment.

Response (HTML)

Last updated