Developer docs v0.1.0

Checkout sessions

Carts a person pays on the hosted page.

GET /v1/checkouts

List checkout sessions

Cursor-paginated.

Authentication
Merchant API key
Effect
Read-only.

Query parameters

NameTypeRequiredDescription
limitintegernoPage size (1–100). · ≥ 1, ≤ 100, default 20
starting_afterstringnoObject ID; return objects after it. · 26 chars
order"asc" | "desc"nodesc lists newest first. · default "asc"

Responses

StatusMeaningBody / error codes
200Success.object
401Missing or invalid API key.authentication_error
429Rate limited; honor retry-after.rate_limit_exceeded too_many_auth_failures
500Server error.api_error
Example response
{
  "object": "list",
  "url": "string",
  "has_more": false,
  "data": [
    {
      "object": "checkout_session",
      "id": "01JB9XK3M2R7TQ8N4V6Y0ZPA1C",
      "status": "ready_for_payment",
      "line_items": [
        {
          "name": "string",
          "unit_amount": 1,
          "quantity": 1
        }
      ],
      "amount": 1,
      "currency": "RON",
      "continue_url": "string",
      "payment_link_id": "01JB9XK3M2R7TQ8N4V6Y0ZPA1C",
      "payment_id": "string",
      "return_url": "string",
      "metadata": {},
      "initiated_by": "api",
      "api_key_id": "string",
      "expires_at": "2026-10-25T18:00:00.000Z",
      "completed_at": "2026-10-25T18:00:00.000Z",
      "created_at": "2026-10-25T18:00:00.000Z"
    }
  ]
}

POST /v1/checkouts

Create a checkout session

Builds a cart and returns continue_url, where the person pays (card, Apple Pay or Google Pay) on NETOPIA Payments' secure page. Payware never receives the card number. The session wraps a payment link, so the same payment.succeeded and payment.failed events apply. The total is the sum of the items and must fit the maximum amount. Needs a configured NETOPIA Payments account.

Authentication
Merchant API key
Effect
Creates a session and its payment link; moves no money until a person pays.

Headers

NameTypeRequiredDescription
Idempotency-KeystringnoMakes retries safe: same key + body replays the stored response (idempotency-replayed: true); a different body, or an agent key or dashboard session reusing another credential's key, returns 409 idempotency_key_in_use. · ≤ 96 chars

Request body

FieldTypeRequiredDescription
line_itemsobject[]yes≥ 1 items, ≤ 20 items
line_items[].namestringyes≤ 200 chars
line_items[].unit_amountintegeryes≥ 1
line_items[].quantityintegerno≥ 1, ≤ 10000, default 1
currency"RON" | "EUR" | "USD"yes
return_urlstring (uri)no
expires_in_hoursintegerno≥ 1, ≤ 720, default 24
metadataobjectno
payerobjectnoWhat you already know about the payer. Anything given here is not asked on the payment page and is always sent to NETOPIA Payments. Whatever is missing is asked from the payer: by the Apple Pay or Google Pay sheet when they pay with a wallet, or on the page before they are sent to the card page. Email and phone are both required by NETOPIA Payments.
payer.emailstring (email)no≤ 255 chars
payer.phonestringnoWith country code, e.g. +40712345678. · ≤ 50 chars
payer.first_namestringno≤ 100 chars
payer.last_namestringno≤ 100 chars
Example request
{
  "line_items": [
    {
      "name": "string",
      "unit_amount": 1,
      "quantity": 1
    }
  ],
  "currency": "RON",
  "return_url": "https://example.com/hooks/payware",
  "expires_in_hours": 24,
  "metadata": {},
  "payer": {
    "email": "ana@example.com",
    "phone": "string",
    "first_name": "string",
    "last_name": "string"
  }
}

Responses

StatusMeaningBody / error codes
201Created.CheckoutSession
400Invalid cart.validation_failed invalid_json amount_too_large invalid_return_url
401Missing or invalid API key.authentication_error
403The key lacks the scope.scope_missing
429Rate limited; honor retry-after.rate_limit_exceeded too_many_auth_failures
500Server error.api_error
Example response
{
  "object": "checkout_session",
  "id": "01JB9XK3M2R7TQ8N4V6Y0ZPA1C",
  "status": "ready_for_payment",
  "line_items": [
    {
      "name": "string",
      "unit_amount": 1,
      "quantity": 1
    }
  ],
  "amount": 1,
  "currency": "RON",
  "continue_url": "string",
  "payment_link_id": "01JB9XK3M2R7TQ8N4V6Y0ZPA1C",
  "payment_id": "string",
  "return_url": "string",
  "metadata": {},
  "initiated_by": "api",
  "api_key_id": "string",
  "expires_at": "2026-10-25T18:00:00.000Z",
  "completed_at": "2026-10-25T18:00:00.000Z",
  "created_at": "2026-10-25T18:00:00.000Z"
}

GET /v1/checkouts/:id

Retrieve a checkout session

Its status follows the payment.

Authentication
Merchant API key
Effect
Read-only.

Path parameters

NameTypeRequiredDescription
idstringyesObject ID (ULID). · 26 chars

Responses

