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
If a transaction fails, Grid initiates a refund automatically. You'll receive `OUTGOING_PAYMENT.REFUND_PENDING` followed by `OUTGOING_PAYMENT.REFUND_COMPLETED` or `OUTGOING_PAYMENT.REFUND_FAILED`. The transaction's `refund` object tracks the refund status and reference.
145
148
146
-
```bash
147
-
curl -X GET 'https://api.lightspark.com/grid/2025-10-13/transactions/Transaction:019542f5-b3e7-1d02-0000-000000000015' \
When the transaction status changes to `COMPLETED`, the funds have been successfully transferred to the external account.
153
-
</Check>
149
+
<Info>
150
+
For the full state diagram, refund object details, and all webhook scenarios (including bank returns and manual cancellations), see the [Transaction Lifecycle](/platform-overview/core-concepts/transaction-lifecycle) guide.
151
+
</Info>
154
152
</Step>
155
153
</Steps>
156
154
@@ -159,9 +157,14 @@ curl -X GET 'https://api.lightspark.com/grid/2025-10-13/transactions/Transaction
|`PENDING`| Transfer initiated and awaiting processing |
160
+
|`EXPIRED`| Quote wasn't executed before the expiry window |
162
161
|`PROCESSING`| Transfer in progress through the payment rail |
163
162
|`COMPLETED`| Transfer successfully completed |
164
-
|`FAILED`| Transfer failed (see error details) |
163
+
|`FAILED`| Transfer failed — accompanied by a `failureReason`|
164
+
165
+
<Info>
166
+
For the full state diagram including refund tracking and edge cases like bank returns, see the [Transaction Lifecycle](/platform-overview/core-concepts/transaction-lifecycle) guide.
167
+
</Info>
165
168
166
169
## Cross-Currency Transfers
167
170
@@ -259,7 +262,7 @@ curl -X POST 'https://api.lightspark.com/grid/2025-10-13/quotes' \
259
262
- Quote hasn't expired (check `expiresAt`)
260
263
261
264
<Warning>
262
-
Quotes typically expire after 15 minutes. If expired, create a new quote to get an updated exchange rate.
265
+
Quote expiration depends on the corridor but is typically ~5 minutes or greater. If expired, create a new quote to get an updated exchange rate.
263
266
</Warning>
264
267
</Step>
265
268
@@ -309,24 +312,22 @@ curl -X POST 'https://api.lightspark.com/grid/2025-10-13/quotes/Quote:019542f5-b
309
312
<Check>
310
313
Once executed, the quote creates a transaction and the transfer begins processing. The `transactionId` can be used to track the payment.
311
314
</Check>
315
+
316
+
<Info>
317
+
**Real-time funding sources:** If your quote uses a real-time funding source (USDC, BTC, RTP, or FedNow), you don't call the execute endpoint. Instead, send a payment to the account specified in the quote's `paymentInstructions`. Grid detects the deposit and processes the transfer automatically.
318
+
</Info>
312
319
</Step>
313
320
314
321
<Steptitle="Monitor completion">
315
-
Track the transfer using webhooks or by polling the transaction:
316
-
317
-
```bash
318
-
curl -X GET 'https://api.lightspark.com/grid/2025-10-13/transactions/Transaction:019542f5-b3e7-1d02-0000-000000000030' \
You'll receive a webhook when the transaction completes:
322
+
After execution, a transaction is created and progresses through `PENDING` → `PROCESSING` → `COMPLETED` or `FAILED`. You'll receive `OUTGOING_PAYMENT.<STATUS>` webhooks as the transaction progresses:
@@ -343,49 +344,57 @@ You'll receive a webhook when the transaction completes:
343
344
}
344
345
```
345
346
347
+
If a transaction fails, Grid initiates a refund automatically. You'll receive `OUTGOING_PAYMENT.REFUND_PENDING` followed by `OUTGOING_PAYMENT.REFUND_COMPLETED` or `OUTGOING_PAYMENT.REFUND_FAILED`. The transaction's `refund` object tracks the refund status and reference.
348
+
349
+
<Info>
350
+
For the full state diagram, refund object details, and all webhook scenarios (including bank returns and manual cancellations), see the [Transaction Lifecycle](/platform-overview/core-concepts/transaction-lifecycle) guide.
0 commit comments