Skip to content

Recreate Order APIs #6302

Open
Open
@iamareebjamal

Description

@iamareebjamal

There are a lot of issues in Order API and it does not fit the model of CRUD JSON RESTAPI without forcing clients to do unnecessary and buggy calculations.

Orders with tax and discounts cannot be modeled by just returning DB models and asking clients to create attendee, create order and handle ticket prices and discount code, etc

  • API for ticket pricing with discount code and tax included. All calculations will be done on server
  • API for order creation with attendee info using a single endpoint. It should not be needed to hit 30 endpoints to create an order
  • API for charging/fulfilling an order which works with Payment SDKs on server, calculated on the server taking in correct values for ticket prices, discount codes and tax

None of these APIs will be modeled by JSONAPI spec as they are not CRUD APIs with DB models backing them. Once they are finalized, the order and attendee API will be limited to just GET, and POST, PATCH and DELETE will be disabled

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions