Acquiring
Core money-movement endpoints — authorise, capture, settle, refund and reverse.
AVS
Address Verification Service check
avs/v1/init, passed as the {init} path parameter); with an init token the card, amount and currency are taken from the session. address and zip are always required — they are the values being verified. In response you will receive the raw AVS status returned by the issuer and the parsed meaning of that raw status. Authentication: HMAC (avs).Path parameters
| Name | Example | Description |
|---|---|---|
init
|
— |
Session token from POST /v1/init. Not required. When supplied, the card, amount and currency are taken from the session; address and zip must still be sent in the body. |
Request body
| Field | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
zip
|
string (0,any) required | Cardholder ZIP / postal code to be verified with the issuer. | ||||||
address
|
string (0,any) required | Cardholder billing address to be verified with the issuer. | ||||||
mpg_
|
string (0,any) | Merchant Payment Gateway ID at processor level. When a merchant has more than one MID configured, partners can route the transaction through the corresponding MID by submitting the specific value. Maximum 11 numeric characters. | ||||||
card_
|
string (0,any) | Card expiry month in MM format (01 = January, 12 = December). Required for new card (PAN) payments. Must not be sent when using saved card token. | ||||||
card_
|
string (0,any) | Card expiry year in YY format. Must be the current or a future year. Must not be expired in combination with card_expiration_month. Required for new card (PAN) payments. Must not be sent when using saved card token. | ||||||
merchant
|
string (0,any) | Merchant identifier. Required unless a configuration object is provided. | ||||||
terminal
|
string (0,any) | Terminal identifier. When not provided, resolved from the merchant default terminal. | ||||||
user
|
string (0,any) | User token in Paynetics. | ||||||
amount
|
number (0,any) required | Transaction amount in major currency units (e.g. 50.00 = fifty euros). Must be a positive number with up to 2 decimal places. | ||||||
currency
|
string (0,any) required | Transaction currency in ISO 4217 format (exactly 3 characters). Must be a supported currency. | ||||||
card
|
string (0,any) | Saved card token for returning customers. Returned from a previous /v1/init, purchase, or POST /v1/cards call. Required for saved card (token) payments. Must not be sent when using new card PAN. | ||||||
card_
|
string (0,any) | Full Primary Account Number (PAN) as printed on the card (12–19 digits, Luhn-validated). Required for new card (PAN) payments. Must not be sent when using saved card token. | ||||||
cardholder_
|
string (0,any) | Name as printed on the card (2–45 characters). Required for new card (PAN) payments. Must not be sent when using saved card token. | ||||||
cvv2
|
string (0,any) | Card security code (CVV2/CVC2/CID). Must be 3–4 digits. Pattern: [0-9]{3,4}. | ||||||
mid
|
string (0,any) | Merchant ID at processor level. When a merchant has more than one MID configured, partners can route the transaction through the corresponding MID by submitting the specific value. | ||||||
card_
|
object | Card acceptor (merchant) details. | ||||||
|
||||||||
Example request
- AVS with raw card (PAN)
- AVS with init token
- AVS with saved card token
The full PAN and card details are supplied directly in the body together with the address and ZIP to verify. No init token is used.
{
"merchant": "df1f946a-8b03-4a21-8eb7-dab86a77a027",
"amount": 50,
"currency": "EUR",
"card_number": "4111111111111111",
"cardholder_name": "John Smith",
"card_expiration_month": "09",
"card_expiration_year": "27",
"address": "123 Main St",
"zip": "1000"
}
The card, amount and currency are taken from the session created by POST /v1/init (passed as the {init} path parameter), so only the address and ZIP to verify are sent.
{
"address": "123 Main St",
"zip": "1000"
}
A saved card token (from /v1/init, a previous payment, or POST /v1/cards) is supplied instead of the raw PAN. No init token is used, so the amount and currency travel in the body.
{
"merchant": "df1f946a-8b03-4a21-8eb7-dab86a77a027",
"amount": 50,
"currency": "EUR",
"card": "c6ff4cec-e9e8-4ff3-830b-6d282e08b5db",
"address": "123 Main St",
"zip": "1000"
}
Response
| Field | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
code
|
integer (0,any) | Result code. 0 = success. | ||||||||||||
data
|
object | |||||||||||||
|
||||||||||||||
Example response
{
"code": 0,
"data": {
"raw": "5F",
"authorization_entity": "Issuer",
"result_code": "Exact Match"
}
}
Capture
Capture a pre-authorization
capture/v1/refund/{transaction} (and in POST/v1/reversal/{transaction} when the merchant's processing configuration supports reversing a capture); data.card is not returned. A transaction is approved when data.response_code is 00, 10 or 85; all other codes are declines, returned with HTTP 200. Authentication: HMAC (capture).Path parameters
| Name | Example | Description |
|---|---|---|
transaction
|
— |
Token of the pre-authorization to capture (data.transaction of POST /v1/pre-authorization). |
Request body
| Field | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
amount
|
number (0,any) | Amount to capture, at least 0.01 and not above the pre-authorized amount. When omitted, the full pre-authorized amount is captured. | ||||||||||||||||||||||||
reference
|
string (0,any) | Partner reference stored on the capture. When omitted, the pre-authorization's reference is kept. It is not forwarded to the processor — the pre-authorization's reference is. | ||||||||||||||||||||||||
reference2
|
string (0,any) | Extended reference stored on the capture. When omitted, the pre-authorization's reference2 is kept. It is not forwarded to the processor. | ||||||||||||||||||||||||
sca_
|
string (0,any) | Strong Customer Authentication exemption indicator, forwarded to the processor. Only low-value is accepted. | ||||||||||||||||||||||||
delivery_
|
object | Delivery details of the goods or services, forwarded to the processor. | ||||||||||||||||||||||||
|
||||||||||||||||||||||||||
client_
|
object | Device and risk fingerprint of the cardholder (IP, geolocation, device, operating system and browser), forwarded to the processor. | ||||||||||||||||||||||||
|
||||||||||||||||||||||||||
partner_
|
object | Partner data forwarded to the processor. | ||||||||||||||||||||||||
|
||||||||||||||||||||||||||
market_
|
object | Market specific data (mcc). It is validated, but it is not forwarded to the processor or stored. | ||||||||||||||||||||||||
|
||||||||||||||||||||||||||
additional_
|
object | Additional merchant data forwarded in clearing. | ||||||||||||||||||||||||
|
||||||||||||||||||||||||||
mpg_
|
string (0,any) | Merchant Payment Gateway ID, 1–11 digits. Used only for Mastercard cards and dropped for other schemes. When it is missing or invalid, the value from the instance configuration is used; instances can be configured to require it. | ||||||||||||||||||||||||
Example request
- Full capture
- Partial capture
- Capture with delivery and clearing details
amount is omitted, so the full pre-authorized amount is captured.
{
"reference": "ORDER-2026-001"
}
A lower amount than the pre-authorized one is captured. No further capture is accepted on the same pre-authorization.
{
"amount": 150,
"reference": "ORDER-2026-001"
}
{
"amount": 200,
"reference": "ORDER-2026-001",
"reference2": "Shipment 1 of 1",
"delivery_details": {
"delivery_name": "John Smith",
"delivery_street_name": "James Bourchier 76A",
"delivery_zip": "1407",
"delivery_city": "Sofia",
"delivery_country": "BG"
},
"additional_clearing_data": {
"merchant_street": "James Bourchier",
"merchant_postcode": "1407"
}
}
Response
| Field | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
code
|
integer (0,any) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
data
|
object required | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Example response
- Approved
- Declined
- Already captured
- Amount above the pre-authorized amount
- Not a pre-authorization
- Pre-authorization not successful
The capture was approved and the pre-authorization is marked as captured. data.transaction is the capture's own token.
{
"code": 0,
"data": {
"card_number": "411111XXXXXX1111",
"processing_code": "000000",
"amount": 150,
"stan": "748868",
"local_time": "114556",
"local_date": "0325",
"auth_code": "007680",
"response_code": "00",
"card_acceptor_terminal_id": "12345678",
"card_acceptor_identification_code": "PAYNETICS0001",
"currency": "978",
"retrieval_reference_number": "608411748868",
"transaction": "9f2b1c44-7d0e-4a91-b3c2-1e5a7d8f0b62"
}
}
The capture was declined. response_code is different from 00, 10 and 85, and the pre-authorization stays uncaptured.
{
"code": 0,
"data": {
"card_number": "411111XXXXXX1111",
"processing_code": "000000",
"amount": 150,
"stan": "748869",
"local_time": "114600",
"local_date": "0325",
"response_code": "51",
"currency": "978",
"transaction": "9f2b1c44-7d0e-4a91-b3c2-1e5a7d8f0b62"
}
}
{
"code": 90005,
"message": "services.transaction_already_captured"
}
{
"code": 90011,
"message": "services.capture_amount_greater_than_initial"
}
{
"code": 90012,
"message": "services.cannot_capture_non_pre_auth_trn"
}
{
"code": 90014,
"message": "services.initial_transaction_unsuccessful"
}
Purchase
Charge a card (purchase)
purchase/v1/refund/{transaction} and POST/v1/reversal/{transaction}, and the card token in data.card. A transaction is approved when data.response_code is 00, 10 or 85: 00 = approved, 10 = partial approval (the authorized amount is returned in data.amount and is lower than the requested amount), 85 = no reason to decline. All other codes are declines, returned with HTTP 200. Authentication: HMAC (purchase).Path parameters
| Name | Example | Description |
|---|---|---|
init
|
— |
Session token from POST /v1/init. Not required. When supplied, the card, amount and currency are taken from the session and are not sent in the body. |
Request body
| Field | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
reference2
|
string (0,any) | Extended reference, stored on the purchase transaction. It is not forwarded to the processor. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
industry_
|
string (0,any) | Industry specific transaction indicator. Only 06 is accepted — used for crypto merchants (MCC 6051), together with aft.bai = LA. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
moto
|
boolean | Mail Order / Telephone Order transaction. MOTO transactions are exempt from the 3-D Secure requirement. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
zip
|
string (0,any) | Cardholder ZIP / postal code, submitted to the issuer for address verification (AVS). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
address
|
string (0,any) | Cardholder billing address, submitted to the issuer for address verification (AVS). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
balance
|
string (0,any) | Token of a Paynetics balance to top up. When sent, the card is charged amount + fee and, when response_code is 00, the balance is credited with amount. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fee
|
number (0,any) | Fee charged on top of amount when balance is sent: the card is charged amount + fee and the balance is credited with amount. When balance is sent without fee, the top-up fee is calculated by Paynetics, converted to the purchase currency and added to the amount charged. Ignored without balance. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
financial_
|
object contains required | Financial institution service data — cardholder details required by some issuers for financial institution merchants. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
client_
|
object | Device and risk fingerprint of the cardholder (IP, geolocation, device, operating system and browser). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
delivery_
|
object | Delivery details of the goods or services being purchased. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
sca_
|
string (0,any) | Strong Customer Authentication exemption indicator. Only low-value is accepted. Allows a non-3DS transaction when the instance otherwise requires 3-D Secure. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
wallet_
|
object | Digital wallet or network token data. Send it for Apple Pay, Google Pay and Click to Pay wallets, and for tokenized stored-credential transactions (Visa TCOF / Mastercard SCOF) with wallet_identifier = network. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
aft
|
object contains required | Visa Account Funding Transaction (AFT) data. Send this object when initiating an AFT (wallet top-up, P2P funding, prepaid reload, A2A transfer) where the cardholder funds an account belonging to themselves. Conditional fields inside this object depend on whether the transaction is domestic or cross-border, and on country-specific rules (Canada, US, Australia). See AftDto schema for field-level rules. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
partner_
|
object | Partner data forwarded to the processor. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
market_
|
object | Market specific data (mcc). It is validated, but it is not forwarded to the processor or stored. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
additional_
|
object | Additional merchant data forwarded in clearing. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
mpg_
|
string (0,any) | Merchant Payment Gateway ID, 1–11 digits. Used only for Mastercard cards and dropped for other schemes. When it is missing or invalid, the value from the instance configuration is used; instances can be configured to require it. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
card_
|
string (0,any) | Card expiry month in MM format (01 = January, 12 = December). Required for new card (PAN) payments. Must not be sent when using saved card token. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
card_
|
string (0,any) | Card expiry year in YY format. Must be the current or a future year. Must not be expired in combination with card_expiration_month. Required for new card (PAN) payments. Must not be sent when using saved card token. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
merchant
|
string (0,any) | Merchant identifier. Required unless a configuration object is provided. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
terminal
|
string (0,any) | Terminal identifier. When not provided, resolved from the merchant default terminal. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
user
|
string (0,any) | User token in Paynetics. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
amount
|
number (0,any) required | Transaction amount in major currency units (e.g. 50.00 = fifty euros). Must be a positive number with up to 2 decimal places. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
currency
|
string (0,any) required | Transaction currency in ISO 4217 format (exactly 3 characters). Must be a supported currency. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
card
|
string (0,any) | Saved card token for returning customers. Returned from a previous /v1/init, purchase, or POST /v1/cards call. Required for saved card (token) payments. Must not be sent when using new card PAN. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
card_
|
string (0,any) | Full Primary Account Number (PAN) as printed on the card (12–19 digits, Luhn-validated). Required for new card (PAN) payments. Must not be sent when using saved card token. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
reference
|
string (0,any) | Partner reference for the transaction, returned in the transaction details and reporting. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
cardholder_
|
string (0,any) | Name as printed on the card (2–45 characters). Required for new card (PAN) payments. Must not be sent when using saved card token. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
cvv2
|
string (0,any) | Card security code (CVV2/CVC2/CID). Must be 3–4 digits. Pattern: [0-9]{3,4}. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
mid
|
string (0,any) | Merchant ID at processor level. When a merchant has more than one MID configured, partners can route the transaction through the corresponding MID by submitting the specific value. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
card_
|
object | Card acceptor (merchant) details. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
xid
|
string (0,any) | 3-D Secure transaction identifier (XID), taken from the Secure 3D result. Exactly 28 characters. Required together with cavv for 3DS v1 transactions; not used for 3DS v2. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
cavv
|
string (0,any) | Cardholder Authentication Verification Value returned by the Secure 3D result. Exactly 28 characters. Send it to submit the transaction as 3-D Secure authenticated; eci and version must be sent with it. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
version
|
integer (0,any) | 3-D Secure protocol version from the Secure 3D result: 1 or 2. Required when cavv is sent. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
directory_
|
string (0,any) | 3-D Secure Directory Server transaction ID from the Secure 3D result. Exactly 36 characters. Required together with cavv for 3DS v2 transactions. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
resolution
|
string (0,any) | 3-D Secure resolution as returned by the Secure 3D authentication result: proceed, reject, proceed_ssl, proceed_3ds or proceed_3ds_attempted. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
eci
|
string (0,any) | Electronic Commerce Indicator from the Secure 3D result. Allowed values: 00, 01, 02, 05, 06, 07 (Visa uses 05/06, Mastercard uses 02/01). Required when cavv is sent. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
recurring_
|
integer (0,any) | Recurring / credential-on-file classification. 0 - non-recurring (default); 1 - recurring initial; 2 - recurring subsequent; 3 - credential-on-file initial; 4 - credential-on-file subsequent; 5 - unscheduled credential-on-file payment. Initial transactions (1, 3) must be 3-D Secure authenticated when the instance requires 3DS. Subsequent transactions (2, 4, 5) are 3DS-exempt and must reference the initial one through initial_transaction, or through transaction_stamp and settlement_date. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
initial_
|
string (0,any) | Transaction token of the initial recurring / credential-on-file transaction processed in Paynetics. Required for subsequent transactions (recurring_type 2, 4, 5) unless transaction_stamp and settlement_date are sent instead. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
transaction_
|
string (0,any) | Reference to an initial transaction processed outside Paynetics, used instead of initial_transaction for subsequent transactions (recurring_type 2, 4, 5). Must be sent together with settlement_date. Accepted only for instances configured with allow_custom_transaction_stamp. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
settlement_
|
string (0,any) | Settlement date of the initial transaction referenced by transaction_stamp, in MMDD format. Must be sent together with transaction_stamp. Accepted only for instances configured with allow_custom_transaction_stamp. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Example request
- With init token
- Visa — 3DS authenticated
- Mastercard — 3DS authenticated (ECI 02)
- Non-3DS
- With AVS (address verification)
- Saved card (token)
- MOTO (3DS-exempt)
- Wallet — Apple Pay (Mastercard)
- Visa AFT — domestic
- Visa AFT — cross-border (to Canada)
- Mastercard Funding
- Recurring — initial (recurring_type 1)
- Recurring — subsequent (recurring_type 2, initial in Paynetics)
- Recurring — subsequent (recurring_type 2, external initial)
- Credential on file — initial (recurring_type 3)
- Unscheduled credential on file — subsequent (recurring_type 5)
- Tokenized (Visa TCOF / Mastercard SCOF) — with 3DS
- Tokenized (Visa TCOF / Mastercard SCOF) — without 3DS
- Top up a Paynetics balance
The card, amount and currency are taken from the session created by POST /v1/init (passed as the {init} path parameter). Only the 3-D Secure data and the partner reference of the transaction are sent in the body.
{
"reference": "ORDER-2026-001",
"version": 2,
"cavv": "AAABAmkAAAAAAASwhAJHdQAAAAA=",
"eci": "05",
"directory_transaction_id": "48df129e-3795-412b-ab2f-bffbb12bb00b"
}
New card (PAN) purchase carrying the Visa 3-D Secure result (eci 05).
{
"merchant": "df1f946a-8b03-4a21-8eb7-dab86a77a027",
"amount": 200,
"currency": "EUR",
"card_number": "4111111111111111",
"cardholder_name": "John Smith",
"card_expiration_month": "09",
"card_expiration_year": "27",
"cvv2": "123",
"version": 2,
"cavv": "AAABAmkAAAAAAASwhAJHdQAAAAA=",
"eci": "05",
"directory_transaction_id": "48df129e-3795-412b-ab2f-bffbb12bb00b"
}
New card (PAN) purchase carrying the Mastercard 3-D Secure result (eci 02).
{
"merchant": "df1f946a-8b03-4a21-8eb7-dab86a77a027",
"amount": 200,
"currency": "EUR",
"card_number": "5454545454545454",
"cardholder_name": "Jane Doe",
"card_expiration_month": "11",
"card_expiration_year": "26",
"cvv2": "123",
"version": 2,
"cavv": "AAABAmkAAAAAAASwhAJHdQAAAAA=",
"eci": "02",
"directory_transaction_id": "48df129e-3795-412b-ab2f-bffbb12bb00b"
}
New card (PAN) purchase without 3-D Secure. Accepted only when the instance does not require 3-D Secure.
{
"merchant": "df1f946a-8b03-4a21-8eb7-dab86a77a027",
"amount": 80,
"currency": "EUR",
"card_number": "4111111111111111",
"cardholder_name": "John Smith",
"card_expiration_month": "09",
"card_expiration_year": "27",
"cvv2": "123"
}
Billing address and postal code are verified by the issuer and the result returned in avs_status. A normal purchase — an AVS mismatch does not by itself decline it.
{
"merchant": "df1f946a-8b03-4a21-8eb7-dab86a77a027",
"amount": 80,
"currency": "EUR",
"card_number": "4111111111111111",
"cardholder_name": "John Smith",
"card_expiration_month": "09",
"card_expiration_year": "27",
"cvv2": "123",
"address": "123 Main St",
"zip": "1000"
}
A saved card token is sent instead of the PAN; the card details are resolved from the stored card.
{
"merchant": "df1f946a-8b03-4a21-8eb7-dab86a77a027",
"amount": 25,
"currency": "EUR",
"card": "c6ff4cec-e9e8-4ff3-830b-6d282e08b5db"
}
Mail Order / Telephone Order transaction. MOTO transactions are exempt from the 3-D Secure requirement.
{
"merchant": "df1f946a-8b03-4a21-8eb7-dab86a77a027",
"amount": 75,
"currency": "EUR",
"card_number": "4111111111111111",
"cardholder_name": "John Smith",
"card_expiration_month": "09",
"card_expiration_year": "27",
"moto": true
}
Apple Pay transaction. The wallet cryptogram is mandatory for apple-pay, and the remote commerce acceptor identifier is required for Mastercard.
{
"merchant": "df1f946a-8b03-4a21-8eb7-dab86a77a027",
"amount": 120,
"currency": "EUR",
"card_number": "5454545454545454",
"card_expiration_month": "11",
"card_expiration_year": "26",
"wallet_payment": {
"wallet_identifier": "apple-pay",
"digital_payment_cryptogram": "AAABAmkAAAAAAASwhAJHdQAAAAA=",
"remote_commerce_acceptor_identifier": "MERCHANT-ACCEPTOR-12345"
}
}
Account Funding Transaction where card issuer, MID and acquirer are in the same country. Only the three required AFT fields are sent.
{
"merchant": "df1f946a-8b03-4a21-8eb7-dab86a77a027",
"amount": 100,
"currency": "EUR",
"card_number": "4111111111111111",
"cardholder_name": "John Smith",
"card_expiration_month": "09",
"card_expiration_year": "27",
"version": 2,
"cavv": "AAABAmkAAAAAAASwhAJHdQAAAAA=",
"eci": "05",
"directory_transaction_id": "48df129e-3795-412b-ab2f-bffbb12bb00b",
"aft": {
"bai": "TU",
"sender_account_number": "BG80BNBG96611020345678",
"recipient_name": "Ivan Petrov"
}
}
Cross-border Account Funding Transaction destined to Canada. Sender details, account owner address / subdivision and merchant postal code / state are required.
{
"merchant": "df1f946a-8b03-4a21-8eb7-dab86a77a027",
"amount": 250,
"currency": "EUR",
"card_number": "4111111111111111",
"cardholder_name": "John Smith",
"card_expiration_month": "09",
"card_expiration_year": "27",
"version": 2,
"cavv": "AAABAmkAAAAAAASwhAJHdQAAAAA=",
"eci": "05",
"directory_transaction_id": "48df129e-3795-412b-ab2f-bffbb12bb00b",
"aft": {
"bai": "FT",
"sender_name": "John Smith",
"sender_address": "123 Main Street",
"sender_city": "Toronto",
"sender_state": "ON",
"sender_country": "CAN",
"sender_account_number": "CA1234567890123456",
"recipient_name": "Ivan Petrov",
"account_owner_address1": "123 Main Street",
"account_owner_street": "Main Street",
"account_owner_postal_code": "M5V 2T6",
"account_owner_city": "Toronto",
"account_owner_country": "CAN",
"account_owner_subdivision_code": "ON",
"merchant_postal_code": "1407",
"merchant_state": "SOF"
}
}
Mastercard Funding transaction. The business application identifier (bai) is not used; the account owner country is required.
{
"merchant": "df1f946a-8b03-4a21-8eb7-dab86a77a027",
"amount": 100,
"currency": "EUR",
"card_number": "5454545454545454",
"cardholder_name": "Jane Doe",
"card_expiration_month": "11",
"card_expiration_year": "26",
"version": 2,
"cavv": "AAABAmkAAAAAAASwhAJHdQAAAAA=",
"eci": "02",
"directory_transaction_id": "48df129e-3795-412b-ab2f-bffbb12bb00b",
"aft": {
"sender_account_number": "BG80BNBG96611020345678",
"account_owner_country": "BGR",
"recipient_name": "Ivan Petrov"
}
}
Establishes a scheduled recurring series. The initial transaction must be 3-D Secure authenticated when the instance requires 3DS.
{
"merchant": "df1f946a-8b03-4a21-8eb7-dab86a77a027",
"amount": 9.99,
"currency": "EUR",
"card_number": "4111111111111111",
"cardholder_name": "John Smith",
"card_expiration_month": "09",
"card_expiration_year": "27",
"recurring_type": 1,
"version": 2,
"cavv": "AAABAmkAAAAAAASwhAJHdQAAAAA=",
"eci": "05",
"directory_transaction_id": "48df129e-3795-412b-ab2f-bffbb12bb00b"
}
Subsequent payment of a recurring series. It is 3DS-exempt and references the initial transaction processed in Paynetics.
{
"merchant": "df1f946a-8b03-4a21-8eb7-dab86a77a027",
"amount": 9.99,
"currency": "EUR",
"card": "c6ff4cec-e9e8-4ff3-830b-6d282e08b5db",
"recurring_type": 2,
"initial_transaction": "db68c6f5-0cab-4113-9c18-a9f2a6584b02"
}
Subsequent payment whose initial transaction was processed outside Paynetics. Available only for instances configured with allow_custom_transaction_stamp.
{
"merchant": "df1f946a-8b03-4a21-8eb7-dab86a77a027",
"amount": 9.99,
"currency": "EUR",
"card": "c6ff4cec-e9e8-4ff3-830b-6d282e08b5db",
"recurring_type": 2,
"transaction_stamp": "120312472701006",
"settlement_date": "0609"
}
Stores the card credentials for later unscheduled payments. The initial transaction must be 3-D Secure authenticated when the instance requires 3DS.
{
"merchant": "df1f946a-8b03-4a21-8eb7-dab86a77a027",
"amount": 15,
"currency": "EUR",
"card_number": "4111111111111111",
"cardholder_name": "John Smith",
"card_expiration_month": "09",
"card_expiration_year": "27",
"recurring_type": 3,
"version": 2,
"cavv": "AAABAmkAAAAAAASwhAJHdQAAAAA=",
"eci": "05",
"directory_transaction_id": "48df129e-3795-412b-ab2f-bffbb12bb00b"
}
Unscheduled payment on stored credentials. It is 3DS-exempt and references the initial transaction.
{
"merchant": "df1f946a-8b03-4a21-8eb7-dab86a77a027",
"amount": 15,
"currency": "EUR",
"card": "c6ff4cec-e9e8-4ff3-830b-6d282e08b5db",
"recurring_type": 5,
"initial_transaction": "db68c6f5-0cab-4113-9c18-a9f2a6584b02"
}
Network token transaction. With wallet_identifier network the cryptogram is mandatory unless recurring_type is 2, 4 or 5.
{
"merchant": "df1f946a-8b03-4a21-8eb7-dab86a77a027",
"amount": 33,
"currency": "EUR",
"card_number": "4111111111111111",
"card_expiration_month": "09",
"card_expiration_year": "27",
"version": 2,
"cavv": "AAABAmkAAAAAAASwhAJHdQAAAAA=",
"eci": "05",
"directory_transaction_id": "48df129e-3795-412b-ab2f-bffbb12bb00b",
"wallet_payment": {
"wallet_identifier": "network",
"digital_payment_cryptogram": "AwAAAAAA3i/8YH7QQ22kQHsAAAA="
}
}
Network token transaction without 3-D Secure data. Accepted only when the instance does not require 3-D Secure.
{
"merchant": "df1f946a-8b03-4a21-8eb7-dab86a77a027",
"amount": 33,
"currency": "EUR",
"card_number": "4111111111111111",
"card_expiration_month": "09",
"card_expiration_year": "27",
"wallet_payment": {
"wallet_identifier": "network",
"digital_payment_cryptogram": "AwAAAAAA3i/8YH7QQ22kQHsAAAA="
}
}
The card is charged amount + fee (52.00) and, when response_code is 00, the balance is credited with amount (50.00). Without fee, the top-up fee is calculated by Paynetics and added to the amount charged.
{
"merchant": "df1f946a-8b03-4a21-8eb7-dab86a77a027",
"amount": 50,
"currency": "EUR",
"card_number": "4111111111111111",
"cardholder_name": "John Smith",
"card_expiration_month": "09",
"card_expiration_year": "27",
"cvv2": "123",
"version": 2,
"cavv": "AAABAmkAAAAAAASwhAJHdQAAAAA=",
"eci": "05",
"directory_transaction_id": "48df129e-3795-412b-ab2f-bffbb12bb00b",
"balance": "8b0f6f0e-3c1a-4c55-9a43-2f7a1d1e5b90",
"fee": 2
}
Response
| Field | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
code
|
integer (0,any) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
data
|
object required | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Example response
- Approved
- Declined
- 3-D Secure required
- Amount below 0.01
The issuer approved the purchase. data.transaction is used to refund or reverse it; data.card is the token of the card.
{
"code": 0,
"data": {
"response_code": "00",
"auth_code": "007680",
"transaction": "d428a647-12db-43f9-900c-c5f0779beb67",
"external_transaction_id": "032511455501007488680123608411748868",
"retrieval_reference_number": "608411748868",
"stan": "748868",
"amount": 50,
"currency": "978",
"card_number": "411111XXXXXX1111",
"card": "c6ff4cec-e9e8-4ff3-830b-6d282e08b5db",
"processing_code": "000000",
"local_date": "0325",
"local_time": "114556",
"cvv_status": "M",
"card_acceptor_terminal_id": "12345678",
"card_acceptor_identification_code": "PAYNETICS0001",
"original_network_response_code": "00",
"action_code": "000"
}
}
The issuer declined the purchase. response_code is different from 00, 10 and 85, auth_code is not returned and error_details carries the reason.
{
"code": 0,
"data": {
"response_code": "05",
"transaction": "d428a647-12db-43f9-900c-c5f0779beb67",
"external_transaction_id": "032511455501007488680123608411748869",
"retrieval_reference_number": "608411748869",
"stan": "748869",
"amount": 50,
"currency": "978",
"card_number": "411111XXXXXX1111",
"processing_code": "000000",
"local_date": "0325",
"local_time": "114600",
"original_network_response_code": "05",
"action_code": "000",
"error_details": "Do not honour"
}
}
The instance requires 3-D Secure and a non-recurring purchase was sent without cavv, moto or sca_exemption.
{
"code": 90021,
"message": "services.required_3ds"
}
{
"code": 11001,
"message": "services.general.validation_error",
"key": "services.general.validation_error",
"errors": {
"amount": "This value should be greater than or equal to 0.01."
}
}
Credit
Credit a card
credit/v1/init, passed as the {init} path parameter); with an init token the card, amount and currency are taken from the session. The amount must be at least 0.01. A credit does not run the 3-D Secure, recurring and AFT checks of a purchase. reference is stored on the credit and forwarded to the processor as additional merchant data; reference2 is only stored; cvv2 is validated when sent but is not forwarded to the processor. The response returns the credit's data.transaction, which can be used in POST/v1/reversal-credit/{transaction}, and the card token in data.card. A transaction is successful when data.response_code is 00, 10 or 85; all other codes are declines, returned with HTTP 200. Authentication: HMAC (credit).Path parameters
| Name | Example | Description |
|---|---|---|
init
|
— |
Session token from POST /v1/init. Not required. When supplied, the card, amount and currency are taken from the session and are not sent in the body. |
Request body
| Field | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
reference2
|
string (0,any) | Extended reference, stored on the credit transaction. It is not forwarded to the processor. | ||||||
mpg_
|
string (0,any) | Merchant Payment Gateway ID, 1–11 digits. Used only for Mastercard cards and dropped for other schemes. When it is missing or invalid, the value from the instance configuration is used; instances can be configured to require it. | ||||||
card_
|
string (0,any) | Card expiry month in MM format (01 = January, 12 = December). Required for new card (PAN) payments. Must not be sent when using saved card token. | ||||||
card_
|
string (0,any) | Card expiry year in YY format. Must be the current or a future year. Must not be expired in combination with card_expiration_month. Required for new card (PAN) payments. Must not be sent when using saved card token. | ||||||
merchant
|
string (0,any) | Merchant identifier. Required unless a configuration object is provided. | ||||||
terminal
|
string (0,any) | Terminal identifier. When not provided, resolved from the merchant default terminal. | ||||||
user
|
string (0,any) | User token in Paynetics. | ||||||
amount
|
number (0,any) required | Transaction amount in major currency units (e.g. 50.00 = fifty euros). Must be a positive number with up to 2 decimal places. | ||||||
currency
|
string (0,any) required | Transaction currency in ISO 4217 format (exactly 3 characters). Must be a supported currency. | ||||||
card
|
string (0,any) | Saved card token for returning customers. Returned from a previous /v1/init, purchase, or POST /v1/cards call. Required for saved card (token) payments. Must not be sent when using new card PAN. | ||||||
card_
|
string (0,any) | Full Primary Account Number (PAN) as printed on the card (12–19 digits, Luhn-validated). Required for new card (PAN) payments. Must not be sent when using saved card token. | ||||||
reference
|
string (0,any) | Partner reference for the transaction, returned in the transaction details and reporting. | ||||||
cardholder_
|
string (0,any) | Name as printed on the card (2–45 characters). Required for new card (PAN) payments. Must not be sent when using saved card token. | ||||||
cvv2
|
string (0,any) | Card security code (CVV2/CVC2/CID). Must be 3–4 digits. Pattern: [0-9]{3,4}. | ||||||
mid
|
string (0,any) | Merchant ID at processor level. When a merchant has more than one MID configured, partners can route the transaction through the corresponding MID by submitting the specific value. | ||||||
card_
|
object | Card acceptor (merchant) details. | ||||||
|
||||||||
Example request
- New card (PAN)
- Saved card (token)
- With init token
- Mastercard with Merchant Payment Gateway ID
The full PAN and card details are supplied directly in the body.
{
"merchant": "df1f946a-8b03-4a21-8eb7-dab86a77a027",
"amount": 10,
"currency": "EUR",
"card_number": "4111111111111111",
"cardholder_name": "John Smith",
"card_expiration_month": "09",
"card_expiration_year": "27",
"reference": "CREDIT-2026-0001"
}
A saved card token (from /v1/init, a previous payment, or POST /v1/cards) is supplied instead of the raw PAN.
{
"merchant": "df1f946a-8b03-4a21-8eb7-dab86a77a027",
"amount": 25,
"currency": "EUR",
"card": "c6ff4cec-e9e8-4ff3-830b-6d282e08b5db"
}
The card, amount and currency are taken from the session created by POST /v1/init (passed as the {init} path parameter), so only the references are sent.
{
"reference": "CREDIT-2026-0002",
"reference2": "Order info"
}
mpg_id is used only for Mastercard cards.
{
"merchant": "df1f946a-8b03-4a21-8eb7-dab86a77a027",
"amount": 10,
"currency": "EUR",
"card_number": "5454545454545454",
"cardholder_name": "Jane Doe",
"card_expiration_month": "11",
"card_expiration_year": "26",
"mpg_id": "123456789"
}
Response
| Field | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
code
|
integer (0,any) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
data
|
object required | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Example response
- Approved
- Declined
- Amount below 0.01
The credit was approved. data.transaction is used to reverse it with POST /v1/reversal-credit/{transaction}; data.card is the token of the card.
{
"code": 0,
"data": {
"card_number": "411111XXXXXX1111",
"processing_code": "200000",
"amount": 10,
"stan": "748868",
"local_time": "114556",
"local_date": "0325",
"auth_code": "007680",
"response_code": "00",
"card_acceptor_terminal_id": "12345678",
"card_acceptor_identification_code": "PAYNETICS0001",
"currency": "978",
"transaction": "2c9a77b1-4e33-4a8e-b1d4-90f1c0a2e6b7",
"card": "c6ff4cec-e9e8-4ff3-830b-6d282e08b5db"
}
}
The credit was declined. response_code is different from 00, 10 and 85.
{
"code": 0,
"data": {
"card_number": "411111XXXXXX1111",
"processing_code": "200000",
"amount": 10,
"stan": "748869",
"local_time": "114600",
"local_date": "0325",
"response_code": "51",
"currency": "978",
"transaction": "2c9a77b1-4e33-4a8e-b1d4-90f1c0a2e6b7",
"card": "c6ff4cec-e9e8-4ff3-830b-6d282e08b5db"
}
}
{
"code": 11001,
"message": "services.general.validation_error",
"key": "services.general.validation_error",
"errors": {
"amount": "This value should be greater than or equal to 0.01."
}
}
Refund
Refund a transaction
refund/v1/reversal-refund/{transaction}. A refund that the processor executes as a Mastercard fast refund cannot be reversed. A transaction is successful when data.response_code is 00, 10 or 85; all other codes are declines, returned with HTTP 200. The request is rejected with 90014 when the original transaction is not successful, 90015 when it is not a purchase or a capture, 90016 when the amount is above its remaining refundable amount, and 90020 when the merchant's processing configuration does not support refunds for the original transaction. Authentication: HMAC (refund).Path parameters
| Name | Example | Description |
|---|---|---|
transaction
|
— |
Token of the original purchase or capture (data.transaction of that call). |
Request body
| Field | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
amount
|
number (0,any) required | Amount to refund, in major currency units. Minimum 0.01 and not above the remaining refundable amount of the original transaction. The currency is taken from the original transaction. | ||||||||||||
reference
|
string (0,30) | Partner reference for the refund. Stored on the refund transaction and forwarded to the processor as additional merchant data. Maximum 30 characters. | ||||||||||||
partner_
|
object | Partner data forwarded to the processor. Only independent_sales_organization_id is taken from the request; payment_facilitator_id and sub_merchant_id are set by Paynetics from the instance configuration. | ||||||||||||
|
||||||||||||||
Example request
- Full refund
- Partial refund with a reference
- Refund with partner data
Refunds the whole amount of a 10.00 EUR purchase.
{
"amount": 10
}
Refunds part of the purchase. The rest stays refundable for further refunds.
{
"amount": 4.5,
"reference": "REFUND-2026-0001"
}
Refund that carries the Independent Sales Organization ID of the partner.
{
"amount": 4.5,
"partner_data": {
"independent_sales_organization_id": "00001111222"
}
}
Response
| Field | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
code
|
integer (0,any) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
data
|
object required | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Example response
- Approved
- Declined
- Amount above the remaining refundable amount
- Original transaction is not a purchase or a capture
- amount missing
The refund was approved. data.transaction is the token of the refund, used to reverse it with POST /v1/reversal-refund/{transaction}.
{
"code": 0,
"data": {
"card_number": "411111XXXXXX1111",
"processing_code": "200000",
"amount": 4.5,
"stan": "748870",
"local_time": "120102",
"local_date": "0325",
"auth_code": "007681",
"response_code": "00",
"card_acceptor_terminal_id": "12345678",
"card_acceptor_identification_code": "PAYNETICS0001",
"currency": "978",
"transaction": "8b1e0c44-5f1a-4a3d-9c52-1f7a1e0c7a10"
}
}
The refund was declined. The amount is released and stays refundable on the original transaction.
{
"code": 0,
"data": {
"card_number": "411111XXXXXX1111",
"processing_code": "200000",
"amount": 4.5,
"stan": "748871",
"local_time": "120105",
"local_date": "0325",
"response_code": "51",
"currency": "978",
"transaction": "8b1e0c44-5f1a-4a3d-9c52-1f7a1e0c7a10"
}
}
{
"code": 90016,
"message": "services.refund_exceeding_initial_amount",
"key": "services.refund_exceeding_initial_amount"
}
{
"code": 90015,
"message": "services.initial_transaction_not_refundable",
"key": "services.initial_transaction_not_refundable"
}
{
"code": 11001,
"message": "services.general.validation_error",
"key": "services.general.validation_error",
"errors": {
"amount": "This value should not be blank."
}
}
Reversal
Reverse a transaction
reversal/v1/reversal-refund/{transaction} and POST/v1/reversal-credit/{transaction}, which run the same logic. A captured pre-authorization, an already reversed transaction and a purchase or capture with an approved refund cannot be reversed — refund it instead. The reversal is recorded as a separate transaction: data.transaction is the token of the reversal, not of the original. When the reversal is approved with data.response_code 00, the original is closed and can no longer be reversed or refunded. A transaction is successful when data.response_code is 00, 10 or 85; all other codes are declines, returned with HTTP 200. The request is rejected with 90018 when the original can no longer be reversed (already reversed, captured or refunded), 90014 when it is not successful and 90006 when its type cannot be reversed. Authentication: HMAC (reversal).Path parameters
| Name | Example | Description |
|---|---|---|
transaction
|
— |
Token of the transaction to reverse (data.transaction of the pre-authorization or purchase). |
Request body
| Field | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
reference
|
string (0,any) | Partner reference, stored on the reversal transaction. It is not forwarded to the processor; the processor receives the reference of the original transaction. | |||||||||
reference2
|
string (0,any) | Extended reference, stored on the reversal transaction. It is not forwarded to the processor. | |||||||||
additional_
|
object | Merchant address forwarded to the processor for clearing. | |||||||||
|
|||||||||||
Example request
- Reverse a pre-authorization
- With references and clearing data
Only a partner reference is sent; card, amount and currency are taken from the original transaction.
{
"reference": "VOID-2026-0001"
}
The references are stored on the reversal transaction; the clearing data is forwarded to the processor.
{
"reference": "VOID-2026-0001",
"reference2": "Order info",
"additional_clearing_data": {
"merchant_street": "James Bourchier",
"merchant_postcode": "ABCDE12345"
}
}
Response
| Field | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
code
|
integer (0,any) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
data
|
object required | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Example response
- Approved
- Declined
- Original already reversed, captured or refunded
- Original transaction is not successful
- Type of the original cannot be reversed
The reversal was approved and the original transaction is closed. data.transaction is the token of the reversal.
{
"code": 0,
"data": {
"card_number": "411111XXXXXX1111",
"amount": 200,
"stan": "748868",
"local_time": "121530",
"local_date": "0325",
"response_code": "00",
"card_acceptor_terminal_id": "12345678",
"card_acceptor_identification_code": "PAYNETICS0001",
"currency": "978",
"transaction": "5e3b9a1c-7d24-4f6b-8a09-3c1d2e4f5a6b"
}
}
The reversal was declined. The original transaction is unchanged and can be reversed again.
{
"code": 0,
"data": {
"card_number": "411111XXXXXX1111",
"amount": 200,
"stan": "748868",
"local_time": "121532",
"local_date": "0325",
"response_code": "05",
"currency": "978",
"transaction": "5e3b9a1c-7d24-4f6b-8a09-3c1d2e4f5a6b"
}
}
{
"code": 90018,
"message": "services.transaction_not_reversible",
"key": "services.transaction_not_reversible"
}
{
"code": 90014,
"message": "services.initial_transaction_unsuccessful",
"key": "services.initial_transaction_unsuccessful"
}
For example a capture, when the merchant's processing configuration does not support reversing it.
{
"code": 90006,
"message": "services.transaction_is_not_reversible",
"key": "services.transaction_is_not_reversible"
}
Reversal-refund
Reverse a refund
reversalRefund/v1/reversal/{transaction} and does not check that the token belongs to a refund. The reversal is recorded as a separate transaction: data.transaction is the token of the reversal, not of the refund. A transaction is successful when data.response_code is 00, 10 or 85; all other codes are declines, returned with HTTP 200. The request is rejected with 90018 when the refund can no longer be reversed (already reversed or a fast refund) and 90014 when the refund is not successful. Authentication: HMAC (reversalRefund).Path parameters
| Name | Example | Description |
|---|---|---|
transaction
|
— |
Token of the refund to reverse (data.transaction returned by POST /v1/refund/{transaction}). |
Request body
| Field | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
reference
|
string (0,any) | Partner reference, stored on the reversal transaction. It is not forwarded to the processor; the processor receives the reference of the original transaction. | |||||||||
reference2
|
string (0,any) | Extended reference, stored on the reversal transaction. It is not forwarded to the processor. | |||||||||
additional_
|
object | Merchant address forwarded to the processor for clearing. | |||||||||
|
|||||||||||
Example request
- Reverse a refund
- With references and clearing data
Only a partner reference is sent; card, amount and currency are taken from the refund.
{
"reference": "VOID-REFUND-0001"
}
The references are stored on the reversal transaction; the clearing data is forwarded to the processor.
{
"reference": "VOID-REFUND-0001",
"reference2": "Order info",
"additional_clearing_data": {
"merchant_street": "James Bourchier",
"merchant_postcode": "ABCDE12345"
}
}
Response
| Field | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
code
|
integer (0,any) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
data
|
object required | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Example response
- Approved
- Declined
- Refund already reversed or executed as a fast refund
- Refund is not successful
The reversal was approved: the refund is closed and the original purchase or capture is refundable again. data.transaction is the token of the reversal.
{
"code": 0,
"data": {
"card_number": "411111XXXXXX1111",
"amount": 4.5,
"stan": "748870",
"local_time": "123010",
"local_date": "0325",
"response_code": "00",
"card_acceptor_terminal_id": "12345678",
"card_acceptor_identification_code": "PAYNETICS0001",
"currency": "978",
"transaction": "6f4c0b2d-8e35-4a7c-9b1a-4d2e3f5a6b7c"
}
}
The reversal was declined. The refund is unchanged and can be reversed again.
{
"code": 0,
"data": {
"card_number": "411111XXXXXX1111",
"amount": 4.5,
"stan": "748870",
"local_time": "123012",
"local_date": "0325",
"response_code": "05",
"currency": "978",
"transaction": "6f4c0b2d-8e35-4a7c-9b1a-4d2e3f5a6b7c"
}
}
{
"code": 90018,
"message": "services.transaction_not_reversible",
"key": "services.transaction_not_reversible"
}
{
"code": 90014,
"message": "services.initial_transaction_unsuccessful",
"key": "services.initial_transaction_unsuccessful"
}
Reversal-credit
Reverse a credit
reversalCredit/v1/credit/{init}. This corresponds to an ISO8583 0400 message, sent to the processor as a reversal of a refund. The reversal is always for the full amount of the credit; card, amount and currency are taken from it and no amount is sent. The instance needs the same permission as for POST/v1/credit/{init}. When the reversal is approved with data.response_code 00, the credit is closed and cannot be reversed again. The endpoint runs the same logic as POST/v1/reversal/{transaction} and does not check that the token belongs to a credit. The reversal is recorded as a separate transaction: data.transaction is the token of the reversal, not of the credit. A transaction is successful when data.response_code is 00, 10 or 85; all other codes are declines, returned with HTTP 200. The request is rejected with 90018 when the credit has already been reversed and 90014 when the credit is not successful. Authentication: HMAC (reversalCredit).Path parameters
| Name | Example | Description |
|---|---|---|
transaction
|
— |
Token of the credit to reverse (data.transaction returned by POST /v1/credit/{init}). |
Request body
| Field | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
reference
|
string (0,any) | Partner reference, stored on the reversal transaction. It is not forwarded to the processor; the processor receives the reference of the original transaction. | |||||||||
reference2
|
string (0,any) | Extended reference, stored on the reversal transaction. It is not forwarded to the processor. | |||||||||
additional_
|
object | Merchant address forwarded to the processor for clearing. | |||||||||
|
|||||||||||
Example request
- Reverse a credit
- With references and clearing data
Only a partner reference is sent; card, amount and currency are taken from the credit.
{
"reference": "VOID-CREDIT-0001"
}
The references are stored on the reversal transaction; the clearing data is forwarded to the processor.
{
"reference": "VOID-CREDIT-0001",
"reference2": "Order info",
"additional_clearing_data": {
"merchant_street": "James Bourchier",
"merchant_postcode": "ABCDE12345"
}
}
Response
| Field | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
code
|
integer (0,any) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
data
|
object required | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Example response
- Approved
- Declined
- Credit already reversed
- Credit is not successful
The reversal was approved and the credit is closed. data.transaction is the token of the reversal.
{
"code": 0,
"data": {
"card_number": "411111XXXXXX1111",
"amount": 10,
"stan": "748868",
"local_time": "124045",
"local_date": "0325",
"response_code": "00",
"card_acceptor_terminal_id": "12345678",
"card_acceptor_identification_code": "PAYNETICS0001",
"currency": "978",
"transaction": "7a5d1c3e-9f46-4b8d-ac2b-5e3f4a6b7c8d"
}
}
The reversal was declined. The credit is unchanged and can be reversed again.
{
"code": 0,
"data": {
"card_number": "411111XXXXXX1111",
"amount": 10,
"stan": "748868",
"local_time": "124047",
"local_date": "0325",
"response_code": "05",
"currency": "978",
"transaction": "7a5d1c3e-9f46-4b8d-ac2b-5e3f4a6b7c8d"
}
}
{
"code": 90018,
"message": "services.transaction_not_reversible",
"key": "services.transaction_not_reversible"
}
{
"code": 90014,
"message": "services.initial_transaction_unsuccessful",
"key": "services.initial_transaction_unsuccessful"
}
OCT
Send funds to a card (OCT)
oct/v1/init, passed as the {init} path parameter); with an init token the card, amount and currency are taken from the session. Depending on the merchant configuration, OCTs are either funded from a Paynetics balance or sent without one. When they are funded from a balance, balance is required: the amount and the OCT fee are debited from that Paynetics balance before the OCT is sent, and are returned to it when data.response_code is not 00. industry_specific_transaction A (account to account) and P (person to person) are accepted only for a balance-funded OCT from a balance that belongs to a Paynetics cardholder; then the cardholder's profile is sent as the sender. With any other balance, or without a balance, A and P are rejected with code 11001, and the merchant's card acceptor details are sent as the sender. The recipient fields first_name, last_name, birthday, nationality and aml_check are validated but not forwarded to the processor. reference is forwarded to the processor as additional merchant data; reference2 is only stored. An OCT cannot be refunded or reversed. The response returns data.transaction and the card token in data.card. An OCT is approved when data.response_code is 00; all other codes are declines, returned with HTTP 200. Authentication: HMAC (oct).Path parameters
| Name | Example | Description |
|---|---|---|
init
|
— |
Session token from POST /v1/init. Not required. When supplied, the card, amount and currency are taken from the session and are not sent in the body. |
Request body
| Field | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
card_
|
string (0,any) | |||||||
card_
|
string (0,any) | |||||||
balance
|
string (0,any) | Token of the Paynetics balance the funds are taken from. Required when the merchant's OCTs are funded from a Paynetics balance: the amount and the OCT fee are debited from it, and returned when response_code is not 00. Not used when OCTs are sent without a balance. | ||||||
first_
|
string (0,any) | Recipient's first name. Validated, but not forwarded to the processor. | ||||||
last_
|
string (0,any) | Recipient's last name. Validated, but not forwarded to the processor. | ||||||
birthday
|
string (0,any) | Recipient's date of birth (YYYY-MM-DD). Validated, but not forwarded to the processor. | ||||||
nationality
|
string (0,any) | Recipient's nationality. Validated, but not forwarded to the processor. | ||||||
aml_
|
string (0,any) | Result of the AML screening of the recipient: match or no-match. Validated, but not forwarded to the processor. | ||||||
reference2
|
string (0,any) | Extended reference, stored on the OCT transaction. It is not forwarded to the processor. | ||||||
industry_
|
string (0,any) | Type of OCT: A Account to Account, D Funds Disbursement, P Person to Person, W Wallet, G Gambling, C Crypto. When omitted, the value configured for the merchant is used. A and P are accepted only for a balance-funded OCT from a balance that belongs to a Paynetics cardholder; otherwise use D, W, G or C. | ||||||
merchant
|
string (0,any) | Merchant identifier. Required unless a configuration object is provided. | ||||||
terminal
|
string (0,any) | Terminal identifier. When not provided, resolved from the merchant default terminal. | ||||||
user
|
string (0,any) | User token in Paynetics. | ||||||
amount
|
number (0,any) required | Transaction amount in major currency units (e.g. 50.00 = fifty euros). Must be a positive number with up to 2 decimal places. | ||||||
currency
|
string (0,any) required | Transaction currency in ISO 4217 format (exactly 3 characters). Must be a supported currency. | ||||||
card
|
string (0,any) | Saved card token for returning customers. Returned from a previous /v1/init, purchase, or POST /v1/cards call. Required for saved card (token) payments. Must not be sent when using new card PAN. | ||||||
card_
|
string (0,any) | Full Primary Account Number (PAN) as printed on the card (12–19 digits, Luhn-validated). Required for new card (PAN) payments. Must not be sent when using saved card token. | ||||||
reference
|
string (0,any) | Partner reference for the transaction, returned in the transaction details and reporting. | ||||||
cardholder_
|
string (0,any) | Name as printed on the card (2–45 characters). Required for new card (PAN) payments. Must not be sent when using saved card token. | ||||||
cvv2
|
string (0,any) | Card security code (CVV2/CVC2/CID). Must be 3–4 digits. Pattern: [0-9]{3,4}. | ||||||
mid
|
string (0,any) | Merchant ID at processor level. When a merchant has more than one MID configured, partners can route the transaction through the corresponding MID by submitting the specific value. | ||||||
card_
|
object | Card acceptor (merchant) details. | ||||||
|
||||||||
Example request
- Without a Paynetics balance — new card (PAN)
- With init token
- From a business balance
- Account to account from a cardholder balance
OCT sent without a Paynetics balance. The full PAN and card details are supplied in the body.
{
"merchant": "df1f946a-8b03-4a21-8eb7-dab86a77a027",
"amount": 50,
"currency": "EUR",
"card_number": "4111111111111111",
"cardholder_name": "Ivan Petrov",
"card_expiration_month": "09",
"card_expiration_year": "27",
"cvv2": "123",
"reference": "PAYOUT-2026-001"
}
The card, amount and currency are taken from the session created by POST /v1/init (passed as the {init} path parameter), so only the references are sent. When the merchant's OCTs are funded from a balance, balance is still required.
{
"reference": "PAYOUT-2026-002",
"reference2": "Order info"
}
Balance-funded OCT. The amount and the OCT fee are debited from the balance and returned to it when data.response_code is not 00.
{
"merchant": "df1f946a-8b03-4a21-8eb7-dab86a77a027",
"amount": 50,
"currency": "EUR",
"card_number": "4111111111111111",
"cardholder_name": "Ivan Petrov",
"card_expiration_month": "09",
"card_expiration_year": "27",
"cvv2": "123",
"balance": "5b2e8f1a-6c3d-4e7f-9a0b-1c2d3e4f5a6b",
"industry_specific_transaction": "D"
}
Balance-funded OCT from a balance that belongs to a Paynetics cardholder. A and P are accepted only in this case; the cardholder's profile is sent as the sender.
{
"merchant": "df1f946a-8b03-4a21-8eb7-dab86a77a027",
"amount": 50,
"currency": "EUR",
"card_number": "4111111111111111",
"cardholder_name": "Ivan Petrov",
"card_expiration_month": "09",
"card_expiration_year": "27",
"cvv2": "123",
"balance": "8d4f2a6c-1b3e-4c5d-8e9f-0a1b2c3d4e5f",
"industry_specific_transaction": "A"
}
Response
| Field | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
code
|
integer (0,any) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
data
|
object required | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Example response
- Approved
- Declined
- Balance missing (balance-funded OCT)
The OCT was approved. data.card is the token of the card.
{
"code": 0,
"data": {
"card_number": "411111XXXXXX1111",
"amount": 50,
"stan": "748868",
"local_time": "114556",
"local_date": "0325",
"auth_code": "007680",
"response_code": "00",
"currency": "978",
"retrieval_reference_number": "608411748868",
"transaction": "e1c7a2b4-3f58-4d9a-b6e2-7c8d9e0f1a2b",
"card": "c6ff4cec-e9e8-4ff3-830b-6d282e08b5db"
}
}
The OCT was declined. response_code is different from 00; for a balance-funded OCT the amount and the fee are returned to the balance.
{
"code": 0,
"data": {
"card_number": "411111XXXXXX1111",
"amount": 50,
"stan": "748869",
"local_time": "114600",
"local_date": "0325",
"response_code": "05",
"currency": "978",
"transaction": "e1c7a2b4-3f58-4d9a-b6e2-7c8d9e0f1a2b",
"card": "c6ff4cec-e9e8-4ff3-830b-6d282e08b5db"
}
}
{
"code": 11001,
"message": "services.general.validation_error",
"key": "services.general.validation_error",
"errors": {
"balance": "This value should not be blank."
}
}