---
title: "Save bills"
method: POST
path: "/v6/bills"
tags: ["Bills"]
---

# Save bills

`POST /v6/bills`

Save new (or update existing) bills

## Request body

- MultiParamBillPostDto
  - `data` BillPostDto[], required
    - `id` string — Id of the bill, required when updating an existing bill
    - `name` string, required — Name of the bill
    - `billNo` integer — Bill number
    - `status` 'ACTIVE' | 'INACTIVE' | 'REMOVED' — Status of the bill
    - `billStatus` 'DRAFT' | 'OPEN' | 'CLOSED' | 'CANCELLED' | 'REFUNDED' — Bill status of the bill
    - `date` string, date — Date of the bill
    - `vendorId` string, required — Id of the vendor associated with the bill
    - `apiName` 'BOX' | 'CLOVER' | 'STRIPE' | 'PLAID' | 'KNOX' | 'UBER' | 'FRESHBOOKS' | 'HARVEST' | 'KW' | 'FRESHBOOKS2' | 'CAPITAL_ONE' | 'SQUARE' | 'DOTLOOP' | 'REALOGY' | 'UPWORK' | 'SHOPIFY' | 'DEDUCTR' | 'ENTERPRISE' | 'MOXIWORKS' | 'APPDIRECT' | 'LONEWOLF' | 'LONEWOLF_TRANSACTIONDESK' | 'SAMPLE_BANK' | 'TAXBOT' | 'GUSTO' | 'XERO' | 'UNIT' | 'MOOV' | 'QBO' | 'QUALPAY' | 'BENCH' | 'PARTNER_IMPLEMENTATION' | 'CHECK' | 'RUTTER' | 'WAVE' | 'MANUAL_ENTRY' | 'CSV_IMPORT' | 'ADYEN' | 'PAYABLI' | 'MANUAL_ENTRY' | 'MELIO' | 'PARTNER_IMPLEMENTATION' | 'STRIPE', required — Name of the API from which this bill originated
    - `apiSourceId` string, nullable, required — Id of the bill on associated API
    - `lineItems` object[], required
      - `id` string — Id of the bill line item, required when updating existing line items
      - `description` string — Description of the line item
      - `amount` integer — Amount of the line item (in cents)
      - `apiItemId` string — API item id of the line item
      - `glAccountId` string — Id of the GL account associated with the line item
    - `customData` JsonNode, nullable — Custom JSON in which you can store any data with max length of 2000 characters
      - `empty` boolean
      - `array` boolean
      - `null` boolean
      - `object` boolean
      - `float` boolean
      - `string` boolean
      - `number` boolean
      - `missingNode` boolean
      - `valueNode` boolean
      - `nodeType` 'ARRAY' | 'BINARY' | 'BOOLEAN' | 'MISSING' | 'NULL' | 'NUMBER' | 'OBJECT' | 'POJO' | 'STRING'
      - `pojo` boolean
      - `integralNumber` boolean
      - `floatingPointNumber` boolean
      - `short` boolean
      - `int` boolean
      - `long` boolean
      - `double` boolean
      - `bigDecimal` boolean
      - `bigInteger` boolean
      - `textual` boolean
      - `boolean` boolean
      - `binary` boolean
      - `container` boolean
      - `embeddedValue` boolean

## Response `200`

Success

