4WS Suite
Home
API Reference
  • Data mangement API
  • Documents API
Home
API Reference
  • Data mangement API
  • Documents API
Fourwayshop
  1. Entities
  • Login
    • login
      POST
  • Product
    • Brand
      • Get All Brands
      • Get A Brand
      • Insert brand
      • Update brand
    • Season
      • Get All Seasons
      • Get A Season
      • Insert season
      • Update season
    • Attribute
      • Get All Attribute Types
      • Get Attribute Type
      • Get Attribute
      • Insert attribute
      • Update attribute
    • Hierarchy
      • Insert hierarchy
      • Update hierarchy
    • Dimension groups
      • Insert dimension group
      • Update dimension group
    • Dimension
      • Insert dimension
      • Update dimension
      • Delete dimension
    • Product
      • Get products
      • Get product
      • Get product grouping
      • Get SKU's barcodes
      • Get product stock
      • Insert product
      • Update product
    • Activate dimensions on products
      • Insert active dimensions
      • Delete active dimensions
    • Barcode
      • Get SKU from barcode
      • Generate missing barcodes
      • Generate missing barcode for SKU
      • Insert barcode
      • Delete barcode
    • Prices
      • Get product prices
    • Price dimension groupings
      • Get Dimension Price Grouping
      • Get All Dimension Price Grouping
      • Insert dimension grouping
      • Update dimension grouping
      • Delete dimension grouping
    • Assortment
      • insert product assortment
      • delete product assortment
    • Image
      • Get images
      • Add image
      • Replace image
      • Delete image
    • Supplier
      • Get Item suppliers
      • Insert item supplier
      • Delete item supplier
      • Update item supplier
    • Custom category
      • Get Custom code
      • Insert Custom code
      • Update Custom code
    • Vat
      • Vat types
        • Get VAT type
        • Get VAT types
      • VATs
        • Get VATs
        • Get VATs by type
        • Get VAT
      • Vat rates
        • Get VAT rates
        • Get single VAT rates
    • Stock
      • Insert stock
      • Get stock
  • Price lists
    • Get price lists
      GET
    • Get price lists by type
      GET
    • Get price list
      GET
    • Get prices from price list
      GET
    • Get entities from price lists
      GET
    • Insert Price List
      POST
    • Insert Product Price
      POST
    • Insert Entity On Price Lists
      POST
    • Update price list
      PATCH
    • Delete all product prices
      DELETE
    • Delete single product price
      DELETE
    • Delete entity from a price lists
      DELETE
  • Supplier
    • Supplier contacts
    • Supplier addresses
    • Get Suppliers
    • Get A Specific Supplier
    • Insert supplier
    • Update supplier
  • Entities
    • Get entities
      GET
    • Get entity
      GET
    • Insert entity
      POST
    • Update entity
      PATCH
  • Miscellaneous
    • Get requests rate limits
  • Catalog
    • Get Catalogs details
    • Get Catalog details by Code
    • Get products by Catalog Code
  • Export
    • Get bulk CSV Export
  1. Entities

Get entity

GET
/api/v1/entities/{ENTITY_CODE}
Last modified:2025-05-12 09:04:56

Retrieve Specific Entity Details#

This API retrieves detailed information about a specific entity, identified by the {ENTITY_CODE} path parameter. The response includes detailed entity data such as description, contact information, address, social media links, and operational status, all paginated if necessary.
The purpose of this API is to retrieve information about a specific entity based on its unique code (ENTITY_CODE). This allows external systems to access complete and organized data for a specified entity, which is essential for inventory management, logistical support, or point-of-sale systems.

Languages#

The API response includes multilingual descriptions. The fields description_it and description_en provide Entity descriptions in Italian and English, respectively.
Manage languages
For detailed information on how to handle languages, refer to our Managing Languages

Actors#

API Client: The system or user initiating the request.
4ws.trade: The backend system that processes the request nd returns entity data matching the specified ENTITY_CODE..
Preconditions#
The external system must have the necessary permissions and access to the service, please refer to Authentication.
The entity specified by ENTITY_CODE exists in the system.

Main Success Scenario#

The external system sends a GET request to the endpoint, providing the ENTITY_CODE in the URL path.
If the request is successful, the system will return an HTTP 200 response with the paginated list of entities and a nextCursor indicating whether there are more entities to retrieve. If nextCursor is setted, the external system must be call again, this service, setting cursor as nextCursor value.
Response Example

Alternate Flows#

If the specified ENTITY_CODE does not exist, the API returns an error.
If the page requested is out of range, the API provides an error response.

JSON Sample#

{
    "entity": {
        "prog_id": 2490,
        "entity_code": "9871",
        "description_it": "API TEST turquoise",
        "description_en": "API TEST Hatchback EN",
        "description_de": "API TEST turquoise",
        "description_es": "API TEST turquoise",
        "description_fr": "API TEST turquoise",
        "description_pt": "API TEST turquoise",
        "description_ru": "API TEST turquoise",
        "description_ar": "API TEST turquoise",
        "description_ja": "API TEST turquoise",
        "description_zh": "API TEST turquoise",
        "active": false,
        "opening_date": "2024-10-10",
        "closing_date": "2024-10-20",
        "external_code": "state ",
        "address1": "071 Adonis Row",
        "address2": "Adress Southwest 2",
        "zip_code": 19909,
        "city": "Union City",
        "municipality": null,
        "province": null,
        "region": null,
        "state": null,
        "phone_master": "207.319.4732 x996",
        "mobile_phone": "1-636-657-2948",
        "email_address": "email@mail.com",
        "web_url": "http://prova.it",
        "social_whatsapp": "http://plump-sash.biz",
        "social_instagram": "http://silver-stylus.info",
        "social_facebook": "http://colossal-metal.info",
        "social_twitter": "http://sleepy-visitor.name",
        "entity_subtype": "CORNER",
        "entity_type": "SHOP",
        "country": "UY"
    }
}

Sequence Diagram#

Best Practices
Please refer to Best Practices for Error Handling in External System for best practices on implementation.

Code Examples in Node.js#

Request

Path Params

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/v1/entities/9999'

Responses

🟢200Success
application/json
Body

Example
{
    "entity": {
        "prog_id": 27975001,
        "entity_code": "",
        "description_it": "Negozio NAPOLI",
        "description_en": "Negozio NAPOLI",
        "description_de": "Negozio NAPOLI",
        "description_es": "Negozio NAPOLI",
        "description_fr": "Negozio NAPOLI",
        "description_pt": "Negozio NAPOLI",
        "description_ru": "Negozio NAPOLI",
        "description_ar": "Negozio NAPOLI",
        "description_ja": "Negozio NAPOLI",
        "description_zh": "Negozio NAPOLI",
        "entity_type": "SHOP",
        "entity_subtype": "NEGOZI",
        "active": true,
        "opening_date": "2022-12-12 00:00:00",
        "closing_date": "2099-12-12 00:00:00",
        "external_code": 123,
        "address1": "Via Giustiniano",
        "address2": "",
        "zip_code": 80126,
        "city": "Napoli",
        "municipality": "",
        "province": "NA",
        "region": "",
        "country": "IT",
        "phone_master": "",
        "mobile_phone": "",
        "email_address": "",
        "web_url": "http://negozio.it",
        "social_whatsapp": "",
        "social_instagram": "",
        "social_facebook": "",
        "social_twitter": ""
    }
}
🟠404Entity not found with entity_code
🟠422Invalid pageSize
🟠422Unique constraint error
🟠401Authentication failed
🟠403Operation not allowed
Modified at 2025-05-12 09:04:56
Previous
Get entities
Next
Insert entity
Built with