Almacenes

Los almacenes son las ubicaciones (almacenes, tiendas fisicas, etc.) desde donde se envĂ­a su inventario.

Cada StockLocation tiene muchos stock_items y stock_movements.

Obtener Almacenes

GET https://tiendagoshop.com/api/v1/stock_locations

Headers

NameTypeDescription

X-Spree-Token

string

Token generado desde el CMS de GS

 {
  "stock_locations": [
    {
      "id": 34,
      "name": "Almacen B",
      "address1": "",
      "address2": "",
      "city": "",
      "state_id": null,
      "state_name": null,
      "country_id": 1,
      "zipcode": "",
      "phone": "",
      "active": true,
      "country": {
        "id": 1,
        "iso_name": "DOMINICAN REPUBLIC",
        "iso": "DO",
        "iso3": "DOM",
        "name": "Dominican Republic",
        "numcode": 214
      },
      "state": null
    },
    {
      "id": 37,
      "name": "Almacen C",
      "address1": "",
      "address2": "",
      "city": "",
      "state_id": null,
      "state_name": null,
      "country_id": 1,
      "zipcode": "",
      "phone": "",
      "active": true,
      "country": {
        "id": 1,
        "iso_name": "DOMINICAN REPUBLIC",
        "iso": "DO",
        "iso3": "DOM",
        "name": "Dominican Republic",
        "numcode": 214
      },
      "state": null
    },
    {
      "id": 1,
      "name": "Aromelia",
      "address1": "Calle Lic. Polibio DĂ­az 11",
      "address2": "",
      "city": "Santo Domingo",
      "state_id": null,
      "state_name": null,
      "country_id": 1,
      "zipcode": "10145",
      "phone": "8295649577",
      "active": true,
      "country": {
        "id": 1,
        "iso_name": "DOMINICAN REPUBLIC",
        "iso": "DO",
        "iso3": "DOM",
        "name": "Dominican Republic",
        "numcode": 214
      },
      "state": null
    }
  ],
  "count": 3,
  "current_page": 1,
  "pages": 1
}

Ăšltima actualizaciĂłn