Subscription (p:subscription)

http://profiles.goabout.com/subscription

The Subscription (p:subscription) profiles represents a subscription to a Product (p:product) for a User. These are subscriptions to services provided by a Service Provider (r:service-provider) (usually operated by the Agency (p:agency) behind the Product (p:product).)

Example

{
  "productHref" : "https://api.goabout.com/product/23",
  "userHref" : "https://api.goabout.com/user/42",
  "_links" : {
    "self" : {
      "href" : "https://api.goabout.com/subscription/2023"
    }
  }
}

Reference

GET

Properties

productHref:URI The href to the product the user is subscribed to.
userHref:URI The user subscribed to the product.
properties:JSON [OPTIONAL] A free form json node, containing the instance that adheres to the json-schema (found in propertySchema) from Product (p:product)
validUntil:DateTime [OPTIONAL] The time at which this subscription expires.

DELETE

Only authenticated users can delete their own subscriptions.