POST ticket_services/Ticket
This method will add tickets and transaction records for general entry tickets.
Requires: HTTPS, Basic Auth.
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| TicketTransaction | A list of tickets
A json object with the following properties:
ItemDescription: (String) Item description.
ItemCode: (Integer) Centaman internal code for the item. Required.
Quantity: (Integer) How many item of this Item code buying.
PaymentReference: (String) The payment gateway refence received from payment peocessor. Required.
ItemCost: (Decimal) The unit cost of the item. Required.
TotalCost: (Decimal) The total amount which is charged to payment gateway. Required.
DepartmentID: (Integer) The department id which is attached to ItemCode.
TransactionDate: (DateTime) The date and time the ticket is bought. It will be the current system date and time. Required.
UserID: (Integer) The membercode which is received in the response of post contact method. Required.
ExpiryDate: (DateTime) The date when the ticket included in this node is going to expire.
CouponCode:(String) The coupon code applied. This should be setup in Centaman. |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
[
{
"ItemDescription": "sample string 1",
"ItemCode": 2,
"Quantity": 3,
"PaymentReference": "sample string 4",
"ItemCost": 5.0,
"TotalCost": 6.0,
"DepartmentID": 7,
"TransactionDate": "2026-04-02T18:26:14.0527879-05:00",
"UserID": 1,
"ExpiryDate": "2026-04-02T18:26:14.0527879-05:00",
"CouponCode": "sample string 1"
},
{
"ItemDescription": "sample string 1",
"ItemCode": 2,
"Quantity": 3,
"PaymentReference": "sample string 4",
"ItemCost": 5.0,
"TotalCost": 6.0,
"DepartmentID": 7,
"TransactionDate": "2026-04-02T18:26:14.0527879-05:00",
"UserID": 1,
"ExpiryDate": "2026-04-02T18:26:14.0527879-05:00",
"CouponCode": "sample string 1"
},
{
"ItemDescription": "sample string 1",
"ItemCode": 2,
"Quantity": 3,
"PaymentReference": "sample string 4",
"ItemCost": 5.0,
"TotalCost": 6.0,
"DepartmentID": 7,
"TransactionDate": "2026-04-02T18:26:14.0527879-05:00",
"UserID": 1,
"ExpiryDate": "2026-04-02T18:26:14.0527879-05:00",
"CouponCode": "sample string 1"
}
]
Response Information
Response body formats
application/json, text/json
Sample:
[
{
"TicketID": 1,
"Quantity": 2,
"userid": 1,
"TicketDescription": "sample string 3",
"BarCode": "sample string 4",
"ReceiptNumber": 5,
"ExpiryDate": "2026-04-02T18:26:14.0684095-05:00"
},
{
"TicketID": 1,
"Quantity": 2,
"userid": 1,
"TicketDescription": "sample string 3",
"BarCode": "sample string 4",
"ReceiptNumber": 5,
"ExpiryDate": "2026-04-02T18:26:14.0684095-05:00"
},
{
"TicketID": 1,
"Quantity": 2,
"userid": 1,
"TicketDescription": "sample string 3",
"BarCode": "sample string 4",
"ReceiptNumber": 5,
"ExpiryDate": "2026-04-02T18:26:14.0684095-05:00"
}
]