POST api/Financials/v1/Quote
Genera una cotización basada en un documento CFDI
Request Information
URI Parameters
None.
Body Parameters
Estructura con información a cotizar
QuoteRequestModelName | Description | Type | Additional information |
---|---|---|---|
quoteRequest | Collection of quoteRequestList |
None. |
Request Formats
application/json, text/json
Sample:
{ "quoteRequest": [ { "creditLineId": "sample string 1", "appReference": "sample string 2", "amount": 3.0, "exchangeRate": 4.0, "currency": "sample string 5", "days": 6, "isAdvancedPayment": true, "aditionalInfo": "sample string 8", "paymentDate": "sample string 9", "months": 10, "email": "sample string 11" }, { "creditLineId": "sample string 1", "appReference": "sample string 2", "amount": 3.0, "exchangeRate": 4.0, "currency": "sample string 5", "days": 6, "isAdvancedPayment": true, "aditionalInfo": "sample string 8", "paymentDate": "sample string 9", "months": 10, "email": "sample string 11" } ] }
application/xml, text/xml
Sample:
<QuoteRequestModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <quoteRequest> <quoteRequestList> <creditLineId>sample string 1</creditLineId> <appReference>sample string 2</appReference> <amount>3</amount> <exchangeRate>4</exchangeRate> <currency>sample string 5</currency> <days>6</days> <isAdvancedPayment>true</isAdvancedPayment> <aditionalInfo>sample string 8</aditionalInfo> <paymentDate>sample string 9</paymentDate> <months>10</months> <email>sample string 11</email> </quoteRequestList> <quoteRequestList> <creditLineId>sample string 1</creditLineId> <appReference>sample string 2</appReference> <amount>3</amount> <exchangeRate>4</exchangeRate> <currency>sample string 5</currency> <days>6</days> <isAdvancedPayment>true</isAdvancedPayment> <aditionalInfo>sample string 8</aditionalInfo> <paymentDate>sample string 9</paymentDate> <months>10</months> <email>sample string 11</email> </quoteRequestList> </quoteRequest> </QuoteRequestModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ResponseModelApiOfObjectName | Description | Type | Additional 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 |
Object |
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": {} }
application/xml, text/xml
Sample:
<ResponseModelApiOfObject 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 /> </ResponseModelApiOfObject>