Connect
  1. Access
Connect
  • Connect/ConnectID API Reference
  • Overview
    • API lifecycle
    • OAuth 2.0
    • About the URLs
    • Google analytics
    • Unite payment SDK
    • Events
      • Authentication
      • Connect realtime events
      • ConnectID events
  • Customer Data
    • Address
      • Change addresses
      • List addresses
      • List addresses - client mode
      • List addresses for product - client mode
      • List addresses for product
    • Category
      • List category types
      • List category codes
      • List category codes for category type
    • Customer
      • List customer info
      • Change customer Info
      • Search customer - client mode
      • Check customer number - client mode
      • List customer info - client mode
    • External Reference
      • Remove external reference - client mode
      • Change external reference - client mode
      • List external references - client mode
      • Register external reference - client mode
  • Order Management
    • Article
      • Check article price
    • Coupon
      • Check coupon price - client mode
      • List coupon - client mode
      • List coupon for coupon number - client mode
    • Fulfillment
      • Complete order - client mode
    • Order
      • Order Guide
        • Introduction
        • How to register an order
        • Complete order by fulfillment URL
        • Complete order by fulfillment API
        • Q&A for order
      • List orders
      • Search order details
      • List order product history
      • List order status - client mode
      • Register customer - client mode
      • Register customer
      • Register order - client mode
      • Register order
    • Reward
      • Check reward - client mode
    • User
      • Assign user - client mode
    • Voucher Coupons
      • List voucher code coupons - client mode
  • Payment Services
    • Invoice
      • List invoice details
      • List invoices - client mode
      • List invoices for product - client mode
      • List invoices and reminders
      • List invoices and reminders for product
      • List basic invoice info
      • List basic invoice info for product
    • InvoiceAddress
      • List invoice address
    • Klarna
      • List klarna recurring tokens
      • Add Klarna token
      • Remove Klarna token
    • Nexi
      • List Nexi subscriptions
      • Add Nexi subscription
      • Remove Nexi subscription
    • PayEx
      • List PayEx tokens
      • Add PayEx token
      • Remove PayEx token
    • Payment
      • List payment methods
      • Pay invoice
      • Change payment method
    • Vipps
      • List vipps agreements
      • Add vipps agreement
      • Remove vipps agreement
  • Privacy
    • Consent
      • Access private data
      • Remove private data
      • List consent event history - client mode
      • List consent text - client mode
      • List consent text history - client mode
      • List consent groups - client mode
      • List consent given issuer - client mode
      • List consent event history
      • List consent given issuer
      • List consent groups
      • Register consent event - client mode
      • Register consent event
    • Permission/Shield
      • List global permissions
      • List enterprise permissions
      • Change enterprise permissions
      • List ordertype permissions
      • Change ordertype permissions
      • Check shield ordertype - client mode
      • Check shield enterprise - client mode
    • Privacy
      • List privacy enterprise
      • Change privacy enterprise
      • List privacy ordertype
      • Change privacy ordertype
  • Product & Services
    • Complaint
      • Register complaint
      • List complaints
    • Delivery
      • List next distributions
      • List next distributions - client mode
    • DeliveryStop
      • Remove delivery stops
      • Register delivery stops
      • List delivery stops
      • List delivery stop - client mode
    • Issue
      • List distributed issues
      • List product issues - client mode
    • Product
      • List products - client mode
      • Check product - client mode
      • List specific products - client mode
    • ProductDeliveryPlan
      • List productdeliveryplan - client mode
    • ProductDependency
      • Check product dependency discount - client mode
    • Sharing
      • Send subscription share invitation
      • Accept subscription share invitation
      • Decline share - client mode
      • List shareable subscription rules
      • List distribution levels
      • Change subscription share invitation details
      • List all shared subscribers
      • Cancel sharing
      • List shareable subscription nets
      • Change shareable subscription nets
      • Change distribution level
    • Subscription
      • List shared subscriptions
      • List subscriptions
      • Start subscription
      • List subscriptions - client mode
  • Recruitment
    • Recruitment
      • Register recruitment - client mode
      • List recruitments
      • List premium recruitments
      • Change premium recruitments
      • Register recruitments
    • RecruitmentCampaign
      • List recruitment campaign - client mode
  • User Data
    • Access
      • Check access
        POST
      • Check access - client mode
        POST
    • Credential
      • Check credential - client mode
    • Metadata
      • List metadata
      • Change metadata
      • Remove metadata
      • List metadata - client mode
      • Change metadata - client mode
      • Remove metadata - client mode
    • Profile
      • List user profile
      • List external user profiles
  • Diverse
    • External Identity
      • Register external Id - client mode
      • Register customer - client mode
    • Message
      • List messages
      • Send message
      • Send message - client mode
    • Status
      • List status messages
    • Stock
      • Change stocks - client mode
      • List stocks - client mode
      • List stocks for product - client mode
  1. Access

