Skip to main content

Update Invoice

PUT 

/api/accounting/invoice/:id

Update Invoice

Request

Path Parameters

    id integerrequired

Header Parameters

    X-Company-Slug stringrequired

Body

    number string
    order_number string
    currency CurrencyEnum (string)required

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

    status DocumentStatusEnum (string)required

    Possible values: [draft, sent, paid]

    contact_id number

    Geçerli bir company_id olması gerekiyor

    contact_name string
    contact_tax_number string
    contact_phone number
    contact_email string
    contact_address string
    issued_at time
    due_at time
    type DocumentTypeEnum (string)

    Possible values: [invoice, bill]

    Eğer invoice isteniyorsa invoice, bill isteniyorsa bill

    discount_type DiscountTypeEnum (string)

    Possible values: [fix, percent]

    discount string
    total number

Responses

Successful response

Schema

    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
Loading...