Testing the charge
After creating a PIX charge you can simulate the payment in the staging environment so that your implementation receives the same webhook flow used in production.
Required – send the required authentication headers for Lulipay API requests.
Endpoint
POST https://gateway.lulipay.com/v1/payouts/simulations
Headers
| Name | Type | Description |
|---|---|---|
| Content-Type | String | application/json |
| x-api-token | String | Authentication token (required) |
| x-country-code | String | Country code (required, e.g. BR) |
| x-provider | String | Provider name (required) |
| x-provider-id | String | Provider identifier assigned by Lulipay |
Request Body
| Name | Type | Description |
|---|---|---|
| transaction_id | String | ID returned when the QR Code was created |
| status | String | completed |
{
"transaction_id": "bac1b8d7-24ce-4b53-b6d9-babd3aa60968",
"status": "completed"
}
cURL example
curl --request POST \
--url https://gateway.lulipay.com/v1/payins/simulations \
--header 'Content-Type: application/json' \
--header 'x-api-token: YOUR_API_TOKEN' \
--header 'x-country-code: BR' \
--header 'x-provider: YOUR_PROVIDER_NAME' \
--header 'x-provider-id: YOUR_PROVIDER_ID' \
--data '{
"transaction_id": "bac1b8d7-24ce-4b53-b6d9-babd3aa60968",
"status": "completed"
}'
Response 200 OK
{
"message": "Charge successfully marked as completed in staging environment"
}
When this endpoint is triggered the charge status is updated to completed and the configured webhook is delivered exactly as it would be in production.
A QR Code status can be
paidorcanceled. Without calling this test endpoint the charge remainswaiting.
Support
For testing issues, contact:
- Email: contato@lulipay.com.br
- Support Hours: 24/7