Skip to content

Ramp: Update a draft bill — request body — body

Update a draft bill: request body, field body. Complete fields and constraints for contract 2026-10-27.

API reference · Contract 2026-10-27

SDK schema: Update a draft bill — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
accounting_field_selectionsarrayOptionalList of accounting field options selected to code the bill.
accounting_field_selections[]ModelEach itemExpand Create a bill — request body — body accounting field selections item
due_atstringOptionalDue date of the bill.
Format: date
enable_accounting_syncbooleanOptionalA flag you can set to False to prevent this bill from syncing to your ERP.
entity_idstringOptionalAssociated business entity.
Format: uuid
inventory_line_itemsJSONOptional
inventory_line_items (anyOf 1)arrayAlternativeList of inventory line items associated with the bill. When provided, this will replace all existing inventory line items.
inventory_line_items (anyOf 1)[]ModelEach itemExpand Update a bill — request body — body inventory line items array item
inventory_line_items (anyOf 2)nullAlternative
invoice_currencystringOptionalCurrency of the invoice.
One of: 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, CNH, CNY, COP, COU, CRC, CUC, CUP, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ERN, ETB, EUR, EURC, 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, OPEN_USD, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SDG, SEK, SGD, SHP, SLE, SLL, SOS, SRD, SSP, STN, SVC, SYP, SZL, THB, TJS, TMT, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, USDB, USDC, USDG, USDT, USN, UYI, UYU, UYW, UZS, VED, VES, VND, VUV, WST, XAD, XAF, XAG, XAU, XBA, XBB, XBC, XBD, XCD, XCG, XDR, XOF, XPD, XPF, XPT, XSU, XTS, XUA, XXX, YER, ZAR, ZMW, ZWG, ZWL
invoice_numberstringOptionalThe invoice number on the bill.
Maximum length: 84
issued_atstringOptionalIssued date of the bill.
Format: date
line_itemsJSONOptional
line_items (anyOf 1)arrayAlternativeList of line items related to the bill. When provided, this will replace all existing line items.
line_items (anyOf 1)[]ModelEach itemExpand Update a bill — request body — body line items array item
line_items (anyOf 2)nullAlternative
memoJSONOptional
memo (anyOf 1)stringAlternativeMemo of the bill.
Maximum length: 1000
memo (anyOf 2)nullAlternative
payment_methodstringOptionalPayment method of the bill.
One of: ACH, CARD, CHECK, CRYPTO_WALLET_TRANSFER, DOMESTIC_WIRE, INTERNATIONAL, LOCAL_BANK_TRANSFER, ONE_TIME_CARD, ONE_TIME_CARD_DELIVERY, PAID_MANUALLY, SWIFT
posting_dateJSONOptional
posting_date (anyOf 1)stringAlternativeThe date the bill is posted to the accounting system.
Format: date
posting_date (anyOf 2)nullAlternative
purchase_order_idsarrayOptionalUnique identifiers of the purchase orders to match this bill to. When provided, this will replace all existing linked purchase orders.
purchase_order_ids[]stringEach itemFormat: uuid
remote_idJSONOptional
remote_id (anyOf 1)stringAlternativeAn ID that identifies the bill on client’s side.
remote_id (anyOf 2)nullAlternative
use_default_payment_methodbooleanOptionalWhen set to true, create the draft bill using the default payment method configured for the vendor. If set to true, payment_method and payment_details should not be provided.
Default: false
vendor_contact_idstringOptionalUnique identifier of vendor contact, must be associated with passed vendor.
Format: uuid
vendor_idstringOptionalUnique identifier of bill vendor.
Format: uuid
vendor_memoJSONOptional
vendor_memo (anyOf 1)stringAlternativeMemo to the vendor.
Maximum length: 400
vendor_memo (anyOf 2)nullAlternative

Referenced models: Create a bill — request body — body accounting field selections item, Update a bill — request body — body inventory line items array item, Update a bill — request body — body line items array item

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.