REST/JSON

MNotify — notificări (REST)

Trimiți notificări multi-canal către destinatari (după IDNP) și gestionezi template-uri cu substituție de variabile.

URL de bază: https://mnotify.evisoft.com

Endpoint-uri

MetodăCaleScop
POST/api/NotificationTrimite notificare { subject, body, priority, recipients[] } → 201 { id }
GET/api/Notification (sau /api/Notifications)Listă (Page/ItemsPerPage/SearchBy/OrderField)
GET/api/Notification/{id}Detalii (status + destinatari)
DELETE/api/Notification/{id}Anulează (→ Cancelled)
GET/POST/PUT/DELETE/api/Template[/{id}]CRUD template
POST/api/Template/{id}/checkRandează template-ul cu { variables, userId } → { subject, body }

Date care funcționează (seed)

ValoareÎnseamnă
n0000000-0000-0000-0000-000000000001Notificare seed „Confirmare cerere” (Delivered)
t0000000-0000-0000-0000-000000000001Template seed „Welcome” ({{RecipientFirstName}}, {{customerName}}, {{code}})
recipient IDNP de 13 cifreLa trimitere: status recipient Delivered, notificare Sent

Scenarii & erori (valori „magice")

DeclanșatorRezultat
subject = "MMOCK-501"HTTP 501 la POST /api/Notification
recipient IDNP …0009Acel destinatar → status Failed (restul Delivered)
al doilea DELETE pe aceeași notificareHTTP 409 (deja anulată)
subject > 160 caractere / câmpuri lipsă / IDNP ≠ 13 cifreHTTP 400
Header X-MMock-Auth: unauthorized | forbiddenHTTP 401 / 403

Note

Linkuri

MConnect Mock — mediu de testare. Datele sunt fictive.