> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vitawallet.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Create payin

> Please use this endpoint to create a new payment order. Upon successful creation, you will receive a detailed response containing the data of the new payment order, along with a URL. This URL can be utilized to proceed with payment through one of the providers configured for your account. If a webhook URL is configured for your account, you will automatically receive a webhook notification once the order has been paid.

> **Note:** For more information about webhooks please go to the Webhooks Section.

#### Structure

| Field | Description |
| --- | --- |
| `currency_destiny` | Indicates the ISO currency code in which the owner of the payment link will receive the funds. Example: COP, USD, USDT, USDC, |
| `is_receive` | If true → The amount represents the value that the owner of the payment link will receive (in their configured currency). If false → The amount represents the value that the customer will pay in their local currency. |
| `amount` | Amount in the local currency of the destination country for the payment order. |
| `country_iso_code` | ISO code for the destination country. |
| `issue` | Issue for the payment order. |
| `success_redirect_url` | URL to redirect in case of success. When the payment is successful, the flow will be redirected to this URL. |
| `cancel_redirect_url` | URL to redirect in case of cancel. If the end customer decides not to proceed with the payment, they will be redirected to this URL and the payment link will remain in pending status. |
| `error_redirect_url` | URL to redirect in case of error. If the provider throws an error, you will be redirected to this URL and the payment link will remain in pending status. |
| `pending_redirect_url` | URL to redirect in case of pending. You will be redirected to this URL if the supplier has not yet responded to us regarding the payment. NOTE: You can perform long polling on the endpoint that allows you to check the status of a payment attempt. |



## OpenAPI

````yaml /openapi.yaml post /api/businesses/payment_orders
openapi: 3.0.0
info:
  title: Vita Business API
  description: >-
    Vita Wallet Business API — integra payins, payouts, exchange, transactions,
    users y webhooks para operar pagos en LatAm y el mundo.
  version: 1.0.0
  contact:
    name: Vita Wallet Support
    url: https://vitawallet.io
    email: empresas@vitawallet.io
servers:
  - url: https://api.vitawallet.io
    description: Production
  - url: https://api.stage.vitawallet.io
    description: Sandbox
security:
  - xLogin: []
    xTransKey: []
    xDate: []
    hmacSignature: []
tags:
  - name: Create Payin
  - name: Direct Payment
  - name: Exchange
  - name: Vita Sent
  - name: Bank Payouts
  - name: External Crypto Payouts
  - name: Transactions
  - name: Users Creation
  - name: User Information
  - name: Webhooks
externalDocs:
  url: https://vitawallet.io
  description: Vita Wallet
paths:
  /api/businesses/payment_orders:
    post:
      tags:
        - Create Payin
      summary: Create payin
      description: >-
        Please use this endpoint to create a new payment order. Upon successful
        creation, you will receive a detailed response containing the data of
        the new payment order, along with a URL. This URL can be utilized to
        proceed with payment through one of the providers configured for your
        account. If a webhook URL is configured for your account, you will
        automatically receive a webhook notification once the order has been
        paid.


        > **Note:** For more information about webhooks please go to the
        Webhooks Section.


        #### Structure


        | Field | Description |

        | --- | --- |

        | `currency_destiny` | Indicates the ISO currency code in which the
        owner of the payment link will receive the funds. Example: COP, USD,
        USDT, USDC, |

        | `is_receive` | If true → The amount represents the value that the
        owner of the payment link will receive (in their configured currency).
        If false → The amount represents the value that the customer will pay in
        their local currency. |

        | `amount` | Amount in the local currency of the destination country for
        the payment order. |

        | `country_iso_code` | ISO code for the destination country. |

        | `issue` | Issue for the payment order. |

        | `success_redirect_url` | URL to redirect in case of success. When the
        payment is successful, the flow will be redirected to this URL. |

        | `cancel_redirect_url` | URL to redirect in case of cancel. If the end
        customer decides not to proceed with the payment, they will be
        redirected to this URL and the payment link will remain in pending
        status. |

        | `error_redirect_url` | URL to redirect in case of error. If the
        provider throws an error, you will be redirected to this URL and the
        payment link will remain in pending status. |

        | `pending_redirect_url` | URL to redirect in case of pending. You will
        be redirected to this URL if the supplier has not yet responded to us
        regarding the payment. NOTE: You can perform long polling on the
        endpoint that allows you to check the status of a payment attempt. |
      operationId: create-payin
      requestBody:
        content:
          application/json:
            schema:
              type: object
              example:
                amount: 100000
                country_iso_code: MX
                issue: This is a test
                success_redirect_url: https://www.google.com/success
                cancel_redirect_url: https://www.google.com/cancel
                error_redirect_url: https://www.google.com/error
                pending_redirect_url: https://www.google.com/pending
      responses:
        '201':
          description: Resource created successfully.
          content:
            application/json:
              examples:
                Success:
                  summary: Success
                  value:
                    data:
                      id: 11
                      type: payment_order
                      attributes:
                        public_code: bd20882d-455b-4ide-9d1d-d2afi850c27f
                        issue: This is a test
                        status: pending
                        success_redirect_url: https://www.google.com/success
                        cancel_redirect_url: https://www.google.com/cancel
                        error_redirect_url: https://www.google.com/error
                        pending_redirect_url: https://www.google.com/pending
                        currency_destiny:
                          iso_code: USD
                          singular_name: Dólar estadounidense
                          plural_name: Dólares estadounidenses
                        source_currency:
                          iso_code: ARS
                          singular_name: Peso argentino
                          plural_name: Pesos argentinos
                        country:
                          iso_code: AR
                          name: Argentina
                          default_currency:
                            iso_code: ARS
                            singular_name: Peso argentino
                            plural_name: Pesos argentinos
                        amount: 10000
                        url: https://app.vitawallet.io/s/uwN88
                        expires_at: '2026-10-05T14:22:06Z'
                        created_at: '2026-10-05T13:22:06Z'
                        paid_at: null
                        paid_attempt: null
                PayinWithOtherCurrencyDestiny:
                  summary: Payin with other currency destiny
                  value:
                    data:
                      id: 11
                      type: payment_order
                      attributes:
                        public_code: bd20882d-455b-4ide-9d1d-d2afi850c27f
                        issue: This is a test
                        status: pending
                        success_redirect_url: https://www.google.com/success
                        cancel_redirect_url: https://www.google.com/cancel
                        error_redirect_url: https://www.google.com/error
                        pending_redirect_url: https://www.google.com/pending
                        currency_destiny:
                          iso_code: USD
                          singular_name: Dólar estadounidense
                          plural_name: Dólares estadounidenses
                        source_currency:
                          iso_code: ARS
                          singular_name: Peso argentino
                          plural_name: Pesos argentinos
                        country:
                          iso_code: AR
                          name: Argentina
                          default_currency:
                            iso_code: ARS
                            singular_name: Peso argentino
                            plural_name: Pesos argentinos
                        amount: 10000
                        url: https://app.vitawallet.io/s/uwN88
                        expires_at: '2026-10-05T14:22:06Z'
                        created_at: '2026-10-05T13:22:06Z'
                        paid_at: null
                        paid_attempt: null
        '422':
          description: Error response.
          content:
            application/json:
              example:
                error:
                  code: 500
                  message: Payment order success redirect URL is not valid
components:
  securitySchemes:
    xLogin:
      type: apiKey
      in: header
      name: x-login
      description: Business xLogin
    xTransKey:
      type: apiKey
      in: header
      name: x-trans-key
      description: Business xTransKey
    xDate:
      type: apiKey
      in: header
      name: x-date
      description: ISO8601 datetime
    hmacSignature:
      type: apiKey
      in: header
      name: Authorization
      description: 'V2-HMAC-SHA256 signature. Example: `V2-HMAC-SHA256, Signature: <hash>`'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.