PayKKa API reference (v1.2)

Download OpenAPI description
Languages
Servers
Generated server url

https://sandbox.aq.paykka.com/

Notify Webhook

Notify Webhook Documentation

Operations

Transaction

Transaction

Operations

Remove Token

Request

Remove Token

Headers
typestringrequired

Signature Algorithm, eg: RSA256

Example: RSA256
signaturestringrequired

signature value

Example: Mif3gh48xxxxxxxxx
versionstringrequired

API version number, eg: v1.2

Example: v1.2
Bodyapplication/jsonrequired
merchant_idstring[ 0 .. 32 ] charactersrequired

Merchant ID

Example: "18356675194960"
timestampinteger(int64)required

Timestamp

Example: 1700805506000
tokenstring[ 0 .. 64 ] charactersrequired

Card token

Example: "TK32896597324223532"
shopper_referencestring[ 0 .. 64 ] charactersrequired

Customer number, required when store_payment_method=true or token payment

Example: "user1234567890"
curl -i -X POST \
  https://sandbox.aq.paykka.com/payments/token/remove \
  -H 'Content-Type: application/json' \
  -H 'signature: Mif3gh48xxxxxxxxx' \
  -H 'type: RSA256' \
  -H 'version: v1.2' \
  -d '{
    "merchant_id": "18356675194960",
    "timestamp": 1745922570644,
    "token": "TK206139xxx264751",
    "shopper_reference": "f4911bc8b17106a08f2f7a89a9fc4d11"
  }'

Responses

OK

Body*/*
ret_codestringrequired

ResultCode of current request

ret_msgstringrequired

ResultMessage of current request

Response
*/*

Request Success

{
  "ret_msg": "Success",
  "ret_code": "000000"
}

Initiate Transaction

Request

Initiate Transaction

Headers
typestringrequired

Signature Algorithm, eg: RSA256

Example: RSA256
signaturestringrequired

signature value

Example: Mif3gh48xxxxxxxxx
versionstringrequired

API version number, eg: v1.2

Example: v1.2
Bodyapplication/jsonrequired
merchant_idstring[ 0 .. 32 ] charactersrequired

Merchant ID

Example: "18356675194960"
payment_typestringrequired

Payment type/Payment method

Enum"PURCHASE""RECURRING"
Example: "PURCHASE"
authorisation_typestring

Authorization type, default FINAL_AUTH

Value"FINAL_AUTH"
Example: "FINAL_AUTH"
capture_methodstring(Capture Method)

AUTOMATIC: Automatic
MANUAL: Manual

Enum"AUTOMATIC""MANUAL"
trans_idstring[ 0 .. 32 ] charactersrequired

Merchant order number

Example: "t202311081113"
timestampinteger(int64)required

Timestamp

Example: 1700805506000
currencystring(Currency; Pass the ISO 3166-1 supported currency three-letter code)required

Currency; Pass the ISO 3166-1 supported currency three-letter code

Enum"CNY""USD""JPY""RUB""EUR""GBP""HKD""AUD""CAD""INR"
Example: "USD"
amountinteger(int64)>= 1required

Transaction amount, enter a value that conforms to the minimum unit rule of the transaction currency (e.g.: USD/CNY unit is cent, JPY unit is yen)

Example: 1250
notify_urlstring[ 0 .. 200 ] charactersrequired

Transaction notification address; After the transaction succeeds/fails, the transaction result will be sent to the corresponding URL

Example: "https://www.baidu.com/notifyUrl"
return_urlstring[ 0 .. 200 ] characters

Transaction redirect address; When the transaction triggers 3D secure verification or the session payment is completed, this URL is required for non-subsequent recurring payments

Example: "https://www.baidu.com/returnUrl"
paymentobject(PaymentInfoReqDto)required

Consumer payment data

payment.​payment_methodstring(Payment Method)required

BankCard: Bank Card
eftpos: eftpos Australia
ApplePay: Apple Pay
GooglePay: Google Pay
WechatPayGlobal: WechatPayGlobal
AlipayPlus: Alipay+
SEPA: SEPA DirectDebit
Bancontact: Bancontact
EPS: EPS
iDEAL: iDEAL
P24: Online banking Poland, Przelewy24
Sofort: Sofort

