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

Complete order by fulfillment URL

In this article we are focusing on how to complete a order by using the fulfillment URL. You may use fulfillment URL if the order is not prepaid and for all payment methods that requires user involvement for processing the payment. This includes all payment methods excluding other and sms (Link mobility).

Step 6: Complete your order by fulfillment URL#

To fulfill an order, you need to have an orderId. You received the orderId when you registered the order in step 4. In addition to this, you need to specify a returnUrlfor redirecting the user after processing the payment. Read more about the Fulfillment URL.
A detailed description of processing the payment is described below:
1.
Redirect the user to Fulfillment URL.
2.
Send orderId and absolute returnUrl as query parameters in the URL.
The next step depends on if the order is prepaid or not. Step 7 describes the process for paying the order and this is only required if the order is not prepaid (prepaid = false). Please skip step 7 if the order is prepaid. The system will redirect the user to the returnUrlif the order is prepaid.

Step 7: Paying the order#

In this step we describe how to pay the order. Please skip this step if the order is prepaid (prepaid = true).
We are continuing the payment process from step 6:
3.
Redirecting the user to the payment provider. The user may pay the order.
4.
After the payment process is done. The user will be redirected to the returnUrland a fulfillmentStatus parameter is added. The value of this parameter is
success if the order was paid.
cancel if the user canceled the payment process.
error if an error occured.
unknown is only used when something goes wrong and we may not get end status of transaction.
If the fulfillmentStatus is not success, further processing of the order will be stopped. This means that the order will not be transferred to the backend system.

Step 8: Handle the order in Connect#

After the user has been redirected to returnUrl:
The user will be granted a temporary access if the order has followed the process described for how to grant temporary access.
The system will update the order with userId if the user was logged in with ConnectID.
The order will be marked as "fulfilled" in the system.

Step 9: Assign the user to the order#

You can skip this step if the user was logged into the system before order registration.
You need to connect the user to the order if the user was not logged into the system before order registration, and the order specifies products with digital content that requires access. In this case you have used Register order – client mode for order registration. This means you used for example Register order - client mode for order registration.
The API will check if the user has an account. A user account will be created if the user does not have an account. If the user has an account, it will inform if the password is set or not. The user account will be connected to the order with the specified orderId.
Please see the Assign user - client mode in our API documentation for a detailed description of this endpoint.
Previous
How to register an order
Next
Complete order by fulfillment API
Built with