Events Management
Create an event that will be linked to a digital passport through the NMP.
Overview
- Event Creation Request: An interface provider initiates an API request to create an event on behalf of another actor (e.g., a repairer). The request includes the event details and client account wallet ID, which represents the identity of the repairer.
- JWT Signature by NMP: NMP generates and signs a JWT, embedding the provided client account wallet ID to verify the delegation.
- Issuer Signature Retrieval: A request is sent to the Custody Gateway to obtain the
issuerSignature
associated with the client account wallet. - Final Event Creation: Using the obtained
issuerSignature
, the event is created and securely linked to the correct client account wallet.
Create Event
URL
To create an identity, use /account/:accountId/delegatedIssuance/createEvent
.
POST - https://{{nmpUrl}}/account/:accountId/delegatedIssuance/createEvent
Body
{
"smartAsset":{
"id":41242760
},
"content":{
"eventType": "initialSale",
"language": "fr-FR",
"title": "Premiรจre mise en service du produit",
"description": "Votre produit a รฉtรฉ vendu pour la premiรจre fois par ...",
"eventDate": "2025-02-22T14:26:19.375Z",
"$schema": "https://cert.arianee.org/version3/ArianeeEvent-i18n.json"
}
}
Field | Type | Required | Description |
---|---|---|---|
smartAsset | Number | โ | ID of the digital passport that will receive the event. |
content | Object | โ | Content of the event. |
Return Payload
Status Code | Success | Description |
---|---|---|
200 | true | The transaction is sent to the blockchain. The event has been created. |
Updated 2 days ago