Skip to main content

Update Bill

PUT 

/accounting/bills/:id

Create a Bill

Request

Path Parameters

    id stringrequired

    The ID of the bill.

Query Parameters

    credentialId stringrequired

    The ID of the credential.

Header Parameters

    Authorization stringrequired

    Default value: bearer YOUR_API_KEY

Body

    vendorId stringrequired

    The ID of the vendor associated with the bill.

    lineItems

    object[]

    required

    Detailed breakdown of all the goods or services listed in the bill, typically including descriptions, quantities, and prices.

  • Array [

  • description stringrequired

    A brief overview or detail of the specific good or service listed in the line item.

    totalAmount stringrequired

    The overall sum for the line item, typically calculated as unitPrice * quantity.

    accountId stringrequired

    The ID of the account associated with the bill line item.

  • ]

  • billNumber string

    A unique number or code assigned to the bill for easy reference.

    issueDate date

    The date when the bill was generated or provided. Format: YYYY-MM-DD

    dueDate date

    The date by which the payment for the bill is expected. Format: YYYY-MM-DD

    memo string

    Any additional notes, comments, or details about the bill.

    currency string

    The type of currency in which the bill is denominated. Possible values: AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BHD, BIF, BMD, BND, BOB, BOV, BRL, BSD, BTN, BWP, BYN, BZD, CAD, CDF, CHE, CHF, CHW, CLF, CLP, CNY, COP, COU, CRC, CUC, CUP, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ERN, ETB, EUR, FJD, FKP, GBP, GEL, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, INR, IQD, IRR, ISK, JMD, JOD, JPY, KES, KGS, KHR, KMF, KPW, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LYD, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRU, MUR, MVR, MWK, MXN, MXV, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SDG, SEK, SGD, SHP, SLL, SOS, SRD, SSP, STN, SVC, SYP, SZL, THB, TJS, TMT, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, USN, UYI, UYU, UYW, UZS, VES, VND, VUV, WST, XAF, XAG, XAU, XBA, XBB, XBC, XBD, XCD, XDR, XOF, XPD, XPF, XPT, XSU, XTS, XUA, XXX, YER, ZAR, ZMW, ZWL

    exchangeRate float

    The conversion rate used if transactions involve foreign currency.

    totalAmount float

    The complete sum due, including all charges, taxes, and minus any discounts.

    balance float

    The remaining amount to be paid, considering partial payments or credits.

    remoteFields json

    An object containing remote fields that are not supported by the common model. The keys are the names of the fields of the corresponding resource in the remote app, and the values can be strings, numbers, arrays or objects.

Responses

200

Schema

    any

Loading...