- ResponseListMultiResponseBillGetDto
  - `result` 'SUCCESS' | 'FAILURE' — The result of the action performed.
  - `data` MultiResponseBillGetDto[] — The data generated by the action performed.
    - `result` 'SUCCESS' | 'FAILURE' — The result of the action performed.
    - `statusCode` 200 | 400 | 401 | 403 | 404 | 500 — The HTTP status code for the action performed.
    - `data` BillGetDto — The data generated by the action performed.
      - `id` string, required — Id of the bill
      - `name` string, required — Name of the bill
      - `billNo` integer, required — Bill number
      - `status` 'ACTIVE' | 'INACTIVE' | 'REMOVED', required — Status of the bill
      - `billStatus` 'DRAFT' | 'OPEN' | 'CLOSED' | 'CANCELLED' | 'REFUNDED', required — Bill status of the bill
      - `date` string, date, required — Date of the bill
      - `vendor` VendorExpanded, nullable, required — Vendor associated with this child payment
        - `id` string, required — Id of the vendor
        - `name` string — Name of the vendor
      - `apiName` 'BOX' | 'CLOVER' | 'STRIPE' | 'PLAID' | 'KNOX' | 'UBER' | 'FRESHBOOKS' | 'HARVEST' | 'KW' | 'FRESHBOOKS2' | 'CAPITAL_ONE' | 'SQUARE' | 'DOTLOOP' | 'REALOGY' | 'UPWORK' | 'SHOPIFY' | 'DEDUCTR' | 'ENTERPRISE' | 'MOXIWORKS' | 'APPDIRECT' | 'LONEWOLF' | 'LONEWOLF_TRANSACTIONDESK' | 'SAMPLE_BANK' | 'TAXBOT' | 'GUSTO' | 'XERO' | 'UNIT' | 'MOOV' | 'QBO' | 'QUALPAY' | 'BENCH' | 'PARTNER_IMPLEMENTATION' | 'CHECK' | 'RUTTER' | 'WAVE' | 'MANUAL_ENTRY' | 'CSV_IMPORT' | 'ADYEN' | 'PAYABLI' | 'MANUAL_ENTRY' | 'MELIO' | 'PARTNER_IMPLEMENTATION' | 'STRIPE', required — Name of the API from which this bill originated
      - `apiSourceId` string, nullable, required — Id of the bill on associated API
      - `lineItems` BillLineItemGetDto[]
        - `id` string, required — Id of the bill line item
        - `description` string, required — Description of the line item
        - `amount` integer, required — Amount of the line item (in cents)
        - `apiItemId` string, nullable, required — API item id of the line item
        - `glAccount` GlAccountExpanded, required — GL account details
          - `id` string, required — Id of the GL account
          - `name` string — Name of the GL account
          - `accountNo` string — Number of the GL account
          - `type` 'ASSET' | 'LIABILITY' | 'EQUITY' | 'INCOME' | 'COGS' | 'EXPENSE' | 'OTHER_INCOME' | 'OTHER_EXPENSE' | 'SUSPENSE' — Type the GL account
          - `iconUrl` string — Icon URL of the GL account
          - `displayName` string — Display name of the GL account
      - `installments` InstallmentGetDto[]
        - `id` string, required — Id of the installment
        - `name` string, nullable, required — Name of the installment
        - `dueDate` string, date, nullable, required — Due date of the installment
        - `balance` integer, nullable, required — Balance of the installment (in cents)
        - `amountDue` AmountDue, nullable, required — Amount due for the installment
          - `value` string, nullable, required — The amount due value
          - `type` 'AMOUNT' | 'PERCENT', nullable, required — The type of the amount due value
      - `customData` JsonNode, nullable — Custom JSON in which you can store any data with max length of 2000 characters
        - `empty` boolean
        - `array` boolean
        - `null` boolean
        - `object` boolean
        - `float` boolean
        - `string` boolean
        - `number` boolean
        - `missingNode` boolean
        - `valueNode` boolean
        - `nodeType` 'ARRAY' | 'BINARY' | 'BOOLEAN' | 'MISSING' | 'NULL' | 'NUMBER' | 'OBJECT' | 'POJO' | 'STRING'
        - `pojo` boolean
        - `integralNumber` boolean
        - `floatingPointNumber` boolean
        - `short` boolean
        - `int` boolean
        - `long` boolean
        - `double` boolean
        - `bigDecimal` boolean
        - `bigInteger` boolean
        - `textual` boolean
        - `boolean` boolean
        - `binary` boolean
        - `container` boolean
        - `embeddedValue` boolean
    - `error` ErrorItem[]
      - `type` 'UNKNOWN_ERROR' | 'INVALID_TOKEN' | 'EXPIRED_TOKEN' | 'FORBIDDEN' | 'BAD_REQUEST' | 'JSON_ERROR' | 'DUPLICATE' | 'REQUIRED' | 'INVALID_VALUE' | 'NOT_MODIFIABLE' | 'INVALID_FORMAT' | 'NOT_FOUND' — The type of the error. Safe for programmatic use.
      - `message` string — A human-readable message providing more details about the error. Safe for displaying to a user.
      - `param` string — If the error is parameter-specific, the parameter related to the error. This can be used to display a message near the correct form field.
  - `error` ErrorItem[]
    - `type` 'UNKNOWN_ERROR' | 'INVALID_TOKEN' | 'EXPIRED_TOKEN' | 'FORBIDDEN' | 'BAD_REQUEST' | 'JSON_ERROR' | 'DUPLICATE' | 'REQUIRED' | 'INVALID_VALUE' | 'NOT_MODIFIABLE' | 'INVALID_FORMAT' | 'NOT_FOUND' — The type of the error. Safe for programmatic use.
    - `message` string — A human-readable message providing more details about the error. Safe for displaying to a user.
    - `param` string — If the error is parameter-specific, the parameter related to the error. This can be used to display a message near the correct form field.

## Other responses

- `207` — Some bills failed to save. See response body for error details.
- `400` — All bills failed to save.
- `401` — Not authenticated
- `403` — Not authorized
- `404` — Endpoint not found
- `500` — Internal server error

---

[API](https://skmtc.net/tight/apis/tight-api.md) · [All operations](https://skmtc.net/tight/apis/tight-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tight/tight-api/versions/e9f0790a89af/schema)
