Connect
  1. Customer
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
        GET
      • Change customer Info
        POST
      • Search customer - client mode
        POST
      • Check customer number - client mode
        POST
      • List customer info - client mode
        GET
    • 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
      • 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. Customer

Search customer - client mode

Production
https://api.mediaconnect.no/capi
Production
https://api.mediaconnect.no/capi
POST
/v1/client/customer/search
Customer
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 allows to retrieve information about one or more customers.
Search results may be one or more customers, depending on the arguments used and what is actually present in the database.
In combination with customer number and name, you can also fill in the product. This will "shrink" search result.
Requirements for fields:
Searching by name or address require following fields to be set in request:
companyName or lastName
streetAddress
postalCode or postalPlace
Otherwise one of following fields to be set in request:
phoneNumber
email
Response
The response is a list of customers found. The list is empty if no customer is found.
Number of customers in response are limited to 5 customers.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.mediaconnect.no/capi/v1/client/customer/search' \
--header 'Content-Type: application/json' \
--data-raw '{
    "productCode": "CO27409",
    "companyName": "Company International Ltd",
    "departmentName": "Support",
    "firstName": "Ola",
    "middleName": "Fjordstrand",
    "lastName": "Nordmann",
    "careOfAddress": "",
    "streetAddress": "Grubbegata",
    "streetNumber": 6,
    "entrance": "A",
    "postalCode": 179,
    "postalPlace": "Oslo",
    "countryCode": "NO",
    "phoneNumber": "+4712345678",
    "email": "ola.nordmann@company.com"
}'
Response Response Example
200 - Success
{
    "customers": [
        {
            "customerNumber": 563457,
            "companyName": "Company International Ltd",
            "departmentName": "Support",
            "firstName": "Ola",
            "middleName": "Fjordstrand",
            "lastName": "Nordmann",
            "streetAddress": "Grubbegata",
            "streetNumber": 6,
            "postalCode": 179,
            "postalPlace": "Oslo",
            "postalAddress": "Postboks 265 Økern",
            "postalAddressPostalCode": "0510",
            "postalAddressPostalPlace": "Oslo",
            "countryCode": "NO",
            "emails": {
                "email": [
                    "ola.nordmann@company.com",
                    "ola.nordmann@hotmail.no"
                ]
            },
            "phoneNumbers": [
                {
                    "phoneNumber": "+4712345678",
                    "isMobile": true
                },
                {
                    "phoneNumber": "+4723339100",
                    "isMobile": false
                }
            ]
        }
    ]
}

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
productCode
string 
optional
Product code to match in search.
<= 12 characters
companyName
string 
optional
Company name to match in a name/address search.
<= 40 characters
departmentName
string 
optional
Department name to match in a name/address search.
<= 40 characters
firstName
string 
optional
First name to match in a name/address search.
<= 30 characters
middleName
string 
optional
Middle name to match in a name/address search.
<= 30 characters
lastName
string 
optional
Last name to match in a name/address search.
<= 30 characters
careOfAddress
string 
optional
Care of address to match in a name/address search.
<= 40 characters
streetAddress
string 
optional
Street name to match in a name/address search.
<= 40 characters
streetNumber
integer 
optional
Street number to match in a name/address search.
entrance
string 
optional
Entrance to match in a name/address search.
<= 12 characters
postalCode
string 
optional
Postal code to match in a name/address search.
<= 10 characters
postalPlace
string 
optional
Postal place to match in a name/address search.
<= 30 characters
countryCode
string 
optional
Country code, in ISO 3166-2 format, to match in a search.
<= 3 characters
phoneNumber
string 
optional
Phone number to match in a search.
A phone number has to follow the telephone number standard E.164
<= 20 characters
email
string <email>
optional
Email to match in a search.
<= 255 characters
Examples

Responses

🟢200OK
application/json
OK
Body
customers
array [object {16}] 
optional
<= 5 items
customerNumber
integer 
optional
Customer number
companyName
string 
optional
Company name
<= 40 characters
departmentName
string 
optional
Department name
<= 40 characters
firstName
string 
optional
First name
<= 30 characters
middleName
string 
optional
Middle name
<= 30 characters
lastName
string 
optional
last name
<= 30 characters
streetAddress
string 
optional
Street address
<= 40 characters
streetNumber
integer 
optional
Street number
postalCode
string 
optional
Postal code street address
<= 10 characters
postalPlace
string 
optional
Postal place street address
<= 30 characters
postalAddress
string 
optional
Postal address
<= 40 characters
postalAddressPostalCode
string 
optional
Postal code postal address
<= 10 characters
postalAddressPostalPlace
string 
optional
Postal place postal address
<= 30 characters
countryCode
string 
optional
Country code, in ISO 3166-2 format
<= 3 characters
emails
object 
optional
List with emails
phoneNumbers
array [object {2}] 
optional
List with phone numbers
🟠400Bad Request
🟠403Forbidden
🟠429429
🔴500Server Error
Previous
Change customer Info
Next
Check customer number - client mode
Built with