Enum"BankCard""eftpos""ApplePay""GooglePay""WechatPayGlobal""AlipayPlus""SEPA""Bancontact""EPS""iDEAL"
Example: "BANKCARD"
payment.​store_payment_methodboolean

Whether to store card information If payment_type is RECURRING, this field is True to inform customers that the payment will be saved for subsequent recurring payments when the current order payment is completed

Example: false
payment.​token_usagestring

token usage (recurring transactions - Subscription, spending transactions - CardOnfile), must be passed when store_payment_method=true or token payment is required

Enum"CARD_ON_FILE""SUBSCRIPTION"
payment.​shopper_referencestring[ 0 .. 64 ] characters

Customer number, required when store_payment_method=true or token payment

Example: "user1234567890"
payment.​token_datastring

googlePay/applePay transaction original authorization json information

payment.​tokenstring[ 0 .. 64 ] characters

Card token, one of [token, card_no, encrypted_card_no] for BANKCARD payment

Example: "CS200395192979024625"
payment.​card_nostring[ 12 .. 32 ] characters

Card number, one of [token, card_no, encrypted_card_no] for BANKCARD payment

Example: "4342561111118885"
payment.​exp_yearstring= 4 characters

Expiry year, required if cardNo is filled

Example: "2023"
payment.​exp_monthstring= 2 characters

Expiry month, required if cardNo is filled

Example: "02"
payment.​cvvstring[ 3 .. 4 ] characters

cvv, Required if cardNo is filled

Example: "123"
payment.​encrypted_card_nostring[ 4 .. 800 ] characters

Encrypted card number

payment.​encrypted_exp_yearstring[ 4 .. 400 ] characters

Encrypted expiry year, required if cardNo is filled

payment.​encrypted_exp_monthstring[ 2 .. 200 ] characters

Encrypted expiry month, required if cardNo is filled

payment.​encrypted_cvvstring[ 3 .. 400 ] characters

Encrypted cvv, Required if cardNo is filled

payment.​holder_namestring[ 0 .. 100 ] characters

Cardholder name

Example: "zhang san"
payment.​holder_emailstring

Cardholder-Email

Example: "zhangsan@qq.com"
payment.​token_authenticationobject(TokenAuthenticationDto)

(Merchant decryption is required) GooglePay/ApplePay decrypted authentication data Details: https://developers.google.com/pay/api/processors/guides/implementation/understand-our-payload?hl=zh-cn#assurance-details-specification Details: https://developer.apple.com/documentation/passkit/payment-token-format-reference#//apple_ref/doc/uid/TP40014929-CH8-SW1

browserobject(BrowserReqDto)

Payment environment; Non-recurring subsequent payments are required

goodsArray of objects(GoodsReqDto)required
goods[].​idstring[ 0 .. 100 ] characters

Product ID

Example: "6916003178438"
goods[].​namestring[ 0 .. 200 ] charactersrequired

Product name

Example: "苹果"
goods[].​descriptionstring[ 0 .. 500 ] characters

Product description

goods[].​categorystring[ 0 .. 64 ] characters

Product category

Example: "水果"
goods[].​brandstring[ 0 .. 64 ] characters

Product brand

goods[].​linkstring[ 0 .. 200 ] charactersrequired

Product link

Example: "https://www.apple.com"
goods[].​priceinteger(int64)>= 1required

Product price

Example: 625
goods[].​quantityinteger(int32)>= 1required

Product quantity

Example: 2
goods[].​delivery_datestring

Product delivery time

Example: "2023-11-24T11:34:37+0800"
goods[].​picture_urlstring[ 0 .. 200 ] characters

Product image URL

Example: "https://www.apple.com/apple.jpg"
billobject(BillReqDto)

Bill information (can be empty for recurring payments; if customer website collects bill information, it is recommended to pass in according to the rule when payment method=card)

shippingobject(ShippingReqDto)

Shipping information (required for goods trade, optional for other trades)

customerobject(CustomerReqDto)required

Customer user information

customer.​idstring[ 0 .. 100 ] characters

User ID

customer.​registration_timestring

User registration time

Example: "2023-11-24T11:34:37+0800"
customer.​past_transactionsinteger(int32)>= 0

User transaction count

customer.​area_codestring[ 0 .. 10 ] characters

Area code

Example: "+852"
customer.​phone_numberstring[ 0 .. 30 ] characters

User phone

customer.​date_of_birthstring[ 0 .. 10 ] characters

