# Get transaction

Endpoint: GET /v2/businesses/{client_id}/transactions/{transaction_id}
Version: v1
Security: BearerAuth

## Path parameters:

  - `client_id` (integer, required)
    The ID of the business.
    Example: 123

  - `transaction_id` (string, required)
    The ID of the transaction.

## Response 200 fields (application/json):

  - `id` (string)
    The ID of the transaction.
    Example: "e33b7c61-5124-4ba0-b238-e4c573133715"

  - `cleared_date` (string,null)
    The date the transaction was cleared in UTC.
    Example: "2024-01-01T00:00:00Z"

  - `auth_date` (string)
    The date the transaction was authorised in UTC.
    Example: "2024-01-01T00:00:00Z"

  - `merchant_name` (string)
    The name of the merchant.
    Example: "Bunnings Warehouse"

  - `attendees` (array)
    The names of the attendees of the transaction.
    Example: ["Jane Doe"]

  - `budget` (object)
    The budget associated with the transaction.

  - `budget.id` (string)
    The ID of the budget.
    Example: "e33b7c61-5124-4ba0-b238-e4c573133715"

  - `budget.name` (string)
    The name of the budget.
    Example: "Sales Team"

  - `budget.budget_type` (string)
    The type of budget.
    Enum: "BUDGET", "SUBSCRIPTION"

  - `currency` (string)
    The currency of the transaction.
    Example: "AUD"

  - `custom_fields` (array)

  - `custom_fields.field_name` (string)
    The name of the custom field.
    Example: "Project"

  - `custom_fields.entry_text` (string)
    The text value of the custom field.
    Example: "Project 1"

  - `fx_amount` (number)
    The foreign currency amount of the transaction.
    Example: 100

  - `amount` (number)
    The amount of the transaction in AUD (positive for credits, negative for debits).
    Example: -100

  - `gst` (number)
    The GST amount of the transaction.
    Example: 9.09

  - `expense_status` (string)
    The expense completion status of the transaction.
    Enum: "COMPLETE", "INCOMPLETE_EXPENSE"

  - `status` (string)
    The status of the transaction.
    Enum: "CLEARED", "AUTHED"

  - `transaction_type` (string)
    The type of transaction.
    Enum: "CARD_TRANSACTION", "CHARGE", "DEPOSIT_DIRECT_CREDIT", "DEPOSIT_DIRECT_DEBIT", "BILL", "REIMBURSEMENT", "EXTERNAL_TRANSFER", "MANUAL_TRANSFER", "CREDIT"

  - `user` (object,null)
    The user who made the transaction.

  - `user.id` (integer)
    The ID of the user.
    Example: 123

  - `user.first_name` (string)
    The first name of the user.
    Example: "John"

  - `user.last_name` (string)
    The last name of the user.
    Example: "Doe"

  - `user.name` (string)
    The full name of the user or the display name if the user has set one.
    Example: "John Doe"

  - `line_items` (array)
    The line items of the transaction.

  - `line_items.id` (string)
    The ID of the line item.
    Example: "e33b7c61-5124-4ba0-b238-e4c573133715"

  - `line_items.amount` (number)
    The amount of the line item in AUD.
    Example: 100

  - `line_items.gst_amount` (number)
    The GST amount of the line item.
    Example: 9.09

  - `line_items.category` (object)

  - `line_items.category.id` (string)
    The ID of the category.
    Example: "f2c9897d-62fb-4d64-9647-3e6bf62d07c2"

  - `line_items.category.name` (string)
    The name of the category in Weel.
    Example: "Accommodation"

  - `line_items.category.code` (string,null)
    The accounting code of the category, if any.
    Example: "6668"

  - `line_items.custom_fields` (array)

  - `line_items.description` (string)
    The description of the line item.
    Example: "Building supplies"

  - `receipt_urls` (array)
    The URLs of the receipts for the transaction.
    Example: ["https://divipay-user-production.s3.amazonaws.com/123/68eae8f6-cb90-4403-ba76-a2cc12c3979j.png"]

  - `created` (string)
    The date and time when the transaction was created in UTC.
    Example: "2024-01-01T00:00:00Z"

  - `updated` (string)
    The date and time when the transaction was last updated in UTC.
    Example: "2024-01-01T00:00:00Z"


## Response 401 fields

## Response 403 fields

## Response 404 fields
