- Get your test API keys.
- Generate your JWS keys and upload them to the Dashboard.
- Get your accounts.
- Send your first transfer.
Step 1: Get your test API keys
Authenticate every interaction with the Fintoc API using your API keys. Fintoc returns an error when a request omits the API key or uses an incorrect one. Every Fintoc account has two pairs of API keys: one fortest mode and one for live mode. Each resource belongs to one mode. You cannot use a key from one mode to manage resources in the other.
Sign up in the Dashboard to create your Fintoc account and get your API keys. For this guide, use the Secret Key for test mode. Its sk_test_ prefix identifies the key’s mode.
Step 2: Register your JWS keys
To call Transfers endpoints that move money, include a JSON Web Signature (JWS). The signature protects the integrity and authenticity of the request data. To register your JWS keys, follow this guide.Step 3: Get your accounts
Use yourtest Secret Key to list your accounts through the API:
cURL
JSON
Use an SDK
Install the Python SDK or Node SDK to interact with the API. Both SDKs generate the JWS signature and handle pagination. First, install an SDK:Install Python SDK
Install Node SDK
Node
Step 4: Make your first transfer
Now create a transfer. Inlive mode, the transfer moves money to your customer’s account. In test mode, the transfer uses the same API without moving money.
Fund your test account
Yourtest account starts without funds, as does your live account. To add funds, simulate a transfer through the API or the dashboard.
Make an outbound transfer
First, sign your transfer request with a JWS. Follow the JWS signature guide to generate the signature. Use the JWS signature and theaccount_id from Step 3 to create a transfer of $590.13 MXN:
Use an SDK
Create the transfer with an SDK:Node
- Use idempotency keys to repeat requests without creating duplicate objects.
- Use account numbers to reconcile incoming transfers.
- Add metadata to attach custom data to your Fintoc objects.