Payments without the hasslePersonal advice: 085 560 12 01
REST API · version 2.0.0

Integrate payments.
Sorted today.

Complete implementation guide for payments, transaction statuses, webhooks, refunds and customer onboarding. From your first API call to a reliable payment flow.

✓ € 2.50 per terminal per month✓ CCV & Worldline✓ Webhooks✓ Dutch-based support
Go to a section ↓
Quick startFind your API keyAPI testerAuthenticationIBAN checkCreate clientSearch transactionsStart transactionGet statusCancelEmail receiptRefundCTMPTransaction listLast transactionWebhookSDK & support
No section found. Try a different search term.
Getting started

How the payment flow works

For the integration, you receive a Terminal ID and an API token from Pin Vandaag. The API works with CCV and Worldline terminals; certain functions are brand-specific and are indicated per endpoint.

REST API rate: € 2.50 per terminal per month. The monthly fee applies to every payment terminal you connect via the REST API. Transaction processing and any other services are charged separately.
Your POS or application sends a payment request.
The REST API calls the selected terminal.
The terminal waits for the customer's payment.
After a status change, your callback receives a webhook.
Your application processes the final transaction status.

Supported payment terminals

PAX A77PAX A920PAX A35 ITSIngenico DX8000Ingenico RX5000Verifone V400mVerifone P400Verifone Vx680 (wifi)Worldline YomaniWorldline Yoximo

Transaction statuses

The status values work the same way for Worldline and CCV. Other response fields may differ per route and payment provider.

StatusMeaning
startedThe transaction has been sent to the terminal.
pendingThe customer is busy at the terminal; the transaction has not yet been completed.
successThe payment was successful.
failedThe payment was declined or aborted.
Received a different value? In exceptional cases, a different value may occur that comes directly from the payment provider. Treat any status other than success or failed as not yet final, and keep requesting the status or wait for the webhook.

Available endpoints

PinPortal

Where can you find the Terminal ID and the API key?

You can find the details of a payment terminal in PinPortal.nl. Log in with your customer or partner account and follow these steps:

  1. Click the relevant customer.
  2. Click Bewerk klant (Edit customer).
  3. Open the Overige (Other) tab.
  4. Click API Keys.
  5. The Terminal ID appears in the overview.
  6. The corresponding API KEY is shown next to the Terminal ID.
Treat the API key like a password. Do not share the key and never store it in public source code or a GitHub repository.
Run directly

Interactive API tester

Run REST API commands from this page. The web page first sends the command to a secure proxy on the same domain; that proxy then calls the Pin Vandaag REST API. Choose an endpoint, enter your API key and the required values and click Run. The HTTP status and response appear directly below the form.

Preferably use a test terminal. A command such as Start transaction is actually sent to the terminal.
POST/instore/transactions/start
ResponseNot yet run
The API response will appear here.
Security

Authentication

Recommended method: send the API key with every request in the X-API-KEY header. The old secret is not needed for this.

Using X-API-KEY

cURL
curl --location 'https://rest-api.pinvandaag.com/V2' \
  --header 'X-API-KEY: API_TOKEN'
PHP
<?php
$apiKey = 'API_TOKEN';
$headers = [
    'X-API-KEY: ' . $apiKey,
];

$ch = curl_init('https://rest-api.pinvandaag.com/V2');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
Store your API key securely. Never place the key in public source code, a browser app or a GitHub repository. Make API calls from your own secure server.
Legacy method: Basic Authentication (not recommended for new integrations)

Send an Authorization header with Basic Authentication with every request: Authorization: Basic base64(API_KEY:SECRET). No separate token is issued; the header is sent with every request. For new integrations, we recommend the X-API-KEY header.

PHP · legacy
<?php
$apiKeyAndSecret = 'sleutel:geheim';
$encoded = base64_encode($apiKeyAndSecret);
$headers = ['Authorization: Basic ' . $encoded];

$ch = curl_init('https://rest-api.pinvandaag.com/V2');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
REST API v2

HTTP status codes

Version 2 returns appropriate HTTP status codes. This allows you to handle errors more reliably and see more quickly whether input is missing, a terminal does not exist or there is a server problem.

200Request successful
400Invalid input
404Not found
500Internal server error
Tip: base your program flow on the HTTP status code first, then check the status, message and data fields in the response.
Service

IBAN name check

/services/iban/name-check
POST

