Artículos

Recuperar todos los datos articulos

get

Te devuelve los datos del articulo indicado

Parámetros de ruta
articulostringRequerido

Articulos a recuperar

Parámetros de encabezado
AuthorizationstringRequerido

Bearer + JWT_token

Respuestas
200
Devuelve un objeto con todos los datos del Articulo
application/json
get
GET /api/articulos/{articulo} HTTP/1.1
Host: api.appcloud.es
Authorization: text
Accept: */*
200

Devuelve un objeto con todos los datos del Articulo

{
  "fecha": "text",
  "codcli": "text",
  "serie": "text",
  "codalm": "text",
  "OBSERVACIONES": "text",
  "REFERENCIA": "text",
  "Acuenta": 1,
  "CodBan": "text",
  "DocPag": "text",
  "TipoCont": "text",
  "CodMon": "text",
  "lineas": [
    {
      "Codart": "text",
      "desclin": "text",
      "unidades": 1,
      "param1": "text",
      "Detalle": [
        {
          "unidades": 1,
          "ubicacion": "text",
          "lote": "text"
        }
      ],
      "Tallas": [
        {
          "CodTallaH": "text",
          "CodTallav": "text",
          "Unidades": "text"
        }
      ],
      "Componentes": [
        {
          "codart": "text",
          "unidades": 1,
          "Detalle": [
            {
              "unidades": 1,
              "lote": 1
            }
          ]
        }
      ]
    }
  ]
}

Si se quiere modificar las tallas en un documento

put

Si se quiere modificar las tallas en un documento

Parámetros de ruta
articulostringRequerido

Articulo a modificar

Parámetros de encabezado
AuthorizationstringRequerido

Bearer + JWT_token

Cuerpo
CodAlmstringOpcional
Respuestas
200
Modificar un articulo
application/json
put
PUT /api/articulos/{articulo} HTTP/1.1
Host: api.appcloud.es
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 227

{
  "CodAlm": "text",
  "lineas": [
    {
      "numlinped": "text",
      "Codart": "text",
      "desclin": "text",
      "unidades": 1,
      "param1": "text",
      "Detalle": [
        {
          "idlin": "text",
          "unidades": 1,
          "ubicacion": "text",
          "lote": "text",
          "Tallas": [
            {
              "idlin": "text",
              "Unidades": 1
            }
          ]
        }
      ]
    }
  ]
}
{
  "message": "Articulo modificado correctamente"
}

Crear un articulo

post

crea un articulo

Parámetros de encabezado
AuthorizationstringRequerido

Bearer + JWT_token

Cuerpo
fechastringOpcional
codclistringOpcional
seriestringOpcional
codalmstringOpcional
observacionesstringOpcional
referenciastringOpcional
Respuestas
200
Crear un articulo
application/json
post
POST /api/articulos HTTP/1.1
Host: api.appcloud.es
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 387

{
  "fecha": "text",
  "codcli": "text",
  "serie": "text",
  "codalm": "text",
  "observaciones": "text",
  "referencia": "text",
  "lineas": [
    {
      "codart": "text",
      "desclin": "text",
      "unidades": 1,
      "param1": "text",
      "Detalle": [
        {
          "unidades": 1,
          "ubicacion": "text",
          "lote": "text"
        }
      ],
      "Tallas": [
        {
          "CodTallaH": "text",
          "CodTallav": "text",
          "Unidades": 1
        }
      ],
      "components": [
        {
          "codart": "text",
          "unidades": 1,
          "Detalle": [
            {
              "unidades": 1,
              "lote": 1
            }
          ]
        }
      ]
    }
  ]
}
{
  "message": "Articulo creado correctamente"
}

Última actualización

¿Te fue útil?