User birthday

customer.​genderstring[ 0 .. 10 ] characters

User gender

customer.​first_shopping_timestring

User first shopping time

Example: "2023-11-24T11:34:37+0800"
customer.​last_shopping_timestring

User last shopping time

Example: "2023-11-24T11:34:37+0800"
customer.​levelstring[ 0 .. 10 ] characters

Member level

customer.​emailstring[ 0 .. 200 ] characters

Email

Example: "email@hotmail.com"
customer.​pay_ipstring[ 0 .. 64 ] characters

User payment IP address, e.g.: 202.96.209.10. Payment IP is the ip when the user actually pays, which may be different from the order ip. Not required for mit scenarios.

customer.​order_ipstring[ 0 .. 64 ] characters

User order IP address, e.g.: 202.96.209.16. Order IP is the ip when the user creates the order in the shopping cart. Not required for mit scenarios.

authenticationobject(AuthenticationReqDto)

3DS authentication parameters; Optional for non-card payment methods

amount_breakdownobject(AmountBreakdownReqDto)

Amount Breakdown

recurring_agreement_idstring[ 0 .. 32 ] characters

[Recurring Payment] Recurring payment agreement ID, required for non-first recurring payments

Example: "RA37285619238472"
mitboolean

[Recurring Payment] When non-first recurring payment is initiated by the merchant, this field should be set to true

curl -i -X POST \
  https://sandbox.aq.paykka.com/payments \
  -H 'Content-Type: application/json' \
  -H 'signature: Mif3gh48xxxxxxxxx' \
  -H 'type: RSA256' \
  -H 'version: v1.2' \
  -d '{
    "trans_id": "174293243204408",
    "merchant_id": "18356675194960",
    "payment_type": "PURCHASE",
    "authorisation_type": "FINAL_AUTH",
    "capture_method": "AUTOMATIC",
    "timestamp": 1746515589126,
    "currency": "EUR",
    "amount": 100,
    "notify_url": "https://your_url",
    "return_url": "https://your_url",
    "payment": {
      "payment_method": "BANKCARD",
      "shopper_reference": "f4911bc8b17106a08f2f7a89a9fc4d11",
      "card_no": "4242424242424242",
      "exp_year": "2029",
      "exp_month": "03",
      "cvv": "123",
      "holder_name": "Winifred Reopell",
      "holder_email": "zhangsan@test.com"
    },
    "browser": {
      "user_agent": "Mozilla/5.0 (Linux; U; Android 12.0.0; zh-cn; SONY-7XT78X Build/2DKKUF) AppleWebKit/537.36 (KHTML, like Gecko)Version/4.0 Chrome/74.0.3729.157 Mobile Safari/537.36",
      "color_depth": "165",
      "language": "ko-KR",
      "java_enabled": true,
      "device_type": "PC",
      "terminal_type": "WEB",
      "device_os": "WINDOWS",
      "timezone_offset": "-12:10",
      "screen_height": "128",
      "screen_width": "255",
      "cookies": "isg=BA4O1YD75-wYqlLAB-T9JZjXxxxJFHEUkjdslrlhj9 TB_TENANT_TYPE=organization",
      "device_finger_print_id": "info.kbxqkxkzqgjmwj.qpxzwmwzbwwijkth",
      "paykka_radar_id": "g54820546y72tgeohtgi45654"
    },
    "goods": [
      {
        "id": "6916003178438",
        "name": "珠宝",
        "category": "珠宝",
        "brand": "周六福",
        "link": "https://www.zlf.cn/",
        "price": 170000,
        "quantity": 1,
        "delivery_date": "2024-12-26T03:22:09+08:00",
        "picture_url": "https://www.zlf.cn/"
      }
    ],
    "bill": {
      "billing_address_collection": "REQUIRED",
      "first_name": "Dalene",
      "last_name": "Hyrkas",
      "address_line1": "农安县和上镇八沟村梧河组12号",
      "country": "VU",
      "state": "河南省",
      "city": "南阳市",
      "postal_code": "411327",
      "email": "gggj0gonfc@outlook.com",
      "area_code": "0580",
      "phone_number": "98421617",
      "descriptor": "FHFXREM"
    },
    "shipping": {
      "first_name": "zhang",
      "last_name": "jin",
      "address_line1": "16 Rue Crespin du Gast, 75011 Paris, France",
      "country": "FR",
      "state": "V98J+4R Paris, France",
      "city": "Paris",
      "email": "1806294290@qq.com",
      "postal_code": "75001",
      "area_code": "33",
      "phone_number": "756879736"
    },
    "customer": {
      "order_ip": "183.238.13.170",
      "pay_ip": "183.238.13.170"
    },
    "authentication": {
      "challenge_indicator": "AUTO"
    }
  }'

