Mock endpoints
Mock Deposit
Simulates a crypto deposit to a user’s account. Use this to test webhook delivery forDeposit events and to fund test accounts for subsequent operations.
Mock Fiat Deposit
Simulates a fiat (local currency) deposit. Use this to test the collect flow and onramp scenarios where a user pays in NGN.Testing workflow
A typical testing workflow looks like this:Create a test user account
Use Create Account to set up a test user. In staging, KYC can be completed with test data.
Complete KYC
Run through the KYC flow using test identity data. In staging, verification succeeds with any valid-format input.
Fetch a rate
Call Get Rate to get a conversion rate and rate key.
Initiate a ramp request
Use Onramp and Offramp to create a test transaction.
Simulate the payment
For onramp: call Mock Fiat Deposit to simulate the user’s local currency payment. For offramp: call Mock Deposit to simulate an incoming crypto payment.
Webhook testing tips
If you do not have a publicly accessible server during development, use a tunneling tool like ngrok to expose your local endpoint:https://abc123.ngrok.io/webhook) via the Update Webhook URL endpoint.
Going to production
When your staging integration is working correctly:- Swap the base URL from
https://staging-api.getpartna.com/v4tohttps://api.getpartna.com/v4 - Replace staging credentials with your production
x-api-keyandx-api-user - Update your webhook signature verification to use the production public key
- Update your webhook URL to your production endpoint