POST api/Payment/Full
Realizar el pago del saldo total de un CFDI
Request Information
URI Parameters
None.
Body Parameters
Layout con información para el pago de un CFDI
FullPaymentModelApiName | Description | Type | Additional information |
---|---|---|---|
DocumentId |
Identificador único del documento |
globally unique identifier |
Required |
PaymentMethod |
Método de pago utilizado |
PaymentMethod |
None. |
PaymentDate |
Fecha de pago, formato yyyy-mm-ddTHH:MM:ss |
date |
Required Data type: DateTime |
IsInKind |
Indica si el pago fue en especie, ej. Pago con un carro o un bien inmueble. |
boolean |
Required |
Comments |
Comentarios sobre el pago |
string |
Required Max length: 1999 |
Metadata |
Metadatos (json) |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "DocumentId": "08dd2e4b-0060-f43f-ba1f-9f167cb485ba", "PaymentMethod": 1, "PaymentDate": "2025-01-06T06:09:42.0257343-06:00", "IsInKind": true, "Comments": "sample string 4", "Metadata": "sample string 5" }
application/xml, text/xml
Sample:
<FullPaymentModelApi xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <DocumentId>08dd2e4b-0060-f43f-ba1f-9f167cb485ba</DocumentId> <PaymentMethod>Cash</PaymentMethod> <PaymentDate>2025-01-06T06:09:42.0257343-06:00</PaymentDate> <IsInKind>true</IsInKind> <Comments>sample string 4</Comments> <Metadata>sample string 5</Metadata> </FullPaymentModelApi>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
El resultado de la solicitud debe ser el UUID de integración resultante y un código HTTP 200 Ok
ResponseModelApiOfPaymentResponseModelApiName | 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 |
PaymentResponseModelApi |
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": { "PaymentId": "08dd2e4b-0060-f43f-ba1f-9f167cb485bb" } }
application/xml, text/xml
Sample:
<ResponseModelApiOfPaymentResponseModelApi 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> <PaymentId>08dd2e4b-0060-f43f-ba1f-9f167cb485bb</PaymentId> </data> </ResponseModelApiOfPaymentResponseModelApi>