Responses

ok

Bodyapplication/json
error_codestring

Error code (see [Transaction Error Codes])

error_descriptionstring

Error description

merchant_idstring

Merchant ID

Example: "18356675194960"
trans_idstring

Merchant order number

Example: "t202311081113"
order_idstring

PayKKa order number

statusstring(Gateway Order Status)

PROCESSING: Processing
SUCCESS: Succeeded
AUTHORIZED: Not Captured
FAILURE: Failed
REFUNDED: Refunded
PARTIALLY_REFUNDED: Partially Refunded
CANCELED: Canceled
PARTIALLY_REVERSED: Partially Reversed

Enum"PROCESSING""SUCCESS""AUTHORIZED""FAILURE""REFUNDED""PARTIALLY_REFUNDED""CANCELED""PARTIALLY_REVERSED"
authorisation_typestring

Authorization type, default FINAL_AUTH

Value"FINAL_AUTH"
Example: "FINAL_AUTH"
capture_methodstring(Capture Method)

AUTOMATIC: Automatic
MANUAL: Manual

Enum"AUTOMATIC""MANUAL"
amountinteger(int64)

Transaction amount, minimum denomination of the country's currency

Example: 1250
currencystring(Currency; Pass the ISO 3166-1 supported currency three-letter code)

Currency; Pass the ISO 3166-1 supported currency three-letter code

Enum"CNY""USD""JPY""RUB""EUR""GBP""HKD""AUD""CAD""INR"
Example: "USD"
pay_finish_timestring

Payment completion time

Example: "2023-11-24T11:34:37+0800"
recurring_agreement_idstring

Recurring payment agreement ID, returned for recurring payments

Example: "RA37285619238472"
tokenstring

Card token

Example: "TK32896597324223532"
shopper_referencestring

Customer reference, required when store_payment_method=true or token payment

Example: "user1234567890"
authentication_resultobject(AuthenticationRecordRespInPayments)

3DS authentication result

expire_timestring

Expiration time

Example: "2023-11-24T11:34:37+0800"
paymentobject(PaymentInfoRespInPayments)

Consumer payment data

card_infoobject(CardInfoRespInPayments)

Payment card data

balancesobject(BalanceRespInPayments)

Balance data

Response
application/json

Purchase Request Success

{ "ret_code": "000000", "ret_msg": "Success", "data": { "merchant_id": "18356675194960", "trans_id": "174293243204402", "order_id": "GW205905xxxx960982", "status": "PROCESSING", "authorisation_type": "FINAL_AUTH", "capture_method": "AUTOMATIC", "amount": 100, "currency": "EUR", "shopper_reference": "f4911bc8b17106a08f2f7a89a9fc4d11", "expire_time": "2025-05-06T14:40:43+08:00", "payment": { "payment_method": "BANKCARD" }, "card_info": { "bin": "424242", "last4": "4242", "card_brand": "VISA" }, "balances": { "authed_amount": 100, "captured_amount": 100, "able_to_capture_amount": 0, "voided_amount": 0, "able_to_void_amount": 0, "refunded_amount": 0, "able_to_refund_amount": 0 } } }

Void

Request

Void

Headers
typestringrequired

Signature Algorithm, eg: RSA256

Example: RSA256
signaturestringrequired

signature value

Example: Mif3gh48xxxxxxxxx
versionstringrequired

API version number, eg: v1.2

Example: v1.2
Bodyapplication/jsonrequired
merchant_idstring[ 0 .. 32 ] charactersrequired

Merchant ID

Example: "18356675194960"
order_idstring[ 0 .. 32 ] charactersrequired

PayKKa order number

Example: "GW200395192979024625"
timestampinteger(int64)required

Timestamp

Example: 1700805506000
reasonstring(Order Rejection Reason)

DUPLICATE: Duplicate Order
FRAUDULENT: Fraudulent
REQUESTED_BY_CUSTOMER: Requested by Customer
OTHER: Other

