Routes
API endpoints for managing Routes in the PayID platform.
Routes define how incoming payments are handled, including which networks and tokens are accepted, optional token swaps, and the destination wallet for final transfers.
When creating a route, consider these important factors:
Each route must have a unique combination of incoming networks and tokens per user.
Certain network-token combinations are not supported (see Unsupported Combinations section).
Users can have multiple routes with different configurations.
Create a new route for a specific user. A route defines how incoming payments should be processed. Routes must have a unique combination of incoming networks and tokens per user. Certain network-token combinations are not supported (see API description for details).
API keys are provided when a partner account is created and can be regenerated if needed.
To authenticate requests, include your API key in the request headers using the Bearer token format:
Authorization: Bearer your-api-key
Required Permissions
The following permissions are required for the Routes endpoints:
- route:create - Create new routes for users associated with your partner account
- route:read - View routes for users associated with your partner account
- route:update - Modify route information for users associated with your partner account
- route:delete - Delete routes for users associated with your partner account
ID of the user this route belongs to
38acfa0a-74a6-4e37-9168-eeddacc36444Name of the route. Minimum length: 1 character.
my first route everList of incoming wallet addresses that can use this route. The system performs minimal validation - verify addresses are valid for the corresponding blockchain.
["0x9c02cBF68E61591A2d8f05dF3318e244768f7ec0","0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"]Network to swap on (optional). If provided, swapToken must also be specified.
Token to swap to (optional). If provided, swapNetwork must also be specified.
Destination wallet address where funds will be sent. The system performs minimal validation - ensure you're providing a valid blockchain address for the corresponding network.
0x9c02cBF68E61591A2d8f05dF3318e244768f7ec0Route created successfully
Invalid input data
Unauthorized
User not found
Server error
Unsupported Combinations
The following network - token combinations are not supported:
OP
POL
OP
BNB
BASE
USDT
BASE
BNB
BASE
POL
Retrieve all routes for a specific user.
API keys are provided when a partner account is created and can be regenerated if needed.
To authenticate requests, include your API key in the request headers using the Bearer token format:
Authorization: Bearer your-api-key
Required Permissions
The following permissions are required for the Routes endpoints:
- route:create - Create new routes for users associated with your partner account
- route:read - View routes for users associated with your partner account
- route:update - Modify route information for users associated with your partner account
- route:delete - Delete routes for users associated with your partner account
ID of the user to get routes for
Routes retrieved successfully
Invalid input
Unauthorized
User not found
Server error
Update an existing route by ID. Supports partial updates.
API keys are provided when a partner account is created and can be regenerated if needed.
To authenticate requests, include your API key in the request headers using the Bearer token format:
Authorization: Bearer your-api-key
Required Permissions
The following permissions are required for the Routes endpoints:
- route:create - Create new routes for users associated with your partner account
- route:read - View routes for users associated with your partner account
- route:update - Modify route information for users associated with your partner account
- route:delete - Delete routes for users associated with your partner account
ID of the route to update
ID of the user this route belongs to. This is required as an authorization check, not as a field to update.
38acfa0a-74a6-4e37-9168-eeddacc36444Name of the route. Minimum length: 1 character.
my first route everList of incoming wallet addresses
["0x9c02cBF68E61591A2d8f05dF3318e244768f7ec0","0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"]Network to swap on (optional)
Token to swap to (optional)
ETHPossible values: Destination wallet address. Minimal validation is performed - ensure it's a valid address for the network.
0x9c02cBF68E61591A2d8f05dF3318e244768f7ec0Route updated successfully
Invalid input data
Unauthorized
Forbidden - User does not have access to this route
Route or user not found
Server error
Delete a route by ID.
API keys are provided when a partner account is created and can be regenerated if needed.
To authenticate requests, include your API key in the request headers using the Bearer token format:
Authorization: Bearer your-api-key
Required Permissions
The following permissions are required for the Routes endpoints:
- route:create - Create new routes for users associated with your partner account
- route:read - View routes for users associated with your partner account
- route:update - Modify route information for users associated with your partner account
- route:delete - Delete routes for users associated with your partner account
ID of the route to delete
ID of the user this route belongs to
38acfa0a-74a6-4e37-9168-eeddacc36444Route deleted successfully
Invalid input data
Unauthorized
Forbidden - User does not have access to this route
Route or user not found
Server error
Last updated
Was this helpful?

