Skip to content

API (Cards)

Checkout / Get status

Checkout API includes two operation: 

Checkout Payment
POST <ROOT_URL>/api/v2/payments 
Checkout Status
GET <ROOT_URL>/api/v2/payments/{id}/status
Info

For more information about APIs please follow the link below: 

https://developer.sibsapimarket.com/sibs-qly/apimarket/product

Front office

SIBS Gateway Form integration

Widget Endpoint: The <ROOT_URL> will depend on the environment where we are working. 

ROOT_URL QLY 
https://api-qly.sibspayments.com 
ROOT_URL PRD
https://api.sibspayments.com
Request API
[POST] <ROOT_URL>/api/v2/payments
SIBS Gateway Form Integration 

Request header

Authorisation: ‘Bearer* <AuthToken>’ 
X-IBM-Client-Id: ’<clientid**>’ 
Content-Type: ‘application/json’ 
merchant (1)
Optional
Show more
terminalId

integer(int32)

Optional
Show more
Channel

string (Maximum 2 numeric text)

Optional
Show more
merchantTransactionId

string (Maximum 35 text)

Optional
Show more
customer
Optional
Show more
customerInfo
Optional
Show more
customerName

string (Maximum 45 text)

Optional
Show more
customerEmail

string (maximum 256 text)

Optional
Show more
shippingAddress
Optional
Show more
street1

string (maximum 50 text)

Optional
Show more
street2

string (maximum 19 text)

Optional
Show more
city

string (maximum 35 text)

Optional
Show more
postcode

string (maximum 16 text)

Optional
Show more
country

string (ISO 3166-1 alpha-2)

Optional
Show more
billingAddress
Optional
Show more
street1

string (maximum 50 text)

Optional
Show more
street2

string (Maximum 19 text)

Optional
Show more
city

string (maximum 35 text)

Optional
Show more
postcode

string (maximum 16 text)

Optional
Show more
country

string (ISO 3166-1 alpha-2)

Optional
Show more
extendededInfo
Optional
Show more
Key

string (maximum 256 text)

Optional
Show more
value

string (maximum 4096 text)

Optional
Show more
transaction (2)
Optional
Show more
transactionTimestamp

string (date-time)

Optional
Show more
Description

string (maximum 100 text)

Optional
Show more
Moto

boolean (“true”,”false”)

Optional
Show more
paymentType

string (“AUTH”, “PURS”, “CAPT”, “CAUT”, “RFND”, “RCON”, “RVSL”, “STIQ”, “PREF”, “CPRF”, “CMBW”, “MAND”, “MAUT”, “MPUR”, “MITR”]) 

Optional
Show more
paymentMethod

string ([“MBWAY”, “REFERENCE”, “CARD”, “TOKEN”, “STATIC”, “MANDATE”]) 

Optional
Show more
amount
Optional
Show more
value

number (double)

Optional
Show more
currency

string (ISO 4217 Alpha-3 Code)

Optional
Show more
PaymentReference
Optional
Show more
entity

string (maximum 50 text)

Optional
Show more
minAmount
Optional
Show more
value

number (double)

Optional
Show more
currency

string (ISO 4217 Alpha-3 Code)

Optional
Show more
maxAmount
Optional
Show more
value

number (double)

Optional
Show more
currency

string (ISO 4217 Alpha-3 Code)

Optional
Show more
initialDateTime

string (date-time)

Optional
Show more
finalDateTime

string (date-time)

Optional
Show more
threeDSecureOptions
Optional
Show more
authenticationExemption

string ([“LOW_VALUE”, “LOW_RISK”, ”NONE”])

Optional
Show more
info
Optional
Show more
deviceInfo
Optional
Show more
browserAcceptHeader

String (Maximum 2048 Text) 

Optional
Show more
browserJavaEnabled

String ([“True”, “False”]) 

Optional
Show more
browserJavascriptEnabled

String ([“True”, “False”]) 

Optional
Show more
browserLanguage

String 

Optional

Value representing the browser language as defined in IETF BCP47 

Show more
browserColorDepth