Checks a Dutch IBAN and compares the specified account holder. The function works exclusively for Dutch IBANs.

Paid service with tokens. One token is deducted from your API key for each processed request. The response shows how many tokens are still available. No tokens are deducted in the event of an internal server error or a request that cannot be processed.
FieldRequiredDescription
nameYesName of the account holder.
ibanYesDutch IBAN, exactly 18 characters. Pattern: ^NL[0-9]{2}[A-Z]{4}[0-9]{10}$
cURL
curl --location --request POST \
  'https://rest-api.pinvandaag.com/V2/services/iban/name-check' \
  --header 'X-API-KEY: API_TOKEN' \
  --form 'name="REKENINGHOUDER_NAAM"' \
  --form 'iban="NL44ABNA0543946959"'

Example response

JSON
{
  "status": "success",
  "message": "IBAN has been checked",
  "http_code": 200,
  "data": {
    "IBANCheckTransactionResponse": {
      "IBAN": "NL44ABNA0543946959",
      "AssumedName": "Test Holder",
      "DebtorReference": "1682765065",
      "IBANCheckResult": {
        "IBANResult": "SERVICE_TEMPORARILY_NOT_AVAILABLE"
      }
    }
  }
}

The exact content of data may differ depending on the information linked to the IBAN.

Partners

Create a client in PinPortal

/instore/clients/create
POST

Partners can use this to automatically register a new customer in PinPortal.

Required fields

FieldDescription
kvkThe customer's Chamber of Commerce (KvK) number.
ibanThe customer's IBAN.
iban_nameName of the account holder.
phoneThe customer's phone number.
emailThe customer's email address.
ubo_sexUBO gender: f or m.
ubo_firstnameFirst name of the UBO.
ubo_lastnameSurname of the UBO.
ubo_phonePhone number of the UBO.
ubo_emailEmail address of the UBO.
ubo_birthdateDate of birth in the format dd-mm-YYYY.
ubo_nationalityNationality of the UBO.
ubo_addressAddress of the UBO.
ubo_postcodePostcode of the UBO.
ubo_cityTown or city of residence of the UBO.
ubo_countryCountry code of the UBO.
Show all optional fields

vat (VAT number) and web (website URL) are optional. For a second, third or fourth UBO, you can add the same details with the prefix ubo2_, ubo3_ or ubo4_.

UBO 2 to 4Available suffixes
ubo2_*, ubo3_*, ubo4_*sex, firstname, lastname, phone, email, birthdate, nationality, address, postcode, city, country
cURL
curl --location --request POST \
  'https://rest-api.pinvandaag.com/V2/instore/clients/create' \
  --header 'X-API-KEY: API_TOKEN' \
  --form 'kvk="01234567"' \
  --form 'iban="NL01BANK0123456789"' \
  --form 'iban_name="Bank Account Name"' \
  --form 'vat="NL012345678B01"' \
  --form 'phone="0612345678"' \
  --form 'email="[email protected]"' \
  --form 'ubo_sex="f"' \
  --form 'ubo_firstname="Voornaam"' \
  --form 'ubo_lastname="Achternaam"' \
  --form 'ubo_phone="0612345678"' \
  --form 'ubo_email="[email protected]"' \
  --form 'ubo_birthdate="31-12-1987"' \
  --form 'ubo_nationality="Nederlandse"' \
  --form 'ubo_address="Straat 1"' \
  --form 'ubo_postcode="1234AB"' \
  --form 'ubo_city="Amsterdam"' \
  --form 'ubo_country="NL"'
Success response
{
  "status": "success",
  "message": "Client created with id 50065"
}
Dashboard

Search transactions

/instore/transactions_dashboard/search
GET

Retrieves transactions for Worldline, CCV, PIN, iDEAL, Cloud Connect and MultiSafepay.

Optional query parameters

ParameterDescription
clientsFor partners: comma-separated client IDs.
terminalsComma-separated terminal IDs.
datefromStart date as a UNIX timestamp. Default: first day of the current month.
datetoEnd date as a UNIX timestamp. Default: current day.
amountfromMinimum amount in euros.
amounttoMaximum amount in euros.
transaction_typesepay (PIN), pay (iDEAL), cc (Cloud Connect), msp (MultiSafepay) or all.
show_failed1 to show failed transactions; 0 to hide them.
group_bycustomerId or date.
buckaroo_typeamex, maestro, mastercard, mastercard debit, vpay, visa, visa debit or all.
cURL
curl --location --request GET \
  'https://rest-api.pinvandaag.com/V2/instore/transactions_dashboard/search?transaction_type=pay&show_failed=0&datefrom=1664575200&dateto=1664920800&terminals=CT164623,CT236543' \
  --header 'X-API-KEY: API_TOKEN'
