Get a journal attachment by ID

Get a journal attachment by ID

GEThttps://apione.zwapgrid.com/accounting//api/v1/consents/{consentId}/journals/{journalId}/attachments/{attachmentId}
Path parameters
consentId*string (uuid)

The consent for which you wish to get a journal attachment.

journalId*string

The id of the journal you wish to retrieve attachment for.

attachmentId*string

The id of the attachment you wish to retrieve.

Header parameters
Response

Returns journal attachment related to specific consent.

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

List journals

GEThttps://apione.zwapgrid.com/accounting//api/v1/consents/{consentId}/journals
Path parameters
consentId*string (uuid)

The consent for which you wish to list journals.

Query parameters
Header parameters
Response

Returns Journals related to specific consent.

Body
metaPagedResultMetadataDto (object)
datanullable array of JournalDto (object)
Request
const response = await fetch('https://apione.zwapgrid.com/accounting//api/v1/consents/{consentId}/journals', {
    method: 'GET',
    headers: {
      "x-correlation-id": "123e4567-e89b-12d3-a456-426614174000"
    },
});
const data = await response.json();
Response
{
  "meta": {},
  "data": [
    {
      "id": "text"
    }
  ]
}

Get a journal by ID

GEThttps://apione.zwapgrid.com/accounting//api/v1/consents/{consentId}/journals/{journalId}
Path parameters
consentId*string (uuid)

The consent for which you wish to get a journal.

journalId*string

The id of the journal you wish to retrieve.

Header parameters
Response

Returns journal related to specific consent.

Body
idnullable string
Request
const response = await fetch('https://apione.zwapgrid.com/accounting//api/v1/consents/{consentId}/journals/{journalId}', {
    method: 'GET',
    headers: {
      "x-correlation-id": "123e4567-e89b-12d3-a456-426614174000"
    },
});
const data = await response.json();
Response
{
  "id": "text"
}

Last updated