Skip to main content
POST
/
bill
Create a bill
curl --request POST \
  --url https://rest.staging.nickel.com/bill \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "amountCents": 123,
  "dueDateEpochMillis": 123,
  "vendorId": "<string>",
  "reason": "<string>",
  "billNumber": "<string>",
  "s3Urls": [
    "<string>"
  ]
}
'
{
  "id": "<string>",
  "amountDueInCents": 123,
  "totalAmountInCents": 123,
  "vendorId": "<string>",
  "vendorName": "<string>",
  "dueDate": "<string>",
  "reference": "<string>",
  "status": "<string>",
  "documents": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Create a new bill

amountCents
integer<int64>
required
dueDateEpochMillis
integer<int64>
required

Due date as epoch milliseconds

vendorId
string
required
reason
string
required
billNumber
string
s3Urls
string[]

Response

Successful operation

id
string
amountDueInCents
integer<int64> | null
totalAmountInCents
integer<int64> | null
vendorId
string | null
vendorName
string | null
dueDate
string | null
reference
string | null
status
string | null
documents
string[]