Payout

The payout session type shall be used whenever you want users to cash out their data.

In order to generate a payout through our Checkout SDK, you must create a Checkout Session. In it, there are some parameters that you will need to pay attention to (* for required fields):

  • options

    • session_type*: session type, in this case payout.

    • expiration_in_seconds: integer value. If set, the Checkout session will only remain active up until this time. If not, the default time is 300 seconds (5 minutes).

    • available_withdraw_amount*: the maximum quantity you would like to allow your client to withdraw in this transaction. Keep in mind that the user can choose to withdraw less than the available you set.

    • allow_other_pix_key: boolean value. If true, the Checkout will allow for a Pix Key different from the ones informed in the Session creation to be input. At the Cash-Out step, they will be verified and only successfully paid if the pix key belongs to the tax number initially provided. If not, the payment will fail.

  • transaction

    • tax_number*: the document/tax number (CPF/CNPJ) that represents the person you intend to pay money to.

    • phone_number: a Pix key in the format of a phone number that you would like to allow the user to select. Optional.

    • email: a Pix key in the format of an email that you would like to allow the user to select. Optional.

    • amount: This amount will be the value pre-set on the user's input field, if this amount is set larger than the available withdrawal amount, the session will be created utilizing the available_withdraw_amount field as the correct amount.

White label

You can also customize your end-user experience by utilizing the Checkout as a white label. You can do so by utilizing the options field, with the respective xxxx_color fields. Below, you can see an example of a wholly implemented customization:

Create Session

In order to create a session, you must make a POST request to /checkout/sessions with the following payload:

If you input the correct parameters, you will receive a HTTP 200 response akin to:

Flow

When making use of the Checkout, the following screens will appear:

Last updated

Was this helpful?