Create Order
POST/orders
Enables you to create a new merchant order.
Request
Header Parameters
Idempotency Key for the request
- application/json
Body
Array [
]
Processing entityId
provided by Nuvei.
ID of the transaction in the merchant system.
Possible values: <= 45 characters
A free text parameter used to identify the product/service sold. If this parameter is not sent or is sent with an empty value, then it contains the concatenation of all item names up until the parameter maximum length. Risk rules and traffic management rules are usually built based on this parameter value.
Possible values: <= 50 characters
currencyConversion
object
The type of the currency conversion.
Possible values: [MCP
]
The original amount of the transaction in the currency that the merchant requested.
The 3-letter ISO currency code of the currency that the merchant requested in the transaction.
Possible values: >= 3 characters
and <= 3 characters
The transaction amount.
Possible values: >= 3 characters
and <= 3 characters
The type of transaction.
Possible values: [Auth
, PreAuth
, Sale
]
Indicates whether the transaction was done over email/phone or is a regular transaction. Values: true = Moto transaction | false = no Moto Transaction
Describes a situation where the deposit was completed and processed with an amount lower than the requested amount due to a consumer's lack of funds within the desired payment method. Partial approval is only supported by Nuvei acquiring. Values: true
- Allow partial approval | false
- Not allow partial approval
For Authentication Zero scenarios, this optional field defines the authentication type.
Possible values: [recurring
, installments
, addCard
, maintainCard
, accountVerification
]
amountDetails
object
Amount of discount applied.
0
Amount of handling.
0
Amount of freight or shipping.
0
Total tax amount.
0
items
object[]
dynamicDescriptor
object
The merchant name, as is displayed for the transaction on the consumer's card statement.
Possible values: <= 25 characters
The merchant contact information, as is displayed for the transaction on the consumer's card statement. It can also be an email address.
Possible values: <= 255 characters
subMerchant
object
Represents the internal merchant’s ID, which is forwarded to Visa and Mastercard
Possible values: <= 15 characters
The payment facilitator’s sub-merchant’s city name.
Possible values: <= 20 characters
The payment facilitator’s sub-merchant’s 2-letter ISO country code.
Possible values: >= 2 characters
and <= 2 characters
urlDetails
object
With this class, a merchant can dynamically provide possible URLs to which the end user is redirected after a payment is made, as well as a dynamic URL for DMNs.
The URL to which notifications for outcome of the financial transactions is sent.
The URL to which the end user is redirected in case of a successful transaction with an APM.
The URL to which the end user is redirected in case of an unsuccessful transaction with an APM.
The URL to which the end user is redirected in case of a pending transaction with an APM.
rebill
object
Recurring Expiry in the format: YYYYMMDD. REQUIRED if step = init. We recommend setting expiry to a value of no more than 5 years from the date of the initial transaction processing date
Recurring Frequency in days. REQUIRED if step = init.
Indicates the type of transaction performed as part of a rebilling plan.
Possible values: [init
, recurring
, MIT
]
deviceDetails
object
Supported device types include: DESKTOP, SMARTPHONE, TABLET, TV, UNKNOWN (if device type cannot be recognized).
The customer's IP address.
browser
object
Exact content of the HTTP accept headers as sent to the 3DS Requestor from the cardholder's browser. If the total length of the accept header sent by the browser exceeds 2048 characters, the 3D-Secure Server truncates the excess portion.
Value representing the bit depth of the color palette for displaying images, in bits per pixel. Obtained from cardholder browser using the screen.colorDepth property. Values: 1, 4, 8, 15, 16, 24, 32, 48
Represents the ability of the cardholder browser to execute Java. REQUIRED when javaScriptEnabled
is TRUE. Value is returned from the navigator.javaEnabled property. Values: TRUE, FALSE
Determines whether the browser is JavaScript enabled (from navigator.javaScriptEnabled
property). Values: TRUE, FALSE
Value representing the browser language as defined in IETF BCP47. Returned from navigator.language
property.
Total height of the cardholder's screen in pixels. Value is returned from the screen.height
property.
Total width of the cardholder's screen in pixels. Value is returned from the screen
.width property.
Time difference between UTC time and the cardholder browser local time, in minutes. The value is returned from the getTimezoneOffset()
method.
Exact content of the HTTP user-agent header. If the total length of the user-agent header sent by the browser exceeds 2048 characters, the 3D-Secure Server truncates the excess portion.
custom
object
buyerDetails
object
Possible values: <= 255 characters
Possible values: <= 30 characters
Possible values: <= 40 characters
Possible values: <= 100 characters
The user's locale and default language.
Possible values: <= 5 characters
Format is YYYY-MM-DD.
Possible values: <= 100 characters
Possible values: <= 18 characters
Possible values: <= 18 characters
Possible values: <= 18 characters
The user's national ID number.
Possible values: <= 25 characters
billingAddress
object
Possible values: <= 60 characters
Possible values: <= 60 characters
Possible values: <= 60 characters
Possible values: <= 6 characters
Possible values: <= 10 characters
Possible values: <= 30 characters
Possible values: >= 2 characters
and <= 2 characters
Possible values: <= 18 characters
Set to “true” when address matches shipping address.
false
shippingAddress
object
false
Possible values: <= 60 characters
Possible values: <= 60 characters
Possible values: <= 60 characters
Possible values: <= 6 characters
Possible values: <= 10 characters
Possible values: <= 30 characters
Possible values: >= 2 characters
and <= 2 characters
Possible values: <= 30 characters
Possible values: <= 40 characters
Possible values: <= 18 characters
Possible values: <= 18 characters
Array of operations that are allowed for this order. Must be any combination of payment, settle, refund and void.
Possible values: [payments
, operations
], >= 1
uiConfig
object
Possible values: [none
, tokenOnly
, buyerToken
]
An array of fields that cannot be overridden on the order.
Possible values: >= 1
openAmount
object
Object for providing minimum and maximum amounts for open amount functionality.
Responses
- 201
- 400
- 401
- 403
- 500
OK
- application/json
- Schema
- Example (from schema)
- Example
Schema
A temporary access token that can be used to perform an action on an order.
sid_4980d755d3f64304a0cbf9b0778faff8
result
object
required
The transaction status.
Possible values: [error
, success
, pending
]
errors
object
If an error occurred on the request side, an error code is returned in this parameter.
Possible values: <= 11 characters
7000.1000
If an error occurred on the request side, then an error reason is returned in this parameter.
Possible values: <= 400 characters
Internal Processing Error
{
"sessionId": "sid_4980d755d3f64304a0cbf9b0778faff8",
"result": {
"status": "error",
"errors": {
"code": "7000.1000",
"reason": "Internal Processing Error"
}
}
}
{
"sessionId": "sid_4980d755d3f64304a0cbf9b0778faff8",
"result": {
"status": "success"
}
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
A temporary access token that can be used to perform an action on an order.
sid_4980d755d3f64304a0cbf9b0778faff8
result
object
required
The transaction status.
Possible values: [error
, success
, pending
]
errors
object
If an error occurred on the request side, an error code is returned in this parameter.
Possible values: <= 11 characters
7000.1000
If an error occurred on the request side, then an error reason is returned in this parameter.
Possible values: <= 400 characters
Internal Processing Error
{
"sessionId": "sid_4980d755d3f64304a0cbf9b0778faff8",
"result": {
"status": "error",
"errors": {
"code": "7000.1000",
"reason": "Internal Processing Error"
}
}
}
{
"result": {
"status": "error",
"errors": {
"code": "5000.1000",
"reason": "[processingEntityId] must not be null"
}
}
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
A temporary access token that can be used to perform an action on an order.
sid_4980d755d3f64304a0cbf9b0778faff8
result
object
required
The transaction status.
Possible values: [error
, success
, pending
]
errors
object
If an error occurred on the request side, an error code is returned in this parameter.
Possible values: <= 11 characters
7000.1000
If an error occurred on the request side, then an error reason is returned in this parameter.
Possible values: <= 400 characters
Internal Processing Error
{
"sessionId": "sid_4980d755d3f64304a0cbf9b0778faff8",
"result": {
"status": "error",
"errors": {
"code": "7000.1000",
"reason": "Internal Processing Error"
}
}
}
{
"result": {
"status": "error",
"errors": {
"code": "7300.3000",
"reason": "Authorization error"
}
}
}
Forbidden
- application/json
- Schema
- Example (from schema)
- Example
Schema
A temporary access token that can be used to perform an action on an order.
sid_4980d755d3f64304a0cbf9b0778faff8
result
object
required
The transaction status.
Possible values: [error
, success
, pending
]
errors
object
If an error occurred on the request side, an error code is returned in this parameter.
Possible values: <= 11 characters
7000.1000
If an error occurred on the request side, then an error reason is returned in this parameter.
Possible values: <= 400 characters
Internal Processing Error
{
"sessionId": "sid_4980d755d3f64304a0cbf9b0778faff8",
"result": {
"status": "error",
"errors": {
"code": "7000.1000",
"reason": "Internal Processing Error"
}
}
}
{
"result": {
"status": "error",
"errors": {
"code": "7300.3000",
"reason": "Authorization error"
}
}
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
- Example
Schema
A temporary access token that can be used to perform an action on an order.
sid_4980d755d3f64304a0cbf9b0778faff8
result
object
required
The transaction status.
Possible values: [error
, success
, pending
]
errors
object
If an error occurred on the request side, an error code is returned in this parameter.
Possible values: <= 11 characters
7000.1000
If an error occurred on the request side, then an error reason is returned in this parameter.
Possible values: <= 400 characters
Internal Processing Error
{
"sessionId": "sid_4980d755d3f64304a0cbf9b0778faff8",
"result": {
"status": "error",
"errors": {
"code": "7000.1000",
"reason": "Internal Processing Error"
}
}
}
{
"result": {
"status": "error",
"errors": {
"code": "7000.1000",
"reason": "Internal system error"
}
}
}