Connect
  1. Consent
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
        POST
      • Remove private data
        POST
      • List consent event history - client mode
        GET
      • List consent text - client mode
        GET
      • List consent text history - client mode
        GET
      • List consent groups - client mode
        GET
      • List consent given issuer - client mode
        GET
      • List consent event history
        GET
      • List consent given issuer
        GET
      • List consent groups
        GET
      • Register consent event - client mode
        POST
      • Register consent event
        POST
    • 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
      • Check access - client mode
    • 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. Consent

Register consent event - client mode

Production
https://api.mediaconnect.no/capi
Production
https://api.mediaconnect.no/capi
POST
/v1/client/customer/privacy/consentEvent
Only the client needs to be logged in to use this endpoint. The user does not need to be logged in, click here to read more.
API for granting consent.
It is required to provide either a consentId, or both target and scope. If all three fields are included, they are required to refer to the same consent.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.mediaconnect.no/capi/v1/client/customer/privacy/consentEvent' \
--header 'Content-Type: application/json' \
--data-raw '{
    "consentId": 1,
    "consentTarget": "editoral",
    "consentScope": "telephone",
    "subject": "563457",
    "subjectType": "CONNECT",
    "source": "Selfservice",
    "action": true,
    "eventTime": 1560277312000,
    "data": "dHJ1ZQ=="
}'
Response Response Example
200 - Success
{
    "consentId": 1,
    "subject": "563457",
    "subjectType": "CONNECT",
    "consentEventId": 1,
    "created": 1560963388000,
    "source": "Selfservice",
    "action": true,
    "childEvents": {
        "consentEventId": 1,
        "consentId": 1,
        "created": 1560363712000,
        "action": true
    }
}

Request

Authorization
OAuth 2.0
Client Credentials
Add the parameter
Authorization
to Headers
,whose value is to concatenate the Token after the Bearer.
Example:
Authorization: Bearer ********************
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
consentId
integer 
optional
Consent ID for this event - required unless target / scope is provided
consentTarget
string 
optional
Identification of the target of the consent (e.g. URL of a policy) - required if none consentId is provided
<= 255 characters
consentScope
string 
optional
Scope of the consent. Typically, this will refer to a section or clause in the target - required if none consentId is provided
<= 255 characters
subject
string 
required
Identification of the subject:
Enter customer number for subjectType CONNECT
Enter credential for subjectType CONNECTID
Enter external id for subjectType EXTERNAL
Enter ConnectID orderid for subjectType ORDER.
<= 255 characters
subjectType
enum<string> 
required
Type of subject, allowed is:
CONNECT
CONNECTID
EXTERNAL
ORDER
Allowed values:
CONNECTCONNECTIDEXTERNALORDER
source
string 
optional
Identification of the source of the consent principal
<= 255 characters
action
boolean 
required
It informs if the consent is granted.
true: The consent is granted.
false: The consent is revoked or not granted.
eventTime
integer 
optional
Time when the consent was given, if different from the current time.
Unix Epoch timestamps in milliseconds since 1st January 1970 UTC.
data
string <byte>
optional
Data documenting the collecting of the consent, base64-encoded.
Examples

Responses

🟢200OK
application/json
OK
Body
consentId
integer 
optional
Consent ID for this event
subject
string 
optional
Identification of the subject e.g. customer number or credential
<= 255 characters
subjectType
enum<string> 
optional
Type of subject, allowed is:
CONNECT
CONNECTID
EXTERNAL
Allowed values:
CONNECTCONNECTIDEXTERNAL
consentEventId
integer 
optional
The ID of this event
created
integer 
optional
The time this event was saved.
Unix Epoch timestamps in milliseconds since 1st January 1970 UTC.
source
string 
optional
Identification of the source of the consent principal
<= 255 characters
action
boolean 
optional
It informs if the consent is granted.
true: The consent is granted.
false: The consent is revoked or not granted.
childEvents
array [object {4}] 
optional
If consent has flag followParent set, so all child consent will be also pushed. Here will be list of changed consent/events to main consent/event
consentEventId
integer 
optional
The ID of this event for child consent
consentId
integer 
optional
Consent ID for child consent
created
integer 
optional
The time this event was saved for child consent.
Unix Epoch timestamps in milliseconds since 1st January 1970 UTC.
action
boolean 
optional
It informs if the consent is granted.
true: The child consent is granted.
false: The child consent is revoked or not granted.
🟠400Bad Request
🟠429Too Many Requests
🔴500Server Error
Modified at 2025-05-08 08:00:12
Previous
List consent groups
Next
Register consent event
Built with