Create a webhook endpoint
/api/v1/webhooksRegisters an https URL that Flex Malipo sends payment events to, for the mode of your key. The response includes the endpoint's signing secret. Store it now: later reads do not show it. Use it to check the signature on every delivery. Give brandIds to receive only the events of some brands.
Authorization
bearerAuth An access token from POST /api/v1/oauth/token, sent as Authorization: Bearer <token>.
In: header
Header Parameters
The API version to use for this request, a date such as 2026-11-06. Without it the request uses your default version for the mode of your key. An unknown version answers 400 api_version_invalid.
Value in
- "2026-11-06"
A unique key you choose for this request: 1 to 255 visible ASCII characters, no spaces. A UUID works well. Never put personal data in it. If a request times out, send it again with the same key and the same body to get the first response back, with the header Idempotent-Replayed: true. A key is kept for 24 hours. Sending the same key with another body answers 400 idempotency_key_reused.
^[\x21-\x7E]+$1 <= length <= 255Request Body
application/json
A webhook endpoint to register.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://api-malipo.flex.co.tz/api/v1/webhooks" \ -H "Authorization: Bearer <token>" \ -H "FlexMalipo-Version: 2026-11-06" \ -H "Idempotency-Key: 5f1c1e0a-3b7e-4c8e-9d1a-2f6b8a4c7e11" \ -H "Content-Type: application/json" \ -d '{ "url": "https://shop.example.com/flex-malipo/webhooks", "subscribedEvents": [ "payment.succeeded", "payment.failed" ] }'{ "id": "3d2b8e4f-6a1c-4f7e-9b0d-1c2e3f4a5b6c", "livemode": false, "url": "https://shop.example.com/flex-malipo/webhooks", "description": "Order updates", "subscribedEvents": [ "payment.succeeded", "payment.failed" ], "enabled": true, "secret": "whsec_9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", "previousSecretExpiresAt": "2026-09-29T09:15:30Z", "createdAt": "2026-09-28T09:15:30Z", "updatedAt": "2026-09-28T09:15:30Z", "apiVersion": "2026-11-06", "brandIds": [ "6b9e2f4a-1c3d-4e5f-8a7b-9c0d1e2f3a4b" ]}