Eliminar lista de ids de nomina
curl --request PATCH \
--url https://rest.yafacture.com/clabes-receptores-reglas \
--header 'x-api-key: <api-key>'const options = {method: 'PATCH', headers: {'x-api-key': '<api-key>'}};
fetch('https://rest.yafacture.com/clabes-receptores-reglas', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://rest.yafacture.com/clabes-receptores-reglas"
headers = {"x-api-key": "<api-key>"}
response = requests.patch(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://rest.yafacture.com/clabes-receptores-reglas",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_HTTPHEADER => [
"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;
}HttpResponse<String> response = Unirest.patch("https://rest.yafacture.com/clabes-receptores-reglas")
.header("x-api-key", "<api-key>")
.asString();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://rest.yafacture.com/clabes-receptores-reglas"
req, _ := http.NewRequest("PATCH", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"emisorId": "<string>",
"clabeReceptorId": "<string>",
"montoRegla": "<string>",
"operadorRegla": "<string>",
"usoCfdi": "<string>",
"noIdentificacion": "",
"claveProdServ": "",
"claveUnidad": "",
"descripcion": "<string>",
"objetoImp": "02",
"iva": "masIva",
"status": true,
"fecha": "2023-11-07T05:31:56Z"
}{
"message": "Forbidden resource",
"error": "Forbidden",
"statusCode": 403
}Clabes de receptores y sus reglas
Eliminar lista de ids de nomina
PATCH
/
clabes-receptores-reglas
Eliminar lista de ids de nomina
curl --request PATCH \
--url https://rest.yafacture.com/clabes-receptores-reglas \
--header 'x-api-key: <api-key>'const options = {method: 'PATCH', headers: {'x-api-key': '<api-key>'}};
fetch('https://rest.yafacture.com/clabes-receptores-reglas', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://rest.yafacture.com/clabes-receptores-reglas"
headers = {"x-api-key": "<api-key>"}
response = requests.patch(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://rest.yafacture.com/clabes-receptores-reglas",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_HTTPHEADER => [
"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;
}HttpResponse<String> response = Unirest.patch("https://rest.yafacture.com/clabes-receptores-reglas")
.header("x-api-key", "<api-key>")
.asString();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://rest.yafacture.com/clabes-receptores-reglas"
req, _ := http.NewRequest("PATCH", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"emisorId": "<string>",
"clabeReceptorId": "<string>",
"montoRegla": "<string>",
"operadorRegla": "<string>",
"usoCfdi": "<string>",
"noIdentificacion": "",
"claveProdServ": "",
"claveUnidad": "",
"descripcion": "<string>",
"objetoImp": "02",
"iva": "masIva",
"status": true,
"fecha": "2023-11-07T05:31:56Z"
}{
"message": "Forbidden resource",
"error": "Forbidden",
"statusCode": 403
}Authorizations
x-api-keybearer
X-API-Key authentication header for the development token generated in Yafacture
Response
Identificador único del emisor
Identificador único del plan
Monto o rango (ej: 1000,1010) para la regla
Operador de la regla (equal, greaterThan, lessThan, between)
Uso de CFDI
Número de identificación del producto
Clave de producto o servicio según catálogo del SAT
Clave de producto o servicio según catálogo del SAT
Descripción del producto o servicio
Objeto de impuesto según catálogo del SAT
Tasa de IVA aplicada
Estado activo/inactivo del plan receptor
Fecha de creación/actualización del registro

