Create an expense
documentedCreates a new expense.
POST /expensesBillingno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://{{$account_url}}.quadernoapp.com/api/expenses" \
-X POST \
-u "{{QUADERNO_API_KEY}}:x" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"issue_date": "{{$issue_date}}",
"po_number": "{{$po_number}}",
"currency": "{{$currency}}",
"tag_list": {{$tag_list}},
"payment_details": "{{$payment_details}}",
"notes": "{{$notes}}",
"contact": {
"first_name": "{{$contact_first_name}}",
"last_name": "{{$contact_last_name}}",
"email": "{{$contact_email}}",
"country": "{{$contact_country}}",
"city": "{{$contact_city}}",
"street_line_1": "{{$contact_street1}}",
"street_line_2": "{{$contact_street2}}",
"postal_code": "{{$contact_postal_code}}",
"language": "{{$contact_language}}"
},
"subject": "{{$subject}}",
"country": "{{$country}}",
"region": "{{$region}}",
"street_line_1": "{{$street1}}",
"street_line_2": "{{$street2}}",
"items": [
{
"name": "{{$item_name}}",
"description": "{{$item_description}}",
"quantity": {{$item_quantity}},
"unit_cost": {{$item_unit_cost}}
}
],
"payment_method": "{{$payment_method}}",
"payment_processor": "{{$payment_processor}}",
"custom_metadata": { "{{$meta_key}}": "{{$meta_value}}" }
}' }'