String  

Required when Browser JavaScript Enable = True 

Possible values: 

([“1”, ”4”, “8”, “15”, “16”, “24”, “32”, “48”]) 

  • 1 = 1 bit
  • 4 = 4 bits
  • 8 = 8 bits
  • 15 = 15 bits
  • 16 = 16 bits
  • 24 = 24 bits
  • 32 = 32 bits
  • 48 = 48 bits
Optional
Show more
browserScreenHeight

String (Maximum 6 Numeric Text)

Optional

Required when Browser JavaScript Enable = True 

Show more
browserScreenWidth

String (Maximum 6 Numeric Text)

Optional

Required when Browser JavaScript Enabled = true 

Show more
browserTZ

String 

Required when Browser JavaScript Enabled = true 

Value is returned from the getTimezoneOffset() method 

Examples: 

If UTC -5 hours: 

([“300”, “+300”]) 

If UTC +5 hours: 

([“-300”])

Optional
Show more
browserUserAgent

String (Maximum 128 Text) 

Optional
Show more
systemFamily

String (Maximum 128 Text) 

Optional
Show more
systemVersion

String (Maximum 128 Text) 

Optional
Show more
systemArchitecture

String (Maximum 128 Text)

Optional
Show more
deviceManufacturer

String (Maximum 35 Text) 

Optional
Show more
deviceModel

String (Maximum 35 Text) 

Optional
Show more
deviceID

String (Maximum 70 Text) 

Optional
Show more
applicationName

String (Maximum 100 Text) 

Optional
Show more
applicationVersion

String (Maximum 50 Text) 

Optional
Show more
geoLocalization

String (Maximum 256 Text)

Optional
Show more
ipAddress

String (Maximum 39 Text)

Optional
Show more
customerInfo
Optional
Show more
key

string (Maximum 256 text)

Optional
Show more
value

string 

(Maximum 4096 Text) 

Optional
Show more
channelInfo
Optional
Show more
key

string (Maximum 256 Text) 

Optional
Show more
value

string 

(Maximum 4096 Text) 

Optional
Show more
merchantInitiatedTransaction(3)
Optional
Show more
type

string [“UCOF”, “RCRR”]

Optional
Show more
validityDate

string date-time 

Optional
Show more
amountQualifier

string ([“ACTUAL”, “ESTIMATED”, “DEFAULT”]) 

Optional

If not present, the “DEFAULT” value is assumed. 

If merchantInitiatedTransaction has MITType “UCOF”, the amountQualifier must be set to “ESTIMATED”.

Show more
description

string (Maximum 50 Text) 

Optional
Show more
Schedule
Optional
Show more
initialDate

string date-time 

Optional
Show more
finalDate

string date-time 

Optional
Show more
interval

string

Optional

([“DAILY”, “WEEKLY”, “BIWEEKLY”, “MONTHLY”, “QUARTERLY”, “SEMIANNUAL”, “ANNUAL”])

Show more
tokenisation(4)
Optional
Show more
tokenisationRequest
Optional
Show more
tokeniseCard

boolean [“true”, “false”]

Optional
Show more
paymentTokens
Optional
Show more
tokenType

string

Optional

([“Email”, “MobilePhone”, “Card”]) 

Show more
value

string (Maximum 50 Text )

Optional
Show more
mandate(5)
Optional
Show more
mandateId

string (Maximum 64 Text)

Optional
Show more
mandateType

string

Optional

([“ONECLICK”,”SUBSCRIPTION”]) 

Show more
mandateCreationOnly

boolean

Optional

([“true”, “false”]) 

Show more

(1) Merchant: parameterization defined by the agreement between SIBS and the Merchant; 

(2) Transaction: parameterization related to the transaction, “moto” is in the case of being a transition “Mail Order Telephone Order”. The paymentType is ‘AUTH’ or ‘PURS’; 

(3) MerchantInitiatedTransaction: optional parameterization to create a transaction with Initial Cardholder Initiated Transaction; 

(4) Tokenization: optional parameterization to create a transaction with Tokenization; 