Enum"DUPLICATE""FRAUDULENT""REQUESTED_BY_CUSTOMER""OTHER"
curl -i -X POST \
  https://sandbox.aq.paykka.com/payments/void \
  -H 'Content-Type: application/json' \
  -H 'signature: Mif3gh48xxxxxxxxx' \
  -H 'type: RSA256' \
  -H 'version: v1.2' \
  -d '{
    "merchant_id": "18356675194960",
    "timestamp": 1745922570644,
    "order_id": "GW20620xxxxx6999",
    "reason": "REQUESTED_BY_CUSTOMER"
  }'

Responses

OK

Body*/*
ret_codestringrequired

ResultCode of current request

ret_msgstringrequired

ResultMessage of current request

Response
*/*

Request Success

{
  "ret_msg": "Success",
  "ret_code": "000000"
}

Cancel Recurring Agreement

Request

Cancel Recurring Agreement

Headers
typestringrequired

Signature Algorithm, eg: RSA256

Example: RSA256
signaturestringrequired

signature value

Example: Mif3gh48xxxxxxxxx
versionstringrequired

API version number, eg: v1.2

Example: v1.2
Bodyapplication/jsonrequired
merchant_idstring[ 0 .. 32 ] charactersrequired

Merchant ID

Example: "18356675194960"
timestampinteger(int64)required

Timestamp

Example: 1700805506000
recurring_agreement_idstring[ 0 .. 32 ] charactersrequired

Recurring agreement id

Example: "RA37285619238472"
shopper_referencestring[ 0 .. 64 ] charactersrequired

Customer number, required when store_payment_method=true or token payment

Example: "user1234567890"
curl -i -X POST \
  https://sandbox.aq.paykka.com/payments/recurring/cancel \
  -H 'Content-Type: application/json' \
  -H 'signature: Mif3gh48xxxxxxxxx' \
  -H 'type: RSA256' \
  -H 'version: v1.2' \
  -d '{
    "merchant_id": "18356675194960",
    "timestamp": 1745922570644,
    "recurring_agreement_id": "RA2061xxxx0784537",
    "shopper_reference": "f4911bc8b17106a08f2f7a89a9fc4d11"
  }'

Responses

OK

Body*/*
ret_codestringrequired

ResultCode of current request

ret_msgstringrequired

ResultMessage of current request

Response
*/*

Request Success

{
  "ret_msg": "Success",
  "ret_code": "000000"
}

Query Transaction

Request

Query Transaction

Headers
typestringrequired

Signature Algorithm, eg: RSA256

Example: RSA256
signaturestringrequired

signature value

Example: Mif3gh48xxxxxxxxx
versionstringrequired

API version number, eg: v1.2

Example: v1.2
Bodyapplication/jsonrequired
merchant_idstring[ 0 .. 32 ] charactersrequired

Merchant ID

Example: "18356675194960"
trans_idstring[ 0 .. 32 ] characters

Merchant order number (all three cannot be empty)

Example: "t202311081113"
order_idstring[ 0 .. 32 ] characters

PayKKa order number (all three cannot be empty)

Example: "GW200395192979024625"
session_idstring[ 0 .. 32 ] characters

PayKKa session ID (all three cannot be empty)

Example: "CS200395192979024625"
timestampinteger(int64)required

Timestamp

Example: 1700805506000
curl -i -X POST \
  https://sandbox.aq.paykka.com/payments/query \
  -H 'Content-Type: application/json' \
  -H 'signature: Mif3gh48xxxxxxxxx' \
  -H 'type: RSA256' \
  -H 'version: v1.2' \
  -d '{
    "merchant_id": "18356675194960",
    "trans_id": "",
    "order_id": "GW20620xxxxx6999",
    "session_id": "",
    "timestamp": 1746515084018
  }'

Responses

ok

Bodyapplication/json
error_codestring

Error code (see [Transaction Error Codes])

error_descriptionstring

Error description

merchant_idstring

Merchant ID

Example: "18356675194960"
trans_idstring

Merchant order number

Example: "t202311081113"
order_idstring

PayKKa order number

statusstring(Gateway Order Status)

PROCESSING: Processing
SUCCESS: Succeeded
AUTHORIZED: Not Captured
FAILURE: Failed
REFUNDED: Refunded
PARTIALLY_REFUNDED: Partially Refunded
CANCELED: Canceled
PARTIALLY_REVERSED: Partially Reversed

