Get list of admins` PDF templates

GET /api-v1/pdf-template/global

Headers

  • TARGET-ORGANIZATION-ID integer(int32)

    ID of organization, for which the operation must be performed

  • WEAL-TOKEN string Required

    API token (can be retrieved from account settings)

Responses

  • 200 */*

    OK

    Hide response attributes Show response attributes object
    • description string
    • id integer
    • moduleAvailabilityType string

      Values are ORGANIZATION or GLOBAL.

    • name string
    • previewExists boolean
    • previewImageId integer
    • previewTemplateId integer
    • sourceTemplateId integer
    • templateType string

      Values are SALES_INVOICE, LATE_NOTICE, SALARY_SLIP, MY_SALARY_SLIP, SALES_ORDER, VAT_REPORT, DELIVERY_NOTE, or GENERAL_LEDGER.

  • 400

    400 Bad Request

  • 401

    401 Unauthorized

  • 403

    403 Access Denied

  • 404

    404 Not Found

  • 500

    500 Internal Server Error

GET /api-v1/pdf-template/global
curl \
 --request GET 'https://wyzio.app/api-v1/pdf-template/global' \
 --header "TARGET-ORGANIZATION-ID: 42" \
 --header "WEAL-TOKEN: string"
Response examples (200)
[
  {
    "description": "string",
    "id": 42,
    "moduleAvailabilityType": "ORGANIZATION",
    "name": "string",
    "previewExists": true,
    "previewImageId": 42,
    "previewTemplateId": 42,
    "sourceTemplateId": 42,
    "templateType": "SALES_INVOICE"
  }
]