Acquiring

Core money-movement endpoints — authorise, capture, settle, refund and reverse.

AVS

POST /v1/avs/{init}

Address Verification Service check

Operation avs
Verifies the cardholder's billing address and ZIP / postal code with the issuer without charging the card. Used for risk checks prior to a payment. AVS performs an authorization which is not connected with any other transaction — it corresponds to an ISO8583 0100 message with amount 0, so no funds are blocked and no transaction is created. The amount and currency are still required (they resolve the merchant configuration and routing), but the amount forwarded to the processor is always 0. The card can be supplied as a raw PAN (card_number), as a saved card token (card), or via an init session token (from POST/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

NameExampleDescription
init
string required
— 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_id 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_expiration_month 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_expiration_year 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_number 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_name 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.

Example request

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"
}

Response

Field Type Description
code integer (0,any) Result code. 0 = success.

Example response

{
    "code": 0,
    "data": {
        "raw": "5F",
        "authorization_entity": "Issuer",
        "result_code": "Exact Match"
    }
}

Pre-authorization

POST /v1/pre-authorization/{init}

Reserve funds on a card (pre-authorization)

Operation pre_authorization
Pre-authorization blocks (reserves) an amount on the cardholder account without capturing it. This corresponds to an ISO8583 0100 message with processing code 000000. In response you will receive a transaction token in data.transaction, which must be used to settle the hold via POST/v1/capture/{transaction} or to release it via POST/v1/reversal/{transaction}. 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 and their meaning is listed in the AcquiringResponse model below. Card data, amount and currency are taken from the {init} session token when it is supplied, otherwise they are sent in the request body. The endpoint supports 3-D Secure (cavv, eci, version, directory_transaction_id from the Secure 3D result), recurring and credential-on-file classification (recurring_type), Visa AFT / Mastercard Funding, tokenized transactions (Visa TCOF / Mastercard SCOF), digital wallets and MOTO. When the instance is configured to require 3-D Secure, a transaction without cavv is rejected unless it is a MOTO transaction, a subsequent recurring / credential-on-file transaction, or carries an sca_exemption. Authentication: HMAC (pre_authorization).

Path parameters

NameExampleDescription
init
string required
— 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 partner reference, forwarded to the processor next to reference.
industry_specific_transaction string (0,any) Industry specific transaction indicator. Only 06 is accepted — used for crypto merchants (MCC 6051), together with aft.bai = LA.
06
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).
moto boolean Mail Order / Telephone Order transaction. MOTO transactions are exempt from the 3-D Secure requirement.
sca_exemption 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.
mpg_id 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. Resolved for Mastercard transactions from the instance configuration when not supplied.
card_expiration_month 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_expiration_year 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_number 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_name 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.
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_transaction_id 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_type 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_transaction 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_stamp 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_date 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

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 of the transaction is sent in the body.

{
    "version": 2,
    "cavv": "AAABAmkAAAAAAASwhAJHdQAAAAA=",
    "eci": "05",
    "directory_transaction_id": "48df129e-3795-412b-ab2f-bffbb12bb00b"
}

Response

Field Type Description
code integer (0,any)

Example response

The issuer approved the pre-authorization. data.transaction is used for the subsequent capture or reversal.

{
    "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": 200,
        "currency": "978",
        "card_number": "400552XXXXXX0123",
        "card": "c6ff4cec-e9e8-4ff3-830b-6d282e08b5db",
        "processing_code": "000000",
        "local_date": "0325",
        "local_time": "114556",
        "avs_status": "5F",
        "cvv_status": "M",
        "card_acceptor_terminal_id": "12345678",
        "card_acceptor_identification_code": "PAYNETICS0001",
        "original_network_response_code": "00",
        "action_code": "000"
    }
}

Capture

POST /v1/capture/{transaction}

Capture a pre-authorization

Operation capture
Captures a pre-authorization — turns the reserved amount into a debit. This corresponds to an ISO8583 0220 message with processing code 000000. Card, currency, merchant and the MOTO and AFT data are taken from the pre-authorization. amount can be up to the pre-authorized amount (for a partially approved pre-authorization, the amount the issuer authorized); when it is omitted the full amount is captured, and a lower amount is sent as a partial capture. Only one capture is accepted per pre-authorization: a capture with data.response_code 00 marks the pre-authorization as captured, and any further capture is rejected with code 90005, also after a partial capture. A capture is rejected with code 90012 when the transaction is not a pre-authorization, 90014 when the pre-authorization was not successful and 90011 when amount is above the pre-authorized amount; pre-authorizations in BGN cannot be captured. The pre-authorization's reference (first 30 characters) is forwarded to the processor as additional merchant data; reference and reference2 sent with the capture are only stored on the capture, which otherwise keeps the pre-authorization's values. The capture returns its own data.transaction, which is used in POST/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

NameExampleDescription
transaction
string required
— 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_exemption string (0,any) Strong Customer Authentication exemption indicator, forwarded to the processor. Only low-value is accepted.
low-value
mpg_id 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

amount is omitted, so the full pre-authorized amount is captured.

{
    "reference": "ORDER-2026-001"
}

Response

Field Type Description
code integer (0,any)

Example response

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"
    }
}

Purchase

POST /v1/purchase/{init}

Charge a card (purchase)

