Create Invoice
curl --request POST \
--url https://api.manexx.com/api/v1/external/invoices \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"external_id": "order-4821",
"customer_id": "user-99",
"amount": "1050.00",
"currency": "UAH",
"purpose": "Order #4821",
"callback_url": "https://shop.example/webhooks/manexx",
"success_url": "https://shop.example/paid",
"fail_url": "https://shop.example/failed"
}
'import requests
url = "https://api.manexx.com/api/v1/external/invoices"
payload = {
"external_id": "order-4821",
"customer_id": "user-99",
"amount": "1050.00",
"currency": "UAH",
"purpose": "Order #4821",
"callback_url": "https://shop.example/webhooks/manexx",
"success_url": "https://shop.example/paid",
"fail_url": "https://shop.example/failed"
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
external_id: 'order-4821',
customer_id: 'user-99',
amount: '1050.00',
currency: 'UAH',
purpose: 'Order #4821',
callback_url: 'https://shop.example/webhooks/manexx',
success_url: 'https://shop.example/paid',
fail_url: 'https://shop.example/failed'
})
};
fetch('https://api.manexx.com/api/v1/external/invoices', 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://api.manexx.com/api/v1/external/invoices",
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([
'external_id' => 'order-4821',
'customer_id' => 'user-99',
'amount' => '1050.00',
'currency' => 'UAH',
'purpose' => 'Order #4821',
'callback_url' => 'https://shop.example/webhooks/manexx',
'success_url' => 'https://shop.example/paid',
'fail_url' => 'https://shop.example/failed'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>"
],
]);
$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://api.manexx.com/api/v1/external/invoices"
payload := strings.NewReader("{\n \"external_id\": \"order-4821\",\n \"customer_id\": \"user-99\",\n \"amount\": \"1050.00\",\n \"currency\": \"UAH\",\n \"purpose\": \"Order #4821\",\n \"callback_url\": \"https://shop.example/webhooks/manexx\",\n \"success_url\": \"https://shop.example/paid\",\n \"fail_url\": \"https://shop.example/failed\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
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://api.manexx.com/api/v1/external/invoices")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"external_id\": \"order-4821\",\n \"customer_id\": \"user-99\",\n \"amount\": \"1050.00\",\n \"currency\": \"UAH\",\n \"purpose\": \"Order #4821\",\n \"callback_url\": \"https://shop.example/webhooks/manexx\",\n \"success_url\": \"https://shop.example/paid\",\n \"fail_url\": \"https://shop.example/failed\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.manexx.com/api/v1/external/invoices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"external_id\": \"order-4821\",\n \"customer_id\": \"user-99\",\n \"amount\": \"1050.00\",\n \"currency\": \"UAH\",\n \"purpose\": \"Order #4821\",\n \"callback_url\": \"https://shop.example/webhooks/manexx\",\n \"success_url\": \"https://shop.example/paid\",\n \"fail_url\": \"https://shop.example/failed\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"uuid": "9f2c1e5a-3b7d-4e21-a0c9-1f2e3d4c5b6a",
"external_id": "order-4821",
"customer_id": "user-99",
"amount": "1050.00",
"currency": {
"id": 1,
"code": "UAH",
"name": "Ukrainian hryvnia",
"symbol": "₴"
},
"status": "pending",
"created_at": "2026-07-16T09:24:11Z",
"expires_at": "2026-07-16T09:39:11Z",
"purpose": "Order #4821",
"amount_to_send": "1071.00",
"callback_url": "https://shop.example/webhooks/manexx",
"success_url": "https://shop.example/paid",
"fail_url": "https://shop.example/failed",
"payment_url": "https://pay.manexx.com/pay/9f2c1e5a-...?token=..."
},
"success": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Merchant API
Create Invoice
POST
/
api
/
v1
/
external
/
invoices
Create Invoice
curl --request POST \
--url https://api.manexx.com/api/v1/external/invoices \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"external_id": "order-4821",
"customer_id": "user-99",
"amount": "1050.00",
"currency": "UAH",
"purpose": "Order #4821",
"callback_url": "https://shop.example/webhooks/manexx",
"success_url": "https://shop.example/paid",
"fail_url": "https://shop.example/failed"
}
'import requests
url = "https://api.manexx.com/api/v1/external/invoices"
payload = {
"external_id": "order-4821",
"customer_id": "user-99",
"amount": "1050.00",
"currency": "UAH",
"purpose": "Order #4821",
"callback_url": "https://shop.example/webhooks/manexx",
"success_url": "https://shop.example/paid",
"fail_url": "https://shop.example/failed"
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
external_id: 'order-4821',
customer_id: 'user-99',
amount: '1050.00',
currency: 'UAH',
purpose: 'Order #4821',
callback_url: 'https://shop.example/webhooks/manexx',
success_url: 'https://shop.example/paid',
fail_url: 'https://shop.example/failed'
})
};
fetch('https://api.manexx.com/api/v1/external/invoices', 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://api.manexx.com/api/v1/external/invoices",
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([
'external_id' => 'order-4821',
'customer_id' => 'user-99',
'amount' => '1050.00',
'currency' => 'UAH',
'purpose' => 'Order #4821',
'callback_url' => 'https://shop.example/webhooks/manexx',
'success_url' => 'https://shop.example/paid',
'fail_url' => 'https://shop.example/failed'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>"
],
]);
$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://api.manexx.com/api/v1/external/invoices"
payload := strings.NewReader("{\n \"external_id\": \"order-4821\",\n \"customer_id\": \"user-99\",\n \"amount\": \"1050.00\",\n \"currency\": \"UAH\",\n \"purpose\": \"Order #4821\",\n \"callback_url\": \"https://shop.example/webhooks/manexx\",\n \"success_url\": \"https://shop.example/paid\",\n \"fail_url\": \"https://shop.example/failed\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
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://api.manexx.com/api/v1/external/invoices")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"external_id\": \"order-4821\",\n \"customer_id\": \"user-99\",\n \"amount\": \"1050.00\",\n \"currency\": \"UAH\",\n \"purpose\": \"Order #4821\",\n \"callback_url\": \"https://shop.example/webhooks/manexx\",\n \"success_url\": \"https://shop.example/paid\",\n \"fail_url\": \"https://shop.example/failed\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.manexx.com/api/v1/external/invoices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"external_id\": \"order-4821\",\n \"customer_id\": \"user-99\",\n \"amount\": \"1050.00\",\n \"currency\": \"UAH\",\n \"purpose\": \"Order #4821\",\n \"callback_url\": \"https://shop.example/webhooks/manexx\",\n \"success_url\": \"https://shop.example/paid\",\n \"fail_url\": \"https://shop.example/failed\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"uuid": "9f2c1e5a-3b7d-4e21-a0c9-1f2e3d4c5b6a",
"external_id": "order-4821",
"customer_id": "user-99",
"amount": "1050.00",
"currency": {
"id": 1,
"code": "UAH",
"name": "Ukrainian hryvnia",
"symbol": "₴"
},
"status": "pending",
"created_at": "2026-07-16T09:24:11Z",
"expires_at": "2026-07-16T09:39:11Z",
"purpose": "Order #4821",
"amount_to_send": "1071.00",
"callback_url": "https://shop.example/webhooks/manexx",
"success_url": "https://shop.example/paid",
"fail_url": "https://shop.example/failed",
"payment_url": "https://pay.manexx.com/pay/9f2c1e5a-...?token=..."
},
"success": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Body
application/json
Your own order id. Unique per business; used for idempotency.
Required string length:
1 - 128Example:
"order-4821"
Your identifier for the paying customer.
Required string length:
1 - 128Example:
"user-99"
Base order amount in fiat. Positive, max 2 decimal places.
Required range:
x > 0Example:
"1050.00"
Fiat currency code. Must be active and allowed for your business.
Required string length:
2 - 16Example:
"UAH"
Optional order description shown to the customer.
Maximum string length:
255Example:
"Order #4821"
HTTPS webhook URL for settlement. Falls back to business settings.
Maximum string length:
512Example:
"https://shop.example/webhooks/manexx"
HTTPS redirect after successful payment. Falls back to settings.
Maximum string length:
512Example:
"https://shop.example/paid"
HTTPS redirect after failed payment. Falls back to settings.
Maximum string length:
512Example:
"https://shop.example/failed"
⌘I
.webp?fit=max&auto=format&n=O6SgNi-K863CxPv7&q=85&s=5a022604a7f294c9858b55256ba8a593)
