# Invoice

## Get invoice details for a user

> Uses POST with a userId in the body to resolve an attendee, their ticket, and the associated order to construct invoice details. For offline payments, includes invoice ID, due date, and payment description.

```json
{"openapi":"3.1.1","info":{"title":"Public Api","version":"beta"},"servers":[{"url":"/"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"name":"Authorization","type":"apiKey","in":"header","description":"Bearer Authorization with jwt token"}}},"paths":{"/public-api/v1/event/{eventId}/invoice/details":{"post":{"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"orderId":{"type":"string"},"eventName":{"type":"string"},"organizerName":{"type":["string","null"]},"eventDateTime":{"type":"string"},"orderItems":{"type":"array","items":{"type":"object","properties":{"ticketName":{"type":"string"},"ticket":{"type":"object","properties":{"contentI18n":{"type":"object","properties":{"name":{"type":"object","properties":{"default":{"type":["string","null"]},"en":{"type":["string","null"]},"ja":{"type":["string","null"]},"ko":{"type":["string","null"]},"vi":{"type":["string","null"]},"zh-HK":{"type":["string","null"]},"zh-CN":{"type":["string","null"]},"es":{"type":["string","null"]},"th":{"type":["string","null"]},"pt":{"type":["string","null"]}},"required":["default"],"additionalProperties":false},"description":{"type":"object","properties":{"default":{"type":["string","null"]},"en":{"type":["string","null"]},"ja":{"type":["string","null"]},"ko":{"type":["string","null"]},"vi":{"type":["string","null"]},"zh-HK":{"type":["string","null"]},"zh-CN":{"type":["string","null"]},"es":{"type":["string","null"]},"th":{"type":["string","null"]},"pt":{"type":["string","null"]}},"required":["default"],"additionalProperties":false},"message":{"type":"object","properties":{"default":{"type":["string","null"]},"en":{"type":["string","null"]},"ja":{"type":["string","null"]},"ko":{"type":["string","null"]},"vi":{"type":["string","null"]},"zh-HK":{"type":["string","null"]},"zh-CN":{"type":["string","null"]},"es":{"type":["string","null"]},"th":{"type":["string","null"]},"pt":{"type":["string","null"]}},"required":["default"],"additionalProperties":false}},"additionalProperties":false}},"required":["contentI18n"],"additionalProperties":false},"price":{"type":"string"},"qty":{"type":"number","format":"float"},"codeName":{"type":"string"},"discount":{"type":"number","format":"float"},"addOns":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"contentI18n":{"type":"object","properties":{"name":{"type":"object","properties":{"default":{"type":["string","null"]},"en":{"type":["string","null"]},"ja":{"type":["string","null"]},"ko":{"type":["string","null"]},"vi":{"type":["string","null"]},"zh-HK":{"type":["string","null"]},"zh-CN":{"type":["string","null"]},"es":{"type":["string","null"]},"th":{"type":["string","null"]},"pt":{"type":["string","null"]}},"required":["default"],"additionalProperties":false},"description":{"type":"object","properties":{"default":{"type":["string","null"]},"en":{"type":["string","null"]},"ja":{"type":["string","null"]},"ko":{"type":["string","null"]},"vi":{"type":["string","null"]},"zh-HK":{"type":["string","null"]},"zh-CN":{"type":["string","null"]},"es":{"type":["string","null"]},"th":{"type":["string","null"]},"pt":{"type":["string","null"]}},"required":["default"],"additionalProperties":false}},"additionalProperties":false},"price":{"type":"string"},"qty":{"type":"number","format":"float"}},"required":["id","contentI18n","qty"],"additionalProperties":false}}},"required":["ticketName","ticket","qty","addOns"],"additionalProperties":false}},"subTotal":{"type":"string"},"currency":{"type":"string"},"purchaserName":{"type":"string"},"paymentMethod":{"type":["string","null"],"enum":["online","offline"]},"invoiceId":{"type":"string"},"invoiceDate":{"type":"string","format":"date-time"},"invoiceDueAt":{"type":"string","format":"date-time"},"invoiceBillingInformation":{"type":["string","null"]},"paymentDescription":{"type":"string"},"eventTimezone":{"type":"string"},"purchaseOrganization":{"type":["string","null"]}},"required":["orderId","eventName","eventDateTime","orderItems","subTotal","currency","purchaserName","paymentMethod","eventTimezone"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"500":{"description":"ERROR"}},"parameters":[{"schema":{"type":"string","format":"uuid"},"name":"eventId","in":"path"}],"tags":["Invoice"],"operationId":"invoiceDetails","summary":"Get invoice details for a user","description":"Uses POST with a userId in the body to resolve an attendee, their ticket, and the associated order to construct invoice details. For offline payments, includes invoice ID, due date, and payment description.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","format":"uuid"}},"required":["userId"],"additionalProperties":false}}}}}}}}
```

