Duplicates tickets for multiple seats within an order item
POST/api/v1/order/tickets/duplicate
Creates duplicate tickets with new barcodes, support types, and fiscal numbers for specified seats. Used when tickets need to be reprinted or when a ticket needs to be replaced due to loss or damage.
SOAP Equivalent: AWSP_TicketDuplicate (assumed)
Examples
Request Body
{
"orderItemId": 12345,
"seats": [
{
"seatId": 100,
"newBarCode": "ABC123456789",
"newSupportType": 400,
"newFiscalNumber": "FN-2024-001"
},
{
"seatId": 101,
"newBarCode": "DEF987654321",
"newSupportType": 401,
"newFiscalNumber": "FN-2024-002"
}
]
}
Success (204)
No content returned on success.
Error 400 - Missing x-tenant header
{
"type": "https://tools.ietf.org/html/rfc9110#section-15.5.1",
"title": "Bad Request",
"status": 400,
"detail": "The x-tenant header is required"
}
Error 400 - Validation failed
{
"type": "https://tools.ietf.org/html/rfc9110#section-15.5.1",
"title": "Bad Request",
"status": 400,
"detail": "At least one seat must be provided"
}
Error 400 - Invalid support type
{
"type": "https://tools.ietf.org/html/rfc9110#section-15.5.1",
"title": "Bad Request",
"status": 400,
"detail": "NewSupportType must be 400, 401, 402, or 403"
}
Error 500 - Server error
{
"type": "https://tools.ietf.org/html/rfc9110#section-15.6.1",
"title": "Internal Server Error",
"status": 500,
"detail": "An unexpected error occurred",
"traceId": "00-abc123-def456-00"
}
SOAP to REST Field Mapping
| REST Field | SOAP Field | Notes |
|---|---|---|
| orderItemId | ID_OrderItem | Order item identifier |
| seats | Seats | Array of seat duplication information |
| seatId | ID_Seat | Seat identifier |
| newBarCode | NewBarCode | New barcode for duplicated ticket |
| newSupportType | NewSupportType | Print support type (400=A4, 401=Thermal, 402=Badge, 403=Digital) |
| newFiscalNumber | NewFiscalNumber | New fiscal number for duplicated ticket |
Request
Responses
- 204
- 400
- 500
No Content
Bad Request
Internal Server Error