# Bex Transactions

## Retrieve Bex transaction

> Get details of a specific Bex transaction by its ID.

```json
{"openapi":"3.0.3","info":{"title":"Omnitron API","version":"1.0.0"},"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"type":"apiKey","in":"header","name":"Authorization"}},"parameters":{"id_path":{"name":"id","in":"path","description":"Unique identifier of the resource","required":true,"schema":{"type":"integer"}}},"schemas":{"BexTransaction":{"type":"object","allOf":[{"$ref":"#/components/schemas/StarterModel"}],"properties":{"pk":{"type":"integer","description":"Primary key of the transaction"},"transaction_type":{"$ref":"#/components/schemas/BexTransactionType"},"transaction_id":{"type":"string","description":"Unique identifier for the transaction"},"pos":{"type":"integer","description":"ID of the associated point of sale"},"order":{"type":"integer","description":"ID of the associated order"},"user_email":{"type":"string","description":"Email of the user associated with the transaction"},"is_succeeded":{"type":"boolean","description":"Indicates if the transaction was successful"},"amount":{"type":"number","format":"decimal","description":"Amount involved in the transaction"},"remote_addr":{"type":"string","description":"Remote address associated with the transaction"},"raw_request":{"type":"string","description":"Raw request data for the transaction"},"raw_response":{"type":"string","description":"Raw response data for the transaction"}}},"StarterModel":{"type":"object","properties":{"created_date":{"type":"string","format":"date-time","readOnly":true,"description":"The date and time when the object was created."},"modified_date":{"type":"string","format":"date-time","description":"The date and time when the object was last modified."}}},"BexTransactionType":{"type":"string","description":"Type of Bex transaction","enum":["connection","ticket","availability","purchase"]}},"responses":{"401":{"description":"Unauthorized Access","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"Contains a detailed description of the error."},"code":{"type":"string","description":"Represents the server-side error code."}}}}}},"403":{"description":"Forbidden"},"404":{"description":"The given resource or object was not found or does not exist.","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"description":"Contains a detailed description of the error.","type":"string"}}}}}},"500":{"description":"Server Error"}}},"paths":{"/api/v1/bex_transactions/{id}/":{"get":{"summary":"Retrieve Bex transaction","description":"Get details of a specific Bex transaction by its ID.","tags":["Bex Transactions"],"parameters":[{"$ref":"#/components/parameters/id_path"}],"responses":{"200":{"description":"Bex transaction retrieved successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BexTransaction"}}}},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"500":{"$ref":"#/components/responses/500"}}}}}}
```

## List Bex transactions

> Retrieve a paginated list of Bex transactions.

