curl --request GET \
--url https://api.nuwebgroup.com/v1/order-items \
--header 'Authorization: Bearer <token>'{
"data": [
{
"type": "orderItems",
"id": 1,
"attributes": {
"customerId": 1,
"eventId": 123,
"barcode": "97WG2VGJK2",
"saleName": "Standard Guest List",
"name": "Standard Guest List",
"type": "ticket",
"typeName": "Ticket",
"saleItemId": 633,
"basePrice": 500,
"currencyId": 1,
"currencySymbol": "Ā£",
"currencyCode": "GBP",
"feeCurrencyId": 1,
"feeCurrencySymbol": "Ā£",
"feeCurrencyCode": "GBP",
"processingFee": 0,
"resellerFee": 0,
"hideProcessingFee": false,
"hideResellerFee": false,
"discount": 0,
"total": 500,
"refunded": 0,
"deferredPayment": false,
"requiresApproval": false,
"approvedAt": "2021-11-22T11:59:00.000000Z",
"rejectedAt": null,
"cancelledAt": null,
"validFrom": "2021-11-22T11:59:00.000000Z",
"validTo": "2021-11-26T11:59:00.000000Z",
"pointOfSale": {
"type": "online",
"name": "Ticket Shop"
},
"replacedOrderItem": {
"type": "resale",
"orderItemId": 123,
"orderId": 52
},
"fullSpaceName": "A-1 (Block A)",
"createdAt": "2021-11-26T11:59:00.000000Z",
"updatedAt": "2021-11-26T11:59:00.000000Z",
"deletedAt": null
},
"meta": {
"lastUpdated": "2021-11-26T11:59:00.000000Z"
},
"relationships": {
"customers": {
"data": {
"type": "customers",
"id": 1
}
},
"events": {
"data": {
"type": "events",
"id": 1
}
},
"orders": {
"data": {
"type": "orders",
"id": 1
}
},
"saleItems": {
"data": {
"type": "saleItems",
"id": 633
}
},
"notes": {
"data": {
"type": "notes",
"id": 1
}
},
"transactions": {
"data": {
"type": "transactions",
"id": 1
}
},
"priceBands": {
"data": {
"type": "priceBands",
"id": 1
}
},
"spaces": {
"data": {
"type": "spaces",
"id": 1
}
},
"spaceAreas": {
"data": {
"type": "spaceAreas",
"id": 1
}
},
"spaceBlocks": {
"data": {
"type": "spaceBlocks",
"id": 1
}
},
"spaceRows": {
"data": {
"type": "spaceRows",
"id": 1
}
},
"spaceStands": {
"data": {
"type": "spaceStands",
"id": 1
}
},
"spaceTables": {
"data": {
"type": "spaceTables",
"id": 1
}
},
"spaceGates": {
"data": [
{
"type": "spaceGates",
"id": 1
}
]
},
"spaceStairs": {
"data": [
{
"type": "spaceStairs",
"id": 1
}
]
},
"discountCodes": {
"data": {
"type": "discountCodes",
"id": 1
}
},
"accessCodes": {
"data": {
"type": "accessCodes",
"id": 1
}
},
"historicBarcodes": {
"data": {
"type": "historicBarcodes",
"id": 1
}
}
},
"links": {
"self": "http://api.willms.com/v1/customer?id=5"
}
}
],
"links": {
"first": "http://api.willms.com/v1/customers?page=1",
"last": "http://api.willms.com/v1/customers?page=5",
"prev": "http://api.willms.com/v1/customers?page=2",
"next": "http://api.willms.com/v1/customers?page=5",
"self": "http://api.willms.com/v1/customers?page=3"
},
"meta": {
"total": 1
},
"included": [
{
"type": "customers",
"id": 1,
"attributes": {
"name": "Stone Dach",
"email": "[email protected]",
"phone": null,
"phoneCode": null,
"fullPhoneNumber": null,
"img": null,
"locale": null,
"dob": null,
"addressLine1": null,
"addressLine2": null,
"postcode": null,
"countryIso": null,
"countryIso3": null,
"createdAt": "2021-11-22T11:59:00.000000Z",
"updatedAt": "2021-11-22T11:59:00.000000Z"
}
},
{
"type": "events",
"id": 1,
"attributes": {
"name": "ut",
"description": "Qui nisi tempore illum aliquam.",
"startDate": "2021-11-22T11:59:00.000000Z",
"endDate": "2021-11-25T11:59:00.000000Z",
"activatedAt": null,
"organiserName": "John Doe",
"organiserEmail": "[email protected]",
"organiserPhone": "+1-836-852-7192",
"deletedAt": null
}
},
{
"type": "items",
"id": 22,
"attributes": {
"type": "ticket",
"name": "Ticket 3",
"description": "Quia recusandae nam qui quia.",
"totalStock": 500,
"currentStock": 495,
"hasUnlimitedStock": false,
"requiresApproval": false,
"createdAt": "2021-11-22T11:59:00.000000Z",
"updatedAt": "2021-11-22T11:59:00.000000Z",
"deletedAt": null
}
},
{
"type": "orders",
"id": 1,
"attributes": {
"customerId": 123,
"reference": "RO3PMNGE1N",
"totalExTax": 500,
"tax": 0,
"fees": 0,
"discount": 0,
"refunded": 0,
"paid": 500,
"total": 500,
"processingAttempts": 1,
"recoveredFrom": null,
"expiresAt": "2021-11-22T11:59:00.000000Z",
"completedAt": "2021-11-22T11:59:00.000000Z"
}
},
{
"type": "notes",
"id": 1,
"attributes": {
"note": "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eligendi non quis exercitationem culpa nesciunt nihil aut nostrum explicabo reprehenderit optio amet ab temporibus asperiores quasi cupiditate. Voluptatum ducimus voluptates voluptas?",
"createdAt": "2021-11-22T11:59:00.000000Z",
"updatedAt": "2021-11-22T11:59:00.000000Z",
"deletedAt": null
}
},
{
"type": "priceBands",
"id": 1,
"attributes": {
"name": "Group 1"
}
},
{
"type": "spaces",
"id": 1,
"attributes": {
"areaId": null,
"blockId": null,
"standId": null,
"rowId": null,
"tableId": null,
"timeslotId": null,
"name": "1"
}
},
{
"type": "spaceAreas",
"id": 1,
"attributes": {
"id": 1,
"name": "Area"
}
},
{
"type": "spaceBlocks",
"id": 1,
"attributes": {
"id": 1,
"name": "Block"
}
},
{
"type": "spaceRows",
"id": 1,
"attributes": {
"id": 1,
"name": "Block"
}
},
{
"type": "spaceStands",
"id": 1,
"attributes": {
"id": 1,
"name": "Block"
}
},
{
"type": "spaceTables",
"id": 1,
"attributes": {
"id": 1,
"name": "Block"
}
},
{
"type": "spaceGates",
"id": 1,
"attributes": {
"id": 1,
"name": "Gate"
}
},
{
"type": "spaceStairs",
"id": 1,
"attributes": {
"id": 1,
"name": "Stairs"
}
},
{
"type": "saleItems",
"id": 633,
"attributes": {
"totalStock": 100,
"currentStock": 95,
"onSaleFrom": null,
"onSaleUntil": null,
"validFrom": null,
"validUntil": null,
"priceBandId": null,
"scanningGracePeriod": 0,
"minOrderQuantity": 0,
"maxOrderQuantity": 99,
"multiplesOf": 0,
"orderColumn": null,
"additionalInformation": null,
"attractsDiscount": true,
"canBeDownloaded": true,
"canAccessStream": false,
"hideWhenOffSale": false,
"hideWhenOutOfStock": false,
"hideFromBoxOffice": false,
"hideFromShop": false,
"createdAt": "2021-11-22T11:59:00.000000Z",
"updatedAt": "2021-11-22T11:59:00.000000Z",
"deletedAt": null
},
"relationships": {
"items": {
"data": {
"type": "items",
"id": 22
}
}
}
},
{
"type": "discountCodes",
"id": 1,
"attributes": {
"id": 1,
"type": "fixed",
"code": "DISCOUNT_CODE",
"amount": 1000,
"maximumUses": null,
"maxUsesPerCustomer": 2,
"minimumSpend": null,
"validFrom": null,
"validTo": null,
"boxOfficeOnly": false,
"maxUsesPerOrder": null,
"disabledAt": null,
"createdAt": "2024-04-29T11:59:00.000000Z",
"updatedAt": "2024-04-29T11:59:00.000000Z",
"deletedAt": null
}
},
{
"type": "accessCodes",
"id": 1,
"attributes": {
"companyId": 1,
"parentId": null,
"code": "ACCESS_CODE",
"maximumUses": null,
"maxUsesPerCustomer": 2,
"validFrom": null,
"validTo": null,
"hideUnrestrictedItems": false,
"hideRestrictedItemsAfterValidityPeriod": false,
"createdAt": "2024-04-29T11:59:00.000000Z",
"updatedAt": "2024-04-29T11:59:00.000000Z",
"disabledAt": null,
"deletedAt": null
}
},
{
"type": "transactions",
"id": 1,
"attributes": {
"externalApplicationFeeId": null,
"externalFee": null,
"metadata": [],
"orderId": 1,
"paymentGateway": null,
"status": "Success",
"total": 10,
"type": "cash",
"createdAt": "2021-11-22T11:59:00.000000Z",
"updatedAt": "2021-11-22T11:59:00.000000Z"
}
},
{
"type": "historicBarcodes",
"id": 1,
"attributes": {
"orderItemId": 1,
"old_barcode": "97WG2VGJK1",
"new_barcode": "97WG2VGJK2",
"changedAt": "2021-11-22T11:59:00.000000Z"
}
}
]
}Retrieve a list of paginated purchased items.
curl --request GET \
--url https://api.nuwebgroup.com/v1/order-items \
--header 'Authorization: Bearer <token>'{
"data": [
{
"type": "orderItems",
"id": 1,
"attributes": {
"customerId": 1,
"eventId": 123,
"barcode": "97WG2VGJK2",
"saleName": "Standard Guest List",
"name": "Standard Guest List",
"type": "ticket",
"typeName": "Ticket",
"saleItemId": 633,
"basePrice": 500,
"currencyId": 1,
"currencySymbol": "Ā£",
"currencyCode": "GBP",
"feeCurrencyId": 1,
"feeCurrencySymbol": "Ā£",
"feeCurrencyCode": "GBP",
"processingFee": 0,
"resellerFee": 0,
"hideProcessingFee": false,
"hideResellerFee": false,
"discount": 0,
"total": 500,
"refunded": 0,
"deferredPayment": false,
"requiresApproval": false,
"approvedAt": "2021-11-22T11:59:00.000000Z",
"rejectedAt": null,
"cancelledAt": null,
"validFrom": "2021-11-22T11:59:00.000000Z",
"validTo": "2021-11-26T11:59:00.000000Z",
"pointOfSale": {
"type": "online",
"name": "Ticket Shop"
},
"replacedOrderItem": {
"type": "resale",
"orderItemId": 123,
"orderId": 52
},
"fullSpaceName": "A-1 (Block A)",
"createdAt": "2021-11-26T11:59:00.000000Z",
"updatedAt": "2021-11-26T11:59:00.000000Z",
"deletedAt": null
},
"meta": {
"lastUpdated": "2021-11-26T11:59:00.000000Z"
},
"relationships": {
"customers": {
"data": {
"type": "customers",
"id": 1
}
},
"events": {
"data": {
"type": "events",
"id": 1
}
},
"orders": {
"data": {
"type": "orders",
"id": 1
}
},
"saleItems": {
"data": {
"type": "saleItems",
"id": 633
}
},
"notes": {
"data": {
"type": "notes",
"id": 1
}
},
"transactions": {
"data": {
"type": "transactions",
"id": 1
}
},
"priceBands": {
"data": {
"type": "priceBands",
"id": 1
}
},
"spaces": {
"data": {
"type": "spaces",
"id": 1
}
},
"spaceAreas": {
"data": {
"type": "spaceAreas",
"id": 1
}
},
"spaceBlocks": {
"data": {
"type": "spaceBlocks",
"id": 1
}
},
"spaceRows": {
"data": {
"type": "spaceRows",
"id": 1
}
},
"spaceStands": {
"data": {
"type": "spaceStands",
"id": 1
}
},
"spaceTables": {
"data": {
"type": "spaceTables",
"id": 1
}
},
"spaceGates": {
"data": [
{
"type": "spaceGates",
"id": 1
}
]
},
"spaceStairs": {
"data": [
{
"type": "spaceStairs",
"id": 1
}
]
},
"discountCodes": {
"data": {
"type": "discountCodes",
"id": 1
}
},
"accessCodes": {
"data": {
"type": "accessCodes",
"id": 1
}
},
"historicBarcodes": {
"data": {
"type": "historicBarcodes",
"id": 1
}
}
},
"links": {
"self": "http://api.willms.com/v1/customer?id=5"
}
}
],
"links": {
"first": "http://api.willms.com/v1/customers?page=1",
"last": "http://api.willms.com/v1/customers?page=5",
"prev": "http://api.willms.com/v1/customers?page=2",
"next": "http://api.willms.com/v1/customers?page=5",
"self": "http://api.willms.com/v1/customers?page=3"
},
"meta": {
"total": 1
},
"included": [
{
"type": "customers",
"id": 1,
"attributes": {
"name": "Stone Dach",
"email": "[email protected]",
"phone": null,
"phoneCode": null,
"fullPhoneNumber": null,
"img": null,
"locale": null,
"dob": null,
"addressLine1": null,
"addressLine2": null,
"postcode": null,
"countryIso": null,
"countryIso3": null,
"createdAt": "2021-11-22T11:59:00.000000Z",
"updatedAt": "2021-11-22T11:59:00.000000Z"
}
},
{
"type": "events",
"id": 1,
"attributes": {
"name": "ut",
"description": "Qui nisi tempore illum aliquam.",
"startDate": "2021-11-22T11:59:00.000000Z",
"endDate": "2021-11-25T11:59:00.000000Z",
"activatedAt": null,
"organiserName": "John Doe",
"organiserEmail": "[email protected]",
"organiserPhone": "+1-836-852-7192",
"deletedAt": null
}
},
{
"type": "items",
"id": 22,
"attributes": {
"type": "ticket",
"name": "Ticket 3",
"description": "Quia recusandae nam qui quia.",
"totalStock": 500,
"currentStock": 495,
"hasUnlimitedStock": false,
"requiresApproval": false,
"createdAt": "2021-11-22T11:59:00.000000Z",
"updatedAt": "2021-11-22T11:59:00.000000Z",
"deletedAt": null
}
},
{
"type": "orders",
"id": 1,
"attributes": {
"customerId": 123,
"reference": "RO3PMNGE1N",
"totalExTax": 500,
"tax": 0,
"fees": 0,
"discount": 0,
"refunded": 0,
"paid": 500,
"total": 500,
"processingAttempts": 1,
"recoveredFrom": null,
"expiresAt": "2021-11-22T11:59:00.000000Z",
"completedAt": "2021-11-22T11:59:00.000000Z"
}
},
{
"type": "notes",
"id": 1,
"attributes": {
"note": "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eligendi non quis exercitationem culpa nesciunt nihil aut nostrum explicabo reprehenderit optio amet ab temporibus asperiores quasi cupiditate. Voluptatum ducimus voluptates voluptas?",
"createdAt": "2021-11-22T11:59:00.000000Z",
"updatedAt": "2021-11-22T11:59:00.000000Z",
"deletedAt": null
}
},
{
"type": "priceBands",
"id": 1,
"attributes": {
"name": "Group 1"
}
},
{
"type": "spaces",
"id": 1,
"attributes": {
"areaId": null,
"blockId": null,
"standId": null,
"rowId": null,
"tableId": null,
"timeslotId": null,
"name": "1"
}
},
{
"type": "spaceAreas",
"id": 1,
"attributes": {
"id": 1,
"name": "Area"
}
},
{
"type": "spaceBlocks",
"id": 1,
"attributes": {
"id": 1,
"name": "Block"
}
},
{
"type": "spaceRows",
"id": 1,
"attributes": {
"id": 1,
"name": "Block"
}
},
{
"type": "spaceStands",
"id": 1,
"attributes": {
"id": 1,
"name": "Block"
}
},
{
"type": "spaceTables",
"id": 1,
"attributes": {
"id": 1,
"name": "Block"
}
},
{
"type": "spaceGates",
"id": 1,
"attributes": {
"id": 1,
"name": "Gate"
}
},
{
"type": "spaceStairs",
"id": 1,
"attributes": {
"id": 1,
"name": "Stairs"
}
},
{
"type": "saleItems",
"id": 633,
"attributes": {
"totalStock": 100,
"currentStock": 95,
"onSaleFrom": null,
"onSaleUntil": null,
"validFrom": null,
"validUntil": null,
"priceBandId": null,
"scanningGracePeriod": 0,
"minOrderQuantity": 0,
"maxOrderQuantity": 99,
"multiplesOf": 0,
"orderColumn": null,
"additionalInformation": null,
"attractsDiscount": true,
"canBeDownloaded": true,
"canAccessStream": false,
"hideWhenOffSale": false,
"hideWhenOutOfStock": false,
"hideFromBoxOffice": false,
"hideFromShop": false,
"createdAt": "2021-11-22T11:59:00.000000Z",
"updatedAt": "2021-11-22T11:59:00.000000Z",
"deletedAt": null
},
"relationships": {
"items": {
"data": {
"type": "items",
"id": 22
}
}
}
},
{
"type": "discountCodes",
"id": 1,
"attributes": {
"id": 1,
"type": "fixed",
"code": "DISCOUNT_CODE",
"amount": 1000,
"maximumUses": null,
"maxUsesPerCustomer": 2,
"minimumSpend": null,
"validFrom": null,
"validTo": null,
"boxOfficeOnly": false,
"maxUsesPerOrder": null,
"disabledAt": null,
"createdAt": "2024-04-29T11:59:00.000000Z",
"updatedAt": "2024-04-29T11:59:00.000000Z",
"deletedAt": null
}
},
{
"type": "accessCodes",
"id": 1,
"attributes": {
"companyId": 1,
"parentId": null,
"code": "ACCESS_CODE",
"maximumUses": null,
"maxUsesPerCustomer": 2,
"validFrom": null,
"validTo": null,
"hideUnrestrictedItems": false,
"hideRestrictedItemsAfterValidityPeriod": false,
"createdAt": "2024-04-29T11:59:00.000000Z",
"updatedAt": "2024-04-29T11:59:00.000000Z",
"disabledAt": null,
"deletedAt": null
}
},
{
"type": "transactions",
"id": 1,
"attributes": {
"externalApplicationFeeId": null,
"externalFee": null,
"metadata": [],
"orderId": 1,
"paymentGateway": null,
"status": "Success",
"total": 10,
"type": "cash",
"createdAt": "2021-11-22T11:59:00.000000Z",
"updatedAt": "2021-11-22T11:59:00.000000Z"
}
},
{
"type": "historicBarcodes",
"id": 1,
"attributes": {
"orderItemId": 1,
"old_barcode": "97WG2VGJK1",
"new_barcode": "97WG2VGJK2",
"changedAt": "2021-11-22T11:59:00.000000Z"
}
}
]
}The 'Bearer' token can be obtained from the token management interface or via the login endpoint using your admin user credentials.
The page you wish to retrieve purchased items. You will only be able to paginate by page if you do not specify an offset.
The offset - e.g 100 for listing order items starting with the 100th order item. Offset will always take precedence over page.
The number of purchased items to retrieve per page. The maximum (and default) is 100 per page.
A list of related resources you wish to include in the response. Values can be an array, or comma separated string. When including any of the spaces resources, the spaces include is required.
orders, customers, wallets, events, shops, saleItems, giftaid, dataCaptureResponses, dataCaptureFields, dataCaptureQuestions, notes, discountCodes, accessCodes, priceBands, transactions, spaces, spaceAreas, spaceBlocks, spaceGates, spaceRows, spaceStairs, spaceStands, spaceTables, historicBarcodes A list of purchased item types. Values can be an array, or comma separated string.
ticket, product, guest_list, charity, season_ticket, cashless_topup, cashless_product, fee, fulfilment_fee, gift_voucher, refund_protect_fee, bundle, resale_fee, manual_refund_protect_fee A customer ID, to retrieve purchased items for a specific customer.
A order ID, to retrieve purchased items for a specific order.
A list of 1 or more event IDs, to retrieve purchased items for specific events. This can ba an array, or a comma separated string.
Date/Time for retrieving order items with database records (order items, orders and data capture responses) that have been updated on or after the given lastUpdated time. Accepted formats:
Controls records returned depending on their deletedAt status. This is a global flag, so will apply to all resources, including relationships such as resources returned under the included attribute.
true to include deleted recordsfalse to exclude deleted records (or leave blank)true, false A list of attributes that you wish to be returned in the payload. When empty or omitted, all fields will be included by default. Use dot-notation for both top-level resources and child resources, i.e. orderItems.customerId,orders.reference,customers.name. Can be used in conjunction with except providing both parameters don't reference the same resource.
A list of attributes that you wish to exclude from the payload. When empty or omitted, all fields will be included by default. Use dot-notation for both top-level resources and child resources, i.e. orderItems.customerId,orders.reference,customers.name. Can be used in conjunction with only providing both parameters don't reference the same resource.