Get Asset Template

Changed on
get/assets/template

Request

  • Base URL
    https://dc-region.zuperpro.com/api
  • URL
    https://dc-region.zuperpro.com/api/assets/template
  • Auth
    API key in header x-api-key

Response

200

typestring

Example response

{
  "type": "success",
  "data": [
    {
      "template": " {{asset_name}}  {{asset_code}}  {{asset_category.category_name}}  {{formatDateWithTimeZone purchase_date 'DD/MM/YYYY hh:mm A' timezone}}  {{formatDateWithTimeZone warranty_expiry_date 'DD/MM/YYYY hh:mm A' timezone}}  {{formatDateWithTimeZone placed_in_service 'DD/MM/YYYY hh:mm A' timezone}}  {{asset_location.street}}  {{asset_location.city}}  {{asset_location.state}}  {{asset_location.country}}  {{asset_location.zip_code}}  {{asset_location.landmark}}  {{customer.customer_first_name}}  {{customer.customer_last_name}}  {{customer.customer_email}}  {{customer.customer_company_name}}  {{customer.customer_category.category_name}}  {{customer.customer_contact_no.home}}  {{customer.customer_contact_no.work}}  {{customer.customer_contact_no.mobile}}  {{created_by.first_name}}  {{created_by.last_name}} ",
      "template_name": "Template with all components",
      "asset_category": {
        "category_name": "Air Conditioner",
        "category_description": "Description",
        "category_uid": "22b74240-09fe-11ea-b1f3-d505ea8dd454",
        "updated_at": "2022-09-29T10:56:44.157Z",
        "created_at": "2019-11-18T12:22:49.700Z"
      },
      "template_description": "All components",
      "template_uid": "5b331550-c78e-11eb-b236-7399b7fcce11",
      "created_at": "2021-06-07T12:46:19.433Z",
      "updated_at": "2023-03-30T08:11:23.588Z",
      "render_engine": "PHANTOM",
      "template_options": {
        "format": "A4",
        "orientation": "portrait",
        "border": {
          "top": "10",
          "right": "10",
          "bottom": "10",
          "left": "10"
        }
      }
    }
  ]
}

Changes