Enum"PROCESSING""SUCCESS""AUTHORIZED""FAILURE""REFUNDED""PARTIALLY_REFUNDED""CANCELED""PARTIALLY_REVERSED"
authorisation_typestring

Authorization type, default FINAL_AUTH

Value"FINAL_AUTH"
Example: "FINAL_AUTH"
capture_methodstring(Capture Method)

AUTOMATIC: Automatic
MANUAL: Manual

Enum"AUTOMATIC""MANUAL"
amountinteger(int64)

Transaction amount, minimum denomination of the country's currency

Example: 1250
currencystring(Currency; Pass the ISO 3166-1 supported currency three-letter code)

Currency; Pass the ISO 3166-1 supported currency three-letter code

Enum"CNY""USD""JPY""RUB""EUR""GBP""HKD""AUD""CAD""INR"
Example: "USD"
pay_finish_timestring

Payment completion time

Example: "2023-11-24T11:34:37+0800"
recurring_agreement_idstring

Recurring payment agreement ID, returned for recurring payments

Example: "RA37285619238472"
tokenstring

Card token

Example: "TK32896597324223532"
shopper_referencestring

Customer reference, required when store_payment_method=true or token payment

Example: "user1234567890"
authentication_resultobject(AuthenticationRecordRespInPaymentsQuery)

3DS authentication result

expire_timestring

Expiration time

Example: "2023-11-24T11:34:37+0800"
session_idstring

Session ID

Example: "CS200395192979024625"
paymentobject(PaymentInfoRespInPaymentsQuery)

Consumer payment data

card_infoobject(CardInfoRespInPaymentsQuery)

Payment card data

balancesobject(BalanceRespInPaymentsQuery)

Balance data

Response
application/json

Payments Processing

{ "ret_code": "000000", "ret_msg": "Success", "data": { "merchant_id": "18356675194960", "trans_id": "174293243204402", "order_id": "GW20620xxxxx6999", "status": "PROCESSING", "authorisation_type": "FINAL_AUTH", "capture_method": "AUTOMATIC", "amount": 100, "currency": "EUR", "shopper_reference": "f4911bc8b17106a08f2f7a89a9fc4d11", "expire_time": "2025-05-06T14:40:43+08:00", "payment": { "payment_method": "BANKCARD" }, "card_info": { "bin": "424242", "last4": "4242", "card_brand": "VISA" }, "balances": { "authed_amount": 100, "captured_amount": 0, "able_to_capture_amount": 100, "voided_amount": 0, "able_to_void_amount": 100, "refunded_amount": 0, "able_to_refund_amount": 0 } } }

Capture

Request

Capture

Headers
typestringrequired

Signature Algorithm, eg: RSA256

Example: RSA256
signaturestringrequired

signature value

Example: Mif3gh48xxxxxxxxx
versionstringrequired

API version number, eg: v1.2

Example: v1.2
Bodyapplication/jsonrequired
merchant_idstring[ 0 .. 32 ] charactersrequired

Merchant ID

Example: "18356675194960"
order_idstring[ 0 .. 32 ] charactersrequired

PayKKa order number

Example: "GW200395192979024625"
currencystring

Request currency, must be consistent with transaction currency; Enter the three-letter currency code supported by ISO 3166-1

Enum"USD""EUR""CNY""..."
Example: "USD"
amountinteger(int64)

Request amount, amount cannot be greater than transaction amount, enter a value that conforms to the minimum unit rule of the transaction currency (e.g.: USD/CNY unit is cent, JPY unit is yen)

Example: 1250
timestampinteger(int64)required

Timestamp

Example: 1700805506000
capture_finalboolean

Whether it is the last request, default true remaining authorized amount will be revoked

Example: true
curl -i -X POST \
  https://sandbox.aq.paykka.com/payments/capture \
  -H 'Content-Type: application/json' \
  -H 'signature: Mif3gh48xxxxxxxxx' \
  -H 'type: RSA256' \
  -H 'version: v1.2' \
  -d '{
    "merchant_id": "18356675194960",
    "timestamp": 1745922570644,
    "order_id": "GW20620xxxxx6999",
    "amount": 300,
    "currency": "USD",
    "capture_final": true
  }'

