Attach configuration
Set amounts, expiration, and single-use behavior on a QR code.
Remove configuration
Clear the entire configuration from a QR code.
How it works
When a customer scans a QR code you configured, they are taken to the Mizaniya Pay payment platform. What they see next depends on how many amounts you attached.- Multiple amounts: the customer is presented with a list of preset DZD amounts and must choose one.
- Single amount: no selection step appears. The platform shows the single preset amount directly.
Configuration modes
You can tailor each QR code to your business flow using three configuration modes.
Calling
/set-qr-config again for the same QR code token replaces the previous configuration entirely.
Endpoints
Both endpoints expect JSON request bodies and require the same authentication header.
Prerequisites
Before making API calls, retrieve the following values from the Mizaniya Partner Platform.api_base_url: the root URL for all API requests in your environmentapi_key: used in thex-api-keyrequest headertoken: the unique identifier of the static QR code you want to configure
Store your API key securely. Do not commit it to source control or expose it in client-side code.
Authentication
Every request must include thex-api-key header. A missing or invalid key returns 401 Unauthorized with a structured error body.
Response model overview
Responses follow one of several consistent envelope shapes. When handling errors, branch on theerrorCode field instead of parsing message text.
