v1

latestOpenAPI 3.1.02026-07-24111224223.3 KB
Webhooks

Webhook to notify when a bill is created.

postWebhookbill-created

Headers

X-Rillet-Signaturestring required

Signature of the webhook event. Computed using HMAC-SHA256 and AES encrypted with the configured webhook token. The contents of the body are prefixed with the timestamp and id before hashing.

X-Rillet-Timestampstring date-time required

Timestamp of the webhook event in ISO-8601 format

X-Rillet-Idstring uuid required

ID of the webhook event

X-Rillet-Entitystring required

Entity type of the webhook event

X-Rillet-Eventstring required

Event type of the webhook event

Payload

vendor_idstring uuid required
expense_numberstring required
bill_datestring date required
due_datestring date required
impact_datestring date
subsidiary_idstring uuid
idstring uuid required
status'UNPAID' | 'PAID' | 'PARTIALLY_PAID' | 'CREDITED' | 'PARTIALLY_CREDITED' | 'APPLIED' required
updated_atstring date-time required

Timestamp when the bill was last modified

Example payload

{
  "expense_number": "B123",
  "items": [
    {
      "description": "API Bill",
      "account_code": "11112",
      "amount": {
        "amount": "1.01",
        "currency": "USD"
      },
      "tax_rate": {
        "tax_amount": {
          "amount": "1.01",
          "currency": "USD"
        },
        "country": "US"
      }
    }
  ],
  "external_references": [
    {
      "type": "xyzSystemId",
      "id": "234",
      "url": "https://xyzsystempage.com/ids/234"
    }
  ],
  "exchange_rate": {
    "base": "USD",
    "target": "USD"
  }
}

Response

OK

string required

A placeholder indicating a response from a webhook. The contents of this response are ignored.