Skip to content

Logo

VPago

Payment infrastructure for Latin America

Supports in this guide: Payments | Payouts

Provider website: vpago.io


What you need to do for start processing transactions (brief summary)

  1. Choose account type
  2. Get your credentials (from VPago)
  3. Connect in Dashboard
  4. Send an API request

Choose account type

VPago can be connected in different ways (depending on your needs):

  • If you do Pix payments -> choose Provider account
  • If you do Pix payouts -> choose Provider account

Both flows use the same account type and the same credentials, but each connection is made separately in the Dashboard.

If you are not sure which one to use, confirm with your Corefy account manager.


Prerequisites: get from VPago

Get the following values for your VPago project/account:

  • API key -> Corefy field api_key -> example: sk_test_51H8xKlMnOpQrStUvWxYz -> the secret key used to authorise every request; VPago issues separate keys per environment (sk_test_... for sandbox, sk_live_... for production) -> where to find: VPago backoffice / issued by VPago manager
  • Account ID -> Corefy field account_id -> example: acc_01JQ8Z5W0A1B2C3D4E5F6G7H8J -> identifies the VPago account the request is made on behalf of, and is also used as the external ID of the connected account -> where to find: VPago backoffice / issued by VPago manager

Important

An active fee configuration must exist on your VPago account before you can create payments or payouts - VPago rejects requests with MERCHANT_FEE_CONFIG_MISSING until it is in place. Ask your VPago manager to confirm it.


Payments processing (connect Provider account, create payment-invoice)

Connect Provider account in Corefy Dashboard

Step 1 - Open connection form

Open VPago in the provider directory and press Connect at VPago Provider Overview page in the New connection section. Choose Provider account.

Step 2 - Fill in fields and select settings

  • API key -> api_key
  • Account ID -> account_id
  • API URL -> api_url -> (optional, leave empty)
  • Test Mode -> (enable if you are using sandbox credentials)

Leave API URL empty: Corefy then uses https://api.vpago.io, or https://api.staging.vpago.io with Test Mode enabled. Fill it in only if VPago gave your account a different host.

Choose Currency and Features. You can set these parameters according to available currencies and features for your VPago account, but it is necessary to check details of the connection with your Corefy account manager.

Important

The API key must match the selected mode: a sk_test_... key with Test Mode enabled, a sk_live_... key with it disabled. VPago answers INVALID_AUTH_FORMAT otherwise, and the connection is not created.

Success

You have connected VPago Provider account!


First request to Corefy API (MIN)

What it does: creates a payment-invoice.

Payment - MIN

POST /api/payment-invoices

{
  "data": {
    "type": "payment-invoice",
    "attributes": {
      "reference_id": "8afec793-9b41-4dc4-b281-c76cc54ffb89",
      "service": "pix_brl_invoice",
      "currency": "BRL",
      "amount": 10
    }
  }
}

Corefy returns the Pix copy-and-paste code (EMV string) as the payment requisites; the payer scans or pastes it in their banking app.

The request above is the whole minimum: no customer block and no service_fields at all. VPago creates the Pix charge without the payer's name, email or tax ID, so you only add them when your own flow needs them.

Payment - MAX

POST /api/payment-invoices

{
  "data": {
    "type": "payment-invoice",
    "attributes": {
      "reference_id": "06fa1ea9-8a5b-4dbc-b67b-6236b3b9af3d",
      "service": "pix_brl_invoice",
      "currency": "BRL",
      "amount": 10.04,
      "description": "Order 1234",
      "expires": "2026-12-01T12:00:00+00:00",
      "customer": {
        "reference_id": "cus_123",
        "name": "John Smith",
        "email": "johnsmith@gmail.com"
      },
      "service_fields": {
        "cpf_number": "12345678900"
      }
    }
  }
}

  • description is shown on the payer's bank statement. When it is omitted, Corefy sends the payment's own reference instead, so the payment is never sent without a description.
  • service_fields.cpf_number is the payer's Brazilian tax ID (CPF or CNPJ). It is sent to VPago as the customer document with all punctuation removed, so 123.456.789-00 and 12345678900 are equivalent. When it is omitted, Corefy falls back to the customer's tax ID from the customer profile.
  • expires sets how long the Pix code stays payable. Corefy does not send the date itself: it sends a lifetime in seconds, counted from the moment the request reaches VPago, so a date you prepared minutes earlier yields a shorter lifetime than you may expect. VPago accepts 5 minutes to 24 hours, and the value is adjusted before sending:

    • more than 24 hours -> cut down to 24 hours
    • less than 5 minutes -> not sent at all, VPago applies its own default
    • omitted -> not sent at all, VPago applies its own default

    The expiry only takes effect if it is enabled on your VPago account; otherwise VPago keeps the charge payable for its own default period.


Refunds

VPago does not support refunds in this integration.


Payouts processing (connect Provider account, create payout-invoice)

Connect Provider account in Corefy Dashboard

