PUT api/Document/{DocumentId}/UpdateAddenda

Actualizar addenda de un CFDI

Request Information

URI Parameters

NameDescriptionTypeAdditional information
DocumentId

Identificador único del documento CFDI

string

Required

Body Parameters

Datos de actualización

PutAddendaDocumentModelApi
NameDescriptionTypeAdditional information
XML

Xml del comprante con la addenda actualizada

string

None.

Request Formats

application/json, text/json

Sample:
{
  "XML": "sample string 1"
}

application/xml, text/xml

Sample:
<PutAddendaDocumentModelApi xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <XML>sample string 1</XML>
</PutAddendaDocumentModelApi>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'PutAddendaDocumentModelApi'.

Response Information

Resource Description

Detalle del documento CFDI

ResponseModelApiOfString
NameDescriptionTypeAdditional information
success

Indica si la solicitud se procesó de manera satisfactoria

boolean

None.

message

Mensaje de la solicitud

string

None.

messageDetail

Lista de mensajes

Collection of string

None.

failureCode

Código de error en caso de existir

string

None.

data

Layout de respuesta de la solicitud

string

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "message": "sample string 2",
  "messageDetail": [
    "sample string 1",
    "sample string 2"
  ],
  "failureCode": "sample string 3",
  "data": "sample string 4"
}

application/xml, text/xml

Sample:
<ResponseModelApiOfString xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <success>true</success>
  <message>sample string 2</message>
  <messageDetail>
    <string>sample string 1</string>
    <string>sample string 2</string>
  </messageDetail>
  <failureCode>sample string 3</failureCode>
  <data>sample string 4</data>
</ResponseModelApiOfString>