Skip to main content
POST
/
business
/
{business_id}
/
unsubscribe
Unsubscribe a business
curl --request POST \
  --url https://api.partoo.co/v2/business/{business_id}/unsubscribe \
  --header 'Content-Type: application/json' \
  --header 'x-APIKey: <api-key>' \
  --data '{
  "canceling_date": 1540628702,
  "products": [
    "presence_management"
  ]
}'
{
  "presence_management": {
    "subscription_date": 1540628702,
    "status": "active"
  },
  "review_management": {
    "subscription_date": 1540628702,
    "status": "active"
  },
  "review_booster": {
    "subscription_date": 1540628702,
    "status": "active"
  },
  "messages": {
    "subscription_date": 1540628702,
    "status": "active"
  }
}

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.

Path Parameters

business_id
string
required

Business id.

It may be replaced by c-{code} where code is the store code, which should be unique per organization. This can be used only for ORG_ADMIN, GROUP_MANAGER and BUSINESS_MANAGER users.

Body

application/json
canceling_date
number

Timestamp representing the date on which the subscription will stop to be valid

Example:

1540628702

products
enum<string>[]

List of products

Response

OK

presence_management
object
  • Option 1
  • Option 2
review_management
object
  • Option 1
  • Option 2
review_booster
object
  • Option 1
  • Option 2
messages
object
  • Option 1
  • Option 2