/set-qr-config endpoint to associate one or more Algerian Dinar (DZD) amounts with a static QR code. If you call this endpoint again with the same token, the previous configuration is replaced entirely. When multiple amounts are configured, the customer selects one on the payment platform. When a single amount is configured, the platform skips selection and displays that amount directly.
Request
Method:POSTURL:
{api_base_url}/set-qr-configHeaders:
Your
api_base_url and API key are both retrieved from the Mizaniya Partner Platform.
Body parameters
string
required
The QR code identifier retrieved from the Partner Platform.
number[]
required
An array of DZD amounts. Supply a single amount to skip the customer selection step. Must contain at least one positive number.
string | null
An ISO 8601 timestamp indicating when the configuration expires. Pass
null or omit for a permanent configuration.boolean
required
When
true, the configuration is automatically cleared after the first successful payment.Code examples
Responses
200 — Success
400 — Bad Request
401 — Unauthorized
404 — QR Code Not Found
Always branch your error handling on the
errorCode field, not the message string. Message wording may change between API versions.