Check access

Production
https://api.mediaconnect.no/capi
Production
https://api.mediaconnect.no/capi
POST
/v1/customer/access
Access
The user needs to be logged in to use this endpoint, click here to read more.
This API returns accesses for given user.
The access can be given on several levels. You may have access based on productsubscription, domain, ip address, specific article or categoryType that was bought. You also have access based on use of AzureAd, AidFamily, uniqueId (from Profle API) or customerNumber and credential.
NOTE: If you send a request with two or more fields, then it has to match with them all. If you are checking access based on other than IP, then it is required to send uniqueId or credential together with that field.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.mediaconnect.no/capi/v1/customer/access' \
--header 'Content-Type: application/json' \
--data-raw '{
    "product": "CO27409",
    "articleId": "578943434",
    "domain": "unite.no",
    "ip": "127.0.0.1",
    "categoryType": "SWISJ",
    "accessAzureAd": true,
    "accessAidFamily": true,
    "uniqueId": "6ba7b8149dad11d180b400c04fd430c8",
    "customerNumber": 563457,
    "credential": "+4723339100"
}'
Response Response Example
200 - Example 1
{
    "access": true,
    "accesses": [
        {
            "access": false,
            "accessLevel": "C",
            "accessType": "D"
        },
        {
            "access": true,
            "accessLevel": "B",
            "accessType": "A"
        }
    ]
}

Request

Authorization
OAuth 2.0
Authorization Code
Add the parameter
Authorization
to Headers
,whose value is to concatenate the Token after the Bearer.
Example:
Authorization: Bearer ********************
Authorize URL: https://connectid.no/user/oauth/authorize
Token URL: https://connectid.no/user/oauth/token
Refresh URL: https://connectid.no/user/oauth/token
Scopes:
read-For all access
or
Body Params application/json
product
string 
optional
Check if user has access base on product
articleId
string 
optional
Check if user has access base on specific article id
domain
string 
optional
Check if user has access base on domain
ip
string 
optional
Check if user has access base on IP address
categoryType
string 
optional
Check if user has access based on any subscription with category having this category type
accessAzureAd
boolean 
optional
Check if user has access to azure active directory :
true: To check if user has access to azure AD
false: Do not check if user has access to azure AD.
accessAidFamily
boolean 
optional
Check if user or their aid family has access to given product :
true: To check if user or family has access to given product
false: Do not check if user or family has access to given product.
accessDomain
boolean 
optional
Check if user has domain access based on category type :
true: To check if user has domain access based on category type.
false: Do not check if user has domain access based on category type.
accessArticle
boolean 
optional
Return a complete article id list that user has access to, unless articleId is also specified :
true: To look up article id list
false: Do not look up article id list.
uniqueId
string 
optional
Check if user has access base on unique ID (from Profile API).
customerNumber
integer 
optional
Check if user has access base on a valid and existing customer number in the Connect environment.
credential
string 
optional
Check if user has access base on credential e.g. email address or phone number.
<= 60 characters
Examples

Responses

🟢200OK
application/json
OK
Body
access
boolean 
optional
The information says if the user has access:
true: The user has access.
false: The user has no access.
accesses
array [object {4}] 
optional
access
boolean 
optional
Access value for specific level of access
accessLevel
enum<string> 
optional
Level of access
A: Product, when asking based on product in request
B: Article, when asking based on article id in request, or complete list when asking based on boolean value in request
C: Domain, when asking based on domain in request
D: IP, when asking based on IP address in request
E: Category type, when asking based on category type in request
F: IP & Domain, if sharing depends upon both domain and IP this level is returned in the response
G: Azure active directory, when asking based on boolean value in request
H: aID family, when asking based on boolean value in request.
I: Shared subscription, a subscription is shared with the user.
Allowed values:
ABCDEFGHI
accessType
enum<string> 
optional
Type of access:
A: Subscription, when subscription is for product
B: Shared, when subscription on product is shared
C: Article, when user bought specific article(s)
D: Domain, when user has access based on domain
E: IP, when user has access based on IP
F: Require IP login, when user requires login based on IP
G: Category type, when user has access based on category type
Allowed values:
ABCDEFG
accessTypeDetail
object 
optional
Details for given access type
🟠400Bad Request
🟠429429
🔴500Server Error
Previous
List recruitment campaign - client mode
Next
Check access - client mode
Built with