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

post
/routes

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).

Authorizations
AuthorizationstringRequired

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
Body
userIdstring · uuidRequired

ID of the user this route belongs to

Example: 38acfa0a-74a6-4e37-9168-eeddacc36444
namestringRequired

Name of the route. Minimum length: 1 character.

Example: my first route ever
incomingWalletsstring[]Optional

List of incoming wallet addresses that can use this route. The system performs minimal validation - verify addresses are valid for the corresponding blockchain.

Example: ["0x9c02cBF68E61591A2d8f05dF3318e244768f7ec0","0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"]
swapNetworkstring · enum | nullableOptional

Network to swap on (optional). If provided, swapToken must also be specified.

Possible values:
swapTokenstring · enum | nullableOptional

Token to swap to (optional). If provided, swapNetwork must also be specified.

Possible values:
outgoingWalletstringRequired

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.

Example: 0x9c02cBF68E61591A2d8f05dF3318e244768f7ec0
Responses
post
/routes

Unsupported Combinations

The following network - token combinations are not supported:

Network
Token

OP

POL

OP

BNB

BASE

USDT

BASE

BNB

BASE

POL

Get all routes for a user

get
/routes/{userId}

Retrieve all routes for a specific user.

Authorizations
AuthorizationstringRequired

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
Path parameters
userIdstring · uuidRequired

ID of the user to get routes for

Responses
200

Routes retrieved successfully

application/json
get
/routes/{userId}

Update an existing route

put
/routes/{id}

Update an existing route by ID. Supports partial updates.

Authorizations
AuthorizationstringRequired

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
Path parameters
idstring · uuidRequired

ID of the route to update

Body
userIdstring · uuidRequired

ID of the user this route belongs to. This is required as an authorization check, not as a field to update.

Example: 38acfa0a-74a6-4e37-9168-eeddacc36444
namestringOptional

Name of the route. Minimum length: 1 character.

Example: my first route ever
incomingWalletsstring[]Optional

List of incoming wallet addresses

Example: ["0x9c02cBF68E61591A2d8f05dF3318e244768f7ec0","0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"]
swapNetworkstring · enum | nullableOptional

Network to swap on (optional)

Possible values:
swapTokenstring · enumOptional

Token to swap to (optional)

Example: ETHPossible values:
outgoingWalletstringOptional

Destination wallet address. Minimal validation is performed - ensure it's a valid address for the network.

Example: 0x9c02cBF68E61591A2d8f05dF3318e244768f7ec0
Responses
200

Route updated successfully

application/json
put
/routes/{id}

Delete a route

delete
/routes/{id}

Delete a route by ID.

Authorizations
AuthorizationstringRequired

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
Path parameters
idstring · uuidRequired

ID of the route to delete

Body
userIdstring · uuidRequired

ID of the user this route belongs to

Example: 38acfa0a-74a6-4e37-9168-eeddacc36444
Responses
200

Route deleted successfully

application/json
delete
/routes/{id}

Last updated

Was this helpful?