WS JSON Samples - huginsdk/tps GitHub Wiki

Fiş Belgesi (Receipt)

{
	"Document": {
		"OkcId": "FO00000198",
		"OkcPassword": "",
		"DocumentType": 1,
		"DocumentNo": 3,
		"DocumentDate": "2016-04-18T13:09:14",
		"ZNo": 39,
		"CashierNum": "6",
		"FooterNotes": [],
		"OrderCode": "",
		"TokenId": "",
		"CustomTags": [],
        "DocumentStatus": "0",
	},
	"SaleItems": [{
		"Quantity": 1.0,
		"Amount": 0.75,
		"PLUNo": 1,
		"DepartmentId": 2,
		"VatRate": 1.0,
		"Definition": "EKMEK               ",
		"Barcode": "250001",
		"ReferenceCode": "",
		"DiscountInfo": {
			"DiscountTotal": 0.0,
			"DiscountRate": 0,
			"DiscountNotes": []
		},
		"Weighable": "",
		"Price": 0.0,
		"SalesPerson": 0,
		"ItemNotes": [],
		"ProductSerialNum": "",
		"StockControl": 0,
		"CustomTags": []
	}],
	"PayItems": [{
		"Amount": 0.75,
		"PaymentType": 1,
		"InstallmentNo": 0,
		"CreditId": 0,
		"Definition": "",
		"ReferenceCode": "",
		"IssuerId": "",
		"CardNumber": "",
		"AcquireId": ""
	}],
	"SalesTotal": 0.75,
	"DiscountCode": "",
	"DiscountInfo": {
		"DiscountTotal": 0.0,
		"DiscountRate": 0,
		"DiscountNotes": []
	},
	"CustomerInfo": {
		"Name": "",
		"ID": ""
	},
	"SalesPerson": 0,
	"InvoiceNo": ""
}

Fatura Belgesi (Invoice)

{
	"Document": {
		"OkcId": "FO00000198",
		"OkcPassword": "",
		"DocumentType": 2,
		"DocumentNo": 7,
		"DocumentDate": "2016-04-18T13:24:46",
		"ZNo": 39,
		"CashierNum": "6",
		"FooterNotes": [],
		"OrderCode": "",
		"TokenId": "",
		"CustomTags": []
	},
	"SaleItems": [{
		"Quantity": 1.0,
		"Amount": 0.75,
		"PLUNo": 1,
		"DepartmentId": 2,
		"VatRate": 1.0,
		"Definition": "EKMEK               ",
		"Barcode": "250001",
		"ReferenceCode": "",
		"DiscountInfo": {
			"DiscountTotal": 0.0,
			"DiscountRate": 0,
			"DiscountNotes": []
		},
		"Weighable": "",
		"Price": 0.0,
		"SalesPerson": 0,
		"ItemNotes": [],
		"ProductSerialNum": "",
		"StockControl": 0,
		"CustomTags": []
	},
	{
		"Quantity": 1.0,
		"Amount": 0.25,
		"PLUNo": 2,
		"DepartmentId": 2,
		"VatRate": 1.0,
		"Definition": "CIKOLATA            ",
		"Barcode": "250002",
		"ReferenceCode": "",
		"DiscountInfo": {
			"DiscountTotal": 0.0,
			"DiscountRate": 0,
			"DiscountNotes": []
		},
		"Weighable": "",
		"Price": 0.0,
		"SalesPerson": 0,
		"ItemNotes": [],
		"ProductSerialNum": "",
		"StockControl": 0,
		"CustomTags": []
	}],
	"PayItems": [{
		"Amount": 1.0,
		"PaymentType": 1,
		"InstallmentNo": 0,
		"CreditId": 0,
		"Definition": "",
		"ReferenceCode": "",
		"IssuerId": "",
		"CardNumber": "",
		"AcquireId": ""
	}],
	"SalesTotal": 1.0,
	"DiscountCode": "",
	"DiscountInfo": {
		"DiscountTotal": 0.0,
		"DiscountRate": 0,
		"DiscountNotes": []
	},
	"CustomerInfo": {
		"Name": "",
		"ID": "1234567890"
	},
	"SalesPerson": 0,
	"InvoiceNo": "AJ124"
}

Yemek Belgesi (Food)

{
	"Document": {
		"OkcId": "FO00000198",
		"OkcPassword": "",
		"DocumentType": 5,
		"DocumentNo": 35,
		"DocumentDate": "2016-04-18T17:41:57",
		"ZNo": 39,
		"CashierNum": "6",
		"FooterNotes": [],
		"OrderCode": "",
		"TokenId": "",
		"CustomTags": []
	},
	"SaleItems": [{
		"Quantity": 1.0,
		"Amount": 0.25,
		"PLUNo": 2,
		"DepartmentId": 2,
		"VatRate": 1.0,
		"Definition": "CIKOLATA            ",
		"Barcode": "250002",
		"ReferenceCode": "",
		"DiscountInfo": {
			"DiscountTotal": 0.0,
			"DiscountRate": 0,
			"DiscountNotes": []
		},
		"Weighable": "",
		"Price": 0.0,
		"SalesPerson": 0,
		"ItemNotes": [],
		"ProductSerialNum": "",
		"StockControl": 0,
		"CustomTags": []
	},
	{
		"Quantity": 1.0,
		"Amount": 1.0,
		"PLUNo": 3,
		"DepartmentId": 2,
		"VatRate": 1.0,
		"Definition": "CIPS                ",
		"Barcode": "250003",
		"ReferenceCode": "",
		"DiscountInfo": {
			"DiscountTotal": 0.0,
			"DiscountRate": 0,
			"DiscountNotes": []
		},
		"Weighable": "",
		"Price": 0.0,
		"SalesPerson": 0,
		"ItemNotes": [],
		"ProductSerialNum": "",
		"StockControl": 0,
		"CustomTags": []
	}],
	"PayItems": [{
		"Amount": 1.25,
		"PaymentType": 1,
		"InstallmentNo": 0,
		"CreditId": 0,
		"Definition": "",
		"ReferenceCode": "",
		"IssuerId": "",
		"CardNumber": "",
		"AcquireId": ""
	}],
	"SalesTotal": 1.25,
	"DiscountCode": "",
	"DiscountInfo": {
		"DiscountTotal": 0.0,
		"DiscountRate": 0,
		"DiscountNotes": []
	},
	"CustomerInfo": {
		"Name": "",
		"ID": ""
	},
	"SalesPerson": 0,
	"InvoiceNo": ""
}

