Crear merchant
curl --request POST \
--url https://api.venepagos.com.ve/api/v1/merchants \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"rif": "<string>",
"description": "<string>"
}
'import requests
url = "https://api.venepagos.com.ve/api/v1/merchants"
payload = {
"name": "<string>",
"rif": "<string>",
"description": "<string>"
}
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({name: '<string>', rif: '<string>', description: '<string>'})
};
fetch('https://api.venepagos.com.ve/api/v1/merchants', 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.venepagos.com.ve/api/v1/merchants",
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([
'name' => '<string>',
'rif' => '<string>',
'description' => '<string>'
]),
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://api.venepagos.com.ve/api/v1/merchants"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"rif\": \"<string>\",\n \"description\": \"<string>\"\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://api.venepagos.com.ve/api/v1/merchants")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"rif\": \"<string>\",\n \"description\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.venepagos.com.ve/api/v1/merchants")
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 \"name\": \"<string>\",\n \"rif\": \"<string>\",\n \"description\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "mrc_abc123",
"name": "Mi Tienda",
"rif": "J-12345678-9",
"description": "Tienda de ejemplo",
"owner": "usr_xyz789",
"status": "ACTIVE"
}
Merchants
Crear merchant
Crea un nuevo merchant asociado a tu cuenta.
POST
/
api
/
v1
/
merchants
Crear merchant
curl --request POST \
--url https://api.venepagos.com.ve/api/v1/merchants \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"rif": "<string>",
"description": "<string>"
}
'import requests
url = "https://api.venepagos.com.ve/api/v1/merchants"
payload = {
"name": "<string>",
"rif": "<string>",
"description": "<string>"
}
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({name: '<string>', rif: '<string>', description: '<string>'})
};
fetch('https://api.venepagos.com.ve/api/v1/merchants', 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.venepagos.com.ve/api/v1/merchants",
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([
'name' => '<string>',
'rif' => '<string>',
'description' => '<string>'
]),
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://api.venepagos.com.ve/api/v1/merchants"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"rif\": \"<string>\",\n \"description\": \"<string>\"\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://api.venepagos.com.ve/api/v1/merchants")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"rif\": \"<string>\",\n \"description\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.venepagos.com.ve/api/v1/merchants")
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 \"name\": \"<string>\",\n \"rif\": \"<string>\",\n \"description\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "mrc_abc123",
"name": "Mi Tienda",
"rif": "J-12345678-9",
"description": "Tienda de ejemplo",
"owner": "usr_xyz789",
"status": "ACTIVE"
}
Autenticación
Este endpoint requiere autenticación mediante Bearer token.Cuerpo de la solicitud
string
required
Nombre del merchant.
string
required
RIF del merchant. Debe ser un RIF válido venezolano (ej.
J-12345678-9).string
Descripción del merchant.
Respuesta
string
Identificador único del merchant creado.
string
Nombre del merchant.
string
RIF del merchant.
string
Descripción del merchant.
string
ID del usuario propietario del merchant.
string
Estado del merchant (
ACTIVE o INACTIVE).{
"id": "mrc_abc123",
"name": "Mi Tienda",
"rif": "J-12345678-9",
"description": "Tienda de ejemplo",
"owner": "usr_xyz789",
"status": "ACTIVE"
}
⌘I