Initial

Open a transaction context. Every acquiring flow begins with an init call followed by an operation page.

Init

POST /v1/init

Initialize a payment session

Operation init
Initializes a payment session by validating and tokenizing card data. Returns a session token (data.token) to be passed as the {init} path parameter in the next operation, and a card token (data.card) for future payments. No financial transaction occurs. /v1/init is optional — partners can submit card data directly in each operation. Authentication: HMAC (init) or Encryption (AES-256-CBC) — depending on instance configuration. The returned token can be passed as the {init} path parameter in:
POST/v1/purchase/{init}
POST/v1/pre-authorization/{init}
POST/v1/avs/{init}
POST/v1/credit/{init}
POST/v1/oct/{init}
POST/v1/3d/enrollment/{init}
POST/v1/3d/authenticate/{init}
POST/v1/3d/result/{version}/{init}.

Request body

Field Type Description
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

{
    "card_expiration_month": "09",
    "card_expiration_year": "27",
    "merchant": "df1f946a-8b03-4a21-8eb7-dab86a77a027",
    "terminal": "df1f946a-8b03-4a21-8eb7-dab86a77a027",
    "user": "df1f946a-8b03-4a21-8eb7-dab86a77a027",
    "amount": 50,
    "currency": "EUR",
    "card": "df1f946a-8b03-4a21-8eb7-dab86a77a027",
    "card_number": "4111111111111111",
    "cardholder_name": "John Smith",
    "cvv2": "123",
    "mid": "123456789",
    "card_acceptor": {
        "name": "Partner Shop Ltd"
    }
}

Response

Field Type Description
code integer (0,any)

Example response

{
    "code": "integer",
    "data": {
        "token": "df1f946a-8b03-4a21-8eb7-dab86a77a027",
        "card": "df1f946a-8b03-4a21-8eb7-dab86a77a027"
    }
}

Operation

POST /v1/{operation}/page

Generate a hosted payment page URL/HTML

Operation init_web
Generates a URL/HTML for a Paynetics-hosted payment page where the customer enters card details and completes the payment. No financial transaction occurs until the customer submits the page. After payment, the customer is redirected to success_url or error_url. Intended for partners who prefer not to handle card data directly (reducing PCI DSS scope). Authentication: HMAC (init_web).

Path parameters

NameExampleDescription
operation
string required
payment Type of hosted page. payment = standard payment page.
paymentlinkcard

Request body

Field Type Description
amount number (0,any) required Transaction amount in major currency units. Decimal with 2 decimal places. Must be a positive number.
currency string (3,3) required Transaction currency. ISO 4217 alpha code. Must be a supported currency.
language string (0,any) Language of the payment page UI. bg = Bulgarian, en = English, ro = Romanian, fr = French, es = Spanish. Defaults to bg.
bgenrofres
transaction_type string (0,any) Transaction type. purchase = immediate payment. preauthorization = reserve funds, partner must call capture later. Defaults to purchase.
purchasepreauthorization
reference string (0,30) required Partner's transaction reference. Alphanumeric. Returned in next-day reporting.
reference2 string (0,any) Extended reference. Additional order info.
card string (10,any) Saved card token. Must be a valid card token. When provided, the payment page may pre-populate card info.
user string (0,any) User token in Paynetics.
success_url string (0,any) Customer redirect after successful payment. Must be a valid URL.
error_url string (0,any) Customer redirect after failed payment. Must be a valid URL.
redirect boolean If true, the response is a 302 redirect to the payment page. If false, the response is a JSON body containing the payment page URL. Defaults to true.
balance string (0,any) Balance token of the client's account in Paynetics. Must be a valid balance token.
recurring_end_date string (0,any) End date for the recurring schedule. ISO 8601 datetime. Must be a valid future datetime.
recurring_frequency integer (0,any) Recurring interval. Must be a positive integer.

Example request

Standard payment page for a one-time purchase. Customer enters card details on the Paynetics-hosted page.

{
    "amount": 99.9,
    "currency": "EUR",
    "language": "en",
    "transaction_type": "purchase",
    "reference": "ORDER-2026-04-001",
    "success_url": "https://partner.com/payment/success",
    "error_url": "https://partner.com/payment/error"
}

Response

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

Example response

{
    "code": 0,
    "data": {
        "url": "https://secure.payoo.cloud/payment/page/abc123def456"
    }
}

Errors

CodeDescription
302Redirect — direct browser redirect to the hosted payment page URL. Returned when redirect=true (default). The Location header contains the payment page URL (e.g. https://secure.payoo.cloud/payment/page/abc123def456).

esc
↑↓ navigate ↵ open esc close
Copied