(5) Mandate: In Authorised Payment creation, mandateId is not present and mandateType must indicate type (“ONECLICK” or “SUBSCRIPTION”). In this case MandateCreationOnly can also be present. When MandateCreationOnly is present, “True” indicates “Only Creates Authorised Payment”, and “False” indicates “Creates Authorised Payment and requests payment”; 

When Client requests a payment using an Authorised Payment previously created, mandateId must be filled in with the Authorised Payment Identification. In this case merchantType and MandateCreationOnly are not present. 

Response (with success)
returnStatus
Optional
Show more
statusCode

string (maximum 11 text)

Optional
Show more
statusMsg

string  ([“Success”, “Partial”, “Declined”, “InProcessing”, “Pending”, “Timeout”, “Error”])

Optional
Show more
paymentMethodList (6)

string ([“MBWAY”,”REFERENCE”,”CARD”,”TOKEN”, “STATIC_QRCODE”, “MANDATE”]) 

Optional
Show more
merchant
Optional
Show more
terminalId

integer (int23) (“terminalId”)

Optional
Show more
amount
Optional
Show more
value

number (double)

Optional
Show more
currency

string (ISO 4217 Alpha-3 Code)

Optional
Show more
formContext (7)

string (maximum 2048 text) (“<formContext>”)

Optional
Show more
transactionID (5)

string (maximum 35 text recommend) (“<transactionID>”)

Optional
Show more
mandate (8)
Optional
Show more
mandateAvailable

boolean ([“true”, “false”])

Optional
Show more
termsAndConditions

string (maximum 500 text)

Optional
Show more
Widget construction

After a successfully request checkout, we can display the SPG-FORM, by adding a form with the class ‘paymentSPG’, and run “ROOT_URL/assets/js/widget.js?id=<transactionID>” script (Note that ROOT_URL is root URL depending on the environment). For the Merchant to have access to the SPG-FORM it is necessary to insert a form with the payment class in the DOM of Merchant HTML page with the following attributes: 

  • attr.spg-context: formContext (7) received from Checkout. 
  • attr.spg-config: configurations defined by the merchant (spg-config). 
Info

Note: this form has three input attributes: attr.spg-context, attr.spg-config, and attr.spg-style.  

The attribute attr.spg-context should be the formContext from the Successful Checkout Response. 

  • spg-config 

The attribute attr.spg-config is a JSON in a string format with the follow parameters:

Parameters nameTypeAvailable valuesDescription
paymentMethodListstring‘MBWAY’, 
‘REFERENCE’, 
‘CARD’, 
‘TOKEN’, 
‘STATIC_QRCODE’, 
‘MANDATE’
Payment methods to show on the form.
Payment methods for which the Merchant does not have permissions will not work.
redirectURLString (Maximum 2048 Text) –URL to where the User should be redirected at the end of the checkout.
amount{value: number, currency: string } Value with format double  
Currency in ISO 4217 Alpha-3 Code.
Transaction amount value 
languagestringISO 3166 
‘pt’ 
‘en’ 
Form language
CustomerData–––
  • spg-style – Merchant Configurations 

The attribute attr.spg-style is a JSON string, optional allowing the Merchant to customize the SPG-FORM: 

ParameterTypePossible valuesDefaultDescription
LAYOUT string‘default’, ‘accordion’, ‘list’‘default’ SPG Form Layout
THEME string‘default’, ‘light’, ‘dark’, ‘grey’‘default’ SPG Form Theme 
COLOR.PRIMARY string‘#ff0000’ –Primary Color in Hexadeximal
COLOR.SECONDARY string‘#ff0000’–Secondary Color in Hexadeximal 
COLOR.BORDER string‘#ff0000’ –Border Color in Hexadeximal 
COLOR.SURFACE string‘#ff0000’–Surface Color in Hexadeximal – surface is the ‘main background’ of the html page 
COLOR.HEADER.TEXTstring‘#ff0000’–Card Header Text Color in Hexadeximal 
COLOR.HEADER.BACKGROUND string‘#ff0000’ –Card Header Color in Hexadeximal
COLOR.BODY.TEXT string‘#ff0000’ –Color in Hexadeximal of the Text in the Background
COLOR.BODY.BACKGROUND string‘#ff0000’–Background Color in Hexadeximal – background is the background of the payment cards
FONTE string‘Times New Roman’–Font family used 
{
 layout?: 'default' | 'accordion' | 'list';
 theme?: 'default' | 'light' | 'dark' | 'grey';
 color?: {
 primary?: string,
 secondary?: string,
 border?: string,
 surface?: string,
 header?:{
 text?: string,
 background?: string
 }
 body?: {
 text?: string,
 background?: string
 }
 },
 font?: string
}

