Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide API to create a new developer marketplace service subscription #1602

Closed
cbryanreapit opened this issue Jun 6, 2020 · 0 comments
Closed
Assignees
Labels
back-end Relates to back end issues feature New feature or request launch-requirement Issue that needs to be addressed before launch

Comments

@cbryanreapit
Copy link
Contributor

cbryanreapit commented Jun 6, 2020

Overview

This endpoint will be responsible for creating a new marketplace subscriptions. Subscriptions are always associated to a developer, but can additionally be associated to a particular app or user that belongs to the developer organisation.

Location

POST /subscriptions (protected: yes)

Request

Payload

{
  "developerId" : "developerId",
  "applicationId" : "",
  "user" : "[email protected]",
  "type" : "developerEdition",
}

Validations

  • developerId is required. Must be in acceptable format if provided.
  • applicationId is optional. Must be provided type is 'applicationListing'. Must be in acceptable format if provided.
  • user is optional. Must be in acceptable format if provided.
  • type is required. Must be either applicationListing, developerEdition or developerRegistration.

Response

Success

201 Created

Failure

400 Bad Request
401 Authorised
403 Forbidden
422 Unprocessable Entity

Notes

  • We will need a class per subscription type to govern price, frequency and display information. TBC.
@cbryanreapit cbryanreapit added feature New feature or request back-end Relates to back end issues labels Jun 6, 2020
@cbryanreapit cbryanreapit added this to the Billing enhancements milestone Jun 6, 2020
@cbryanreapit cbryanreapit added the launch-requirement Issue that needs to be addressed before launch label Jun 6, 2020
@RWilcox-Reapit RWilcox-Reapit self-assigned this Jun 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back-end Relates to back end issues feature New feature or request launch-requirement Issue that needs to be addressed before launch
Projects
None yet
Development

No branches or pull requests

2 participants