Documentation V3
  • Localpayment documentation V3
  • INTRODUCTION TO OUR SOLUTION
    • Intro to our Documentation
    • Intro to Payment Methods in Emerging Markets
    • Merchant Dashboard
      • Dashboard Navigation
      • Login
      • User Roles
      • Roles
      • Users
      • Whitelist your IPs
      • Whitelist your BINs
      • Setup your Webhooks
      • Reports
        • Balance
        • Projected Balance
        • Activity
        • Transaction Detail
        • FIDES Report
      • Virtual accounts
      • Refunds
        • Refund Bank Transfer
        • Refund Card Capture
        • Refund Cash
      • Chargeback
      • Internal Domestic Transfer
      • Internal Foreign Transfer
      • Currency Exchange
        • Create
      • Wire In
      • Wire Out
    • Intro to FX operations
    • Business definitions
      • Payins
      • Payouts
    • Onboarding & Integration
    • Postman Collection
  • ENVIRONMENTS
    • Environments
  • BEFORE A PAYMENT
    • Access Token
    • Validations
      • Document Validation
      • Bank Account Validation
      • Validate BIN
    • Holidays
    • Search Payment Method
    • Search Bank Codes
    • Cash Agents Geolocalization
    • Installments Plan Quote
    • Currency Exchange Quote
    • Billing Service
      • Create
        • Mexico
      • Check Billing status
      • Download Billing
  • REQUEST A PAYMENT
    • Payins
      • Bank Transfer
        • Direct debit
          • DEBIN (Argentina)
          • Transfiya (Colombia)
          • Wallet Fri (Guatemala)
        • Virtual Account
          • Mexico
            • Request Individual
            • Request Batch
            • Check Virtual account
            • Delete Virtual account
            • Enable or Disable Virtual Account
          • Brazil
            • Request Individual
            • Check Virtual account
            • Alias ​​configuration
          • Argentina
            • Request Individual
            • Request Batch
            • Check virtual account
            • Delete Virtual account
          • Refund Virtual Account
        • Online Reference Code Payments
          • Mexico
        • Refund Bank Transfer
        • Cancel
        • APMs
          • CODI (Mexico)
          • ETPAY (Chile)
          • Fintoc (Chile)
          • Boleto (Brazil)
          • PIX (Brazil)
            • Refund Pix
          • PSE (Colombia)
          • QR (Bolivia)
          • QR (Guatemala)
          • QR (Argentina)
          • QR (Perú)
      • Cash
        • Cash
          • APMs
            • Boleto (Brazil)
        • Cancel
        • Refund Cash
      • Debit Card
        • Capture
        • Refund Capture
      • Credit Card
        • Capture
        • Create Authorization
        • Capture Authorization
        • Cancel Authorization
        • Refund Capture
        • Installments
        • Save Cards
          • Save Card
          • Get Card
          • Delete Card
        • 3D-Secure
        • Validate card
        • Chargebacks
          • Notification
          • Send documentation
          • Close Chargeback
    • Payin Subscriptions
      • Create a subscription
      • Update subscription
      • Cancel
    • Payin Subscriptions Plan
      • Create subscription plan
      • Update subscription plan
      • Get subscription plan
    • Payouts
      • Search available banks
      • Create
        • Argentina
        • Bolivia
        • Brazil
        • Chile
        • Colombia
          • Colombia ACH
          • Colombia Transfiya
        • Costa Rica
        • Dominic Republic
        • Guatemala
        • Honduras
        • Mexico
        • Panama
        • Peru
        • Kenya
      • Manual Upload
        • Create Batch Upload
        • Batch Pending Authorization
        • Cancel Batch Pending Authorization
        • Batch Activity
      • Proof of Payment (POP)
      • Cancel
      • Commit payout
      • Attach documents
      • Ripplenet getway
    • Payouts Double Signature
      • Authorize
    • Checkout
      • Webcheckout
        • Credit Card
        • Debit Card
        • Cash
        • Bank Transfer
      • Link Payment
      • Frequent Items
      • Iframe
      • Smart Checkout/ iframe
      • Virtual Pos
      • Plugins
        • Magento
        • Shopify
        • Google Pay
        • WooCommerce
  • AFTER A PAYMENT
    • Check Status
    • Check Payment
    • Check Payment list
    • Check Subscription
    • Account Balance
      • Balance Reconciliation
      • Current Balance Amount
    • Withholding Certificates
    • Proof of Payment
    • RFI - Documentation
  • SETTLEMENT & EXCHANGE
    • Wire In
    • Wire Out
    • Currency Exchange Bulk
      • Quote
      • Bulk
      • Currency exchange - Front end
    • Internal Transfers
      • Internal Domestic Transfer
      • Internal Foreign Transfer
  • NOTIFICATIONS
    • Callbacks - Webhooks
      • Configurations
      • Payins
        • Payin Bank Transfer
        • PSE Colombia
        • Payin Virtual Account
        • Payin Cash
        • Payin Credit Card
        • Payin Debit Card
      • Payouts
    • SFTP- Email Reports
  • API REFERENCE GUIDE
    • Validation Error Codes
    • Transaction Type & Status
      • Payin
      • Subscriptions
      • Payout
      • Chargeback
      • Credit
      • Currency Exchange
      • Debit
      • Expenses
      • Internal Transfer
      • Recall
      • Refund
      • Return
      • Recurring Fee
      • Wire in
      • Wire out
    • Payout Methods + SLA
      • Latam
    • Payin Methods + SLA
      • Argentina
      • Bolivia
      • Brazil
      • Chile
      • Colombia
      • Dominican Republic
      • Guatemala
      • Mexico
      • Panama
      • Peru
    • Currency Codes
      • Latam
    • Country Codes
      • Latam
    • Bank codes
      • Latam
        • Argentina
        • Bolivia
        • Brazil
        • Chile
        • Colombia
        • Costa Rica
        • Dominican Republic
        • Guatemala
        • Honduras
        • Mexico
        • Panamá
        • Peru
    • Bank account validations
      • Latam
        • Argentina
        • Bolivia
        • Brazil
        • Chile
        • Colombia
        • Costa Rica
        • Dominican Republic
        • Guatemala
        • Mexico
        • Panama
        • Peru
    • Document Validations
      • Argentina
      • Bolivia
      • Brazil
      • Chile
      • Colombia
      • Costa Rica
      • Dominican Republic
      • El Salvador
      • Guatemala
      • Honduras
      • Mexico
      • Panama
      • Peru
    • Concept Codes
  • FLOWS AND CHARACTERISTICS
    • Account Currencies
    • Involved Parties
    • Payin Status Flow
      • Payins
        • Payin Status Flow - Card
        • Payin Status Flow - Bank
        • Payin Status Flow -Cash
      • Refund - Card
      • Refund - Cash & Bank
      • Chargeback
    • Payout Status Flow
      • Payout - Bank
      • Return
      • Recall
    • Payin Subscription Flow
      • Payins Subscription Status Flow - Card
    • Virtual Account Status Flow
    • Settlement Status Flow
      • Wire In
      • Wire Out
    • Payin Methods Flow
      • Argentina
      • Bolivia
      • Brazil
      • Chile
      • Colombia
      • Dominican Republic
      • Guatemala
      • Honduras
      • Mexico
      • Panama
      • Peru
  • HOLIDAYS
    • 2021
    • 2022
    • 2023
    • 2024
    • 2025
  • COMPLIANCE
    • Values
    • Prohibited Countries
    • Prohibited Business
    • Compliance Program Docs
    • Licenses
    • Terms & Conditions
  • GLOSSARY
    • Payments Explained
    • FAQ
  • PLUGINS
    • Magento
    • Shopify
    • Google Pay
    • WooCommerce
    • Ripplenet
