Skip to content
Merged
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
30 changes: 30 additions & 0 deletions mintlify/snippets/sending/cross-currency.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,36 @@ curl -X POST 'https://api.lightspark.com/grid/2025-10-13/quotes' \
- `SENDING`: Lock the sending amount (receiving amount calculated based on exchange rate)
- `RECEIVING`: Lock the receiving amount (sending amount calculated based on exchange rate)
</Info>

<Accordion title="Including purpose of payment">
For external account or UMA destinations, some payment corridors require a purpose of payment. Include it in the `senderCustomerInfo` object:

```json
{
"source": { "accountId": "InternalAccount:..." },
"destination": { "accountId": "ExternalAccount:...", "currency": "EUR" },
"lockedCurrencySide": "SENDING",
"lockedCurrencyAmount": 10000,
"senderCustomerInfo": {
"PURPOSE_OF_PAYMENT": "GOODS_OR_SERVICES"
}
}
```

**Purpose of payment codes:**
- `GIFT` - Personal gift
- `SELF` - Transfer to yourself
- `GOODS_OR_SERVICES` - Payment for goods or services
- `EDUCATION` - Education-related expenses
- `HEALTH_OR_MEDICAL` - Medical or healthcare expenses
- `REAL_ESTATE_PURCHASE` - Real estate transaction
- `TAX_PAYMENT` - Tax payment
- `LOAN_PAYMENT` - Loan repayment
- `UTILITY_BILL` - Utility bill payment
- `DONATION` - Charitable donation
- `TRAVEL` - Travel-related expenses
- `OTHER` - Other purpose (may require additional documentation)
</Accordion>
</Step>

<Step title="Review quote details">
Expand Down