subscription-controller

CREATE new Subscription

POST Method to create a new subscription by user.

post/subscriptions

Request

  • Base URL: http://api.moirailabs.com/api/v1
  • URL: http://api.moirailabs.com/api/v1/subscriptions
  • Auth: HTTP bearer

Headers

X-Request-IDstring
Example:8df31080-3b78-4e63-a67d-c2d107190f3c

Optional frontend-generated correlation ID. The backend returns the effective value in the response header.

Request body

planIdstring uuid required
paymentIdstring uuid
startDatestring date-time required
endDatestring date-time required
isActiveboolean required

Response

OK

Changes

No recorded changes to this operation across all 1 revision of this API.