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
Tokenization
Token API:
POST <ROOT_URL>/api/v2/payments/{id}/token/purchase
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

To be a valid Merchant on SIBS Gateway it will be necessary to have an authorisation token (<AuthToken>), <terminalId>.

Request API:

[POST] <ROOT_URL>/api/v2/payments 
Table – 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
Table notes

(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

(5) transactionID: SIBS ID of transaction is used as the identifier of the transaction on the next APIs (<transactionID>); 

(6) paymentMethodList: Payment methods available for the Merchant; 

(7) formContext: Parameter to pass when building the SPG-form (Widget & Construction of SPG-form); 

(8) mandate: mandateAvailable is set to ‘True’ if current Client has an active Authorised Payment for current Merchant and it is ready to be used. Attribute termsAndConditions indicates Merchant URI with Authorized Payment Terms & Conditions. 

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

This form has three input attributes: attr.spg-context, attr.sog-config, and attr.spg-style.

The attribute attr.spg-context should be the formContext from the Successful checkout response.

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

This form has three input attributes: attr.spg-context, attr.sog-config, and attr.spg-style.

The attribute attr.spg-context should be the formContext from the Successful checkout response.

spg-style – Merchant Configurations : The attribute attr.spg-style is a JSON string, optional allowing the Merchant to customize the SPG-FORM: 
SIBS Gateway style
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>’ 
Body
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 – Value representing the browser language as defined in IETF BCP47 

Optional
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)Required when Browser JavaScript Enable = True 

Optional
Show more
browserScreenWidth

String (Maximum 6 Numeric Text) 

Required when Browser JavaScript Enabled = true 

Optional
Show more
browserTZ

string 

Required when Browser JavaScript Enabled = true
Value is returned from the getTimezoneOffset() method
Possible values, example: 

If UTC -5 hours: 

  • 300
  • +300

If UTC +5 hours: 

  • -300
Optional
Show more
browserUserAgent

string (maximum 2048 tex)

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
actionprocessed
Optional
Show more
id

String (Maximum 50 Text) 

Optional
Show more
type

string ([“THREEDS_METHOD”, “THREEDS_CHALLENGE”, “DCC”]) 

Optional
Show more
executed

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

Optional
Show more
signingString

string (Maximum 2048 Text)

Optional
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-Id: '<clientid>'
Content-Type: 'application/json'
Path:
Id: <TransactionId>
returnStatus
Mandatory
Show more
statusCode

string (Maximum 11 Text) 

Mandatory
Show more
statusMsg

string (Maximum 256 Text) 

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

Mandatory
Show more
statusDescription

string (Maximum 256 Text) 

Mandatory
Show more
paymentModalities
Optional
Show more
modalityCode

string (Maximum 3 Numeric Text) 

Mandatory
Show more
modalityDescription

string (Maximum 200 Text)

Mandatory
Show more
BIN

Array of Numbers (Maximum 8 Numeric Text) 

Mandatory
Show more
Complex types
Merchant
Merchant
Mandatory
Show more
terminalId

Integer (int32) 

Mandatory
Show more
channel

string (Maximum 2 Text) 

Mandatory
Show more
merchantTransactionId

String (Maximum 35 Text) 

Mandatory
Show more
ReturnStatus
ReturnStatus
Mandatory
Show more
statusCode

string  (Maximum 11 Text) 

Mandatory
Show more
statusMsg

String (Maximum 256 Text) 

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

Mandatory
Show more
statusDescription

String (Maximum 256 Text) 

Mandatory
Show more
PaymentReference
PaymentReference
Mandatory
Show more
reference

String (Maximum 50 Text) 

Mandatory
Show more
entity

string  (Maximum 50 Text) 

Mandatory
Show more
paymentEntity

String (Maximum 50 Text) 

Mandatory
Show more
amount
Mandatory
Show more
value

Number (double) 

Mandatory
Show more
currency

String (ISO 4217 Alpha-3 Code) 

Mandatory
Show more
ActionProcessed
ActionProcessed

id

type

executed

Mandatory
Show more
ActionResponse
id

String (Maximum 50 Text) 

Mandatory
Show more
type

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

Mandatory
Show more
data
Mandatory
Show more
url

string (Maximum 50 Text)  

Mandatory
Show more
params
Mandatory
Show more
name

string (Maximum 50 Text)

Mandatory
Show more
data

string (Maximum 1024 Text)

Mandatory
Show more

Backoffice

Merchant Initiated Transaction API

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.

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

merchant(1) do checkout

Mandatory
Show more
transaction
Mandatory
Show more
transactionTimestamp

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

Mandatory
Show more
description

String (date-time) 

Mandatory
Show more
amount
Mandatory
Show more
value

number (double)

Mandatory
Show more
currency

string (ISO 4217 Alpha-3 Code)

Mandatory
Show more
originalTransaction 
Mandatory

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

Show more
id

string(Maximum 35 text)

Mandatory
Show more
datetime

string (date-time)

Mandatory
Show more
signingString
Optional

string (Maximum 2048 Text) 

Show more
Response (with success)
nestedmerchant
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
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
Authorisation: 'Bearer <AuthToken>'
X-IBM-Client-Id:'<clientid>'
Content-Type: 'application/json'
HMAC: 'String (Maximum 128 Base64 Text)' (optional)
Request header
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
Mandatory
Show more
value

number (double)

Mandatory
Show more
currency

string (ISO 4217 Alpha-3 Code)

Mandatory
Show more
originalTransaction
Mandatory

(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
Optional
Show more
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
Optional

string (Maximum 2048 Text) 

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 Numeric Text) 

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 

Optional

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

Show more
paymentType

string 

Optional

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

Show more
paymentReference
Optional
Show more
Reference

String (Maximum 50 Text) 

Optional
Show more
Entity

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
expireDate

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

Optional
Show more
status

string

Optional

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

Show more
transactionID

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

Optional
Show more
actionResponse
Optional
Show more
Id

string (Maximum 50 Text)

Mandatory
Show more
Type

string ([“THREEDS_METHOD”, “THREEDS_CHALLENGE”, “DCC”]) 

Optional
Show more
Data
Optional
Show more
url

String (Maximum 50 Text) 

Optional
Show more
params
Optional
Show more
parameter
Optional
Show more
name

String (Maximum 50 Text) 

Optional
Show more
data

string (Maximum 1024 Text) 

Optional
Show more
paymentStatus

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

Optional
Show more
hmac
Optional

string (Maximum 128 Base64 Text) 

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 
Request Header
Authorisation: ‘Bearer <AuthToken>’ 
X-IBM-Client-Id: ’<clientid>’
Content-Type: ‘application/json’
Body answer
merchant

Same as 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) 

Mandatory
Show more
originalTransaction
Optional

Original transaction id of the transaction to cancel

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

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

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.