Operation purchase
Charges a card in a single step — the amount is authorized and captured at once, so no separate capture is needed. This corresponds to an ISO8583 0200 message with processing code 000000. Card data, amount and currency are taken from the {init} session token when it is supplied, otherwise they are sent in the request body. The amount must be at least 0.01. The endpoint supports 3-D Secure (cavv, eci, version, directory_transaction_id from the Secure 3D result), recurring and credential-on-file classification (recurring_type), Visa AFT / Mastercard Funding, tokenized transactions (Visa TCOF / Mastercard SCOF), digital wallets, MOTO and address verification (address, zip). When the instance is configured to require 3-D Secure, a non-recurring transaction without cavv is rejected with code 90021 unless it is a MOTO transaction or carries an sca_exemption, and an initial recurring / credential-on-file transaction (recurring_type 1 or 3) without cavv is rejected with code 90008 unless it is a MOTO transaction. Subsequent recurring / credential-on-file transactions (recurring_type 2, 4 and 5) are 3DS-exempt, but when the instance requires 3-D Secure the card must already have a 3-D Secure transaction; their cvv2 is not forwarded to the processor. When balance is sent, the purchase also tops up that Paynetics balance: the card is charged amount + fee, and when data.response_code is 00 the balance is credited with amount. reference is forwarded to the processor as additional merchant data; reference2 is only stored. The response returns data.transaction, which is used in POST/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

NameExampleDescription
init
string required
— 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_specific_transaction string (0,any) Industry specific transaction indicator. Only 06 is accepted — used for crypto merchants (MCC 6051), together with aft.bai = LA.
06
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.
sca_exemption 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.
mpg_id 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_expiration_month 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_expiration_year 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_number 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_name 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.
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_transaction_id 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_type 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_transaction 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_stamp 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_date 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

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"
}

Response

Field Type Description
code integer (0,any)

Example response

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"
    }
}

Credit

POST /v1/credit/{init}

Credit a card

Operation credit
Sends funds to a card without referencing an earlier transaction. This corresponds to an ISO8583 0200 message with processing code 200000. Unlike a refund, a credit is not linked to a previous purchase and its amount is not limited by one. The card can be supplied as a raw PAN (card_number), as a saved card token (card), or via an init session token (from POST/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

NameExampleDescription
init
string required
— 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_id 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_expiration_month 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_expiration_year 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_number 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_name 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.

Example request

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"
}

Response

Field Type Description
code integer (0,any)

Example response

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"
    }
}

Refund

POST /v1/refund/{transaction}

Refund a transaction

Operation refund
Refunds an earlier successful purchase or capture, in full or in part. This corresponds to an ISO8583 0200 message with processing code 200000. Card, currency and merchant are taken from the original transaction; only the amount is sent. Several refunds can be made against one transaction, each up to its remaining refundable amount, unless the merchant store is configured to allow refunds above it. The refunded amount is reserved on the original transaction before the processor is called and is released again when the refund is declined or fails. After an approved refund, the original transaction can no longer be reversed. Each refund returns its own data.transaction, which can be used in POST/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

NameExampleDescription
transaction
string required
— 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.

Example request

Refunds the whole amount of a 10.00 EUR purchase.

{
    "amount": 10
}

Response

Field Type Description
code integer (0,any)

Example response

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"
    }
}

Reversal

POST /v1/reversal/{transaction}

Reverse a transaction

Operation reversal
Reverses (cancels) an earlier successful transaction — typically a pre-authorization that has not been captured, or a purchase. This corresponds to an ISO8583 0400 message. The reversal is always for the full amount of the original transaction; card, amount and currency are taken from it and no amount is sent. The original can be a purchase, authorization, pre-authorization, credit or refund, and also a capture when the merchant's processing configuration supports it. Refunds and credits are reversed the same way through POST/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

NameExampleDescription
transaction
string required
— 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.

Example request

Only a partner reference is sent; card, amount and currency are taken from the original transaction.

{
    "reference": "VOID-2026-0001"
}

Response

Field Type Description
code integer (0,any)

Example response

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"
    }
}

Reversal-refund

POST /v1/reversal-refund/{transaction}

Reverse a refund

Operation reversalRefund
Reverses (cancels) a refund. 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 refund; card, amount and currency are taken from it and no amount is sent. When the reversal is approved with data.response_code 00, the refund is closed and the original purchase or capture becomes refundable again; it still cannot be reversed. A refund that has already been reversed, or that the processor executed as a Mastercard fast refund, cannot be reversed. The endpoint runs the same logic as POST/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

NameExampleDescription
transaction
string required
— 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.

Example request

Only a partner reference is sent; card, amount and currency are taken from the refund.

{
    "reference": "VOID-REFUND-0001"
}

Response

Field Type Description
code integer (0,any)

Example response

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"
    }
}

Reversal-credit

POST /v1/reversal-credit/{transaction}

Reverse a credit

Operation reversalCredit
Reverses (cancels) a credit made with POST/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

NameExampleDescription
transaction
string required
— 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.

Example request

Only a partner reference is sent; card, amount and currency are taken from the credit.

{
    "reference": "VOID-CREDIT-0001"
}

Response

Field Type Description
code integer (0,any)

Example response

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"
    }
}

OCT

POST /v1/oct/{init}

Send funds to a card (OCT)

Operation oct
An Original Credit Transaction (OCT) pushes funds to a card — for payouts, person-to-person and account-to-account transfers, wallet withdrawals, gambling and crypto payouts. The card can be supplied as a raw PAN (card_number), as a saved card token (card), or via an init session token (from POST/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

NameExampleDescription
init
string required
— 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_expiration_month string (0,any)
card_expiration_year 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_name string (0,any) Recipient's first name. Validated, but not forwarded to the processor.
last_name 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_check string (0,any) Result of the AML screening of the recipient: match or no-match. Validated, but not forwarded to the processor.
matchno-match
reference2 string (0,any) Extended reference, stored on the OCT transaction. It is not forwarded to the processor.
industry_specific_transaction 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.
ADPWGC
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_number 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_name 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.

Example request

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"
}

Response

Field Type Description
code integer (0,any)

Example response

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"
    }
}

esc
↑↓ navigate ↵ open esc close
Copied