ProducerInfo

This object is the object that hosts the receipt headers. Details about the object are described below.

    public class ProducerInfoDto
    {
        public Guid UUID { get; set; }
        public Guid TemplateUUID { get; set; }
        public string TemplateBase64String { get; set; }
        public DateTime DeliveryDate { get; set; }
        public string ProducerSerieOrNumber { get; set; }
        public DateTime IssueDate { get; set; } 
        public string CurrencyCode { get; set; }
        public decimal? ExchangeRate { get; set; }
    }

UUID

It is the unique number in the Guid data type that will be used to track the receipt.

Producer.ProducerInfo.UUID = 'b8787efb-639d-4efc-85b5-953bf1dbaac0';

If the field is sent empty, a new UUID will be added to the receipt by the system.

TemplateUUID

This field is used for the UUID of the XSLT that will be added to the receipt. XSLT of the UUID is added to the voucher.

Producer.ProducerInfo.TemplateUUID = '94e8b735-1361-4d6f-a4a6-3745b62239c8';
  • If the TemplateUUID field is full and the TemplateBase64String field is empty, the design of the entered TemplateUUID information will be added to the receipt.

  • If the TemplateBase64String field is full, TemplateBase64String information will be added as the design of the receipt, regardless of the TemplateUUID field.

  • If the TemplateUUID and TemplateBase64String fields are left empty, the default design will be added to the receipt.

TemplateBase64String

The Base64 of the design to be added to the receipt is added here.

  • If the TemplateUUID field is full and the TemplateBase64String field is empty, the design of the entered TemplateUUID information will be added to the receipt.

  • If the TemplateBase64String field is full, TemplateBase64String information will be added as the design of the receipt, regardless of the TemplateUUID field.

  • If the TemplateUUID and TemplateBase64String fields are left empty, the default design will be added to the receipt.

ProducerSerieOrNumber

You can enter the 16-digit e-Producer Receipt number and 3-digit serial information in this field. If you enter a 16-digit receipt number, no action will be taken and the value you entered will be determined as the receipt number. If you enter a 3-digit series, a number is generated based on this series defined on the portal.

//Manual Receipt Number
Producer.ProducerInfo.ProducerSerieOrNumber = "EFT2022000000001";

//Series Information
Producer.ProducerInfo.ProducerSerieOrNumber = "EFT";

The next number is automatically assigned to the EFT series registered in the portal.

IssueDate

The receipt date and time are entered in this field.

Producer.ProducerInfo.IssueDate = "2022-01-23T10:20:39.846Z";

CurrencyCode

This field is where the currency of the receipt will be entered. The possible values are specified under Currency Codes in the code lists section.

Producer.ProducerInfo.CurrencyCode = "TRY";

ExchangeRate

This is the field where the exchange rate will be entered when the receipt is issued in a currency other than Turkish lira. Exchange rate information will appear on the receipt.

Last updated