Skip to content

Create invoice result #11

@sawwd

Description

@sawwd

Can't we just return the full invoice data after invoice creation?

All the big companies (example Stripe) is returning the full object after creation.

Right now after creation I need an extra call to list the invoice by the number to get the full invoice data but there are times when an invoice is deleted right between creation and listing and in such cases I endup fetching the wrong invoice with /api/docs/invoice?cif=RO37311090&seriesName=FCT&number=55

I know you show the link https://www.oblio.eu/utils/show_file/?ic=91467&id=261753&it=8e4beb8abe58552dd702874addd1d518 and I can parse it to get the id for listing this way /api/docs/invoice/list?cif=RO37311090&seriesName=FCT&id=261753 but this is 'hacky'

I bet you got it but let me know if you didnt get it :D

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