Skip to main content
PUT
/
v1
/
public
/
bills
/
{bill_id}
Update Bill
curl --request PUT \
  --url https://api.sanka.com/v1/public/bills/{bill_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "external_id": "<string>",
  "contact_id": "<string>",
  "contact_external_id": "<string>",
  "company_id": "<string>",
  "company_external_id": "<string>",
  "issued_date": "<string>",
  "due_date": "<string>",
  "payment_date": "<string>",
  "status": "<string>",
  "currency": "<string>",
  "description": "<string>",
  "amount": 123,
  "amount_without_tax": 123,
  "notes": "<string>",
  "tax_rate": 123,
  "tax_inclusive": true,
  "tax_option": "<string>"
}
'
{
  "ok": true,
  "status": "<string>",
  "external_id": "<string>",
  "bill_id": "<string>",
  "ctx_id": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

bill_id
string
required

Body

application/json
external_id
string | null
contact_id
string | null
contact_external_id
string | null
company_id
string | null
company_external_id
string | null
issued_date
string | null
due_date
string | null
payment_date
string | null
status
string | null
currency
string | null
description
string | null
amount
number | null
amount_without_tax
number | null
notes
string | null
tax_rate
number | null
tax_inclusive
boolean | null
tax_option
string | null

Response

OK

ok
boolean
required
status
string
required
external_id
string | null
bill_id
string | null
ctx_id
string | null