Wyre Documentation
  • 📡Wyre Documentation
  • Home
  • 👥Account Onboarding
    • Account Overview
    • Use Cases
    • Pricing
    • API Calls
      • Create Account
      • Get Account
      • Update Account
      • Upload Document
  • 🔗Wallets
    • Use Cases
    • Managing Wallets
      • Creating a Wallet
      • Create Mulitple Wallets
      • Lookup Wallet
      • Edit Wallet
      • List Wallets
      • Delete Wallet
    • Wallet Callbacks
  • 💳Payments
    • Limits + Coverage
    • Pricing
    • Chargeback + Risk
    • Accepted Payment Methods
    • Global Card Processing
      • Hosted Redirect Operation
      • Browser Dialog (Popup) Operation
      • Understanding Transaction Statuses
        • Wallet Order Errors and Exceptions (Failure Reasons)
      • Additional Widget Functionality and Features
        • Checking Limits
        • Tracking Orders
      • Widget FAQs
      • ⚠️ Wallet Order Reservations | Required! ⚠️
      • API Calls To Help Monitor Transactions
        • Track Widget Order
        • Check A User's Transaction Limits
        • Check Supported Countries
      • Client-Side Encryption 👻
  • 🌏Global Payouts
    • Use Cases
    • Limits + Coverage
    • Pricing
    • Supported Countries
    • Country Requirements
    • 🔥Blockchain + Banks
    • 🔥Instant Payouts to Debit Card
  • 💱Foreign Exchange
    • Exchange Rates
  • Methodologies
  • Payment Methods
    • API Calls
      • Creating a Payment Method- ACH
      • List Payment Methods
      • Create a Payment Method- Wire Transfer
      • Get Payment Method
      • Attach Blockchain to Payment Method
  • Transfers
    • API Calls
      • Creating a Transfer
      • Confirm a Transfer
      • Get Transfer
      • Transfer History
  • Data Subscriptions
    • Subscribe Webhook
    • Get Subscriptions
    • Delete Webhook
  • Resources
  • ✅Going Live
  • Testing Enviornment
  • Understanding API Errors
  • System Resource Name
  • Rate Limiting
  • Authentication & Key Management
    • Authorization Tokens
    • Create an API Key
    • Delete an API Key
    • Authentication Code Examples
  • Wyre Brand Assets
    • 🎨Color Palette And Wyre Logos
  • Links
    • 🧪Test Wyre Dashboard
    • 🗣️ Wyre's Discord
Powered by GitBook
On this page

Was this helpful?

  1. Payments
  2. Global Card Processing
  3. API Calls To Help Monitor Transactions

Check A User's Transaction Limits

PreviousTrack Widget OrderNextCheck Supported Countries

Last updated 4 years ago

Was this helpful?

To quote current limits you should place a POST call with the target billing address that will be used in the order. a country must be a valid 2 characters country code.

The limit check conditions are as follows: Daily limits, Weekly limits, Yearly limits

The parameter accountId is completely optional. For partners with custom limits, they must include their Wyre's accountId so users will inherit custom limits. If no specified will fall back to standard limits.

If the user exceeds the daily limit, but still has a weekly limit to spend they should wait until the next day. Any order above dailyRemaining, weeklyRemaining or yearlyRemaining will reject the order causing a failure.

POST https://api.sendwyre.com/v3/widget/limits/calculate

Request Body

Name
Type
Description

walletType

string

Wallet type, must be either APPLE_PAY or DEBIT_CARD

address

string

The address must include street1, city, state, postalCode, and country. See the example payload below

accountId

string

Partner account ID

{
    "dailyTotalSpent": 0.00,
    "weeklyTotalSpent": 2.00,
    "yearlyTotalSpent": 23.15,
    "dailyTotal": 260.00,
    "weeklyTotal": 1000.00,
    "yearlyTotal": 1500.00,
    "dailyRemaining": 260.00,
    "weeklyRemaining": 998.00,
    "yearlyRemaining": 1476.85
}

Example

curl -X POST \
  API_URL/v3/widget/limits/calculate \
  -H 'Content-Type: application/json' \
  -d '{
  "walletType": "DEBIT_CARD",
  "accountId": "AA_BBCCDDEEDD",
  "address": {
    "street1": "1550 Bryant Street",
    "city": "San Francisco",
    "state": "CA",
    "postalCode": "94103",
    "country": "US"
  }
}'
💳
ISO 3166-1 alpha-2