A3ERP API
English
English
  • Quick Start
    • Initial configuration
    • Installation
  • Versions
  • Documentation
    • API Reference
      • Api
      • Validation
      • Email
      • Master
        • Parameters
      • Document
        • Parameters
      • Various
      • Stock movements
      • Stock Reserves
      • Expeditions
      • Links
      • Stock
      • Portfolio
      • Prices
      • Stored Procedures
      • View
      • Listing
      • FastReport
      • Download Files
      • List Linked Folders
Con tecnología de GitBook
En esta página

¿Te fue útil?

  1. Documentation
  2. API Reference

Portfolio

Portfolio advances

AnteriorStockSiguientePrices

Última actualización hace 2 años

¿Te fue útil?

GET calls

POST calls

Body of Create a new portfolio advance

Create a portfolio advance

https://server:5555/api/cartera/anticipo

{
    "esCobro": "F",
    "codigo": "5",
    "codban": " 3",
    "docpag": "L",
    "tipcon": "1",
    "codmon": "EURO",
    "fechavencimiento": "25/05/2022",
    "fechacontable": "25/04/2022",
    "importe": "500",
    "observaciones": "Entrega a cuenta compra"
}
Body of Allocate an existing down payment to invoice

Allocate a down payment to an invoice

https://server:5555/api/cartera/asignaranticipofactura

{
    "escompra": "T",
    "idfacv": "23023",
    "numanti": "46369",
    "codmon": "EURO",
    "importe": "30"
}

View a customer's down payments and the amount outstanding

get

We can consult the advances of a client and the amount pending allocation by consulting the code.

Example:

https://server:5555/api/cartera/anticiposclientes/50

Parámetros de ruta
idstringRequerido

The client identifier

Parámetros de encabezado
AuthorizationstringRequerido

Bearer + JWT_token

Respuestas
200
Returns all advance payments from a customer
application/json
get
GET /api/cartera/anticiposclientes/{id} HTTP/1.1
Host: server:<port>
Authorization: text
Accept: */*
200

Returns all advance payments from a customer

[
  {
    "codcli": "    4997",
    "nomcli": "TALLERES ILORCITANA, S.L.",
    "numcartera": 45952,
    "fecha": "2008-06-25T00:00:00.000+02:00",
    "importemon": 258.81,
    "disponible": 0,
    "docpag": "       1"
  }
]

Consult a supplier's advance payments and the amount outstanding

get

We can consult the advances of a supplier and the amount pending allocation by consulting the code.

Example:

https://server:5555/api/cartera/anticiposproveedor/15

Parámetros de encabezado
idstringRequerido

The supplier identifier

AuthorizationstringRequerido

Bearer + JWT_token

Respuestas
200
Returns an Array with the selected supplier's advance payments.
application/json
get
GET /api/cartera/anticiposproveedor/{id} HTTP/1.1
Host: server:<port>
id: text
Authorization: text
Accept: */*
200

Returns an Array with the selected supplier's advance payments.

[
  {
    "codcli": "    4997",
    "nomcli": "TALLERES ILORCITANA, S.L.",
    "numcartera": 45952,
    "fecha": "2008-06-25T00:00:00.000+02:00",
    "importemon": 258.81,
    "disponible": 0,
    "docpag": "       1"
  }
]
  • GET calls
  • GETView a customer's down payments and the amount outstanding
  • GETConsult a supplier's advance payments and the amount outstanding
  • POST calls
  • POSTCreate a portfolio advance
  • POSTAllocate an existing down payment of a customer to an invoice of this customer

Create a portfolio advance

post
Parámetros de encabezado
AuthorizationstringRequerido

Bearer + JWT_token

Cuerpo
Respuestas
200
The advance payment has been successfully created
post
POST /api/cartera/anticipo HTTP/1.1
Host: server:<port>
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 196

{
  "json": {
    "esCobro": "text",
    "codigo": "text",
    "codban": "text",
    "docpag": "text",
    "tipcon": "text",
    "codmon": "text",
    "fechavencimiento": "text",
    "fechacontable": "text",
    "importe": "text",
    "observaciones": "text"
  }
}
200

The advance payment has been successfully created

Sin contenido

Allocate an existing down payment of a customer to an invoice of this customer

post
Parámetros de encabezado
AuthorizationstringRequerido

Bearer + JWT_token

Cuerpo
Respuestas
200
Correctly assigned
post
POST /api/cartera/asignaranticipofactura HTTP/1.1
Host: server:<port>
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 94

{
  "json": {
    "escompra": "text",
    "idfacv": "text",
    "numanti": "text",
    "codmon": "text",
    "importe": "text"
  }
}
200

Correctly assigned

Sin contenido