curl --request POST \
--url https://gateway-api.sandbox.paymove.io/api/product/pay \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"partnerId": "78562c79-2f5c-4415-8af4-c871eea92ef2",
"productType": "PAY",
"name": "Testowy Produkt",
"shortName": "3456",
"location": "Warszawa",
"timezone": "Europe/Warsaw"
}
'import requests
url = "https://gateway-api.sandbox.paymove.io/api/product/pay"
payload = {
"partnerId": "78562c79-2f5c-4415-8af4-c871eea92ef2",
"productType": "PAY",
"name": "Testowy Produkt",
"shortName": "3456",
"location": "Warszawa",
"timezone": "Europe/Warsaw"
}
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({
partnerId: '78562c79-2f5c-4415-8af4-c871eea92ef2',
productType: 'PAY',
name: 'Testowy Produkt',
shortName: '3456',
location: 'Warszawa',
timezone: 'Europe/Warsaw'
})
};
fetch('https://gateway-api.sandbox.paymove.io/api/product/pay', 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://gateway-api.sandbox.paymove.io/api/product/pay",
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([
'partnerId' => '78562c79-2f5c-4415-8af4-c871eea92ef2',
'productType' => 'PAY',
'name' => 'Testowy Produkt',
'shortName' => '3456',
'location' => 'Warszawa',
'timezone' => 'Europe/Warsaw'
]),
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://gateway-api.sandbox.paymove.io/api/product/pay"
payload := strings.NewReader("{\n \"partnerId\": \"78562c79-2f5c-4415-8af4-c871eea92ef2\",\n \"productType\": \"PAY\",\n \"name\": \"Testowy Produkt\",\n \"shortName\": \"3456\",\n \"location\": \"Warszawa\",\n \"timezone\": \"Europe/Warsaw\"\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://gateway-api.sandbox.paymove.io/api/product/pay")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"partnerId\": \"78562c79-2f5c-4415-8af4-c871eea92ef2\",\n \"productType\": \"PAY\",\n \"name\": \"Testowy Produkt\",\n \"shortName\": \"3456\",\n \"location\": \"Warszawa\",\n \"timezone\": \"Europe/Warsaw\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://gateway-api.sandbox.paymove.io/api/product/pay")
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 \"partnerId\": \"78562c79-2f5c-4415-8af4-c871eea92ef2\",\n \"productType\": \"PAY\",\n \"name\": \"Testowy Produkt\",\n \"shortName\": \"3456\",\n \"location\": \"Warszawa\",\n \"timezone\": \"Europe/Warsaw\"\n}"
response = http.request(request)
puts response.read_body{
"id": "d0a834f9-94a4-4b3a-aa10-27d911e3633f",
"name": "Testowy Produkt",
"location": "Warszawa",
"partner": {
"id": "78562c79-2f5c-4415-8af4-c871eea92ef2",
"name": "Nazwa Partnera Sp. z o.o.",
"productTypes": [
"PAY"
]
},
"timezone": "Europe/Warsaw",
"shortName": "3456",
"emailEnabled": true,
"smsEnabled": false,
"fee": {
"id": "01f9754e-78e3-4b2c-8186-d6862598a95a",
"minimum": 30,
"amount": 5,
"fixed": false
},
"productType": "PAY",
"status": "ACTIVE",
"creator": "PAYMOVE",
"reviewEnabled": false,
"createdAt": 1783245692.6237638,
"updatedAt": 1783245692.6237638
}Utwórz produkt
Tworzy produkt reprezentujący Twoją usługę w systemie Paymove. Produkt jest rootem
całego modelu — subprodukty, cennik, formularze, customizacje i webhooki są podłączane
do konkretnego produktu. Tworzysz go jednorazowo.
Pole id z odpowiedzi to productId używany w pozostałych endpointach.
curl --request POST \
--url https://gateway-api.sandbox.paymove.io/api/product/pay \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"partnerId": "78562c79-2f5c-4415-8af4-c871eea92ef2",
"productType": "PAY",
"name": "Testowy Produkt",
"shortName": "3456",
"location": "Warszawa",
"timezone": "Europe/Warsaw"
}
'import requests
url = "https://gateway-api.sandbox.paymove.io/api/product/pay"
payload = {
"partnerId": "78562c79-2f5c-4415-8af4-c871eea92ef2",
"productType": "PAY",
"name": "Testowy Produkt",
"shortName": "3456",
"location": "Warszawa",
"timezone": "Europe/Warsaw"
}
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({
partnerId: '78562c79-2f5c-4415-8af4-c871eea92ef2',
productType: 'PAY',
name: 'Testowy Produkt',
shortName: '3456',
location: 'Warszawa',
timezone: 'Europe/Warsaw'
})
};
fetch('https://gateway-api.sandbox.paymove.io/api/product/pay', 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://gateway-api.sandbox.paymove.io/api/product/pay",
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([
'partnerId' => '78562c79-2f5c-4415-8af4-c871eea92ef2',
'productType' => 'PAY',
'name' => 'Testowy Produkt',
'shortName' => '3456',
'location' => 'Warszawa',
'timezone' => 'Europe/Warsaw'
]),
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://gateway-api.sandbox.paymove.io/api/product/pay"
payload := strings.NewReader("{\n \"partnerId\": \"78562c79-2f5c-4415-8af4-c871eea92ef2\",\n \"productType\": \"PAY\",\n \"name\": \"Testowy Produkt\",\n \"shortName\": \"3456\",\n \"location\": \"Warszawa\",\n \"timezone\": \"Europe/Warsaw\"\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://gateway-api.sandbox.paymove.io/api/product/pay")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"partnerId\": \"78562c79-2f5c-4415-8af4-c871eea92ef2\",\n \"productType\": \"PAY\",\n \"name\": \"Testowy Produkt\",\n \"shortName\": \"3456\",\n \"location\": \"Warszawa\",\n \"timezone\": \"Europe/Warsaw\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://gateway-api.sandbox.paymove.io/api/product/pay")
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 \"partnerId\": \"78562c79-2f5c-4415-8af4-c871eea92ef2\",\n \"productType\": \"PAY\",\n \"name\": \"Testowy Produkt\",\n \"shortName\": \"3456\",\n \"location\": \"Warszawa\",\n \"timezone\": \"Europe/Warsaw\"\n}"
response = http.request(request)
puts response.read_body{
"id": "d0a834f9-94a4-4b3a-aa10-27d911e3633f",
"name": "Testowy Produkt",
"location": "Warszawa",
"partner": {
"id": "78562c79-2f5c-4415-8af4-c871eea92ef2",
"name": "Nazwa Partnera Sp. z o.o.",
"productTypes": [
"PAY"
]
},
"timezone": "Europe/Warsaw",
"shortName": "3456",
"emailEnabled": true,
"smsEnabled": false,
"fee": {
"id": "01f9754e-78e3-4b2c-8186-d6862598a95a",
"minimum": 30,
"amount": 5,
"fixed": false
},
"productType": "PAY",
"status": "ACTIVE",
"creator": "PAYMOVE",
"reviewEnabled": false,
"createdAt": 1783245692.6237638,
"updatedAt": 1783245692.6237638
}Autoryzacje
Klucz API dostarczony przez Paymove po zakończeniu procesu KYC.
Przykład: sk_test_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Treść
Identyfikator partnera (nadawany przez Paymove)
Typ produktu — dla DocPay PAY
PAY Nazwa produktu
Lokalizacja (np. miasto)
Strefa czasowa IANA
"Europe/Warsaw"
Krótka nazwa wyświetlana
Odpowiedź
Produkt utworzony — zwraca pełny obiekt produktu
Pełny obiekt produktu zwracany przez API
Identyfikator produktu (productId) używany w pozostałych endpointach
Show child attributes
Show child attributes
Prowizja skonfigurowana dla produktu
Show child attributes
Show child attributes
"ACTIVE"
"PAYMOVE"
Znacznik czasu (epoch, sekundy)
Znacznik czasu (epoch, sekundy)