Skip to main content
GET
/
publisher_states
PublisherStates
curl --request GET \
  --url https://api.partoo.co/v2/publisher_states \
  --header 'x-APIKey: <api-key>'
{
  "businesses": {
    "56465qz56d4q65zd4": {
      "business_formatted_address": "1 Rue du Général de Gaulle, 52330 Colombey-les-Deux-Églises",
      "business_id": "56465qz56d4q65zd4",
      "business_name": "La Boisserie",
      "publishers": {
        "apple_direct": {
          "error_type": null,
          "state": "success",
          "url_on_publisher": null
        },
        "facebook": {
          "error_type": "PUBLISHER_CONNEXION",
          "state": "to_configure",
          "url_on_publisher": "http://facebook/boisserie"
        }
      }
    }
  },
  "count": 1
}

Authorizations

x-APIKey
string
header
required

The authentication system on Partoo API is using API Key that should be put in the header of the request (the name of the header is x-APIKey). An api_key is linked to a user. This user's role will give you different access level to the API features.

Query Parameters

business__in
string[]

Filter by business ids

Business id

publishers
string[]

List of requested publisher names

Example:

"facebook,google_my_business"

states
enum<string>[]

List of the requested states

Example:

"success,to_configure,pending"

per_page
integer
default:5

Number of items to return per page. Currently limited to 100.

Required range: 1 <= x <= 100
page
integer

Page requested

Example:

3

Response

OK

businesses
object
count
integer

number of businesses returned in response

Example:

1