- Overview
- Integration
- Recipes
- General Concepts
- Merchant dashboard
- References
- Our Restful API
- E-Commerce acquiring
- Transfers
- Cards and accounts (UAPI)
- Payment transactions using tokens
- Apple Pay
- Google Pay
- E-Commerce acquiring
/Payment
POST
/Payment
Request
Header Params
ExtSystemid
string
required
>= 1 characters<= 50 characters
Example:
ECOM_GOLD_BANK
login
string
required
>= 1 characters<= 30 characters
Example:
SECURE_LOGIN
password
string
required
>= 1 characters<= 30 characters
Example:
SECURE_PASSWORD
orderNumber
string
required
store system. It is unique for every store in the system and
is generated on the order registration
>= 1 characters<= 32 characters
Example:
1234
orderId
string
optional
>= 36 characters<= 36 characters
Example:
dbafea6c-3394-4f6a-a0d2-21d3d8e93e42
RegDate
string <date-time>
required
<= 19 characters
Example:
2023-09-12 12:16:00
Match pattern:
YYYY-MM-DD hh:mm:ss
x-uws-clientdn
string
required
<= 500 characters
Example:
GOLDENBANK
Content-Type
string
optional
Example:
application/json;charset=UTF-8
charset
string
optional
Example:
UTF-8
accept
enum<string>
required
Allowed value:
application/json
Body Params application/json
orderData
object
required
amount
number
150000
<= 10000000000000000000
currency
string
optional
>= 3 characters<= 3 characters
externalFee
string
optional
<= 9 characters
description
string
required
<= 512 characters
sender
object
required
pan
string
required
<= 20 characters
expiry
string
required
<= 4 characters
Example:
2412
Match pattern:
YYMM
cvc
string
required
>= 3 characters<= 3 characters
Example:
123
Match pattern:
^\d+$
senderCardName
string
required
<= 25 characters
senderAddress
string
optional
<= 35 characters
senderCity
string
optional
<= 25 characters
Example:
Kyiv
senderCountry
string
optional
>= 3 characters<= 3 characters
Example:
804
senderPostalCode
string
optional
<= 8 characters
Example:
M79019
sendercardalias
string | null
optional
sendertoken = 'publish'.
The filling and the value passed in the current tag are not controlled.
Used when creating the token.
sendertoken
string | null
optional
When a payment transaction is required using a payment token, the tag is filled with the value of the payment jwt token.
pageData
object
required
language
string
required
>= 2 characters<= 2 characters
Example:
uk
returnUrl
string
required
<= 512 characters
failUrl
string
required
<= 512 characters
browserParams
object
required
javascriptEnabled
string
required
Example:
true
userAgent
string
required
Example:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.3
colorDepth
string
required
<= 3 characters
Example:
24
screenHeight
string
required
screenWidth
string
required
javaEnabled
boolean
required
Default:
true
browserLanguage
string
required
Example:
uk-UA
browserTimeZone
string
required
Example:
Europe/Kiev
browserAcceptHeader
string
required
Example:
*/*
browserIpAddress
string
required
>= 3 characters<= 5 characters
Example:
192.139.102.100
browserTimeZoneOffset
string
required
>= 3 characters<= 5 characters
Example:
-120
fingerprint
string
optional
os
string
optional
osversion
string
optional
mobile
string
optional
screenPrint
string
optional
plugins
string
optional
deviceType
string
optional
device
string
optional
Example
{
"sender": {
"cvc": "576",
"senderCardName": "Test Test",
"expiry": "2606",
"pan": "5248721588681850",
"sendercardalias": "My card for ZP",
"sendertoken": "publish"
},
"orderData": {
"amount": 30000,
"description": "Paymnet order 12345",
"currency": 980
},
"pageData": {
"language": "uk",
"returnUrl": "https://order.ukrcard.ua/acquiring/acquiringresult?id=8646997",
"failUrl": "https://order.ukrcard.ua/acquiring/acquiringresult?id=8646997"
},
"jsonParams": {
"disableEmail": "true",
"disablePhone": "true"
},
"browserParams": {
"javascriptEnabled": true,
"userAgent": "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Mobile Safari/537.36",
"colorDepth": 24,
"screenHeight": 892,
"screenWidth": 412,
"javaEnabled": false,
"browserLanguage": "ro-MD",
"browserTimeZone": "Europe/Chisinau",
"browserAcceptHeader": "*/*",
"browserIpAddress": "94.139.152.182",
"browserTimeZoneOffset": 120
}
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://mock.apidog.com/m1/537337-0-default/Payment' \
--header 'ExtSystemid: ECOM_GOLD_BANK' \
--header 'login: SECURE_LOGIN' \
--header 'password: SECURE_PASSWORD' \
--header 'orderNumber: 1234' \
--header 'orderId: dbafea6c-3394-4f6a-a0d2-21d3d8e93e42' \
--header 'RegDate: 2023-09-12 12:16:00 ' \
--header 'x-uws-clientdn: GOLDENBANK' \
--header 'charset;' \
--header 'accept;' \
--header 'Content-Type: application/json' \
--data-raw '{
"sender": {
"cvc": "576",
"senderCardName": "Test Test",
"expiry": "2606",
"pan": "5248721588681850",
"sendercardalias": "My card for ZP",
"sendertoken": "publish"
},
"orderData": {
"amount": 30000,
"description": "Paymnet order 12345",
"currency": 980
},
"pageData": {
"language": "uk",
"returnUrl": "https://order.ukrcard.ua/acquiring/acquiringresult?id=8646997",
"failUrl": "https://order.ukrcard.ua/acquiring/acquiringresult?id=8646997"
},
"jsonParams": {
"disableEmail": "true",
"disablePhone": "true"
},
"browserParams": {
"javascriptEnabled": true,
"userAgent": "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Mobile Safari/537.36",
"colorDepth": 24,
"screenHeight": 892,
"screenWidth": 412,
"javaEnabled": false,
"browserLanguage": "ro-MD",
"browserTimeZone": "Europe/Chisinau",
"browserAcceptHeader": "*/*",
"browserIpAddress": "94.139.152.182",
"browserTimeZoneOffset": 120
}
}'
Responses
🟢200OK
application/json
Body
orderParam
object
required
orderStatus
integer
required
orderId
string
required
orderVerifyFlag
integer
required
orderAuthParam
object
required
fee
null
required
auth3DData
object
required
paReq
null
required
acsurl
string
required
creq
string
required
Examples
{
"orderParam": {
"orderStatus": 2,
"orderId": "7a7dee7f-5d0f-43f7-8d44-d0e646641743",
"orderAuthParam": {
"approvalCode": "951678",
"authCode": 2
}
},
"fee": null,
"auth3DData": {
"acsurl": null,
"paReq": null,
"creq": null
},
"tokeninfo": {
"tokenid": "294685",
"tokenexpiry": "2024-10-19T16:07:06",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGllbnQiOiJwYW5DbGllbnQiLCJpZCI6IjY3MGUzMGJhNzMyYjc0YmVmMmZkNjM3OCIsInBhbl9tYXNrIjoiNTEyNzQzKioqKioqMjg5MCIsImV4cGRhdGUiOiIyOTA3IiwiY29uZl9kYXRhIjoiMWViMDUwYjJhNDE5OTI2YTRjZDk1MzdjM2M4NTczODc1ODE2YTgwYmY3ZjIzMWU2OTQ1OWEzNDliZjI2MTU4YzBlMDM4ODVhMjE5YzYyNWViNThiYzVkNmMyZjIxOTFkYTkzMWJlMDE5NmNlMTIzY2IzOWU5ODgzYzZhYTFiNjgxZDhhZWZkY2I4YTk2YzRiNDA5MzI1Y2JlYTFjNzYyNDUzNDgzZTViZDJmOTdiMjk1YjViY2ZmMDUxZGQxODM3OTRmNWYwNDdmYWEyZDU4MmJiOGViMWU2ZTNlNTk2ZjVjYjQ5MzMwZDJkN2E0NGJhMTQ0MDdmODYyYjJhYjZkOSIsInN1YiI6IjI5NDY4NSNNeSBjYXJkIGZvciBaUCM1MTI3IyMjIyMjMjg5MCMiLCJleHAiOjE3MjkzNDMyMjZ9.GhQVizQxLRy-0rB-CN5ePOtTF8-6zN6rqDoKgpDnskI"
}
}
🔴500wsGate Internal Error
Modified at 2025-01-31 15:11:42