StatusMeaningBody / error codes
200Success.CheckoutSession
401Missing or invalid API key.authentication_error
404Not found, or not yours.resource_missing
429Rate limited; honor retry-after.rate_limit_exceeded too_many_auth_failures
500Server error.api_error
Example response
{
  "object": "checkout_session",
  "id": "01JB9XK3M2R7TQ8N4V6Y0ZPA1C",
  "status": "ready_for_payment",
  "line_items": [
    {
      "name": "string",
      "unit_amount": 1,
      "quantity": 1
    }
  ],
  "amount": 1,
  "currency": "RON",
  "continue_url": "string",
  "payment_link_id": "01JB9XK3M2R7TQ8N4V6Y0ZPA1C",
  "payment_id": "string",
  "return_url": "string",
  "metadata": {},
  "initiated_by": "api",
  "api_key_id": "string",
  "expires_at": "2026-10-25T18:00:00.000Z",
  "completed_at": "2026-10-25T18:00:00.000Z",
  "created_at": "2026-10-25T18:00:00.000Z"
}

POST /v1/checkouts/:id/cancel

Cancel a checkout session

Only an unpaid session can be canceled.

Authentication
Merchant API key
Effect
Cancels the wrapped payment link.

Path parameters

NameTypeRequiredDescription
idstringyesObject ID (ULID). · 26 chars

Headers

NameTypeRequiredDescription
Idempotency-KeystringnoMakes retries safe: same key + body replays the stored response (idempotency-replayed: true); a different body, or an agent key or dashboard session reusing another credential's key, returns 409 idempotency_key_in_use. · ≤ 96 chars

Responses

StatusMeaningBody / error codes
200Success.CheckoutSession
401Missing or invalid API key.authentication_error
404Not found, or not yours.resource_missing
409A paid or processing session cannot be canceled.payment_link_not_open
429Rate limited; honor retry-after.rate_limit_exceeded too_many_auth_failures
500Server error.api_error
Example response
{
  "object": "checkout_session",
  "id": "01JB9XK3M2R7TQ8N4V6Y0ZPA1C",
  "status": "ready_for_payment",
  "line_items": [
    {
      "name": "string",
      "unit_amount": 1,
      "quantity": 1
    }
  ],
  "amount": 1,
  "currency": "RON",
  "continue_url": "string",
  "payment_link_id": "01JB9XK3M2R7TQ8N4V6Y0ZPA1C",
  "payment_id": "string",
  "return_url": "string",
  "metadata": {},
  "initiated_by": "api",
  "api_key_id": "string",
  "expires_at": "2026-10-25T18:00:00.000Z",
  "completed_at": "2026-10-25T18:00:00.000Z",
  "created_at": "2026-10-25T18:00:00.000Z"
}

POST /v1/checkouts/:id/complete

Pay a checkout session with a stored card

Charges a customer's saved card for the session total instead of sending the person to the hosted page. Needs an Idempotency-Key. The card is the customer's default card unless instrument_id is given; with mandate_id the mandate's card is used and the charge is held to the mandate's limits (see Mandates). The session becomes processing and then completed; a declined charge reopens it (ready_for_payment). An agent key needs payments:write and spending limits.

Authentication
Merchant API key
Effect
Charges the customer's stored card.

Path parameters

NameTypeRequiredDescription
idstringyesObject ID (ULID). · 26 chars

Headers

NameTypeRequiredDescription
Idempotency-KeystringnoMakes retries safe: same key + body replays the stored response (idempotency-replayed: true); a different body, or an agent key or dashboard session reusing another credential's key, returns 409 idempotency_key_in_use. · ≤ 96 chars

Request body

FieldTypeRequiredDescription
customer_idstringyesULID · 26 chars
instrument_idstringnoULID · 26 chars
mandate_idstringnoULID · 26 chars
Example request
{
  "customer_id": "01JB9XK3M2R7TQ8N4V6Y0ZPA1C",
  "instrument_id": "01JB9XK3M2R7TQ8N4V6Y0ZPA1C",
  "mandate_id": "01JB9XK3M2R7TQ8N4V6Y0ZPA1C"
}

Responses

StatusMeaningBody / error codes
200Success.CheckoutSession
400Invalid request.validation_failed idempotency_key_required instrument_required instrument_enrollment_required
401Missing or invalid API key.authentication_error
403Not allowed.scope_missing limit_exceeded mandate_not_active mandate_constraint_violated mandate_budget_exceeded mandate_period_exceeded mandate_agent_mismatch
404Session, customer or card not found.resource_missing
409The session is not open.checkout_session_not_open resource_locked
429Rate limited; honor retry-after.rate_limit_exceeded too_many_auth_failures
500Server error.api_error
Example response
{
  "object": "checkout_session",
  "id": "01JB9XK3M2R7TQ8N4V6Y0ZPA1C",
  "status": "ready_for_payment",
  "line_items": [
    {
      "name": "string",
      "unit_amount": 1,
      "quantity": 1
    }
  ],
  "amount": 1,
  "currency": "RON",
  "continue_url": "string",
  "payment_link_id": "01JB9XK3M2R7TQ8N4V6Y0ZPA1C",
  "payment_id": "string",
  "return_url": "string",
  "metadata": {},
  "initiated_by": "api",
  "api_key_id": "string",
  "expires_at": "2026-10-25T18:00:00.000Z",
  "completed_at": "2026-10-25T18:00:00.000Z",
  "created_at": "2026-10-25T18:00:00.000Z"
}