POST api/Invoice/Add

Subir factura 33

Request Information

URI Parameters

None.

Body Parameters

Invoice33ModelApi
NameDescriptionTypeAdditional information
success

Indica si la generación del documento fue exitosa o no.

boolean

None.

message

Mensaje corto en caso de error.

string

None.

messageDetail

Lista de mensajes de error puede tener más de un solo mensaje.

Collection of string

None.

failureCode

Código de error

string

None.

data

Objeto con el contenido de la información que se estará enviando a la página host.

Data33ModelApi

None.

Request Formats

application/json, text/json

Sample:
{
  "success": true,
  "message": "sample string 2",
  "messageDetail": [
    "sample string 1",
    "sample string 2"
  ],
  "failureCode": "sample string 3",
  "data": {
    "EventId": "08dd2e49-97fc-a68d-522b-6e467c15d0f3",
    "CustomerId": "08dd2e49-97fc-a68d-522b-6e467c15d0f4",
    "LayoutId": "08dd2e49-97fc-a68d-522b-6e467c15d0f5",
    "Xml": "sample string 4",
    "File": "sample string 5",
    "CFDIHash": "sample string 6",
    "Confirmacion": "sample string 7",
    "isConfirmation": "sample string 8",
    "ExtraInfo": {
      "InvoiceId": 1,
      "FileId": "08dd2e49-97fc-a68d-522b-6e467c15d0f6",
      "CustomerId": 1,
      "GrantorId": "08dd2e49-97fc-a68d-522b-6e467c15d0f7",
      "IsRecurrence": true,
      "IsRecurrenceRetry": true,
      "InvoiceDocumentTypeId": 1,
      "FolioId": "sample string 2",
      "receiverRISelected": "sample string 3",
      "CondicionesDePago": "sample string 4",
      "hasAddenda": true,
      "FiscalId": "sample string 5",
      "DocumentsRelated": "sample string 6",
      "EmittedBy": "sample string 7",
      "CancelDocumentRelated": true,
      "isUsedVehicle": true,
      "RetryInvoiceId": 1,
      "Metadata": "sample string 9",
      "IsSynchronous": true,
      "xml": "sample string 10",
      "CustomerContactInfoesId": "08dd2e49-97fc-a68d-522b-6e467c15d0f8",
      "SellerId": "08dd2e49-97fc-a68d-522b-6e467c15d0f9",
      "ExchangeRateTypeId": 1,
      "BranchId": 1,
      "DocumentCategoryCode": "sample string 11",
      "Parciality": {
        "NoParciality": 1,
        "FrequencyId": 2,
        "Tax": 1,
        "ParcialityType": 1,
        "VariableParciality": [
          {
            "Date": "2025-01-06T05:59:37.3886093-06:00",
            "Percentage": 2.0
          },
          {
            "Date": "2025-01-06T05:59:37.3886093-06:00",
            "Percentage": 2.0
          }
        ]
      },
      "Validation": true,
      "ExternalId": "sample string 12",
      "AutoIssuance": true
    },
    "RecurrenceConfig": {
      "FromDate": "2025-01-06T05:59:37.3886093-06:00",
      "ToDate": "2025-01-06T05:59:37.3886093-06:00",
      "InvoiceRecurrenceTypeId": 1,
      "Day": 1,
      "WeekDay": 1,
      "InvoiceDocumentTypeId": 1
    }
  }
}

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 'Invoice33ModelApi'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.