Ön Ödeme Belgesi (PrePayment)

{
	"Document": {
		"OkcId": "FO00000198",
		"OkcPassword": "",
		"DocumentType": 7,
		"DocumentNo": 111,
		"DocumentDate": "2016-05-06T11:51:20",
		"ZNo": 39,
		"CashierNum": "6",
		"FooterNotes": [],
		"OrderCode": "",
		"TokenId": "",
		"CustomTags": []
	},
	"PayItems": [{
		"Amount": 1250.0,
		"PaymentType": 1,
		"InstallmentNo": 0,
		"CreditId": 0,
		"Definition": "",
		"ReferenceCode": "",
		"IssuerId": "",
		"CardNumber": "",
		"AcquireId": "",
		"CreditCardHolder": ""
	}],
	"SalesTotal": 1250.0,
	"CustomerInfo": {
		"Name": "AHMET",
		"ID": "1234567890"
	}
}

Fatura Ödeme Belgesi (InvoicePayment)

{
	"Document": {
		"OkcId": "FO00000198",
		"OkcPassword": "",
		"DocumentType": 8,
		"DocumentNo": 26,
		"DocumentDate": "2016-04-18T14:59:41",
		"ZNo": 39,
		"CashierNum": "6",
		"FooterNotes": [],
		"OrderCode": "KL678",
		"TokenId": "",
		"CustomTags": []
	},
	"PayItems": [{
		"Amount": 25.0,
		"PaymentType": 1,
		"InstallmentNo": 0,
		"CreditId": 0,
		"Definition": "",
		"ReferenceCode": "",
		"IssuerId": "",
		"CardNumber": "",
		"AcquireId": ""
	}],
	"FoundationName": "A",
	"SubscriberNo": "123",
	"CommisionAmount": 0.0,
	"SalesTotal": 0.0,
	"InvoiceTotal": 25.0,
	"InvoiceDate": "12122016",
	"InvoiceNo": "QA"
}

Otopark Belgesi (Parking)

{
	"Document": {
		"OkcId": "FA13000025",
		"OkcPassword": "",
		"DocumentType": 6,
		"DocumentNo": 37,
		"DocumentDate": "2016-04-18T17:43:15",
		"ZNo": 39,
		"CashierNum": "6",
		"FooterNotes": [],
		"OrderCode": "",
		"TokenId": "",
		"CustomTags": []
	},
	"PlateNum": ""
}

Cari Hesap (Current Account)

{
	"Document": {
		"OkcId": "FO00000198",
		"OkcPassword": "",
		"DocumentType": 9,
		"DocumentNo": 79,
		"DocumentDate": "2017-03-02T10:52:35",
		"ZNo": 16,
		"CashierNum": "6",
		"FooterNotes": ["00198"],
		"OrderCode": "",
		"TokenId": "",
		"CustomTags": [],
		"DocumentStatus": 0
	},
	"PayItems": [{
		"Amount": 58.0,
		"PaymentType": 1,
		"InstallmentNo": 0,
		"CreditId": 0,
		"Definition": "",
		"ReferenceCode": "",
		"IssuerId": "",
		"CardNumber": "",
		"AcquireId": "",
		"CreditCardHolder": "",
		"PaymentSubType": 0
	}],
	"SalesTotal": 58.0,
	"CustomerInfo": {
		"Name": "AHMED ALINCAK",
		"ID": "11111111111"
	},
	"InvoiceDate": "17022017",
	"InvoiceNo": "AB1234 "
}

Sipariş Listesi (Order List)

{
  'OrderList': [
    {
      'OrderId': '111',
      'OrderTitle': 'ORD 111'
    },
    {
      'OrderId': '123',
      'OrderTitle': 'ORD 123'
    },
    {
      'OrderId': '13067.txt',
      'OrderTitle': 'ORD 13067.txt'
    },
    {
      'OrderId': '2061',
      'OrderTitle': 'ORD 2061'
    },
    {
      'OrderId': '2062',
      'OrderTitle': 'ORD 2062'
    },
    {
      'OrderId': '2064',
      'OrderTitle': 'ORD 2064'
    },
    {
      'OrderId': '2065',
      'OrderTitle': 'ORD 2065'
    },
    {
      'OrderId': '208',
      'OrderTitle': 'ORD 208'
    },
    {
      'OrderId': '7977',
      'OrderTitle': 'ORD 7977'
    },
    {
      'OrderId': '79772',
      'OrderTitle': 'ORD 79772'
    }
  ]
}