Raise a customer's limits with KYC
Read a customer's tier, caps and headroom, and lift a limits pause by completing their KYC and resuming the transfer.
This recipe reads a customer's tier, caps and headroom, and lifts a limits pause by completing the customer's KYC and resuming the transfer.
Who it is for. A remittance app whose user Kofi tries to send 800.00 USD. The app's support team must tell him why the transfer paused and what will lift the pause.
Status. Available when your business's limits policy is set to enforce. In off and shadow mode nothing pauses.
Money example
On the standard limits, with your policy set to enforce:
none, with caps of 500.00 USD a day, 2,500.00 a week and 5,000.00 a month.remaining_usd shows 300.00.basic, with a cap of 50,000.00 USD a day, a week and a month.Before you start
next_tier from the API. Never hard-code them.Find out what is required
tier_code is the current tier. tier_assignment kyc means the tier comes from KYC. operator means Gravv set it by hand.windows holds the cap, the amount used and the amount remaining for each window. A null cap means no cap for that window.next_tier holds the caps the customer gets one tier up.The standard tiers:
| Tier | How a customer gets it | Daily | Weekly | Monthly |
|---|---|---|---|---|
none | No completed KYC | 500.00 | 2,500.00 | 5,000.00 |
basic | basic KYC completed, for people, associated persons and businesses | 50,000.00 | 50,000.00 | 50,000.00 |
intermediate | Not yet available. No API starts this level |
Steps
1. Check before a large payout
Read the limits as above. If the amount is more than any remaining_usd, expect a pause.
2. Recognize the pause
The transfer request returns HTTP 200 with transfer_status paused, pause_reason daily, breached_window daily and remaining_usd 300.00. For a tier that comes from KYC, requirements lists only admin_review. You cannot send any field to prove more.
3. Lift the tier, then resume
Complete the customer's KYC (hosted page or your own documents). Then resume with an empty body and a new key. The resume runs the limit check again with the new tier.
resumed: true means the transfer continues. resumed: false lists what is still missing.
Other choices
transfer.resumed with reason released), or let it expire. On expiry, Gravv fails the transfer, refunds the fee and sends transfer.status.failed with reason limit_pause_expired. Pauses expire after 72 hours by default, and expires_at gives the exact time.remaining_usd.For more on pauses, including businesses that verify their own senders, see Stay within transfer limits.
What can go wrong
| Response | Why | Fix |
|---|---|---|
404 not found: no limits policy applies | Your business has no limits policy | Nothing is limited. Contact support if you expected limits |
404 not found: subject | The customer is unknown, or belongs to another business | Check the id and environment |
400 subject_id "abc" is not a customer id | The id is not a UUID | Send the customer id |
503 limits are temporarily unavailable, please retry (ERROR_CODE_LIMITS_UNAVAILABLE) | The limits store is unavailable | Retry |
usage_available: false, with used_usd and remaining_usd null | Gravv could not read usage, but the caps are still right | Retry for usage |
422 transfers are not permitted for this sender (ERROR_CODE_SUBJECT_BLOCKED) | Compliance blocked the customer, and blocked is true | Contact support |
410 this paused transfer has expired and can no longer be resumed; please initiate a new transfer | The pause passed expires_at | Start a new transfer |
The resume returns resumed: false | KYC is not completed yet, or the amount is still over the cap | Check the KYC status and the limits again |
Webhooks you will receive
You receive transfer.requires_information, with event_data.reason set to the window and limit_details holding breached_window, cap_usd, used_usd, remaining_usd, amount_usd, tier and requirements. Then you receive transfer.resumed, or transfer.status.failed with reason limit_pause_expired or limit_pause_cancelled. See Transfer events.
Testing in sandbox
The limits read works in sandbox. A sandbox business can carry its own policy, so the figures, the tier name and tier_assignment (which can also be default) differ from the standard ones. Read them from the call. Whether transfers pause depends on your sandbox business's mode. Ask support to set shadow or enforce for testing.