PIX

Call the Payments API to request payments via PIX.


POST /v2/payin

Request

curl -v --location --request POST 'https://sandbox.smartfastpay.com/v2/payin' \
    --header 'Content-Type: application/json' \
    --header 'Authorization: Bearer <Access-Token>' \
    --data-raw '{
        "customer": {
            "id": "81401e09-a227-46ac-8890-03eb225a920a",
            "name": "John Doe",
            "email": "john.doe@teste.com",
            "document": {
                "type": "CPF",
                "number": "12345678909"
            },
            "phone": "+5511912345678"
        },
        "country": "BRA",
        "payment_method": "pix",
        "notification_url": "https://my-notification-url.site",
        "transaction": {
            "id": "9fff0686-6866-445b-a540-2e96d827b7d5",
            "currency": "BRL",
            "amount": 12.61
        }
    }'

Parameters details

Response

{
	"requestId": "32fd061c0204e57b3f8524fd631d39e4\/8624435106531446739;o=1",
	"data": {
		"id": "642b6be0-7f47-4a98-98f1-f074b65ec928",
		"status": "pending",
		"expires_in": 1727126892,
		"payment": {
			"method": "pix",
			"qr_code": "00020101021226790014br.gov.bcb.pix2557brcode"
		},
		"values": {
			"source_total": "12.61000000",
			"source_currency": "BRL",
			"exchanged_total": "12.61",
			"exchanged_currency": "BRL",
			"exchange": "1.00",
			"fee": "0.12610000"
		}
	}
}

Response details following the link: overview

Last updated