Transaction status inquiry

When the checkout is finished, the Merchant will be redirected to a URL (or to the root of his own website), and, to check the transaction status, they need to do a new request to the API (Transaction Status Inquiry). 

API

[GET] <ROOT_URL>/api/v2/payments/<transactionID(5)>/status 

Request header

Authorisation: ‘Bearer <AuthToken>’ 
X-IBM-Client-Id: ’<clientid>’ 

Response (with success)

returnStatus
Optional
Show more
statusCode

string (maximum 11 text)

Optional
Show more
statusMsg

string  ([“Success”, “Partial”, “Declined”, “InProcessing”, “Pending”, “Timeout”, “Error”])

Optional
Show more
paymentMethodList (6)

string ([“MBWAY”,”REFERENCE”,”CARD”,”TOKEN”, “STATIC_QRCODE”, “MANDATE”]) 

Optional
Show more
merchant
Optional
Show more
terminalId

integer (int23) (“terminalId”)

Optional
Show more
amount
Optional
Show more
value

number (double)

Optional
Show more
currency

string (ISO 4217 Alpha-3 Code)

Optional
Show more
paymentStatus(8)

string (Maximum 256 Text) 

Optional

([“Success”, “Partial”, “Declined”, “InProcessing“, “Pending”, “Timeout”, “Error”])

Show more
transactionID (5)

string (maximum 35 text recommend) (“<transactionID>”)

Optional
Show more
token(9)

string (Maximum 50 Text) (“<token>”) 

Optional
Show more
payment Reference (10)
Optional
Show more
entity

String (Maximum 50 Text) 

Optional
Show more
reference

String (Maximum 50 Text) 

Optional
Show more
amount
Optional
Show more
value

number (double)

Optional
Show more
currency

string (ISO 4217 Alpha-3 Code) 

Optional
Show more
status

string 

Optional

([“UNPAID”, “PAID”, “PARTPAIDCLS”, PARTPAIDOPN”, “CANC”, “UNKN”]) 

Show more

(8) paymentStatus: payment status of the transaction;  

(9) token: In case a token was requested, card token generated; 

(10) paymentReference: In case a payment with reference (MULTIBANCO) has been requested, generated reference.

Server-to-Server integration

Get payment modalities

API that will allow, in the checkout, receiving data regarding card payment modalities. 

API

GET /sibs/spg/{version-id}/payment-modalities/{id}/list
Request header
Authorisation: ‘Bearer <AuthToken>’ 
X-IBM-Client-Id: ’<clientid>’ 
Content-Type: ‘application/json’ 

Path – Id: <TransactionId>

Response (with success)
returnStatus
Optional
Show more
statusCode

string (Maximum 11 Text) 

Optional
Show more
statusMsg

string (Maximum 256 Text) 

Optional

([“Success”, “Partial”, “Declined”, “InProcessing”, “Pending”, “Timeout”, “Error”]) 

Show more
statusDescription

string (Maximum 256 Text) 

Optional
Show more
paymentModalities
Optional
Show more
modalityCode

string (Maximum 3 Numeric Text) 

Optional
Show more
modalityDescription

string (Maximum 200 Text)

Optional
Show more
BIN

Array of Numbers (Maximum 8 Numeric Text)

Optional
Show more
Merchant
terminalId

Integer (int32) 

Optional
Show more
channel