## GET /public-api/v1/event/{eventId}/invoice/{orderId}

> Get invoice details for an order

```json
{"openapi":"3.1.1","info":{"title":"Public Api","version":"beta"},"servers":[{"url":"/"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"name":"Authorization","type":"apiKey","in":"header","description":"Bearer Authorization with jwt token"}}},"paths":{"/public-api/v1/event/{eventId}/invoice/{orderId}":{"get":{"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"orderId":{"type":"string"},"eventName":{"type":"string"},"organizerName":{"type":["string","null"]},"eventDateTime":{"type":"string"},"orderItems":{"type":"array","items":{"type":"object","properties":{"ticketName":{"type":"string"},"ticket":{"type":"object","properties":{"contentI18n":{"type":"object","properties":{"name":{"type":"object","properties":{"default":{"type":["string","null"]},"en":{"type":["string","null"]},"ja":{"type":["string","null"]},"ko":{"type":["string","null"]},"vi":{"type":["string","null"]},"zh-HK":{"type":["string","null"]},"zh-CN":{"type":["string","null"]},"es":{"type":["string","null"]},"th":{"type":["string","null"]},"pt":{"type":["string","null"]}},"required":["default"],"additionalProperties":false},"description":{"type":"object","properties":{"default":{"type":["string","null"]},"en":{"type":["string","null"]},"ja":{"type":["string","null"]},"ko":{"type":["string","null"]},"vi":{"type":["string","null"]},"zh-HK":{"type":["string","null"]},"zh-CN":{"type":["string","null"]},"es":{"type":["string","null"]},"th":{"type":["string","null"]},"pt":{"type":["string","null"]}},"required":["default"],"additionalProperties":false},"message":{"type":"object","properties":{"default":{"type":["string","null"]},"en":{"type":["string","null"]},"ja":{"type":["string","null"]},"ko":{"type":["string","null"]},"vi":{"type":["string","null"]},"zh-HK":{"type":["string","null"]},"zh-CN":{"type":["string","null"]},"es":{"type":["string","null"]},"th":{"type":["string","null"]},"pt":{"type":["string","null"]}},"required":["default"],"additionalProperties":false}},"additionalProperties":false}},"required":["contentI18n"],"additionalProperties":false},"price":{"type":"string"},"qty":{"type":"number","format":"float"},"codeName":{"type":"string"},"discount":{"type":"number","format":"float"},"addOns":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"contentI18n":{"type":"object","properties":{"name":{"type":"object","properties":{"default":{"type":["string","null"]},"en":{"type":["string","null"]},"ja":{"type":["string","null"]},"ko":{"type":["string","null"]},"vi":{"type":["string","null"]},"zh-HK":{"type":["string","null"]},"zh-CN":{"type":["string","null"]},"es":{"type":["string","null"]},"th":{"type":["string","null"]},"pt":{"type":["string","null"]}},"required":["default"],"additionalProperties":false},"description":{"type":"object","properties":{"default":{"type":["string","null"]},"en":{"type":["string","null"]},"ja":{"type":["string","null"]},"ko":{"type":["string","null"]},"vi":{"type":["string","null"]},"zh-HK":{"type":["string","null"]},"zh-CN":{"type":["string","null"]},"es":{"type":["string","null"]},"th":{"type":["string","null"]},"pt":{"type":["string","null"]}},"required":["default"],"additionalProperties":false}},"additionalProperties":false},"price":{"type":"string"},"qty":{"type":"number","format":"float"}},"required":["id","contentI18n","qty"],"additionalProperties":false}}},"required":["ticketName","ticket","qty","addOns"],"additionalProperties":false}},"subTotal":{"type":"string"},"currency":{"type":"string"},"purchaserName":{"type":"string"},"paymentMethod":{"type":["string","null"],"enum":["online","offline"]},"invoiceId":{"type":"string"},"invoiceDate":{"type":"string","format":"date-time"},"invoiceDueAt":{"type":"string","format":"date-time"},"invoiceBillingInformation":{"type":["string","null"]},"paymentDescription":{"type":"string"},"eventTimezone":{"type":"string"},"purchaseOrganization":{"type":["string","null"]}},"required":["orderId","eventName","eventDateTime","orderItems","subTotal","currency","purchaserName","paymentMethod","eventTimezone"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"500":{"description":"ERROR"}},"parameters":[{"schema":{"type":"string","format":"uuid"},"name":"eventId","in":"path"},{"schema":{"type":"string","format":"uuid"},"name":"orderId","in":"path"}],"tags":["Invoice"],"operationId":"getOneOrderInvoice","summary":"Get invoice details for an order"}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://eventx-hq.gitbook.io/knowledge-base/api-doc/invoice.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
