Connect
  1. Order Guide
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
        GET
      • Search order details
        POST
      • List order product history
        GET
      • List order status - client mode
        GET
      • Register customer - client mode
        POST
      • Register customer
        POST
      • Register order - client mode
        POST
      • Register order
        POST
    • 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. Order Guide

How to register an order

In this article we will explain the basics on how to use our API for register an order, step by step.

Step 1: Identify payer and receiver#

The first step is to identify the payer and the receiver of the order. A payer is a person or a company who is responsible for paying the bill. We are for example using the payer's address to send an invoice. A receiver is a person or a company who receives the product(s) specified in an order. We are using the receivers address to distribute the product(s) specified in an order.
The system will automatically recognize that the payer is also the receiver if the receiver object is not defined.

Step 2: Choose payment method#

The second step is to choose a payment method. We provide a number of payment methods. Payment provider configuration is needed to use any of the available payment methods, excluding free and invoice. In order to set up this configuration please contact Mediaconnect support.
After you have chosen a payment method, you need to know if the order should be a recurring payment and the order is prepaid or not. Not all of the payment methods support recurring payment and/or prepayment.

Enter payment information for prepaid order#

You need only to enter payment information for prepaid order if the field prepaid = true. We need more information about the payment for a prepaid order. Please define the payment information object to the corresponding payment method object, for example paymentInfoPayex object for paymentMethod creditcardPayex in Register order / Register order - client mode API endpoints.
For more information about the field paymentmethod, please see our API documentation.

Step 3: Choose product specifier#

The third step is to choose a product specification type. This field is required and located under orderLines object in Register order / Register order - client mode The field productSpecType describes what type of product(s) that are used in the order. Since we need more information about an order, we have decided to split product specification types into:
coupon: The way you buy a subscription product and describe it's lifecycle (including price model).
product: It is anything related to news and books that can be offered to the market, e.g. a book.
issue: A single copy of a periodical e.g. a magazine.
article: A specific article on a website.

Required fields for a specific productSpecType#

The required fields for a specific productSpecType are described in the table below. The required fields are located under orderLine object in Register order / Register order - client mode API endpoints.
productSpecTypeRequired fieldsData input
couponproductSpecCode, productSpecNoSet coupon code in productSpecCode, coupon number in productSpecNo
productproductSet product code in product
issueproductSpecCode, productSpecNo, productSet coupon code in productSpecCode, coupon number in productSpecNo and issue code in product.
articlearticleDetailSet article information

How to grant temporary access#

After placing an order, it will be processed in the backend system. This might take some time due to various error conditions and delays. It is possible to provide a temporary grant associated with the order, in order to handle access for the end user until the order has been completely processed. In such cases the order request must contain a product (in allowAccessProduct field) and a number of seconds (in allowAccessSeconds field) for subscription products (productSpecType = coupon). If the order is for issue products (productSpecType = issue), the specified issue code in product field must exist for the given product code specified in allowAccessProduct. To grant temporary access base on category type, you have to specify categorytype in allowAccessCategoryType.

Step 4: Send order#

Warning!
You may not use the same access token to send a order by using Register order and Register order - client mode API endpoints.
Register order / Register order - client mode API endpoints contains more than 160 fields, and most of them are straight forward to understand. It is not necessary to set a value on every single field in the request when you are sending an order by using these endpoints. When you have set a value for the necessary fields for the order, then you can register the order by sending a request to Register order or Register order - client mode. If everything goes successfully, you will get an orderId in the response. This orderId is needed to fulfill (complete) the order by using the Fulfillment API or Fulfillment URL.

Step 5: Choose to complete your order by fulfillment API or fulfillment URL#

There are two alternatives to fulfill an order. Simplified, we can say that you should use fulfillment API if the order is prepaid and fulfillment URL if the order is not prepaid.
Whether you should choose fulfillment API or fulfillment URL depends also on whether the payment method that are used on the order are supported by API or URL, see the table below.
paymentMethodFulfillment URLFulfillment API
invoice✔✔
free✔✔
sms (Link Mobility)✔
smsPay✔
masterpass✔
vippsRecurring✔
kco (Klarna)✔✔
creditcardPayex✔✔
swishPayex✔✔
vippsEcommerce (single payment)✔✔
other✔
Remember that if you are using UnitePay to perform payment, the order will be prepaid, and you should use the fulfillment API (e.g. if you have made a payment with vippsRecurring by UnitePay).
The instruction about how to fulfill (complete) an order is described in two separate articles. You may find them in right side of the menu, under the title "related article".
Previous
Introduction
Next
Complete order by fulfillment URL
Built with