- Connect/ConnectID API Reference
- Overview
- Customer Data
- Address
- Category
- Customer
- External Reference
- Order Management
- Article
- Coupon
- Fulfillment
- Order
- Reward
- User
- Voucher Coupons
- Payment Services
- 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
- Privacy
- Consent
- Product & Services
- Complaint
- Delivery
- DeliveryStop
- Issue
- Product
- ProductDeliveryPlan
- ProductDependency
- 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
- Recruitment
- User Data
- Diverse
Start subscription
Production
https://api.mediaconnect.no/capi
Production
https://api.mediaconnect.no/capi
POST
/v1/subscription
Subscription
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.mediaconnect.no/capi/v1/subscription' \
--header 'Content-Type: application/json' \
--data-raw '{
"companyCode": "468979834",
"product": "CO27409",
"startTime": 1560336440000,
"endTime": 1591958840000,
"copies": "1",
"couponCode": "WMDigi",
"couponNumber": 5223,
"customerReference": "cvxgds"
}'
Response Response Example
200 - Success
{
"status": "OK"
}
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
or
Body Params application/json
companyCode
stringÂ
optional
<= 12 characters
product
stringÂ
required
<= 12 characters
startTime
integerÂ
required
1970 UTC
endTime
integerÂ
optional
copies
integerÂ
required
couponCode
stringÂ
required
<= 12 characters
couponNumber
integerÂ
required
customerReference
stringÂ
optional
<= 37 characters
Examples
Responses
🟢200OK
application/json
Body
status
stringÂ
optional
🟠400Bad Request
🟠429429
🔴500Server Error