Skip to content

Commit 4088263

Browse files
pengyingclaude
andcommitted
feat(transfers): allow selecting payment rail on transfer-out destination
Add an optional `paymentRail` field to the transfer-out destination, mirroring the rail selection already available on quote destinations. Introduces a dedicated `ExternalAccountDestinationReference` schema (accountId + paymentRail) so the shared `ExternalAccountReference` used by transfer-in is left unchanged. The field reuses the common `PaymentRail` enum. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent a9a1f24 commit 4088263

5 files changed

Lines changed: 47 additions & 3 deletions

File tree

mintlify/openapi.yaml

Lines changed: 15 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi.yaml

Lines changed: 15 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
type: object
2+
required:
3+
- accountId
4+
properties:
5+
accountId:
6+
type: string
7+
description: Reference to an external account ID
8+
example: ExternalAccount:e85dcbd6-dced-4ec4-b756-3c3a9ea3d965
9+
paymentRail:
10+
description: >-
11+
The payment rail to use for the transfer. Must be one of the rails
12+
supported by the destination account. If not specified, the system
13+
will select a default rail.
14+
allOf:
15+
- $ref: ../common/PaymentRail.yaml

openapi/components/schemas/transfers/TransferOutRequest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ properties:
77
$ref: ./InternalAccountReference.yaml
88
description: Source internal account details
99
destination:
10-
$ref: ./ExternalAccountReference.yaml
10+
$ref: ./ExternalAccountDestinationReference.yaml
1111
description: Destination external account details
1212
amount:
1313
type: integer

openapi/paths/transfers/transfer_out.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ post:
3131
accountId: InternalAccount:a12dcbd6-dced-4ec4-b756-3c3a9ea3d123
3232
destination:
3333
accountId: ExternalAccount:e85dcbd6-dced-4ec4-b756-3c3a9ea3d965
34+
paymentRail: ACH
3435
amount: 12550
3536
responses:
3637
'201':

0 commit comments

Comments
 (0)