PIX

Call the Payouts API to request withdrawal for your customer.


POST /v2/payout

Request

curl -v --location --request POST 'https://sandbox.smartfastpay.com/v2/payout' \
    --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": {
          "type": "CPF",
          "number": "12345678909"
        }
      },
      "country": "BRA",
      "payment_method": "pix",
      "notification_url": "http://mysite.com/api/notification",
      "transfer": {
        "value": "12345678909"
      },
      "transaction": {
        "id": "4ff7f67f-8194-4a66-903f-0600716f27e8",
        "currency": "BRL",
        "amount": 100
      }
    }'

Parameters details

Response

{
    "requestId": "de3af972e3cea7d6cd998bc4761f05f4\/15349144900800090226",
    "data": {
	"id": "2d6c4f53-8ec4-4cfc-82b7-df1bde11bf92",
	"status": "pending",
	"payment": {
	    "method": "pix"
	},
	"values": {
	    "source_total": "18.00000000",
	    "source_currency": "PEN",
	    "exchanged_total": "18.00",
	    "exchanged_currency": "PEN",
	    "exchange": "1.00",
	    "fee": "0.18000000"
	}
    }
}

Response details following the link: overview

Last updated