Obtener lista de tipos de pagos
Este endpoint NO requiere autenticación
- GET /webapi/webapi/getpaymenttypes
Respuesta Esperada:
- {
- "status":"ok",
- "data":
- [
- {
- "ID": "0",
- "Name": ""
- }
- ]
- }
Agregar Pago
Este endpoint requiere autenticación
Solicitud esperada (body):
- {
- "AccountID": null,
- "Amount": 0.0,
- "BankAccountID": null,
- "BankExchangeRate": 0.0,
- "BankExchangeRate2": 0.0,
- "BeneficiaryName": null,
- "CurrencyID": null,
- "DocDate": "0001-01-01T00:00:00",
- "DocID": null,
- "Notes": null,
- "PaymentType": 0,
- "ProjectID": null,
- "Docs":
- [
- {
- "ID": "00000000-0000-0000-0000-000000000000",
- "ToPay": 0.0
- }
- ],
- "DebitAccounts":
- [
- {
- "AccountID": "00000000-0000-0000-0000-000000000000",
- "Amount": 0.0
- }
- ]
- }
Respuesta Esperada:
- {
- "status":"ok",
- "data":"bde77223-a6a6-4ce9-a52a-7958a2c8365e"
- }