Skip to content

Support for uploading receipt to an expense #51

Description

@rahulaaj

Naman,
Can we get support for adding receipt to an expense. It can work as follows:
receipt = "receipt.jpeg"
files = {"receipt": open(receipt, 'rb')}
requestObj = Request(method=method, url=url, data=data, auth=auth, files=files)

Activity

  1. namaggarwal commented on Aug 6, 2020

    @namaggarwal
    Owner

    Hi Rahul,

    Unfortunately, Splitwise has no APIs to upload a receipt. What you can do now is add it receipt url in description using expense.setDescription method. I am also adding a setDetail method which can also be used.
    Someone is also working on adding support for adding comments. So you will be able to add receipt url as comment as well.
    You will have all this by Sunday.

  2. rahulaaj commented on Aug 6, 2020

    @rahulaaj
    Author

    Hi Naman,
    Based on splitwise/api-docs#21 "receipt" is a parameter available for create expense.
    I was able to use that successfully using Request as mentioned in issue description.

  3. namaggarwal commented on Aug 6, 2020

    @namaggarwal
    Owner

    Ah thats great. Its not mentioned in the API docs. I will implement it then

  4. added a commit that references this issue on Aug 6, 2020
    92523d5
  5. added a commit that references this issue on Aug 8, 2020
    6756a1a
  6. rahulaaj commented on Aug 8, 2020

    @rahulaaj
    Author

    Thanks for providing the feature quickly 💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions