Connect
  1. External Identity
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
      • 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
        POST
      • Register customer - client mode
        POST
    • 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. External Identity

Register external Id - client mode

Production
https://api.mediaconnect.no/capi
Production
https://api.mediaconnect.no/capi
POST
/v1/client/extid
External Identity
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.
This API is to ensure that the external Id is registered in ConnectID. The API will do a look up for the existence of the externalId in ConnectID. In addition, a check will be performed to see if the external id is connected to a customer in Connect. First time this API is called for an external id, a user handle will be created in ConnectID and the data stored on the external id will be returned. customerNumber is only returned if was set previously on this externalId. The API returns basic information associated for the external id.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.mediaconnect.no/capi/v1/client/extid' \
--header 'Content-Type: application/json' \
--data-raw '{
    "externalId": "59cb6372-d3db-11e5-ab30-625662870761",
    "credentialType": "D"
}'
Response Response Example
200 - Success
{
    "credential": "AID:59cb6372-d3db-11e5-ab30-625662870761",
    "externalId": "59cb6372-d3db-11e5-ab30-625662870761",
    "credentialType": "D",
    "canLogin": true,
    "customerNumber": 327492,
    "uniqueId": "681b86aac2cf44ecb13eeb48cb3a7b7d",
    "enabled": true,
    "newUser": false,
    "extidCode": "eyJhbGciOiJIUzUxMiJ9.....eyJjdCI6IkRfQ"
}

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
externalId
string 
required
External system unique id that represents user in third part system.
<= 60 characters
credentialType
enum<string> 
required
Credential type, for now it is only allowed type
D: AID
E: Egmont ID
H: Byggforetagen OpenID
I: Coruscant ID
L: LRF Media ID
M: Mentor ID
X: External
Z: Zephr (Hegnar)
Allowed values:
DEHILMXZ
Examples

Responses

🟢200OK
application/json
OK
Body
credential
string 
optional
Representation of user that uses the ConnectID service
<= 60 characters
externalId
string 
optional
External system unique id that represents user in third part system
<= 60 characters
credentialType
string 
optional
Credential type, for now it is only returned type:
D: aID
E: Egmont ID
H: Byggforetagen OpenID
I: Coruscant ID
L: LRF Media ID
M: Mentor ID
X: External
Z: Zephr (Hegnar)
canLogin
boolean 
optional
Says if user can login, eg. call other logged in user API:
true: User can login.
false: User can not login.
customerNumber
integer 
optional
Customer number in Connect system if is set.
uniqueId
string 
optional
External id to user in ConnectID, additional info
<= 32 characters
enabled
boolean 
optional
Says if user is enabled in ConnectID and can be used by other systems.
true: User is enabled in ConnectID and can be used by other systems.
false: User is not enabled in ConnectedID and can not be used by other systems.
newUser
boolean 
optional
Says if user is created just now or exist from before.
true: The user is created just now.
false: The user exist from before.
extidCode
string 
optional
Generated jwt token to be used with custom grant_type described here to obtain an access_token
🟠400Bad Request
🟠429429
🔴500Server Error
Previous
List external user profiles
Next
Register customer - client mode
Built with