```json
{"openapi":"3.0.3","info":{"title":"Omnitron API","version":"1.0.0"},"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"type":"apiKey","in":"header","name":"Authorization"}},"parameters":{"page":{"name":"page","in":"query","required":false,"description":"Specifies the page number of the current dataset","schema":{"type":"integer","minimum":1,"default":1}},"limit":{"name":"limit","in":"query","required":false,"description":"Indicates the number of rows on the current page.","schema":{"type":"integer","minimum":1,"default":10}},"order":{"name":"order","in":"query","description":"Filter by order ID.","required":false,"schema":{"type":"number"}},"user_email":{"name":"user_email","in":"query","required":false,"schema":{"type":"string","format":"email"},"description":"User's email (case-insensitive)"},"bex_transaction_type":{"name":"transaction_type","description":"Filter by transaction types.","in":"query","schema":{"$ref":"#/components/schemas/BexTransactionType"}},"transaction_id":{"name":"transaction_id","in":"query","description":"Filter(exact) by transaction ID","required":false,"schema":{"type":"integer"}},"pos":{"name":"pos","in":"query","description":"Filter by point of sale name","schema":{"type":"string"}},"is_succeeded":{"name":"is_succeeded","description":"Filter by transaction success status.","in":"query","schema":{"type":"boolean"}},"amount":{"name":"amount","in":"query","required":false,"description":"Filter by amount.","schema":{"type":"number","format":"decimal"}},"remote_addr":{"name":"remote_addr","in":"query","required":false,"schema":{"type":"string"},"description":"Filter by IP address"},"created_date":{"name":"created_date","in":"query","required":false,"description":"Filter by creation date using supported lookup expressions (e.g., `gt`, `gte`, `lt`, `lte`, `date__gt`, etc.).","schema":{"type":"string","format":"date-time"}},"pk":{"name":"pk","in":"query","required":false,"description":"Filters by primary key","schema":{"type":"integer"}},"pk__gt":{"name":"pk__gt","in":"query","description":"Filter by primary key greater than a specific value.","schema":{"type":"string"}},"pk__gte":{"name":"pk__gte","in":"query","required":false,"description":"Filters by primary key greater than or equal to the given value","schema":{"type":"integer"}},"pk__lt":{"name":"pk__lt","in":"query","required":false,"description":"Filters by primary key less than the given value","schema":{"type":"integer"}},"pk__lte":{"name":"pk__lte","in":"query","required":false,"description":"Filters by primary key less than or equal to the given value","schema":{"type":"integer"}}},"schemas":{"BexTransactionType":{"type":"string","description":"Type of Bex transaction","enum":["connection","ticket","availability","purchase"]},"BexTransaction":{"type":"object","allOf":[{"$ref":"#/components/schemas/StarterModel"}],"properties":{"pk":{"type":"integer","description":"Primary key of the transaction"},"transaction_type":{"$ref":"#/components/schemas/BexTransactionType"},"transaction_id":{"type":"string","description":"Unique identifier for the transaction"},"pos":{"type":"integer","description":"ID of the associated point of sale"},"order":{"type":"integer","description":"ID of the associated order"},"user_email":{"type":"string","description":"Email of the user associated with the transaction"},"is_succeeded":{"type":"boolean","description":"Indicates if the transaction was successful"},"amount":{"type":"number","format":"decimal","description":"Amount involved in the transaction"},"remote_addr":{"type":"string","description":"Remote address associated with the transaction"},"raw_request":{"type":"string","description":"Raw request data for the transaction"},"raw_response":{"type":"string","description":"Raw response data for the transaction"}}},"StarterModel":{"type":"object","properties":{"created_date":{"type":"string","format":"date-time","readOnly":true,"description":"The date and time when the object was created."},"modified_date":{"type":"string","format":"date-time","description":"The date and time when the object was last modified."}}}},"responses":{"401":{"description":"Unauthorized Access","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"Contains a detailed description of the error."},"code":{"type":"string","description":"Represents the server-side error code."}}}}}},"403":{"description":"Forbidden"},"404":{"description":"The given resource or object was not found or does not exist.","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"description":"Contains a detailed description of the error.","type":"string"}}}}}},"500":{"description":"Server Error"}}},"paths":{"/api/v1/bex_transactions/":{"get":{"summary":"List Bex transactions","description":"Retrieve a paginated list of Bex transactions.","tags":["Bex Transactions"],"parameters":[{"$ref":"#/components/parameters/page"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/order"},{"$ref":"#/components/parameters/user_email"},{"$ref":"#/components/parameters/bex_transaction_type"},{"$ref":"#/components/parameters/transaction_id"},{"$ref":"#/components/parameters/pos"},{"$ref":"#/components/parameters/is_succeeded"},{"$ref":"#/components/parameters/amount"},{"$ref":"#/components/parameters/remote_addr"},{"$ref":"#/components/parameters/created_date"},{"$ref":"#/components/parameters/pk"},{"$ref":"#/components/parameters/pk__gt"},{"$ref":"#/components/parameters/pk__gte"},{"$ref":"#/components/parameters/pk__lt"},{"$ref":"#/components/parameters/pk__lte"}],"responses":{"200":{"description":"Successful response with a list of Bex transactions.","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","description":"Total number of results."},"next":{"type":"string","format":"uri","nullable":true,"description":"URL of the next page of results."},"previous":{"type":"string","format":"uri","nullable":true,"description":"URL of the previous page of results."},"results":{"type":"array","items":{"$ref":"#/components/schemas/BexTransaction"}}}}}}},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"500":{"$ref":"#/components/responses/500"}}}}}}
```
