---
title: "Get diffusion errors for a business"
method: POST
path: "/diffusion_errors/{business_id}"
tags: ["Presence"]
---

# Get diffusion errors for a business

`POST /diffusion_errors/{business_id}`

Get diffusion errors for a given business.

This endpoint returns diffusion errors grouped by publisher. Diffusion errors are classified into two types:

- **Pre-check errors**: errors detected *before* sending data to partners, based on the current business data.
- **Post-check errors**: errors detected *after* sending data to partners, based on partner responses.

### Behavior
- If no input parameters are provided:
  - Returns the **existing** pre-check and post-check errors stored in the database.
- If input parameters are provided:
  - Applies the provided fields as an in-memory update on the business (without persisting).
  - Recalculates pre-check errors based on these changes.
  - Post-check errors are **not** recalculated in this case.

### Example Use Case
Use this endpoint during a business edit form to validate which publishers would be affected by a change, without saving it yet.

## Path parameters

- `business_id` string, required

## Request body

- object — Partial business update for simulating changes
  - `name` string — The name of the business (POI) as it will appear on the publishing platforms
  - `org_id` integer — Unique identifier of an organization in Partoo.
  - `country` string — Business country - In the ISO 3166 alpha2 code format (i.e. use “FR” for France instead of "fr")
  - `zipcode` string, nullable — Zipcode (or postal code) for the business address. Can be empty if the business' country does not require one.
  - `city` string, nullable — The city where the business is located
  - `region` string, nullable — The region where the business is located. Can be empty, it is only useful for some countries like Italy or Spain among others.
  - `categories` string[] — A list of category ids mapped to the business. At least one category needs to be provided. For more information see [Categories section](/api-reference/categories/)
  - `code` string — The unique store code of the business. If not provided, it will be automatically generated
  - `status` 'open' | 'closed' | 'closed_temporarily' — Defines the current status of the business. `open` indicates the business is up and running. `closed` means that the business has definitely closed. `closed_temporarily` means that the business is temporarily closed, it is advised when your business is closed for more than one week, otherwise use the `specific_hours`
  - `address_full` string, nullable — Full address of the business. For example : `130 Rue du Mont-Cenis`.
  - `address2` string, nullable — Complement of address. Any additional information that could help better find the business location
  - `manual_lat` number, double — Latitude. Decimals are separated by a dot and not by a comma.
  - `manual_long` number, double — Longitude. Decimals are separated by a dot and not by a comma.
  - `lat` number, double — Latitude. Decimals are separated by a dot and not by a comma.
  - `long` number, double — Longitude. Decimals are separated by a dot and not by a comma.
  - `website_url` string, uri — The business own website url or the main url of the company.
  - `facebook_url` string, uri — Business Facebook page url
  - `twitter_url` string, uri — Business twitter page url
  - `description_short` string — A short description of the business. ⚠️ It is limited to 80 characters
  - `description_long` string — A more detailed description of the business. ⚠️ It is limited to 750 characters
  - `open_hours` OpenHours — The opening hours of the business (in its timezone). Opening hours are specified per weekday. This is done by supplying an object mapping weekdays ("monday", "tuesday", etc.) to a list of strings. These strings in turn represent time slots during which the business is open. For example, the following value would set the opening hours to between 08:00-15:00 in the afternoon and 18:00-23:00 in the evening on Mondays: `{"monday": ["08:00-15:00", "18:00-23:00"]}` To indicate that a business is open 24 hours for a specific weekday, use the value `["00:00-23:59"]`. ❗ This field is not mandatory, but if not provided then the business will not be pushed on some platforms (example: Google). If provided, then a schedule needs to be sent for each day in particular.
    - `monday` TimeWindow[], required — Open in the morning and in the evening `[10:00-14:00, 18:00-00:00]`. Closed the whole day `[]`
    - `tuesday` TimeWindow[], required — Open in the morning and in the evening `[10:00-14:00, 18:00-00:00]`. Closed the whole day `[]`
    - `wednesday` TimeWindow[], required — Open in the morning and in the evening `[10:00-14:00, 18:00-00:00]`. Closed the whole day `[]`
    - `thursday` TimeWindow[], required — Open in the morning and in the evening `[10:00-14:00, 18:00-00:00]`. Closed the whole day `[]`
    - `friday` TimeWindow[], required — Open in the morning and in the evening `[10:00-14:00, 18:00-00:00]`. Closed the whole day `[]`
    - `saturday` TimeWindow[], required — Open in the morning and in the evening `[10:00-14:00, 18:00-00:00]`. Closed the whole day `[]`
    - `sunday` TimeWindow[], required — Open in the morning and in the evening `[10:00-14:00, 18:00-00:00]`. Closed the whole day `[]`
  - `specific_hours` SpecificHours — Exceptional opening or closing times for the business (in its timezone). All exceptional days of the year, including temporarily closed, can be specified beforehand or on the go. For example: - Beforehand: bank holidays (like Christmas or Labor Day) - Unpredicted: COVID-19 exceptional situation Specific hours are defined by two values: - `open`, containing a list of days with exceptional *opening* hours - `close`, containing a list of days where the business is exceptionally closed all day These values in turn contain: - `starts_at` indicating the first date for which the exceptional hours are valid - `ends_at` indicating the last date (inclusive) for which the exceptional hours are valid - `open_hours` (only used for days with exceptional *opening* hours) indicating the actual time slots for the given period, following the same pattern as the time slots in `open_hours`
    - `open` object[], required
      - `starts_at` string
      - `ends_at` string
      - `open_hours` TimeWindow[]
    - `close` object[], required
      - `starts_at` string
      - `ends_at` string
  - `contacts` Contact[] — Specify how the clients can reach the persons in charge of the business in case they have questions.
    - `name` string — Contact full name
    - `email` string, email — Contact email
    - `phone_numbers` string[] — Contact phone numbers - Preferably in the format E.164 ('+33302060628' instead of '0302060628')
    - `fax` string — Contact fax
  - `photos` Photos — Business photos Each business can have one or more photos associated
    - `LOGO` string, uri — The logo image of the brand. On Google, for example, for businesses that have their basic information (phone number, hours, etc.), the Business Profile will highlight the logo.
    - `primary` string, uri — The business's main photo URL. On Google, for example, it represents the cover photo on the top of the profile.
    - `secondary` string[] — Additional photos that can highlight the features of the business.
  - `national_identification_number` string — The National Identification Number of the business. It describes a unique number for which the business is registered in a specific country. For example, in France, it's the SIRET code, or for Ireland, it's the CRO.

## Response `200`

OK

- object — Diffusion errors grouped by section and field
  - `address` object — Errors in the address section
  - `infos` object — Errors in the infos section
  - `advanced-settings` object — Errors in the advanced settings section

## Other responses

- `401` — You are not authenticated
- `403` — You are not allowed to perform this action

---

[API](https://skmtc.net/partoo/apis/partoo-rest-api.md) · [All operations](https://skmtc.net/partoo/apis/partoo-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/partoo/partoo-rest-api/versions/3652d8b1a8b3/schema)