Powered by GitBook
On this page
  • Currency Exchange Quote
  • Example: Currency Exchange Quote for PAYINS
  • Example: Currency Exchange Quote for PAYOUTS

Was this helpful?

  1. BEFORE A PAYMENT

Currency Exchange Quote

Get a response with the FX rate and the time duration plus a token. You will be able to send it in the payment request in order to trace and assure the FX rate.

The FX rate is updated every 60 seconds by default. If you need a different configuration, please request a custom frecuency to our team.

The exchange rate token can be configured to have a lifetime of between 1 minute and up to 1 day. The expiration is to request a transaction within that time range, once the transaction has been created with the exchange rate token, the quoted FX will appear in the payment and also the payments will have their own, unrelated expiration time with the expiration of the exchange rate token.

Currency Exchange Quote

GET {{api_environment_url}}/api/fx/currency-exchange/:type

This endpoint allows you to get FX quotes.

Path Parameters

Name
Type
Description

type*

string

Mandatory. Add the transaction type: payin or payout

Query Parameters

Name
Type
Description

sourceCurrency*

string

Mandatory. The currency that you use to fund a currency conversion

quoteCurrency*

string

Mandatory. The quote currency which is the second currency appearing in a currency pair quotation

accountNumber*

string

Mandatory. The Localpayment account which you are working with

