Skip to main content

Get One Transaction

GET 

/api/accounting/transactions/:id

Get One Transaction

Request

Path Parameters

    id integerrequired

Header Parameters

    X-Company-Slug stringrequired

Responses

Successful response

Schema

    id string
    document_id stringnullable
    account_id string
    contact_id stringnullable
    created_by_id string
    amount numbernullable
    currency CurrencyEnum (string)

    Possible values: [EUR, USD, GBP, TRY]

    type TransactionTypeEnum (string)

    Possible values: [income, expense, order, reservation]

    reference stringnullable
    description stringnullable
    paid_at string
    created_at string
    updated_at string
    order_id stringnullable
    reservation_id stringnullable
    tips numbernullable
    discount numbernullable
    payment_method TransactionPaymentMethodEnums (string)

    Possible values: [cash, credit_card, bank_transfer, qr]

    account

    object

    id stringrequired
    created_by_id stringrequired
    name stringrequired
    number stringnullablerequired
    currency CurrencyEnum (string)required

    Possible values: [EUR, USD, GBP, TRY]

    bank_name stringnullablerequired
    bank_phone stringnullablerequired
    bank_address stringnullablerequired
    enabled booleanrequired
    created_at date-timerequired
    updated_at date-timerequired
    deleted_at date-timenullablerequired
    total integerrequired

    document

    object

    number stringnullablerequired
    order_number stringnullablerequired
    currency CurrencyEnum (string)required

    Possible values: [EUR, USD, GBP, TRY]

    status DocumentStatusEnum (string)required

    Possible values: [draft, sent, paid]

    contact_id numbernullablerequired

    Geçerli bir company_id olması gerekiyor

    contact_name stringnullablerequired
    contact_tax_number stringnullablerequired
    contact_phone numbernullablerequired
    contact_email stringnullablerequired
    contact_address stringnullablerequired
    issued_at timenullablerequired
    due_at timenullablerequired
    type DocumentTypeEnum (string)nullablerequired

    Possible values: [invoice, bill]

    Eğer invoice isteniyorsa invoice, bill isteniyorsa bill

    discount_type DiscountTypeEnum (string)nullablerequired

    Possible values: [fix, percent]

    discount stringnullablerequired
    created_by_id stringnullablerequired
    created_at timerequired
    updated_at stringrequired
    id stringrequired
    total numbernullablerequired

    contact

    object

    id string
    name string
    surname stringnullable
    type ContactTypeEnum (string)nullable

    Possible values: [vendor, customer]

    email emailnullable
    phone phonenullable
    gender ContactGenderEnum (string)nullable

    Possible values: [male, female, other]

    birthdate datenullable
    address stringnullable
    custom_fields objectnullable
    created_at date-time
    updated_at date-time
    default_photo_id numbernullable
Loading...