# Pims API

> Hereafter is the documentation of the private API of [Pims: Pointages Intelligents pour le Monde du Spectacle](https://pims.io). This API is designed for 3rd-party softwares, editors and partners. Its main purpose is to give access the core data of a Pims customer (i.e. events, ticket counts and promotions). ## Authentication The API uses [basic access authentication](https://en.wikipedia.org/wiki/Basic_access_authentication), meaning you will need a username and password to get authorized. As each customer in Pims has its own domain (e.g. caramba.pims.io, gdp.pims.io...), each credentials will be valid for one domain/customer only. If you need dedicated credentials for one domain, please contact us. (In any case, we will need an explicit agreement from the customer before we create these credentials.) <div class="info"> To make your life easy, you can try all endpoints with the public credentials below, pointing to our [demo domain](https://demo.pims.io): <ul> <li>Base path: `https://demo.pims.io/api`</li> <li>Username: `demo`</li> <li>Password: `q83792db2GCvgYVdKpU3yG3R`</li> </ul> </div> ## Response format The API returns JSON and matches the [HAL specification](http://stateless.co/hal_specification.html). The `Content-Type` of each response will be `application/hal+json`, unless an error occurs. Please note that this documentation describes all responses “as if” they were plain JSON. The specificities of HAL are ignored on purpose, in order to remain compact and avoid repetition. <div style="-webkit-column-count: 2; -moz-column-count: 2; column-count: 2; -webkit-column-rule: 1px dotted #e0e0e0; -moz-column-rule: 1px dotted #e0e0e0; column-rule: 1px dotted #e0e0e0;"> <div style="display: inline-block; width:100%;"> <strong>So when you read in the doc:</strong> <pre><code class="lang-json">{ <span class="token string">"id"</span>: <span class="token number">123</span>, <span class="token string">"property1"</span>: <span class="token string">"Lorem ipsum"</span>, <span class="token string">"object"</span>: { <span class="token string">"id"</span>: <span class="token number">456</span>, <span class="token string">"property2"</span>: <span class="token number">7.89</span> } }</code></pre> </div> <div style="display: inline-block; width:100%;"> <strong>... you'll get in the Real World®:</strong> <pre><code class="lang-json">{ <span class="token string">"id"</span>: <span class="token number">123</span>, <span class="token string">"property2"</span>: <span class="token string">"Lorem ipsum"</span>, <span class="token string">"_embedded"</span>: { <span class="token string">"object"</span>: { <span class="token string">"id"</span>: <span class="token number">456</span>, <span class="token string">"property2"</span>: <span class="token number">7.89</span>, <span class="token string">"_links"</span>: { <span class="token string">"self"</span>: { <span class="token string">"href"</span>: <span class="token string">"https://api.mydomain.com/other-item/456"</span> } } } } <span class="token string">"_links"</span>: { <span class="token string">"self"</span>: { <span class="token string">"href"</span>: <span class="token string">"https://api.mydomain.com/item/123"</span> } } }</code></pre> </div> </div> ### Errors Errors return JSON too and tries to match the [Problem Details for HTTP APIs specification](https://tools.ietf.org/html/rfc7807). If it does not match this spec, that's either a bug or a compatibility issue. Please contact us to solve the problem. The `Content-Type` of errors will be `application/problem+json`. The content will match the following JSON: ```json { "type": "https://tools.ietf.org/html/rfc2616#section-10", "title": "Not Found", "status": 404, "detail": "Entity not found" } ``` ## Versioning The API is fully versionned, using an URL-versioning scheme: `https://demo.pims.io/api/v1/events`, `https://demo.pims.io/api/v2/events`,... The version part of the URL is optional, and will be completed with the last stable v.

Pims is a shopping API from pims.io. Requests are authenticated with HTTP Basic auth. It is served over HTTPS. Its OpenAPI description documents 28 endpoints.

## At a glance

- Category: [Shopping](https://www.openparable.com/apis/category/shopping)
- Provider: pims.io
- Authentication: HTTP Basic
- HTTPS: Yes
- CORS: Not stated
- Base URL: https://demo.pims.io/api/v1
- Documentation: https://pims.io/
- OpenAPI description: https://api.apis.guru/v2/specs/pims.io/1.0/swagger.json
- Version: 1.0
- Specification updated: 2018-08-24

## Example request

```bash
curl -X GET "https://demo.pims.io/api/v1/categories" \
  -H "Accept: application/json" \
  -H "Authorization: Basic BASE64_USER_PASSWORD"
```

## Endpoints

- `GET /categories` — Find all categories
- `GET /categories/{category_id}` — Get one category by ID
- `GET /channels` — Find all channels
- `GET /channels/{channel_id}` — Get one channel by ID
- `GET /events` — Find all events
- `GET /events/{event_id}` — Get one event by ID
- `GET /events/{event_id}/capacities` — Find all capacities for one event
- `GET /events/{event_id}/capacities/{capacity_id}` — Get one capacity by ID
- `GET /events/{event_id}/categories` — Find all categories for one event
- `GET /events/{event_id}/categories/{category_id}` — Get one event category by ID
- `GET /events/{event_id}/channels` — Find all channels for one event
- `GET /events/{event_id}/channels/{channel_id}` — Get one event channel by ID
- `GET /events/{event_id}/promotions` — Find all promotions for one event
- `GET /events/{event_id}/ticket-counts` — Find all ticket counts for one event
- `GET /events/{event_id}/ticket-counts/detailed` — Find all detailed ticket counts for one event
- `GET /events/{event_id}/ticket-counts/detailed/{ticket_count_id}` — Get one detailed ticket count by ID
- `GET /events/{event_id}/ticket-counts/{ticket_count_id}` — Get one ticket count by ID
- `GET /price-ranges` — Find all price ranges
- `GET /price-ranges/{price_range_id}` — Get one price range by ID
- `GET /promotions` — Find all promotions
- `GET /promotions/{promotion_id}` — Get one promotion by ID
- `GET /series` — Find all series
- `GET /series/{series_id}` — Get one series by ID
- `GET /series/{series_id}/events` — Find all events for one series
- `GET /series/{series_id}/promotions` — Find all promotions for one series
- `GET /venues` — Find all venues
- `GET /venues/{venue_id}` — Get one venue by ID
- `GET /venues/{venue_id}/events` — Find all events for one venue

## Questions

### Does the Pims API need an API key?

Yes. The Pims API uses HTTP Basic authentication; the documentation explains how to get credentials.

### Does the Pims API support HTTPS?

Yes, the Pims API is served over HTTPS.

### How many endpoints does the Pims API have?

Its OpenAPI description lists 28 endpoints in version 1.0. All of them are shown on this page.

### What are alternatives to the Pims API?

Other Shopping APIs include Etsy, eBay, Flipkart Marketplace, Inventory Management, Intel Product Catalogue Service.

## Similar shopping APIs

- [Etsy](https://www.openparable.com/apis/etsy): Manage shop and interact with listings
- [eBay](https://www.openparable.com/apis/ebay): Sell and Buy on eBay
- [Flipkart Marketplace](https://www.openparable.com/apis/flipkart-marketplace): Product listing management, Order Fulfilment in the Flipkart Marketplace
- [Inventory Management](https://www.openparable.com/apis/inventory-management): Maintaining up-to-date inventory for your items on Walmart.com ensures a great experience for your customers and greater sales opportunities for you.
- [Intel Product Catalogue Service](https://www.openparable.com/apis/intel-product-catalogue-service): This is the documentation for PIM Micro services. In order to use this tool you need to have Basic Auth credentials and a client id. If you dont have one, please make sure to request one by sending an email to the PIM MS team: [pim.360.team@intel.com](mailto:pim.360.team@intel.com?subject=PIMServices)
- [Item API](https://www.openparable.com/apis/item): Please make sure you use the correct version of the APIs for your use case. To find out the appropriate version, go to the API Docs drop down on the menu.
- [Tokopedia](https://www.openparable.com/apis/tokopedia): Tokopedia's Official API for integration of various services from Tokopedia
- [Pendo Feedback API](https://www.openparable.com/apis/pendo-feedback): ## Who is this for? This documentation is for developers creating their own integration with [Feedback's](https://www.pendo.io/product/feedback/) API. If you are doing a standard integration, there's a really easy [Javascript integration](https://help.receptive.io/hc/en-us/articles/209221969-How-to-integrate-Receptive-with-your-app) that you should know about before you go to the effort of building your own integration. ## Authentication API calls generally need to be authenticated. Generate an API Key at https://feedback.pendo.io/app/#/vendor/settings?section=integrate. This key should then be added to every request as a request header named 'auth-token' (preferred), or as a query parameter named 'auth-token'. ## Endpoint API endpoint is https://api.feedback.eu.pendo.io / https://api.feedback.us.pendo.io depending where your datacenter is located. ## Notes API endpoints are being added to this documentation as needed by customers. If you don't see an endpoint you need please contact support and if it exists we'll publish the docs here. The 'try it out' feature on this documentation page will probably be blocked by your browser because the Access-Control-Allow-Origin header has its value set by the Feedback server depending on your hostname. ## Generating client code This documentation is automatically generated from an OpenAPI spec available [here](http://apidoc.receptive.io/receptive.swagger.json). You can use Swagger to auto-generate API client code in many languages using the [Swagger Editor](http://editor.swagger.io/#/)
- [OLX Poland](https://www.openparable.com/apis/olx-poland): Integrate with local sites by posting, managing adverts and communicating with OLX users
- [Shopee](https://www.openparable.com/apis/shopee): Shopee's official API for integration of various services from Shopee
- [Mercadolibre](https://www.openparable.com/apis/mercadolibre): Manage sales, ads, products, services and Shops
- [Shop](https://www.openparable.com/apis/shop): Search for millions of products from the world's greatest brands.

Listed from: APIs.guru (CC0). Check the provider's terms before use.

---

Source: https://www.openparable.com/apis/pims (OpenParable). Cite the canonical URL above.