Success response
{
  "status": "ok",
  "data": {
    "status": "success",
    "message": "Transacties gevonden",
    "data": {
      "date_from": "2022-09-30T22:00:00.000000Z",
      "date_to": "2022-10-04T22:00:00.000000Z",
      "amount_from": 0,
      "amount_to": 0,
      "transactions": [
        {"id": 1135554309, "customer_id": 12019, "time": "2022-10-04T21:03:29+00:00", "amount": 45.98, "type": "iDEAL"},
        {"id": 1135539732, "customer_id": 12019, "time": "2022-10-04T20:44:23+00:00", "amount": 57.21, "type": "iDEAL"}
      ]
    }
  }
}
Payment

Start transaction

/instore/transactions/start
POST
CCVWorldline

Starts a new payment on the selected terminal. Amounts are always specified in cents.

FieldTypeDescription
terminal_idRequiredTerminal on which the payment is started.
amountRequiredAmount in cents; € 12.50 becomes 1250.
callbackUrlOptionalHTTPS URL at which the webhook is received.
ownReferenceOptionalYour own unique order or payment reference.
ReturnUrlOptionalCCV only: URL to which the user returns.
Using the payment URL? For CCV, also include a ReturnUrl. Without a ReturnUrl, the user may keep being sent back to the same page.
cURL
curl --location --request POST \
  'https://rest-api.pinvandaag.com/V2/instore/transactions/start' \
  --header 'X-API-KEY: API_TOKEN' \
  --form 'terminal_id="TERMINAL_ID"' \
  --form 'amount="1250"' \
  --form 'callbackUrl="https://uw-app.nl/webhooks/pinvandaag"' \
  --form 'ownReference="ORDER-2026-001"'
Success response
{
  "transactionId": "2405102",
  "status": "started",
  "amount": 1250,
  "terminal": "50303253",
  "createdAt": "2022-06-25 17:10:36",
  "callbackUrl": "https://uw-app.nl/webhooks/pinvandaag",
  "ownReference": "ORDER-2026-001"
}
Payment

Get transaction status

/instore/transactions/status
POST
CCVWorldline

Retrieves the current status of a payment transaction.

CCV: at most one refresh per 30 seconds. For CCV terminals, the status is refreshed with the payment provider at most once every 30 seconds. If you request it more often, you receive the last known status, which may be up to 30 seconds old. Requesting more frequently therefore does not return a more recent status.
FieldRequiredDescription
terminal_idYesTerminal on which the transaction took place.
transaction_idYesID from the start transaction response.
cURL
curl --location --request POST \
  'https://rest-api.pinvandaag.com/V2/instore/transactions/status' \
  --header 'X-API-KEY: API_TOKEN' \
  --form 'terminal_id="TERMINAL_ID"' \
  --form 'transaction_id="TRANSACTION_ID"'

CCV · successful

JSON
{
  "transactionId": "TL220611120248997CB8FB114.1",
  "status": "success",
  "amount": 1,
  "terminal": "706249441",
  "createdAt": "2022-06-11 12:01:29",
  "callbackUrl": null,
  "paymentUrl": null,
  "errorMsg": null,
  "ownReference": null,
  "receipt": "[...]",
  "journalReceipt": "[...]"
}

CCV · failed

JSON
{
  "transactionId": "TL220618175406586CB893D27.2",
  "status": "failed",
  "amount": 1,
  "terminal": "706249441",
  "createdAt": "2022-06-18 17:53:46",
  "callbackUrl": null,
  "receipt": null,
  "paymentUrl": "https://redirect.jforce.be/terminal/poll?reference=...",
  "errorMsg": "processing_error",
  "ownReference": null
}

Worldline · successful

JSON
{
  "transactionId": "2340636",
  "status": "success",
  "amount": 1,
  "terminal": "50303253",
  "createdAt": "2022-06-18 16:23:45",
  "callbackUrl": null,
  "incidentCode": null,
  "errorMsg": null,
  "ownReference": null,
  "receipt": "[...]"
}

Worldline · failed