Responses

OK

Body*/*
ret_codestringrequired

ResultCode of current request

ret_msgstringrequired

ResultMessage of current request

Response
*/*

Request Success

{
  "ret_msg": "Success",
  "ret_code": "000000"
}

Create Apple Pay Session

Request

Create Apple Pay Session

Headers
typestringrequired

Signature Algorithm, eg: RSA256

Example: RSA256
signaturestringrequired

signature value

Example: Mif3gh48xxxxxxxxx
versionstringrequired

API version number, eg: v1.2

Example: v1.2
Bodyapplication/jsonrequired
merchant_idstring[ 0 .. 32 ] charactersrequired

Merchant ID

Example: "18356675194960"
timestampinteger(int64)required

Timestamp

Example: 1700805506000
display_namestring[ 0 .. 75 ] characters

Merchant Name Displayed to Customer, Default by PayKKa if Empty

domain_namestringrequired

Domain Name (Without Protocol and Port)

Example: "www.your-domain.com"
curl -i -X POST \
  https://sandbox.aq.paykka.com/payments/apple-pay/create-session \
  -H 'Content-Type: application/json' \
  -H 'signature: Mif3gh48xxxxxxxxx' \
  -H 'type: RSA256' \
  -H 'version: v1.2' \
  -d '{
    "merchant_id": "18356675194960",
    "timestamp": 1745922570644,
    "display_name": "Your Merchant Name",
    "domain_name": "www.mydomain.com"
  }'

Responses

ok

Bodyapplication/json
string
Response
application/json

Request Success

{ "ret_msg": "Success", "ret_code": "000000" }

Token query

Request

Token query

Headers
typestringrequired

Signature Algorithm, eg: RSA256

Example: RSA256
signaturestringrequired

signature value

Example: Mif3gh48xxxxxxxxx
versionstringrequired

API version number, eg: v1.2

Example: v1.2
Bodyapplication/jsonrequired
merchant_idstring[ 0 .. 32 ] charactersrequired

Merchant ID

Example: "18356675194960"
timestampinteger(int64)required

Timestamp

Example: 1700805506000
shopper_referencestring[ 0 .. 64 ] charactersrequired

Customer number, required when store_payment_method=true or token payment

Example: "user1234567890"
curl -i -X POST \
  https://sandbox.aq.paykka.com/payments/token/query \
  -H 'Content-Type: application/json' \
  -H 'signature: Mif3gh48xxxxxxxxx' \
  -H 'type: RSA256' \
  -H 'version: v1.2' \
  -d '{
    "merchant_id": "18356675194960",
    "timestamp": 1745922570644,
    "shopper_reference": "f4911bc8b17106a08f2f7a89a9fc4d11"
  }'

Responses

ok

Bodyapplication/json
tokenstring

Card token

Example: "TK32896597324223532"
payment_methodstring(Payment Method)

BankCard: Bank Card
eftpos: eftpos Australia
ApplePay: Apple Pay
GooglePay: Google Pay
WechatPayGlobal: WechatPayGlobal
AlipayPlus: Alipay+
SEPA: SEPA DirectDebit
Bancontact: Bancontact
EPS: EPS
iDEAL: iDEAL
P24: Online banking Poland, Przelewy24
Sofort: Sofort

Enum"BankCard""eftpos""ApplePay""GooglePay""WechatPayGlobal""AlipayPlus""SEPA""Bancontact""EPS""iDEAL"
token_usagestring(Token Usage)

CARD_ON_FILE: Card on File
SUBSCRIPTION: Subscription
UNSCHEDULED_CARD_ON_FILE: Unscheduled Card on File

Enum"CARD_ON_FILE""SUBSCRIPTION""UNSCHEDULED_CARD_ON_FILE"
statusstring

cardToken状态 未激活/激活/删除

Enum"INACTIVE""ACTIVATE""DELETE"
Response
application/json

Token List

{ "ret_code": "000000", "ret_msg": "Success", "data": [ { "token": "TK206139xxx264751", "token_usage": "SUBSCRIPTION", "payment_method": "BANKCARD", "status": "ACTIVATE" }, { "token": "TK206139xxx264752", "token_usage": "CARD_ON_FILE", "payment_method": "BANKCARD", "status": "ACTIVATE" } ] }

Refund

Refund

Operations

Session

Session

Operations