oc_create_expense
Submit expenses to OpenCollective collectives. Supports INVOICE, RECEIPT, FUNDING_REQUEST, GRANT, and UNCLASSIFIED types with line items for description and amount.
Instructions
Submit a new expense to an OpenCollective collective.
Supports INVOICE, RECEIPT, FUNDING_REQUEST, GRANT, and UNCLASSIFIED types. Each expense requires at least one line item with description and amount.
The payee is the account that will receive the payment. The account is the collective the expense is submitted to. Requires authentication.
For bookkeeping expenses (e.g. when collective has negative balance), submit as INVOICE type.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ctx | No | ||
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |