Documentation v1.0.0

PicPay

Call the PicPay API to request payments via PicPay Pix.

POST
/picpay
Request
 
                                                            
                                                                curl -v --location --request POST 'https://sandbox.smartfastpay.com/picpay' \
                                                                    --header 'Content-Type: application/json' \
                                                                    --header 'Authorization: Bearer < Access-Token >' \
                                                                    --data-raw '{
                                                                        "customer_id": "58f0c005-3b7d-4c75-81f3-93b9a6fee864",
                                                                        "name": "Richard Roe",
                                                                        "email": "richard@roe.com",
                                                                        "document": "16972691419",
                                                                        "amount": 300,
                                                                        "currency": "USD",
                                                                        "callback": "http://mysite.com/api/notification",
                                                                        "transaction": {
                                                                            "id": "b08e3897-6505-4bb4-81a5-6e3a1d29e277"
                                                                        }
                                                                    }'
                                                            
                                                        
Parameters details
 
Parameter Type Description
customer_id string
min: 1 | max: 255
required The customer id stored on your platform for future identification.
branch string
min: 1 | max: 255
optional When the merchant needs to keep track of its various offices / branch, this field must be fill.
name string
min: 3 | max: 150
required Name of the customer who started the transaction.
email string
min: 30 | max: 255
required Email of the customer who started the transaction.
document string
Format: 99999999999
required Brazilian document (CPF) of the customer who started the transaction.
- Must be a valid CPF document;
Eg: 12345678909
amount decimal (10,2)
min: 2
required The amount that the client specified when initiating the transaction showed IN DOLLARS (use dot instead of comma)
Eg: 300.10
currency string (3)
(USD or BRL)
min: 3 | max: 3
optional The currency type that the amount will be credited. If USD is provided there will be a conversion from USD to BRL, if BRL is provided there will be no conversion.

This parameter is optional, if currency isn't provided it will auto-select USD.
Default: USD
callback string
min: 30 | max: 250
(Method: POST)
required The URL in you site that our API will notify when the payment changes the status, the HTTP supported method should be HTTP
Eg: http://my-url-callback/
transaction
id string
min: 1 | max: 255
required The id of the transaction generated in you platform.
Response
 
                                                            
                                                                    {
                                                                        "requestId": "2840429ae5547ede3850f7464ec3a1cd\15166459175723748126;o=1",
                                                                        "data": {
                                                                            "id": "11acb6a4-ea1d-4bf6-a87d-3f7b5c0340f9",
                                                                            "status": "pending",
                                                                            "payment": {
                                                                                "method": "picpay"
                                                                            },
                                                                            "values": {
                                                                                "total": "28.00",
                                                                                "subtotal": "28.00",
                                                                                "exchange": "1.00",
                                                                                "fee": 0
                                                                            },
                                                                            "pix": {
                                                                                "qrcode": "00...014COM.PICPAY.P2B0164https:\\app.picpay.com\checkout\NjQzNTVhNDc3OW...AY6009SAO PAULXXXXX",
                                                                                "reference": "00...00014COM.PICPAY.P2B0164https:\\app.picpay.com\checkout\NjQzNTVhNDc3OWN...06PICPAY6009SAO PAULXXXX",
                                                                                "beneficiary": "SmartFastPay",
                                                                                "expires_in": 1681219918
                                                                            },
                                                                            "picpay": {
                                                                                "url": "https:\\app.picpay.com\checkout\NjQzNTVhNDc3OWNiYzk0MTBjN2ViMWU2"
                                                                            }
                                                                        }
                                                                    }
                                                            
                                                        
Important
 
  • This payment method is different from the PIX
  • PicPay does not have copy and paste
  • Need the PicPay app installed
  • Use picpay > url to open PicPay checkout
Response details
 
Parameter Description
id The created payment by the request made unique identificator. Can be used to verify the payment status in the GET /payment/{id} endpoint
status The current status of the payment. These are our statuses: pending, paid, denied, expired
payment
method picpay
values
total The full value of the transaction, including service fees. Decimal separator it a dot
subtotal The value of the transaction, without service fees. Decimal separator it a dot
exchange The exchange rate applied to the current transaction
fee The service fee value
pix
qrcode String that contains the information of the qrcode. It is necessary to use some programming resource to convert this text into an image.
reference String that contains the information of the copy and paste pix (pix copia e cola).
beneficiary Name of the owner of the account to which the deposit is going to be direct
picpay
url String to open PicPay checkout.