cURL
curl --request POST \
--url https://api.lightspark.com/grid/2025-10-13/sandbox/webhooks/test \
--header 'Authorization: Basic <encoded-value>'import LightsparkGrid from '@lightsparkdev/grid';
const client = new LightsparkGrid({
username: process.env['GRID_CLIENT_ID'], // This is the default and can be omitted
password: process.env['GRID_CLIENT_SECRET'], // This is the default and can be omitted
});
const testWebhookResponse = await client.sandbox.webhooks.sendTest();
console.log(testWebhookResponse.response_status);package com.lightspark.grid.example
import com.lightspark.grid.client.LightsparkGridClient
import com.lightspark.grid.client.okhttp.LightsparkGridOkHttpClient
import com.lightspark.grid.models.sandbox.webhooks.TestWebhookResponse
import com.lightspark.grid.models.sandbox.webhooks.WebhookSendTestParams
fun main() {
val client: LightsparkGridClient = LightsparkGridOkHttpClient.fromEnv()
val testWebhookResponse: TestWebhookResponse = client.sandbox().webhooks().sendTest()
}{
"response_status": 200,
"url": "https://api.mycompany.com/webhooks/uma",
"response_body": "<string>"
}{
"status": 400,
"message": "<string>",
"details": {
"errors": [
{
"field": "taxIdentifier",
"constraint": {
"format": "email",
"pattern": "^\\d{5}(-\\d{4})?$",
"enum": [
"SSN",
"ITIN",
"NON_US_TAX_ID"
],
"minLength": 1,
"maxLength": 500
},
"message": "Value is not one of the allowed enum members."
}
]
}
}{
"status": 401,
"message": "<string>",
"details": {}
}{
"status": 500,
"message": "<string>",
"details": {}
}Sandbox
Send a test webhook
Send a test webhook to the configured endpoint
POST
/
sandbox
/
webhooks
/
test
cURL
curl --request POST \
--url https://api.lightspark.com/grid/2025-10-13/sandbox/webhooks/test \
--header 'Authorization: Basic <encoded-value>'import LightsparkGrid from '@lightsparkdev/grid';
const client = new LightsparkGrid({
username: process.env['GRID_CLIENT_ID'], // This is the default and can be omitted
password: process.env['GRID_CLIENT_SECRET'], // This is the default and can be omitted
});
const testWebhookResponse = await client.sandbox.webhooks.sendTest();
console.log(testWebhookResponse.response_status);package com.lightspark.grid.example
import com.lightspark.grid.client.LightsparkGridClient
import com.lightspark.grid.client.okhttp.LightsparkGridOkHttpClient
import com.lightspark.grid.models.sandbox.webhooks.TestWebhookResponse
import com.lightspark.grid.models.sandbox.webhooks.WebhookSendTestParams
fun main() {
val client: LightsparkGridClient = LightsparkGridOkHttpClient.fromEnv()
val testWebhookResponse: TestWebhookResponse = client.sandbox().webhooks().sendTest()
}{
"response_status": 200,
"url": "https://api.mycompany.com/webhooks/uma",
"response_body": "<string>"
}{
"status": 400,
"message": "<string>",
"details": {
"errors": [
{
"field": "taxIdentifier",
"constraint": {
"format": "email",
"pattern": "^\\d{5}(-\\d{4})?$",
"enum": [
"SSN",
"ITIN",
"NON_US_TAX_ID"
],
"minLength": 1,
"maxLength": 500
},
"message": "Value is not one of the allowed enum members."
}
]
}
}{
"status": 401,
"message": "<string>",
"details": {}
}{
"status": 500,
"message": "<string>",
"details": {}
}Authorizations
API token authentication using format <api token id>:<api client secret>
Response
Webhook delivered successfully
Was this page helpful?
⌘I