Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions components/grid-visualizer/src/data/account-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,4 +277,39 @@ export const accountTypeSpecs: Record<string, AccountTypeSpec> = {
],
beneficiaryRequired: false,
},
ETHEREUM_WALLET: {
accountType: 'ETHEREUM_WALLET',
fields: [
{ name: 'address', example: '0xAbCDEF1234567890aBCdEf1234567890ABcDef12' },
],
beneficiaryRequired: false,
},
AED_ACCOUNT: {
accountType: 'AED_ACCOUNT',
fields: [
{ name: 'iban', example: 'AE070331234567890123456' },
{ name: 'swiftCode', example: 'EBILAEAD', description: 'Optional' },
],
paymentRails: ['BANK_TRANSFER'],
beneficiaryRequired: true,
},
BWP_ACCOUNT: {
accountType: 'BWP_ACCOUNT',
fields: [
{ name: 'phoneNumber', example: '+26771234567' },
{ name: 'provider', example: 'ORANGE', description: 'Mobile money provider' },
],
paymentRails: ['MOBILE_MONEY'],
beneficiaryRequired: true,
},
XAF_ACCOUNT: {
accountType: 'XAF_ACCOUNT',
fields: [
{ name: 'phoneNumber', example: '+237612345678' },
{ name: 'provider', example: 'MTN', description: 'Mobile money provider' },
{ name: 'region', example: 'CM', description: 'Country code (CM or CG)' },
],
paymentRails: ['MOBILE_MONEY'],
beneficiaryRequired: true,
},
};
1 change: 1 addition & 0 deletions components/grid-visualizer/src/data/crypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export const cryptoAssets: CryptoAsset[] = [
{ type: 'SOLANA_WALLET', label: 'Wallet', network: 'Solana' },
{ type: 'POLYGON_WALLET', label: 'Wallet', network: 'Polygon' },
{ type: 'BASE_WALLET', label: 'Wallet', network: 'Base' },
{ type: 'ETHEREUM_WALLET', label: 'Wallet', network: 'Ethereum' },
],
examplePerson: { fullName: 'Alex Rivera', nationality: 'US' },
},
Expand Down
30 changes: 30 additions & 0 deletions components/grid-visualizer/src/data/currencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,4 +255,34 @@ export const currencies: FiatCurrency[] = [
allRails: ['Mobile Money'],
examplePerson: { fullName: 'Amadou Diallo', nationality: 'SN' },
},
{
code: 'AED',
name: 'UAE Dirham',
countryCode: 'ae',
accountType: 'AED_ACCOUNT',
accountLabel: 'UAE Bank Account',
instantRails: [],
allRails: ['Bank Transfer'],
examplePerson: { fullName: 'Ahmed Al-Rashid', nationality: 'AE' },
},
{
code: 'BWP',
name: 'Botswana Pula',
countryCode: 'bw',
accountType: 'BWP_ACCOUNT',
accountLabel: 'Mobile Money',
instantRails: [],
allRails: ['Mobile Money'],
examplePerson: { fullName: 'Kelebogile Mosweu', nationality: 'BW' },
},
{
code: 'XAF',
name: 'Central African CFA Franc',
countryCode: 'cm',
accountType: 'XAF_ACCOUNT',
accountLabel: 'Mobile Money',
instantRails: [],
allRails: ['Mobile Money'],
examplePerson: { fullName: 'Jean-Pierre Mbarga', nationality: 'CM' },
},
];
2 changes: 1 addition & 1 deletion mintlify/openapi.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 23 additions & 1 deletion mintlify/snippets/external-accounts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ curl -X POST 'https://api.lightspark.com/grid/2025-10-13/customers/external-acco
</Note>
</Tab>

<Tab title="Cryptocurrency">
<Tab title="Bitcoin">
**Bitcoin Lightning (Spark Wallet)**

```bash cURL
Expand All @@ -453,6 +453,28 @@ curl -X POST 'https://api.lightspark.com/grid/2025-10-13/customers/external-acco
Spark wallets don't require beneficiary information as they are self-custody wallets.
</Note>
</Tab>

<Tab title="Ethereum">
**Ethereum L1 (USDC)**

```bash cURL
curl -X POST 'https://api.lightspark.com/grid/2025-10-13/customers/external-accounts' \
-H 'Authorization: Basic $GRID_CLIENT_ID:$GRID_CLIENT_SECRET' \
-H 'Content-Type: application/json' \
-d '{
"currency": "USDC",
"platformAccountId": "usdc_eth_001",
"accountInfo": {
"accountType": "ETHEREUM_WALLET",
"address": "0xAbCDEF1234567890aBCdEf1234567890ABcDef12"
}
}'
```

<Note>
Ethereum wallets support USDC on Ethereum L1. No beneficiary information required.
</Note>
</Tab>
</Tabs>
<Tip>Use `platformAccountId` to tie your internal id with the external account.</Tip>

Expand Down
2 changes: 1 addition & 1 deletion openapi.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion openapi/paths/customers/customers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ post:
taxId: 47-1234567
countriesOfOperation:
- US
businessType: FINTECH
businessType: FINANCE_AND_INSURANCE
purposeOfAccount: Payout to contractors
sourceOfFunds: Funds derived from customer payments for software services
expectedMonthlyTransactionCount: 100_TO_500
Expand Down
Loading