Create a one-time code

Create a one-time code

This endpoint creates one-time code.

POSThttps://apione.zwapgrid.com/consents//api/v1/consents/{consentId}/otc
Path parameters
consentId*string (uuid)

The id of the consent you wish to create an OTC for.

Header parameters
Response

One-time code was created successfully.

Request
const response = await fetch('https://apione.zwapgrid.com/consents//api/v1/consents/{consentId}/otc', {
    method: 'POST',
    headers: {
      "x-correlation-id": "123e4567-e89b-12d3-a456-426614174000"
    },
});
const data = await response.json();
Response
{
  "type": "text",
  "title": "text",
  "detail": "text",
  "instance": "text"
}

Last updated