JSON
{
  "transactionId": "2340627",
  "status": "failed",
  "amount": 1,
  "terminal": "50303253",
  "createdAt": "2022-06-18 16:22:39",
  "callbackUrl": null,
  "receipt": null,
  "incidentCode": "2628",
  "errorMsg": "External Equipment Cancellation",
  "ownReference": null
}
Payment

Cancel transaction

/instore/transactions/stop
POST
CCVWorldline

Only cancels a transaction that is being processed by the terminal at that moment. For Worldline and CCV, always use the same request with both terminal_id and transaction_id. This keeps your integration uniform when you switch terminal brands.

CCV limit: the same transaction can be submitted for cancellation a maximum of three times. After that, cancellation requests for that transaction are automatically restricted.
FieldRequiredDescription
terminal_idYesID of the terminal on which the transaction is being processed.
transaction_idYesID from the start transaction response; always include it for Worldline and CCV.
cURL · Worldline and CCV
curl --location --request POST \
  'https://rest-api.pinvandaag.com/V2/instore/transactions/stop' \
  --header 'X-API-KEY: API_TOKEN' \
  --form 'terminal_id="TERMINAL_ID"' \
  --form 'transaction_id="TRANSACTION_ID"'
Receipt

Send receipt by email

/instore/transactions/mail
POST
CCVWorldline

Sends the receipt of a successful transaction to the customer.

FieldRequiredDescription
terminal_idYesTerminal on which the transaction succeeded.
transaction_idYesID of the successful transaction.
emailYesEmail address of the recipient.
cURL
curl --location --request POST \
  'https://rest-api.pinvandaag.com/V2/instore/transactions/mail' \
  --header 'X-API-KEY: API_TOKEN' \
  --form 'terminal_id="TERMINAL_ID"' \
  --form 'transaction_id="TRANSACTION_ID"' \
  --form 'email="[email protected]"'
Payment

Start refund

/instore/transactions/refund
POST
CCVWorldline

Starts a refund on the payment terminal. The customer holds their card to the terminal; the refund then proceeds just like a payment. Amounts are always specified in cents.

FieldRequiredDescription
terminal_idYesTerminal on which the refund is carried out.
amountYesAmount to be refunded in cents; € 12.50 becomes 1250.
transaction_idOptionalCCV only: transaction_id of the original payment on this terminal. The refund is then linked to that payment; with a lower amount it is a partial refund. Without this field, it is a standalone refund.
callbackUrlOptionalHTTPS URL at which the webhook is received.
ownReferenceOptionalYour own reference, for example the return or order number.
Tracking the status. The response contains a transaction_id. Use it to track the refund via /instore/transactions/status or via the webhook, just as with a payment. For CCV, a specified original transaction is only accepted if it was carried out on the same terminal.
cURL
curl --location --request POST \
  'https://rest-api.pinvandaag.com/V2/instore/transactions/refund' \
  --header 'X-API-KEY: API_TOKEN' \
  --form 'terminal_id="TERMINAL_ID"' \
  --form 'amount="1250"' \
  --form 'callbackUrl="https://uw-app.nl/webhooks/pinvandaag"' \
  --form 'ownReference="RETOUR-2026-001"'
cURL · CCV, refund against an earlier payment
curl --location --request POST \
  'https://rest-api.pinvandaag.com/V2/instore/transactions/refund' \
  --header 'X-API-KEY: API_TOKEN' \
  --form 'terminal_id="TERMINAL_ID"' \
  --form 'amount="500"' \
  --form 'transaction_id="TRANSACTION_ID_VAN_DE_BETALING"'
Success response · CCV
{
  "status": "started",
  "type": "refund",
  "terminal": 706249441,
  "amount": 500,
  "transaction_id": "TL260611120248997CB8FB114.1",
  "original_transaction_id": "TL260610093112412CB8FA201.1",
  "payment_url": "https://redirect.jforce.be/terminal/poll?reference=...",
  "createdAt": "2026-06-11 12:02:48",
  "callbackUrl": "https://uw-app.nl/webhooks/pinvandaag",
  "ownReference": "RETOUR-2026-001"
}

For Worldline, the response also contains status and transaction_id; the other fields come directly from Worldline.

Terminal management

CTMP request

/instore/transactions/ctmp
POST
Worldline only

Makes a Worldline terminal manually retrieve a new configuration from the Worldline server.

