You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"## route\n\n`client.transactions.route(transaction_token: string, financial_account_token: string): void`\n\n**post** `/v1/transactions/{transaction_token}/route`\n\nRoute a card transaction to a financial account. Only available for select use cases and programs.\n\n### Parameters\n\n- `transaction_token: string`\n\n- `financial_account_token: string`\n The token of the financial account to route the transaction to.\n\n### Example\n\n```typescript\nimport Lithic from 'lithic';\n\nconst client = new Lithic();\n\nawait client.transactions.route('00000000-0000-0000-0000-000000000000', { financial_account_token: '00000000-0000-0000-0000-000000000000' })\n```",
7608
+
perLanguage: {
7609
+
typescript: {
7610
+
method: 'client.transactions.route',
7611
+
example:
7612
+
"import Lithic from 'lithic';\n\nconst client = new Lithic({\n apiKey: process.env['LITHIC_API_KEY'], // This is the default and can be omitted\n});\n\nawait client.transactions.route('00000000-0000-0000-0000-000000000000', {\n financial_account_token: '00000000-0000-0000-0000-000000000000',\n});",
7613
+
},
7614
+
python: {
7615
+
method: 'transactions.route',
7616
+
example:
7617
+
'import os\nfrom lithic import Lithic\n\nclient = Lithic(\n api_key=os.environ.get("LITHIC_API_KEY"), # This is the default and can be omitted\n)\nclient.transactions.route(\n transaction_token="00000000-0000-0000-0000-000000000000",\n financial_account_token="00000000-0000-0000-0000-000000000000",\n)',
7618
+
},
7619
+
java: {
7620
+
method: 'transactions().route',
7621
+
example:
7622
+
'package com.lithic.api.example;\n\nimport com.lithic.api.client.LithicClient;\nimport com.lithic.api.client.okhttp.LithicOkHttpClient;\nimport com.lithic.api.models.TransactionRouteParams;\n\npublic final class Main {\n private Main() {}\n\n public static void main(String[] args) {\n LithicClient client = LithicOkHttpClient.fromEnv();\n\n TransactionRouteParams params = TransactionRouteParams.builder()\n .transactionToken("00000000-0000-0000-0000-000000000000")\n .financialAccountToken("00000000-0000-0000-0000-000000000000")\n .build();\n client.transactions().route(params);\n }\n}',
0 commit comments