Skip to main content

Update Transaction

PUT 

/api/accounting/transactions/:id

Update Transaction

Request

Path Parameters

    id integerrequired

Header Parameters

    X-Company-Slug stringrequired

Body

    document_id string
    account_id string
    contact_id string
    amount number
    currency CurrencyEnum (string)required

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

    type TransactionTypeEnum (string)required

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

    reference string
    description string
    order_id string
    reservation_id string
    tips number
    discount number
    payment_method TransactionPaymentMethodEnums (string)

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

Responses

Successful response

Schema

    id stringrequired
    document_id string
    account_id string
    contact_id string
    created_by_id stringrequired
    amount number
    currency CurrencyEnum (string)required

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

    type TransactionTypeEnum (string)required

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

    reference string
    description string
    paid_at date-timerequired
    created_at stringrequired
    updated_at stringrequired
    order_id string
    reservation_id string
    tips number
    discount number
    payment_method TransactionPaymentMethodEnums (string)

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

Loading...