Webhook Endpoint
You should configure your webhook endpoint to receive POST requests from Propaga. The webhook will send the conciliation data in JSON format. Please contact us to set up the webhook.Payload Structure
Here’s an example of the webhook payload you’ll receive:Payload Fields
| Field | Type | Description |
|---|---|---|
transferedAmount | Number | The total amount transferred in this conciliation. |
refundsAmountUsed | Number | The amount of refunds or credit notes applied. |
startDate | String | The start date of the conciliation period (ISO 8601 format). |
cutoffDate | String | The end date of the conciliation period (ISO 8601 format). |
transferedDate | String | The date when the transfer was executed (ISO 8601 format). |
referenceNumber | String | A unique reference number for the transfer. |
transactions | Array | List of transactions included in this conciliation. |
Transaction Object Fields
| Field | Type | Description |
|---|---|---|
transactionId | String | Propaga’s unique identifier for the transaction. |
cornerStoreId | String | The ID of the corner store associated with the transaction. |
wholesalerExternalId | String | The ID of the transaction in the wholesaler’s system. |
transactionStatus | String | The current status of the transaction. |
movementDate | String | The date when the transaction occurred (ISO 8601 format). |
totalAmount | Number | The original amount of the transaction. |
interests | Number | The interest amount applied to the transaction. |
totalAmountWithInterests | Number | The total amount including interests. |
products | Array | List of products in the transaction. |
Product Object Fields
| Field | Type | Description |
|---|---|---|
externalSKU | String | The SKU of the product. |
name | String | The name of the product. |
quantity | Number | The quantity of the product. |
Handling the Webhook
Here’s an example of how to handle the webhook in different programming languages:Best Practices
- Verify the Webhook Source: Implement security measures to verify that the webhook is coming from Propaga.
-
Implement Idempotency: Store the
referenceNumberto avoid processing the same conciliation multiple times. - Handle Errors Gracefully: Implement proper error handling and logging to track any issues with webhook processing.
- Respond Quickly: Your webhook endpoint should respond as quickly as possible. If processing takes time, handle it asynchronously.
- Validate Data: Always validate the incoming data before processing it.