string (Maximum 2 Text) 

Optional
Show more
merchantTransactionId

String (Maximum 35 Text) 

Optional
Show more
ReturnStatus
statusCode

string  (Maximum 11 Text) 

Optional
Show more
statusMsg

String (Maximum 256 Text)

Optional

([“Success”, “Partial”, “Declined”, “InProcessing”, “Pending”, “Timeout”, “Error”]) 

Show more
statusDescription

String (Maximum 256 Text) 

Optional
Show more
PaymentReference
reference

String (Maximum 50 Text)

Optional
Show more
entity

string  (Maximum 50 Text) 

Optional
Show more
paymentEntity

String (Maximum 50 Text) 

Optional
Show more
amount
Optional
Show more
value

Number (double) 

Optional
Show more
currency

String (ISO 4217 Alpha-3 Code) 

Optional
Show more
ActionProcessed
id

String (Maximum 50 Text) 

Optional
Show more
type

string

Optional

(“THREEDS_METHOD” or THREEDS_CHALLENGE”) 

Show more
executed

boolean  ([“true”, “false”]) 

Optional
Show more
ActionResponse
id

String (Maximum 50 Text) 

Optional
Show more
type

String

Optional

(“THREEDS_METHOD”, “THREEDS_CHALLENGE” or “DCC”) 

Show more
data
Optional
Show more
url

string (Maximum 50 Text)  

Optional
Show more
params
Optional
Show more
name

string  (Maximum 50 Text) 

Optional
Show more
data

string  (Maximum 1024 Text) 

Optional
Show more

Backoffice

Merchant initiated transaction API
POST <ROOT_URL>/api/v2/payments/{original-tx-id}/mit

When a successful transaction is generated as Initial Transaction (3), the Merchant will be able to perform Merchant Initiated Transaction payments. 

Info

The Merchant Initiated Transaction API provides a way for Merchants to request recurring transactions.

API
[POST] <ROOT_URL>/api/v2/payments/< originalTransactionID (5)>/mit 
Request header
Authorisation: ‘Bearer <AuthToken>’ 
X-IBM-Client-Id: ’<clientid>’ 
Content-Type: ‘application/json’ 
HMAC: string ‘Maximum 128 Base64 Text’ (Optional) 
merchant

merchant(1) do checkout 

Mandatory
Show more
transactionTimestamp

String ([“RCRR”, “UCOF”]) 

Mandatory
Show more
description

String (date-time) 

Mandatory
Show more
amount
Mandatory
Show more
value

Number (double)

Optional
Show more
currency

String (ISO 4217 Alpha-3 Code) 

Optional
Show more
originalTransaction
Mandatory

Original transaction id (Cardholder Initiated Transaction) to do future Merchant Initiated Transaction payments.

Show more
id

string (Maximum 35 Text) <originalTransactionID> 

Optional
Show more
datetime

String (date-time) 

Optional
Show more
signingString
Optional

string (Maximum 2048 Text) 

Show more
transaction
Mandatory
Show more
Response (with success)
merchant
Mandatory
Show more
terminalId

integer (int32) 

Optional
Show more
Channel

string  (Maximum 2 Numeric Text) 

Optional
Show more
merchantTransactionId

String (Maximum 35 Text)

Optional
Show more
merchantTransactionTimestamp

String (Maximum 35 Text) 

Optional
Show more
returnStatus

string (Maximum 11 Text) 

Optional
Show more
statusCode

string (Maximum 11 Text)

Optional
Show more
statusMsg

String

Optional

([“Success”, “Partial”, “Declined”, “InProcessing“, “Pending”, “Timeout”, “Error”])  

Show more
statusDescription

String (Maximum 256 Text) 

Optional
Show more
Amount
Optional
Show more
value

Number (double)

Optional
Show more
currency

string (ISO 4217 Alpha-3 Code)

Optional
Show more
transactionID

String (Maximum 35 Text) (“<transactionID>”) 

Optional
Show more
transactionTimestamp

String string (date-time) 

Optional
Show more
transactionRecipientId

