Create payment
curl --request POST \
--url https://rcur.app/api/v2/payments \
--header 'Content-Type: application/json' \
--data '
{
"amount": 29.99,
"currency": "EUR",
"mollie_customer_id": "cst_abc123",
"description": "Order #2025-001",
"redirect_url": "https://example.com/thank-you",
"method": "ideal",
"webhook_url": "https://example.com/webhook",
"mollie_profile_id": "pfl_abc123"
}
'import requests
url = "https://rcur.app/api/v2/payments"
payload = {
"amount": 29.99,
"currency": "EUR",
"mollie_customer_id": "cst_abc123",
"description": "Order #2025-001",
"redirect_url": "https://example.com/thank-you",
"method": "ideal",
"webhook_url": "https://example.com/webhook",
"mollie_profile_id": "pfl_abc123"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
amount: 29.99,
currency: 'EUR',
mollie_customer_id: 'cst_abc123',
description: 'Order #2025-001',
redirect_url: 'https://example.com/thank-you',
method: 'ideal',
webhook_url: 'https://example.com/webhook',
mollie_profile_id: 'pfl_abc123'
})
};
fetch('https://rcur.app/api/v2/payments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://rcur.app/api/v2/payments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'amount' => 29.99,
'currency' => 'EUR',
'mollie_customer_id' => 'cst_abc123',
'description' => 'Order #2025-001',
'redirect_url' => 'https://example.com/thank-you',
'method' => 'ideal',
'webhook_url' => 'https://example.com/webhook',
'mollie_profile_id' => 'pfl_abc123'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://rcur.app/api/v2/payments"
payload := strings.NewReader("{\n \"amount\": 29.99,\n \"currency\": \"EUR\",\n \"mollie_customer_id\": \"cst_abc123\",\n \"description\": \"Order #2025-001\",\n \"redirect_url\": \"https://example.com/thank-you\",\n \"method\": \"ideal\",\n \"webhook_url\": \"https://example.com/webhook\",\n \"mollie_profile_id\": \"pfl_abc123\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://rcur.app/api/v2/payments")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 29.99,\n \"currency\": \"EUR\",\n \"mollie_customer_id\": \"cst_abc123\",\n \"description\": \"Order #2025-001\",\n \"redirect_url\": \"https://example.com/thank-you\",\n \"method\": \"ideal\",\n \"webhook_url\": \"https://example.com/webhook\",\n \"mollie_profile_id\": \"pfl_abc123\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://rcur.app/api/v2/payments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": 29.99,\n \"currency\": \"EUR\",\n \"mollie_customer_id\": \"cst_abc123\",\n \"description\": \"Order #2025-001\",\n \"redirect_url\": \"https://example.com/thank-you\",\n \"method\": \"ideal\",\n \"webhook_url\": \"https://example.com/webhook\",\n \"mollie_profile_id\": \"pfl_abc123\"\n}"
response = http.request(request)
puts response.read_body{
"id": "pay_abc123",
"mollie_payment_id": "tr_abc123",
"status": "open",
"mollie_checkout_url": "https://www.mollie.com/checkout/test-mode?method=ideal&token=abc123"
}{
"status": 422,
"error": "Could not process request. Some fields contain invalid data",
"fields": {
"email": [
"The email field is required."
]
}
}Payments
Create payment
POST
/
api
/
v2
/
payments
Create payment
curl --request POST \
--url https://rcur.app/api/v2/payments \
--header 'Content-Type: application/json' \
--data '
{
"amount": 29.99,
"currency": "EUR",
"mollie_customer_id": "cst_abc123",
"description": "Order #2025-001",
"redirect_url": "https://example.com/thank-you",
"method": "ideal",
"webhook_url": "https://example.com/webhook",
"mollie_profile_id": "pfl_abc123"
}
'import requests
url = "https://rcur.app/api/v2/payments"
payload = {
"amount": 29.99,
"currency": "EUR",
"mollie_customer_id": "cst_abc123",
"description": "Order #2025-001",
"redirect_url": "https://example.com/thank-you",
"method": "ideal",
"webhook_url": "https://example.com/webhook",
"mollie_profile_id": "pfl_abc123"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
amount: 29.99,
currency: 'EUR',
mollie_customer_id: 'cst_abc123',
description: 'Order #2025-001',
redirect_url: 'https://example.com/thank-you',
method: 'ideal',
webhook_url: 'https://example.com/webhook',
mollie_profile_id: 'pfl_abc123'
})
};
fetch('https://rcur.app/api/v2/payments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://rcur.app/api/v2/payments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'amount' => 29.99,
'currency' => 'EUR',
'mollie_customer_id' => 'cst_abc123',
'description' => 'Order #2025-001',
'redirect_url' => 'https://example.com/thank-you',
'method' => 'ideal',
'webhook_url' => 'https://example.com/webhook',
'mollie_profile_id' => 'pfl_abc123'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://rcur.app/api/v2/payments"
payload := strings.NewReader("{\n \"amount\": 29.99,\n \"currency\": \"EUR\",\n \"mollie_customer_id\": \"cst_abc123\",\n \"description\": \"Order #2025-001\",\n \"redirect_url\": \"https://example.com/thank-you\",\n \"method\": \"ideal\",\n \"webhook_url\": \"https://example.com/webhook\",\n \"mollie_profile_id\": \"pfl_abc123\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://rcur.app/api/v2/payments")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 29.99,\n \"currency\": \"EUR\",\n \"mollie_customer_id\": \"cst_abc123\",\n \"description\": \"Order #2025-001\",\n \"redirect_url\": \"https://example.com/thank-you\",\n \"method\": \"ideal\",\n \"webhook_url\": \"https://example.com/webhook\",\n \"mollie_profile_id\": \"pfl_abc123\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://rcur.app/api/v2/payments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": 29.99,\n \"currency\": \"EUR\",\n \"mollie_customer_id\": \"cst_abc123\",\n \"description\": \"Order #2025-001\",\n \"redirect_url\": \"https://example.com/thank-you\",\n \"method\": \"ideal\",\n \"webhook_url\": \"https://example.com/webhook\",\n \"mollie_profile_id\": \"pfl_abc123\"\n}"
response = http.request(request)
puts response.read_body{
"id": "pay_abc123",
"mollie_payment_id": "tr_abc123",
"status": "open",
"mollie_checkout_url": "https://www.mollie.com/checkout/test-mode?method=ideal&token=abc123"
}{
"status": 422,
"error": "Could not process request. Some fields contain invalid data",
"fields": {
"email": [
"The email field is required."
]
}
}Body
application/json
Payment data
Payment amount
Example:
29.99
Currency
Available options:
EUR Example:
"EUR"
Mollie customer ID
Example:
"cst_abc123"
Payment description
Example:
"Order #2025-001"
URL to redirect after payment
Example:
"https://example.com/thank-you"
Payment method
Available options:
ideal, creditcard, bancontact, sofort, eps, giropay, belfius, kbc, banktransfer Example:
"ideal"
Webhook URL for status updates
Example:
"https://example.com/webhook"
Mollie profile ID
Example:
"pfl_abc123"
Response
Payment created successfully
⌘I