Step 1 - Open connection form

Open VPago in the provider directory and press Connect at VPago Provider Overview page in the New connection section. Choose Provider account.

Step 2 - Fill in fields (provider -> Corefy)

  • API key -> api_key
  • Account ID -> account_id
  • API URL -> api_url -> (optional, leave empty)
  • Test Mode -> (enable if you are using sandbox credentials)

Leave API URL empty: Corefy then uses https://api.vpago.io, or https://api.staging.vpago.io with Test Mode enabled. Fill it in only if VPago gave your account a different host.

Success

You have connected VPago Provider account!


First request to Corefy API (MIN)

What it does: creates a payout-invoice.

Payout - MIN

POST /api/payout-invoices

{
  "data": {
    "type": "payout-invoice",
    "attributes": {
      "reference_id": "eae08d28-1a7a-407f-ab4d-2c8275ca7964",
      "service": "pix_brl",
      "currency": "BRL",
      "amount": 10,
      "fields": {
        "pix_key": "12345678900",
        "account_type": "CPF",
        "cpf_number": "12345678900",
        "account_holder_name": "John Smith",
        "account_holder_type": "individual"
      }
    }
  }
}

All five fields are required - VPago rejects the payout with a validation error for every field that is missing. They are optional in the service directory, so neither the Dashboard nor the API blocks the request: send them all.

  • pix_key - the recipient's Pix key itself: a CPF, a CNPJ, a phone number, an email or a random (EVP) key.
  • account_type - what the key above is: CPF, CNPJ, EVP, PHONE or EMAIL. RANDOMKEY is listed in the directory but is not accepted by VPago - send EVP for a random key.
  • cpf_number - the document of the person or company that owns the key, not the key itself: a CPF (11 digits) or a CNPJ (14 characters). Punctuation is removed before sending, so 123.456.789-00 and 12345678900 are equivalent.
  • account_holder_name - the recipient's full name, or the registered company name for a business account. 2 to 255 characters, Portuguese diacritics allowed.
  • account_holder_type - individual for a person, company for a business. No other value is accepted.

A payout to a person and a payout to a company differ only in these fields:

{
  "pix_key": "88899988811",
  "account_type": "CPF",
  "cpf_number": "888.999.888-11",
  "account_holder_name": "Jose Conceicao",
  "account_holder_type": "individual"
}
{
  "pix_key": "billing@empresa.test",
  "account_type": "EMAIL",
  "cpf_number": "12.345.678/0001-90",
  "account_holder_name": "Empresa XYZ Ltda",
  "account_holder_type": "company"
}

Corefy lower-cases account_type and account_holder_type before sending them, so EMAIL and email, Company and company are equivalent.

Payout - MAX

POST /api/payout-invoices

{
  "data": {
    "type": "payout-invoice",
    "attributes": {
      "reference_id": "58acf793-9b41-4dc4-b281-c76cc54ff230",
      "service": "pix_brl",
      "currency": "BRL",
      "amount": 10,
      "description": "Payout 1234",
      "fields": {
        "pix_key": "recipient@gmail.com",
        "account_type": "EMAIL",
        "cpf_number": "12ABC34501DE35",
        "account_holder_name": "Empresa XYZ Ltda",
        "account_holder_type": "company"
      }
    }
  }
}

description is the only optional field VPago reads for a payout; when it is omitted, Corefy sends the payout's own reference instead. customer is not forwarded to VPago at all - the recipient is identified entirely by fields.


Refunds

VPago does not support refunds in this integration. A payout that the recipient's bank returns after it was already paid arrives as a separate event and is reflected on the payout itself, not as a refund operation.


Additional info

  1. Callbacks need no setup in the VPago backoffice. Corefy registers both webhook endpoints and stores their signing secrets during the connection test.

    • For Payments endpoint is /vpago/callback
    • For Payouts endpoint is /vpago/payout-callback
  2. Payouts are paid from the available balance of your VPago account, which the connected deposit account mirrors. Top it up with successful Pix payments or with your VPago manager before sending payouts.

  3. Amounts are limited by VPago to R$ 1.00 - R$ 500,000.00 per payment and per payout.


FAQ / Troubleshooting

  • Invalid credentials / auth error -> verify the API key matches the selected environment (sk_test_... with Test Mode enabled, sk_live_... without it) and that the Account ID belongs to the same VPago account
  • Payment or payout rejected with a fee configuration error -> ask your VPago manager to activate a fee configuration on the account
  • Payout rejected for missing recipient details -> all five fields (pix_key, account_type, cpf_number, account_holder_name, account_holder_type) must be present in the request
  • Payout rejected for insufficient funds -> check the available balance of the connected deposit account before retrying
  • Currency or service is not supported -> VPago processes Pix in BRL only; confirm allowed currencies and features in your VPago account and in Corefy
  • Not sure which account type to use? -> ask your Corefy account manager

Question

Still looking for help connecting your VPago account? Please contact our support team!