Create Unrelated Refund
POST/refunds
Creates a unrelated refund to a previous transaction.
Request
Header Parameters
Idempotency Key for the request
- application/json
Body
Processing entityId
provided by Nuvei.
ID of the transaction in the merchant system.
Possible values: <= 45 characters
currencyConversion
object
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
A free text field used to identify the product/service sold. If this parameter is left empty, need to insert a concatenation of all item names. It's not related to rebilling system product id. Risk rules and traffic management rules are usually built based on this field value.
Possible values: <= 50 characters
custom
object
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 for a successful transaction with an APM.
The URL to which the end user is redirected for an unsuccessful transaction with an APM.
The URL to which the end user is redirected for a pending transaction with an APM.
paymentOption
object
required
card
object
The cardholder name.
Possible values: <= 70 characters
The full card number.
Possible values: non-empty
and <= 20 characters
The card expiration month.
Possible values: >= 2 characters
and <= 2 characters
, Value must match regular expression ^(0[1-9]|1[0-2])$
12
Possible values: >= 2 characters
and <= 4 characters
, Value must match regular expression ^(\d{4}|\d{2})$
2023
The CVV/CVC security code.
Possible values: >= 3 characters
and <= 4 characters
, Value must match regular expression ^([0-9]{3}|[0-9]{4})$
123
Merchant Reference for a business entity (token, subscription, etc.)
Possible values: <= 50 characters
12391284AF87C7D2
paymentToken
object
Payment Token ID
additionalData
object
temporaryPaymentToken
object
Payment Token ID
Merchant Reference for a business entity (token, subscription, etc.)
Possible values: <= 50 characters
12391284AF87C7D2
Possible values: [none
, tokenOnly
, buyerToken
]
buyerDetails
object
Unique customer identifier in your system.
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
Responses
- 201
- 400
- 401
- 403
- 404
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
2f00eba7-66ad-4d8b-8d54-b8c9183e664f
Nuvei Digital Payments Gateway Transaction ID
Possible values: <= 20 characters
The transaction ID of the transaction in the event that an external service is used.
Possible values: <= 50 characters
The transaction amount.
The authorization code of the transaction.
Possible values: <= 128 characters
providerResponseDetails
object
Possible values: <= 100 characters
Possible values: <= 400 characters
additionalTransactionInfo
object
result
object
required
Possible values: [approved
, authorizedOnly
, declined
, error
, pending
, redirect
, challenge
, fingerprint
, authenticated
, authenticationNotSupported
]
errors
object
Possible values: <= 11 characters
7000.1000
Possible values: <= 400 characters
Internal Processing Error
{
"refundId": "2f00eba7-66ad-4d8b-8d54-b8c9183e664f",
"transactionId": "string",
"externalTransactionId": "string",
"amount": 0,
"currency": "string",
"authCode": "string",
"providerResponseDetails": {
"code": "string",
"reason": "string"
},
"additionalTransactionInfo": {
"additionalTransactionBankId": "string",
"referenceId": "string"
},
"result": {
"status": "approved",
"errors": {
"code": "7000.1000",
"reason": "Internal Processing Error"
}
}
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
2f00eba7-66ad-4d8b-8d54-b8c9183e664f
Nuvei Digital Payments Gateway Transaction ID
Possible values: <= 20 characters
The transaction ID of the transaction in the event that an external service is used.
Possible values: <= 50 characters
The transaction amount.
The authorization code of the transaction.
Possible values: <= 128 characters
providerResponseDetails
object
Possible values: <= 100 characters
Possible values: <= 400 characters
additionalTransactionInfo
object
result
object
required
Possible values: [approved
, authorizedOnly
, declined
, error
, pending
, redirect
, challenge
, fingerprint
, authenticated
, authenticationNotSupported
]
errors
object
Possible values: <= 11 characters
7000.1000
Possible values: <= 400 characters
Internal Processing Error
{
"refundId": "2f00eba7-66ad-4d8b-8d54-b8c9183e664f",
"transactionId": "string",
"externalTransactionId": "string",
"amount": 0,
"currency": "string",
"authCode": "string",
"providerResponseDetails": {
"code": "string",
"reason": "string"
},
"additionalTransactionInfo": {
"additionalTransactionBankId": "string",
"referenceId": "string"
},
"result": {
"status": "approved",
"errors": {
"code": "7000.1000",
"reason": "Internal Processing Error"
}
}
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
2f00eba7-66ad-4d8b-8d54-b8c9183e664f
Nuvei Digital Payments Gateway Transaction ID
Possible values: <= 20 characters
The transaction ID of the transaction in the event that an external service is used.
Possible values: <= 50 characters
The transaction amount.
The authorization code of the transaction.
Possible values: <= 128 characters
providerResponseDetails
object
Possible values: <= 100 characters
Possible values: <= 400 characters
additionalTransactionInfo
object
result
object
required
Possible values: [approved
, authorizedOnly
, declined
, error
, pending
, redirect
, challenge
, fingerprint
, authenticated
, authenticationNotSupported
]
errors
object
Possible values: <= 11 characters
7000.1000
Possible values: <= 400 characters
Internal Processing Error
{
"refundId": "2f00eba7-66ad-4d8b-8d54-b8c9183e664f",
"transactionId": "string",
"externalTransactionId": "string",
"amount": 0,
"currency": "string",
"authCode": "string",
"providerResponseDetails": {
"code": "string",
"reason": "string"
},
"additionalTransactionInfo": {
"additionalTransactionBankId": "string",
"referenceId": "string"
},
"result": {
"status": "approved",
"errors": {
"code": "7000.1000",
"reason": "Internal Processing Error"
}
}
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
2f00eba7-66ad-4d8b-8d54-b8c9183e664f
Nuvei Digital Payments Gateway Transaction ID
Possible values: <= 20 characters
The transaction ID of the transaction in the event that an external service is used.
Possible values: <= 50 characters
The transaction amount.
The authorization code of the transaction.
Possible values: <= 128 characters
providerResponseDetails
object
Possible values: <= 100 characters
Possible values: <= 400 characters
additionalTransactionInfo
object
result
object
required
Possible values: [approved
, authorizedOnly
, declined
, error
, pending
, redirect
, challenge
, fingerprint
, authenticated
, authenticationNotSupported
]
errors
object
Possible values: <= 11 characters
7000.1000
Possible values: <= 400 characters
Internal Processing Error
{
"refundId": "2f00eba7-66ad-4d8b-8d54-b8c9183e664f",
"transactionId": "string",
"externalTransactionId": "string",
"amount": 0,
"currency": "string",
"authCode": "string",
"providerResponseDetails": {
"code": "string",
"reason": "string"
},
"additionalTransactionInfo": {
"additionalTransactionBankId": "string",
"referenceId": "string"
},
"result": {
"status": "approved",
"errors": {
"code": "7000.1000",
"reason": "Internal Processing Error"
}
}
}
Not Found
- application/json
- Schema
- Example (from schema)
Schema
2f00eba7-66ad-4d8b-8d54-b8c9183e664f
Nuvei Digital Payments Gateway Transaction ID
Possible values: <= 20 characters
The transaction ID of the transaction in the event that an external service is used.
Possible values: <= 50 characters
The transaction amount.
The authorization code of the transaction.
Possible values: <= 128 characters
providerResponseDetails
object
Possible values: <= 100 characters
Possible values: <= 400 characters
additionalTransactionInfo
object
result
object
required
Possible values: [approved
, authorizedOnly
, declined
, error
, pending
, redirect
, challenge
, fingerprint
, authenticated
, authenticationNotSupported
]
errors
object
Possible values: <= 11 characters
7000.1000
Possible values: <= 400 characters
Internal Processing Error
{
"refundId": "2f00eba7-66ad-4d8b-8d54-b8c9183e664f",
"transactionId": "string",
"externalTransactionId": "string",
"amount": 0,
"currency": "string",
"authCode": "string",
"providerResponseDetails": {
"code": "string",
"reason": "string"
},
"additionalTransactionInfo": {
"additionalTransactionBankId": "string",
"referenceId": "string"
},
"result": {
"status": "approved",
"errors": {
"code": "7000.1000",
"reason": "Internal Processing Error"
}
}
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
2f00eba7-66ad-4d8b-8d54-b8c9183e664f
Nuvei Digital Payments Gateway Transaction ID
Possible values: <= 20 characters
The transaction ID of the transaction in the event that an external service is used.
Possible values: <= 50 characters
The transaction amount.
The authorization code of the transaction.
Possible values: <= 128 characters
providerResponseDetails
object
Possible values: <= 100 characters
Possible values: <= 400 characters
additionalTransactionInfo
object
result
object
required
Possible values: [approved
, authorizedOnly
, declined
, error
, pending
, redirect
, challenge
, fingerprint
, authenticated
, authenticationNotSupported
]
errors
object
Possible values: <= 11 characters
7000.1000
Possible values: <= 400 characters
Internal Processing Error
{
"refundId": "2f00eba7-66ad-4d8b-8d54-b8c9183e664f",
"transactionId": "string",
"externalTransactionId": "string",
"amount": 0,
"currency": "string",
"authCode": "string",
"providerResponseDetails": {
"code": "string",
"reason": "string"
},
"additionalTransactionInfo": {
"additionalTransactionBankId": "string",
"referenceId": "string"
},
"result": {
"status": "approved",
"errors": {
"code": "7000.1000",
"reason": "Internal Processing Error"
}
}
}