From 17f5714955e5677ef9ed01478ea2d34d6fab2cd2 Mon Sep 17 00:00:00 2001 From: Joe Stein Date: Thu, 30 Dec 2021 14:03:26 -0500 Subject: [PATCH] Clarify default payer for equal group split --- docs/index.html | 5 +++-- paths/create_expense.yaml | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/index.html b/docs/index.html index 1e9b380..e9e8fec 100644 --- a/docs/index.html +++ b/docs/index.html @@ -806,7 +806,8 @@

Response samples

Content type
application/json
{
  • "expenses": [
    ]
}

Create an expense

Creates an expense. You may either split an expense equally (only with group_id provided), or supply a list of shares.

-

If providing a list of shares, each share must include paid_share and owed_share, and must be identified by one of the following:

+

When splitting equally, the authenticated user is assumed to be the payer.

+

When providing a list of shares, each share must include paid_share and owed_share, and must be identified by one of the following:

  • email, first_name, and last_name
  • user_id
  • @@ -955,7 +956,7 @@

Responses

Request samples

Content type
application/json
Example
{
  • "input": "I owe Ada 5 bucks",
  • "autosave": false
}

Response samples

Content type
application/json
{
  • "expense": {
    },
  • "valid": true,
  • "confidence": 0.5,
  • "error": "string"
}