Order

Orders contain one or more order items. Orders with status other than failed and pending will have transactions attached to them.

Crediting an order can be done by a full credit or a partial credit. Partial credits must be done by specifying which order item you want to credit. If you specify an amount (optional), the corresponding order item will be partially credited. In a full credit there is no need to specify any other fields than description, which is required in both full and partial credits.

Crediting an order will trigger a user notification, which will inform the user about the order change. This can be optionally turned off by setting the field notifyUser to false.

Capturing an order can be done by a full or a partial capture. Partial captures must be done by specifying which order item you want to capture. If you specify an amount (optional), the corresponding order item will be partially captured. In a full capture there is no need to specify any other fields.

All captured and credited VAT amounts will match the corresponding VAT percentage set in the order item.

orderId

integer

Unique order ID

clientId

string

ID of the client this order belongs to

merchantId

integer

Merchant ID

clientReference

string

Custom client reference (inherited from Paylinks)

extOrderRef

string

External order reference

extTransRef

string

External transaction reference

identifierId

integer

Payment method identifier ID

identifierType

Payment options

Payment type for the payment method identifier used

userFlow

User flow

The user involvement level during creation of this order

purchaseFlow

Purchase flow

What type of purchase flow this order was processed with

userId

integer

ID of the user this order belongs to

sellerUserId

integer

ID of the user who will receive money from this order. Used in P2P.

paylinkId

integer

ID used to create this order

ocr

string

OCR/KID number

type

Order type

Order type

totalPrice

integer

Total price (including VAT amount) for the complete order

vat

integer

VAT, fraction × 10000. For instance, 25% would be 2500

calculatedVat

integer

Total amount of VAT for this order

creditedAmount

integer

Amount of the order credited. Defaults to 0.

capturedAmount

integer

Amount of the order captured. Defaults to full amount or 0, depending on paymentFlow.

creditedVatAmount

integer

Credited VAT amount

capturedVatAmount

integer

Captured VAT amount

currency

string

Order currency; SEK, NOK, USD

campaignId

integer

ID of the campaign that triggered this order

voucherId

integer

ID of the voucher used for this order

tag

string

Can be used for custom order tracking

status

Order status

transactionSynced

Transaction synced status

transactionStatus

integer

Third party payment provider transaction status

errorCode

string

Error Code

errorDescription

string

Error Description

errorThirdparty

string

Third-Party Error Description (e.g. VISA error)

updated

datetime

The time the order was last updated

created

datetime

The time the order was created

statusChecked

datetime

The last time the order status was checked by a client via the /status endpoint

identifier

Payment identifier

Payment method used for this order

items

list of Order items

transactions

list of Transactions

The check mark indicates that the field always contains a valid non-empty value.

Order item

orderItemId

integer

Unique order item ID

orderId

integer

Unique Order ID

clientId

string

Client ID

clientItemReference

string

A client provided reference to this order item. (Inherited from Paylink items)

productId

integer

Product ID. Defaults to 0

discountId

integer

Discount ID (if available)

type

Order item type

status

integer

Order item status

code

string

Product code

name

string

Product Name

description

string

Order item description

description_2

string

Order item description, line 2

description_3

string

Order item description, line 3

description_4

string

Order item description, line 4

price

price

Single item price (including VAT amount)

vat

integer

VAT, fraction × 10000. For instance, 25% would be 2500

capturedAmount

integer

The amount captured on this item

creditedAmount

integer

The amount credited on this item

quantity

integer

The number of occurrences of this productId/type

updated

datetime

When the order was last updated

created

datetime

When the order was created

The check mark indicates that the field always contains a valid non-empty value.

Order status

Order status changes happen according to the following state-machine:

Order status state machine

See callbacks to learn how to subscribe to these changes.

An enum, with the following possible values:

"-3"

Expired

"-2"

Cancelled

"-1"

Failed

"0"

Created

"1"

Pending

"2"

Complete

"3"

Credited

"4"

Authorized

Order type

An enum, with the following possible values:

"0"

Purchase

"1"

Renew

"2"

Transfer

"3"

Re-purchase

"4"

Direct

Payment options

Payment options can be provided as a bit mask.

Bitmask format is the default format. If payment options are not provided, the default value is 2 (bank card with PayEx).

Examples: 2 means credit card, 4 means SMS, while 6 means both credit card and SMS.

An enum, with the following possible values:

"1"

Masterpass

"2"

Credit card

"4"

SMS

"8"

PayEx Invoice

"16"

Voucher

"32"

Klarna Invoice

"64"

Klarna Mobile

"128"

Wallet

Purchase flow

An enum, with the following possible values:

"DIRECT"

Direct purchase flow

"AUTHORIZE"

Authorize/Capture purchase flow

Payment identifier

A payment identifier is a means of payment, e.g. credit card, SMS and others.

identifierId

integer (as string)

Unique payment identifier ID

identifier

string

The actual identifier, like a credit card number or cell phone number

type

Payment identifier type

mediaDistribution

string

Invoice distribution; "PDF" or "PAPER"

method

string

Payment method (VISA, MC, SMS)

description

string

expirationDate

datetime

When this payment identifier expires

userId

string

userId of the user who owns this payment identifier

maxAmount

string

The maximum amount that can be charged

status

Payment identifier status

updated

string

When the payment identifier was last updated

created

string

When the payment identifier was created

The check mark indicates that the field always contains a valid non-empty value.

Transaction

transactionId

integer (as string)

Unique ID of the transaction

masterId

integer (as string)

ID of master transaction

clientId

string

userId

integer (as string)

ID of the user the transaction is for

type

Transaction type

reference

string

Third-party reference

orderId

integer (as string)

amount

price

currency

string

description

string

ip

string

The IP address from which the transaction was made

createdBy

integer (as string)

ID of the user who created the transaction

created

datetime

The check mark indicates that the field always contains a valid non-empty value.

Comments/feedback

Do you have questions, or just want to contribute some newly gained insight? Want to share an example? Please leave a comment. Our team reads and responds to every question. Additionally, your experience can help others using Schibsted account, and it can help us continuously improve our documentation.