POST vouchersidentifications/print/render-html

Request Information

URI Parameters

None.

Body Parameters

VoucherPrintRenderRequestDto
NameDescriptionTypeAdditional information
IdVouchers

string

None.

VoucherIds

Collection of globally unique identifier

None.

CodeType

VoucherPrintCodeType

None.

TemplateEngine

VoucherPrintTemplateEngine

None.

TemplateName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "IdVouchers": "sample string 1",
  "VoucherIds": [
    "37e1df13-fdf2-446a-89cb-a6db042e92b8",
    "e10e7194-22fd-4cb5-a634-c2ad19526a86"
  ],
  "CodeType": 0,
  "TemplateEngine": 0,
  "TemplateName": "sample string 2"
}

application/xml, text/xml

Sample:
<VoucherPrintRenderRequestDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ationet.Model.Vouchers">
  <CodeType>Qr</CodeType>
  <IdVouchers>sample string 1</IdVouchers>
  <TemplateEngine>Handlebars</TemplateEngine>
  <TemplateName>sample string 2</TemplateName>
  <VoucherIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:guid>37e1df13-fdf2-446a-89cb-a6db042e92b8</d2p1:guid>
    <d2p1:guid>e10e7194-22fd-4cb5-a634-c2ad19526a86</d2p1:guid>
  </VoucherIds>
</VoucherPrintRenderRequestDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

VoucherPrintRenderHtmlResponseDto
NameDescriptionTypeAdditional information
Html

string

None.

Count

integer

None.

TemplateNameUsed

string

None.

TemplateEngineUsed

VoucherPrintTemplateEngine

None.

CodeType

VoucherPrintCodeType

None.

NetworkCode

string

None.

Items

Collection of VoucherPrintItemDto

None.

Response Formats

application/json, text/json

Sample:
{
  "Html": "sample string 1",
  "Count": 2,
  "TemplateNameUsed": "sample string 3",
  "TemplateEngineUsed": 0,
  "CodeType": 0,
  "NetworkCode": "sample string 4",
  "Items": [
    {
      "IdentificationId": "3fa10f0c-bebc-4baa-b0c5-8cd6b04f1ebe",
      "CompanyName": "sample string 2",
      "NetworkName": "sample string 3",
      "ContractCode": "sample string 4",
      "ContractDescription": "sample string 5",
      "ProgramDescription": "sample string 6",
      "AssignmentDateShort": "sample string 7",
      "ExpirationDateShort": "sample string 8",
      "TrackCaption": "sample string 9",
      "AmountVoucherInitial": 10.0,
      "AmountVoucherInitialText": "sample string 11",
      "CurrencyCode": "sample string 12",
      "LogoUrl": "sample string 13",
      "Active": true,
      "PAN": "sample string 15",
      "Fuels": "sample string 16",
      "Sites": "sample string 17",
      "ProgramTermsAndConditions": "sample string 18",
      "PanLast6": "sample string 19"
    },
    {
      "IdentificationId": "3fa10f0c-bebc-4baa-b0c5-8cd6b04f1ebe",
      "CompanyName": "sample string 2",
      "NetworkName": "sample string 3",
      "ContractCode": "sample string 4",
      "ContractDescription": "sample string 5",
      "ProgramDescription": "sample string 6",
      "AssignmentDateShort": "sample string 7",
      "ExpirationDateShort": "sample string 8",
      "TrackCaption": "sample string 9",
      "AmountVoucherInitial": 10.0,
      "AmountVoucherInitialText": "sample string 11",
      "CurrencyCode": "sample string 12",
      "LogoUrl": "sample string 13",
      "Active": true,
      "PAN": "sample string 15",
      "Fuels": "sample string 16",
      "Sites": "sample string 17",
      "ProgramTermsAndConditions": "sample string 18",
      "PanLast6": "sample string 19"
    }
  ]
}

application/xml, text/xml

Sample:
<VoucherPrintRenderHtmlResponseDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ationet.Model.Vouchers">
  <CodeType>Qr</CodeType>
  <Count>2</Count>
  <Html>sample string 1</Html>
  <Items>
    <VoucherPrintItemDto>
      <Active>true</Active>
      <AmountVoucherInitial>10</AmountVoucherInitial>
      <AmountVoucherInitialText>sample string 11</AmountVoucherInitialText>
      <AssignmentDateShort>sample string 7</AssignmentDateShort>
      <CompanyName>sample string 2</CompanyName>
      <ContractCode>sample string 4</ContractCode>
      <ContractDescription>sample string 5</ContractDescription>
      <CurrencyCode>sample string 12</CurrencyCode>
      <ExpirationDateShort>sample string 8</ExpirationDateShort>
      <Fuels>sample string 16</Fuels>
      <IdentificationId>3fa10f0c-bebc-4baa-b0c5-8cd6b04f1ebe</IdentificationId>
      <LogoUrl>sample string 13</LogoUrl>
      <NetworkName>sample string 3</NetworkName>
      <PAN>sample string 15</PAN>
      <PanLast6>sample string 19</PanLast6>
      <ProgramDescription>sample string 6</ProgramDescription>
      <ProgramTermsAndConditions>sample string 18</ProgramTermsAndConditions>
      <Sites>sample string 17</Sites>
      <TrackCaption>sample string 9</TrackCaption>
    </VoucherPrintItemDto>
    <VoucherPrintItemDto>
      <Active>true</Active>
      <AmountVoucherInitial>10</AmountVoucherInitial>
      <AmountVoucherInitialText>sample string 11</AmountVoucherInitialText>
      <AssignmentDateShort>sample string 7</AssignmentDateShort>
      <CompanyName>sample string 2</CompanyName>
      <ContractCode>sample string 4</ContractCode>
      <ContractDescription>sample string 5</ContractDescription>
      <CurrencyCode>sample string 12</CurrencyCode>
      <ExpirationDateShort>sample string 8</ExpirationDateShort>
      <Fuels>sample string 16</Fuels>
      <IdentificationId>3fa10f0c-bebc-4baa-b0c5-8cd6b04f1ebe</IdentificationId>
      <LogoUrl>sample string 13</LogoUrl>
      <NetworkName>sample string 3</NetworkName>
      <PAN>sample string 15</PAN>
      <PanLast6>sample string 19</PanLast6>
      <ProgramDescription>sample string 6</ProgramDescription>
      <ProgramTermsAndConditions>sample string 18</ProgramTermsAndConditions>
      <Sites>sample string 17</Sites>
      <TrackCaption>sample string 9</TrackCaption>
    </VoucherPrintItemDto>
  </Items>
  <NetworkCode>sample string 4</NetworkCode>
  <TemplateEngineUsed>Handlebars</TemplateEngineUsed>
  <TemplateNameUsed>sample string 3</TemplateNameUsed>
</VoucherPrintRenderHtmlResponseDto>