Skip to main content

Create Bill

POST 

/api/accounting/bill

Create Bill

Request

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

    items

    array

    id string
    name stringrequired
    description string
    sku string
    quantity numberrequired
    price numberrequired
    discount number
    total number
    tax_id 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

    items

    array

    required

    id stringnullablerequired
    document_id stringrequired
    name stringrequired
    description stringnullablerequired
    sku stringnullablerequired
    quantity numberrequired
    price numberrequired
    discount numbernullablerequired
    total numbernullablerequired
    created_at stringrequired
    updated_at stringrequired
    tax_id numbernullablerequired

    company

    get_company

    id stringrequired
    whitelabel_id numberrequired
    code stringrequired
    slug stringrequired

    Possible values: <= 25 characters

    name stringrequired
    about stringnullablerequired
    address stringnullablerequired
    email stringnullablerequired
    created_at stringrequired
    updated_at stringrequired
    country_id numbernullablerequired
    package_id numberrequired
    valid_until stringrequired
    phone numbernullablerequired
    full_phone numbernullablerequired
    cf_vendor objectnullablerequired
    cf_customer objectnullablerequired
    settings objectnullablerequired
    cf_reservation objectnullablerequired
    modules string[]nullablerequired
    city stringnullablerequired

    working_hours

    object

    monday stringnullable
    tuesday stringnullable
    wednesday stringnullable
    thursday stringnullable
    friday stringnullable
    saturday stringnullable
    sunday stringnullable
    last_payment date-timerequired

    employees

    object[]

    required

  • Array [

  • id string
    email string
    name stringnullable
    surname stringnullable
    language stringnullable
    phone_number stringnullable
    remember_me_token booleannullable
    birthday datenullable
    created_at date-time
    updated_at date-time
    timezone stringnullable

    meta

    object

    required

    pivot_working_hours

    object

    nullable

    required

    monday stringnullable
    tuesday stringnullable
    wednesday stringnullable
    thursday stringnullable
    friday stringnullable
    saturday stringnullable
    sunday stringnullable
    pivot_company_id stringrequired
    pivot_user_id stringrequired
    pivot_is_admin booleanrequired
    pivot_is_active booleanrequired
    pivot_created_at stringrequired
    pivot_updated_at stringrequired
  • ]

  • package

    object

    required

    id numberrequired
    name stringrequired
    price numberrequired
    currency stringrequired
    whitelabel_id numberrequired
    modules string[]nullablerequired
    created_at date-timerequired
    updated_at date-timerequired
    interval stringnullablerequired

    Possible values: [yearly, monthly]

    type stringnullablerequired

    Possible values: [subscription, email, sms]

    code stringrequired
    quantity numberrequired
Loading...