String (Maximum 50 Text) 

Optional
Show more
paymentStatus

string 

Optional

([“Success”, “Partial”, “Declined”, “InProcessing”, “Pending”, “Timeout”, “Error”]) 

Show more
hmac

string (Maximum 128 Base64 Text) 

Optional
Show more

Capture API

POST <ROOT_URL>/api/v2/payments/{original-tx-id}/capture

When a success transaction happens from an authorisation, it is possible to execute a capture. 

API
[POST] <ROOT_URL>/api/v2/payments/< originalTransactionID (5)>/capture 
Request header
Authorisation: ‘Bearer <AuthToken>’ 
X-IBM-Client-Id: ’<clientid>’ 
Content-Type: ‘application/json’ 
HMAC: ‘String (Maximum 128 Base64 Text)’ (Optional) 
Body
merchant

merchant(1) do checkout 

Mandatory
Show more
transaction
Mandatory
Show more
transactionTimestamp

string (date-time)

Optional
Show more
Description

String (Maximum 100 Text) 

Optional
Show more
amount
Optional
Show more
value

number (double)

Optional
Show more
currency

String (ISO 4217 Alpha-3 Code) 

Optional
Show more
originalTransaction
Optional

Original transaction id of the transaction to capture

Show more
id

String (Maximum 35 Text) <originalTransactionID>

Optional
Show more
Datetime

String (date-time) 

Optional
Show more
saleContext

splitPayment 

Optional
Show more
Split

boolean ([“true”, “false”]) 

Optional
Show more
paymentNumber

string (Maximum 50 Text) 

Optional
Show more
maxPayments

string (Maximum 50 Text) 

Optional
Show more
signingString

string (Maximum 2048 Text) 

Optional
Show more
Response (with success)
merchant
Optional
Show more
terminalId

integer (int32) 

Optional
Show more
Channel

string  (Maximum 2 Numeric Text) 

Optional
Show more
merchantTransactionId

String (Maximum 35 Text) 

Optional
Show more
merchantTransactionTimestamp

String (date-time) 

Optional
Show more
returnStatus
Optional
Show more
statusCode

string (Maximum 11 Text) 

Optional
Show more
statusMsg

String

Optional

([“Success”, “Partial”, “Declined”, “InProcessing“, “Pending”, “Timeout”, “Error”]) 

Show more
statusDescription

String (Maximum 256 Text) 

Optional
Show more
Amount
Optional
Show more
value

number (double)

Optional
Show more
currency

string  (ISO 4217 Alpha-3 Code)

Optional
Show more
transactionID

string (Maximum 35 Text) (“<transactionID>”) 

Optional
Show more
transactionTimestamp

String (date-time) 

Optional
Show more
transactionRecipientId

String (Maximum 50 Text) 

Optional
Show more
paymentStatus

string

Optional

([“Success”, “Partial”, “Declined”, “InProcessing”, “Pending”, “Timeout”, “Error”]) 

Show more
hmac

string (Maximum 128 Base64 Text)

Optional
Show more

Cancellation API

POST <ROOT_URL>/api/v2/payments/{original-tx-id}/cancellation

When a success transaction happens from an authorisation, it is possible to execute a cancellation. 

API
[POST] <ROOT_URL>/api/v2/payments/< originalTransactionID (5)>/cancellation 
Authorisation: ‘Bearer <AuthToken>’ 
X-IBM-Client-Id: ’<clientid>’ 
Content-Type: ‘application/json’ 
HMAC: string ‘Maximum 128 Base64 Text’ (Optional)
Body answer
merchant

merchant(1) do checkout 

Optional
Show more
transaction
Optional
Show more
transactionTimestamp

String (date-time) 

Optional
Show more
Description

String (Maximum 100 Text) 

Optional
Show more
amount
Optional
Show more
value

Number (double)

Optional
Show more
currency

String (ISO 4217 Alpha-3 Code)

Optional
Show more
originalTransaction
Optional

Original transaction id of the transaction to refund

Show more
Id

String (Maximum 35 Text) <originalTransactionID>