FieldRequiredDescription
terminal_idYesTerminal to which the CTMP request is sent.
cURL
curl --location --request POST \
  'https://rest-api.pinvandaag.com/V2/instore/transactions/ctmp' \
  --header 'X-API-KEY: API_TOKEN' \
  --form 'terminal_id="TERMINAL_ID"'
Transactions

Transaction list per terminal

/instore/transactions/{TERMINAL_ID}/{LIMIT}/{PAGE}/
GET
CCVWorldline
ParameterRequiredDescription
TERMINAL_IDYesTerminal whose transactions are retrieved.
LIMITYesMaximum number of results, from 1 to 100.
PAGEYesPage number to retrieve.
datefromOptionalStart date as a UNIX timestamp.
datetoOptionalEnd date as a UNIX timestamp.
Date check: dateto must not be earlier than datefrom.
cURL
curl --location --request GET \
  'https://rest-api.pinvandaag.com/V2/instore/transactions/TERMINAL_ID/LIMIT/PAGE/?datefrom=FROM_TIMESTAMP&dateto=TO_TIMESTAMP' \
  --header 'X-API-KEY: API_TOKEN'
Transactions

Get last transaction

/instore/transactions/last_transaction
POST
CCVWorldline
FieldRequiredDescription
terminal_idYesTerminal whose last transaction is retrieved.
cURL
curl --location --request POST \
  'https://rest-api.pinvandaag.com/V2/instore/transactions/last_transaction' \
  --header 'X-API-KEY: API_TOKEN' \
  --form 'terminal_id="TERMINAL_ID"'

Response on 200

JSON · data types as an example
{
  "id": 1,
  "status": "failed",
  "terminal": "12345678",
  "amount": 1,
  "transaction_id": "123456789",
  "own_reference": "",
  "which_api": "Worldline|CCV",
  "created_at": "2024-04-05T00:00:00+00:00",
  "updated_at": "2024-04-05T00:00:00+00:00",
  "callback_url": "",
  "payment_url": null,
  "receipt": null,
  "incident_code": "1",
  "error_msg": "",
  "cancel_counter_ccv": null
}

Fields such as payment_url and receipt can contain null or a string. cancel_counter_ccv can be null or an integer.

Error statuses

  • 400: invalid or missing POST data; the response contains validation_errors.
  • 404: terminal not found or there are no transactions.
  • 500: internal server error; please contact the Pin Vandaag development team.
400 · validation error
{
  "status": "error",
  "http_code": 400,
  "message": {
    "error": "Invalid data was provided.",
    "validation_errors": {
      "terminal_id": {
        "integer": "The Terminal id must be integer"
      }
    }
  },
  "data": null
}
Integration

Receiving the webhook

The webhook is only called when the transaction status changes. With /transactions/start, include a publicly accessible HTTPS URL in callbackUrl.

Delivery

The webhook is sent as a POST with a JSON body (Content-Type: application/json) to your callbackUrl.

No automatic retry. The transaction data is sent once. There is no automatic retry if your server cannot be reached or returns an error. Therefore, use /instore/transactions/status as a fallback if you have not received a webhook within a reasonable time.
Example webhook body
{
  "transactionId": "1234567",
  "status": "failed",
  "amount": 1,
  "terminal": "12345678",
  "createdAt": "2022-07-08 18:21:03",
  "callbackUrl": "https://uw-app.nl/webhooks/pinvandaag",
  "paymentUrl": null,
  "receipt": null,
  "ownReference": "ORDER-2026-001"
}
Extra field for CCV terminals. For CCV terminals, in addition to the fields in the example, the webhook also contains journalReceipt: the terminal's journal receipt. This field is absent for Worldline terminals.

Recommended processing

  1. Only accept HTTPS requests on your callback URL.
  2. Look up the payment via transactionId and/or ownReference.
  3. Make processing idempotent: the same status must never complete an order twice.
  4. Process success as successful; treat failed as failed. Any other status is not yet final (see Transaction statuses).
  5. If in doubt, request the status again via the status endpoint.
  6. Log the received body securely, without storing your API key.
Implementation help

PHP SDK and support

Pin Vandaag offers a small PHP SDK package for REST API v2. You can use the package directly or take it as an example for your own implementation.

Composer
composer require pinvandaag/pin-php-sdk
Before you go live: always test a successful payment, a declined payment, a cancellation, a time-out, webhook processing and recovery after a temporary network error.