List of Ticket-Orders
GET https://api.e-guma.ch/v1/ticketing/orders.json?apikey={api-key}
Parameters
api-keyrequired | |
updated_at_after | Show orders modified at or after date (format: 2019-06-04T23:15:14). |
updated_at_before | Show orders modified before date (format: 2019-07-04T23:15:14). |
order_number | The sequential number of the order, eg. 1000001. |
last_name | The last name of the person associated with the order. It is case sensitive. |
Return
id | The ID of the order. |
created_at | The autogenerated date and time (ISO 8601 format) when the order was created. E.g. 2019-06-03T19:16:43 |
updated_at | The date and time (ISO 8601 format) when the order was last modified. When an order is created then updated_at has the same value as created_at. |
order_number | The order number |
status | completed or cancelled |
currency | The three-letter code (ISO 4217 format) for the currency. Each shop only supports one currency. |
language | Language as a two-letter code (ISO 639-1). |
location | web or local |
note | This field combines the internal and external notes. |
tags | List of tags. If there are no tags, an empty array is returned. |
discount_in_cents | The total discounts applied to the price of the order. |
grand_total_in_cents | The sum of all line item prices, shipping fee and added discounts. |
customer | Customer, see customer object below for details. The customer object can be null. |
order_lines | List of order lines, see order line object below for details. |
payments | List of payments, see payment object below for details. |
Customer object
id | The ID of the customer. |
title | Mr, Mrs or Company |
first_name | First name |
last_name | Last name |
company | Company name |
street | Street |
zip | Zip code |
city | City |
country | Country as two-letter code (ISO 3166-1 alpha-2) |
Email address | |
accepts_marketing | Whether the customer consented (Double Opt-in) to receive email newsletters. |
double_opt_in_confirmed_at | If the customer consented to receive the email newsletter then the date and time (ISO 8601 format) of the Double Opt-in will be returned. Otherwise this value will be null. |
phone | Phone number |
Order line object
product_id | The ID of the product. |
name | The name of the event or admission (e.g. Magical Brunch). |
starts_at | Date and time (ISO 8601 format) when the event occurs. This value is null for admission-tickets without a start date. |
ticket_type_id | The id of the ticket type |
ticket_type_name | The name of the ticket type (e.g. Normal price) |
quantity | Quantity |
total_price_in_cents | quantity x unit_price_in_cents |
tags | List of tags. If there are no tags, an empty array is returned. |
total_count_people | Count of people for this ticket type. This value corresponds to this setting. |
tickets | List of tickets. |
Ticket object
number | The ticket number. |
count_people | Count of people per ticket. Default value is 1 (ticket for one person). |
Payment object
payment_id | The ID of the payment method. |
name | The name of the payment method. E.g. Credit Card |
amount_in_cents | Amount |
is_complimentary | Indicates if a payment is complimentary. |
Example
GET https://api.e-guma.ch/v1/ticketing/orders.json?updated_at_after=2019-07-29T00:00:00&apikey=5bb668e394f2811f3ca4a9db
[
{
"id": "5f368a22bfedea3fc4b6415a",
"created_at": "2020-08-14T14:57:06",
"updated_at": "2020-08-14T14:57:06",
"order_number": "1000033",
"status": "completed",
"currency": "CHF",
"language": "de",
"location": "local",
"discount_in_cents": 1000,
"grand_total_in_cents": 9000,
"tags": ["tag1", "tag2"],
"note": "",
"customer": {
"id": "0b805b90-ad5d-4cef-a02c-bb63e5c794b3",
"title": "Mr",
"first_name": "Daniel",
"last_name": "Thomet",
"company": "Idea Creation GmbH",
"street": "Walchestrasse 15",
"zip": "8006",
"city": "Zürich",
"country": "CH",
"email": "[email protected]",
"accepts_marketing": true,
"double_opt_in_confirmed_at": "2020-08-13T14:30:20",
"phone": "044 500 54 03"
},
"order_lines": [
{
"product_id": "5f3689ccbfedea3fc4b64156",
"name": "Magical Brunch",
"starts_at": "2020-09-06T10:00:00",
"ticket_type_id": "81d0bd03-dd51-403d-a8d9-8dfe1eaf58e4",
"ticket_type_name": "Normal price",
"unit_price_in_cents": 5000,
"quantity": 2,
"total_price_in_cents": 10000,
"tags": ["tag3"],
"total_count_people" : 2,
"tickets": [
{
"number": "4833865472644676390",
"count_people": 1
},
{
"number": "4903266260899708461",
"count_people": 1
}
]
}
],
"payments": [
{
"payment_id": "5586faee94f28723b4137c4a",
"name": "Cash",
"amount_in_cents": 9000,
"is_complimentary": false
}
]
}
]
Updated 8 months ago