Facturación
Actualizar receptor
PUT/facturacion/mx/receptores/:tk
Actualiza los datos fiscales de una razón social receptora.
Parámetros
| Nombre | Tipo | Validación | Descripción |
|---|
tk | String | Requerido | Código token del registro. |
tkEmpresa | String | Requerido | Código token de la empresa. |
idUsoCfdi | Integer | Requerido | Identificador del uso de CFDI. |
idPais | String | Requerido | Identificador del país. |
registroFiscal | String | Requerido | Registro fiscal. |
Respuesta
| Nombre | Tipo | Descripción |
|---|
code | Integer | Código del resultado. |
msg | String | Mensaje del resultado. |
Solicitud
curl --request PUT \
--url 'https://api.upnify.com/v4/facturacion/mx/receptores/00000000-0000-4000-8000-000000000001' \
--header 'token: 00000000-0000-4000-8000-000000000001' \
--header 'content-type: application/json' \
--data-raw '{"tkEmpresa":"00000000-0000-4000-8000-000000000001","idUsoCfdi":1,"idPais":"valor-de-ejemplo","registroFiscal":"RFC000000AAA"}'const response = await fetch("https://api.upnify.com/v4/facturacion/mx/receptores/00000000-0000-4000-8000-000000000001", {\n method: "PUT",\n headers: { token: "00000000-0000-4000-8000-000000000001", "content-type": "application/json" },\n body: JSON.stringify({
"tkEmpresa": "00000000-0000-4000-8000-000000000001",
"idUsoCfdi": 1,
"idPais": "valor-de-ejemplo",
"registroFiscal": "RFC000000AAA"
}),\n});\n\nconsole.log(await response.json());const response = await fetch("https://api.upnify.com/v4/facturacion/mx/receptores/00000000-0000-4000-8000-000000000001", {\n method: "PUT",\n headers: { token: "00000000-0000-4000-8000-000000000001", "content-type": "application/json" },\n body: "{\"tkEmpresa\":\"00000000-0000-4000-8000-000000000001\",\"idUsoCfdi\":1,\"idPais\":\"valor-de-ejemplo\",\"registroFiscal\":\"RFC000000AAA\"}",\n});\n\nconsole.log(await response.json());import requests\n\nresponse = requests.put(\n "https://api.upnify.com/v4/facturacion/mx/receptores/00000000-0000-4000-8000-000000000001",\n json={
"tkEmpresa": "00000000-0000-4000-8000-000000000001",
"idUsoCfdi": 1,
"idPais": "valor-de-ejemplo",
"registroFiscal": "RFC000000AAA"
},\n headers={"token": "00000000-0000-4000-8000-000000000001"},\n)\nresponse.raise_for_status()\nprint(response.json())package main\n\nimport (\n "fmt"\n "io"\n "net/http"\n "strings"\n)\n\nfunc main() {\n request, _ := http.NewRequest(http.MethodPut, "https://api.upnify.com/v4/facturacion/mx/receptores/00000000-0000-4000-8000-000000000001", strings.NewReader("{\"tkEmpresa\":\"00000000-0000-4000-8000-000000000001\",\"idUsoCfdi\":1,\"idPais\":\"valor-de-ejemplo\",\"registroFiscal\":\"RFC000000AAA\"}"))\n request.Header.Set("token", "00000000-0000-4000-8000-000000000001")\n request.Header.Set("Content-Type", "application/json")\n response, _ := http.DefaultClient.Do(request)\n defer response.Body.Close()\n body, _ := io.ReadAll(response.Body)\n fmt.Println(string(body))\n}using System.Net.Http;\nusing System.Text;\n\nusing var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Put, "https://api.upnify.com/v4/facturacion/mx/receptores/00000000-0000-4000-8000-000000000001");\nrequest.Headers.Add("token", "00000000-0000-4000-8000-000000000001");\nrequest.Content = new StringContent("{\"tkEmpresa\":\"00000000-0000-4000-8000-000000000001\",\"idUsoCfdi\":1,\"idPais\":\"valor-de-ejemplo\",\"registroFiscal\":\"RFC000000AAA\"}", Encoding.UTF8, "application/json");\nusing var response = await client.SendAsync(request);\nresponse.EnsureSuccessStatusCode();\nConsole.WriteLine(await response.Content.ReadAsStringAsync());
Respuesta
[
{
"code": 0,
"msg": "Ok"
}
]