Headers

Name
Type
Description

Authorization*

string

Mandatory. Bearer JWT token in format Bearer eyJ0... . For more information about authentication, please refer to Authentication

[
    {
        "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
        "transactionType": "payin",
        "accountNumber": "032.840.00000001",
        "sourceCurrency": "USD",
        "createdOn": "2021-06-01T13:48:00.441+00:00",
        "expiredOn": "2021-06-01T13:49:00.441+00:00",
        "quotes": [
            {
                "paymentMethodCode": "1004",
                "rate": 94.721048,
                "quoteCurrency": "ARS"
            },
            {
                "paymentMethodCode": "1008",
                "rate": 94.721048,
                "quoteCurrency": "ARS"
            }
        ]
    }
]      
{
    "timestamp": "2021-06-01T13:55:35.999+00:00",
    "status": 400,
    "error": "Bad Request",
    "message": "Required String parameter 'source' is not present",
    "path": "/fx/currency-exchange/currency-layer"
}
{
    "detail": "Given token not valid for any token type",
    "code": "token_not_valid",
    "messages": [
        {
            "token_class": "AccessToken",
            "token_type": "access",
            "message": "Token is invalid or expired"
        }
    ]
}

Example: Currency Exchange Quote for PAYINS

curl --location  \
--request GET '{{api_environment_url}}/api/fx/currency-exchange/payin?sourceCurrency=USD&quoteCurrency=ARS&accountNumber=032.840.00000001' \
--header 'Authorization: Bearer {{token}}'
{
    "exchangeRateToken": "ba60cbfe-5faa-41d5-991e-5ffe5e63e43c",
    "transactionType": "PayIn",
    "accountNumber": "074.840.00000001",
    "sourceCurrency": "USD",
    "creationDate": "2022-04-07T18:16:43.6498861+00:00",
    "expirationDate": "2022-04-07T18:46:43.6498861+00:00",
    "quotes": [
        {
            "paymentMethodCode": "1314",
            "rate": 4.819123,
            "quoteCurrency": "BRL"
        }
    ]
}

Example: Currency Exchange Quote for PAYOUTS

curl --location  \
--request GET '{{api_environment_url}}/api/fx/currency-exchange/payout?sourceCurrency=USD&quoteCurrency=ARS&accountNumber=032.840.00000017' \
--header 'Authorization: Bearer {{token}}'
{
    "exchangeRateToken": "14b23df8-f87f-4495-b6ee-7db71a17bfcd",
    "transactionType": "PayOut",
    "accountNumber": "032.840.00000017",
    "sourceCurrency": "USD",
    "creationDate": "2023-01-31T13:48:17.3005611+00:00",
    "expirationDate": "2023-01-31T16:00:17.3005611+00:00",
    "quotes": [
        {
            "paymentMethodCode": "0010",
            "rate": 178.996012,
            "quoteCurrency": "ARS"
        }
    ]
}
PreviousInstallments Plan QuoteNextBilling Service

Last updated 1 year ago

Was this helpful?