Optional
Show more
Datetime

String (date-time) 

Optional
Show more
signingString

string (Maximum 2048 Text) 

Optional
Show more
Response (with success)
merchant
Optional
Show more
terminalId

integer (int32) 

Optional
Show more
Channel

string (Maximum 2 Numeric Text) 

Optional
Show more
merchantTransactionId

String (Maximum 35 Text) 

Optional
Show more
merchantTransactionTimestamp

String (date-time) 

Optional
Show more
returnStatus
Optional
Show more
statusCode

String (Maximum 11 Text)  

Optional
Show more
statusMsg

String (Maximum 256 Text) 

([Success”, “Partial”, “Declined”, “InProcessing”, “Pending”, “Timeout”, “Error”]) 

Optional
Show more
statusDescription

String (Maximum 256 Text) 

Optional
Show more
amount
Optional
Show more
value

number (double) 

Optional
Show more
currency

string (ISO 4217 Alpha-3 Code)

Optional
Show more
transactionID

string (Maximum 35 Text) (“<transactionID>”) 

Optional
Show more
transactionTimestamp

String (date-time) 

Optional
Show more
transactionRecipientId

String (Maximum 50 Text) 

Optional
Show more
paymentStatus

string ([“Success”, “Partial”, “Declined”, “InProcessing”, “Pending”, “Timeout”, “Error”]) 

Optional
Show more
hmac

string (Maximum 128 Base64 Text) 

Optional
Show more
Refund API
POST <ROOT_URL>/api/v2/payments/{original-tx-id}/refund 

When a success transaction happens from a capture or purchase, it is possible to execute a refund. 

API
[POST] <ROOT_URL>/api/v2/payments/< originalTransactionID (5)>/refund 
Request header
Authorisation: ‘Bearer <AuthToken>’ 
X-IBM-Client-Id: ’<clientid>’ 
Content-Type: ‘application/json’ 
HMAC: string ‘Maximum 128 Base64 Text’ (Optional) 
Body answer
merchant

merchant(1) do checkout 

Optional
Show more
transaction
Optional
Show more
transactionTimestamp

String (date-time) 

Optional
Show more
Description

String (Maximum 100 Text) 

Optional
Show more
amount
Optional
Show more
value

Number (double)

Optional
Show more
currency

String (ISO 4217 Alpha-3 Code)

Optional
Show more
originalTransaction
Optional

Original transaction id of the transaction to refund

Show more
Id

String (Maximum 35 Text) <originalTransactionID>

Optional
Show more
Datetime

String (date-time) 

Optional
Show more
signingString

string (Maximum 2048 Text) 

Optional
Show more
Response (with success)
Body answer
merchant
Optional
Show more
terminalId

integer (int32) 

Optional
Show more
Channel

string (Maximum 2 Numeric Text) 

Optional
Show more
merchantTransactionId

String (Maximum 35 Text) 

Optional
Show more
merchantTransactionTimestamp

String (date-time) 

Optional
Show more
returnStatus
Optional
Show more
statusCode

String (Maximum 11 Text)  

Optional
Show more
statusMsg

String (Maximum 256 Text) 

([Success”, “Partial”, “Declined”, “InProcessing”, “Pending”, “Timeout”, “Error”]) 

Optional
Show more
statusDescription

String (Maximum 256 Text) 

Optional
Show more
amount
Optional
Show more
value

number (double) 

Optional
Show more
currency

string (ISO 4217 Alpha-3 Code)

Optional
Show more
transactionID

string (Maximum 35 Text) (“<transactionID>”) 

Optional
Show more
transactionTimestamp

String (date-time) 

Optional
Show more
transactionRecipientId

String (Maximum 50 Text) 

Optional
Show more
paymentStatus

string ([“Success”, “Partial”, “Declined”, “InProcessing”, “Pending”, “Timeout”, “Error”]) 

Optional
Show more
hmac

string (Maximum 128 Base64 Text) 

Optional
Show more
This site is registered on wpml.org as a development site. Switch to a production site key to remove this banner.