Commerce Layer permissions API

resource type

Operations 6

GET /organizations/{organizationId}/permissions Related organization #
POST /permissions Creates an permission #
GET /permissions List all permissions #
GET /permissions/{permissionId} Retrieve an permission #
PATCH /permissions/{permissionId} Updates an permission #
GET /roles/{roleId}/permissions Related role #

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/commerce-layer-permissions-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

commerce-layer-permissions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Commerce Layer Provisioning Permissions API
  version: 1.0.15
  contact:
    name: API Support
    url: https://commercelayer.io
    email: support@commercelayer.io
  description: Headless Commerce for Global Brands.
servers:
- url: https://provisioning.commercelayer.io
  description: Commerce Layer Provisioning API
- url: https://docs.commercelayer.io/provisioning-api
  description: API reference
security:
- bearerAuth: []
tags:
- name: permissions
  description: resource type
paths:
  /organizations/{organizationId}/permissions:
    get:
      operationId: GET/organizationId/permissions
      summary: Related organization
      description: Related organization
      tags:
      - permissions
      parameters:
      - name: organizationId
        in: path
        schema:
          type: string
        required: true
        description: The ID of the resource.
      responses:
        '200':
          description: The permissions associated to the organization
  /permissions:
    post:
      operationId: POST/permissions
      summary: Creates an permission
      description: Creates an permission
      tags:
      - permissions
      requestBody:
        required: true
        content:
          application/vnd.api+json:
            schema:
              $ref: '#/components/schemas/permissionCreate'
      responses:
        '201':
          description: The created permission object
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/permissionResponse'
    get:
      operationId: GET/permissions
      summary: List all permissions
      description: List all permissions
      tags:
      - permissions
      responses:
        '200':
          description: A list of permission objects
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/permissionResponseList'
  /permissions/{permissionId}:
    get:
      operationId: GET/permissions/permissionId
      summary: Retrieve an permission
      description: Retrieve an permission
      parameters:
      - name: permissionId
        in: path
        schema:
          type: string
        required: true
        description: The ID of the resource.
      tags:
      - permissions
      responses:
        '200':
          description: The permission object
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/permissionResponse'
    patch:
      operationId: PATCH/permissions/permissionId
      summary: Updates an permission
      description: Updates an permission
      tags:
      - permissions
      parameters:
      - name: permissionId
        in: path
        schema:
          type: string
        required: true
        description: The ID of the resource.
      requestBody:
        required: true
        content:
          application/vnd.api+json:
            schema:
              $ref: '#/components/schemas/permissionUpdate'
      responses:
        '200':
          description: The updated permission object
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/permissionResponse'
  /roles/{roleId}/permissions:
    get:
      operationId: GET/roleId/permissions
      summary: Related role
      description: Related role
      tags:
      - permissions
      parameters:
      - name: roleId
        in: path
        schema:
          type: string
        required: true
        description: The ID of the resource.
      responses:
        '200':
          description: The permissions associated to the role
components:
  schemas:
    permissionResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            id:
              type: string
              description: The ID of the resource.
              example: XGZwpOSrWL
            type:
              type: string
              description: The resource's type.
              enum:
              - permissions
            links:
              type: object
              properties:
                self:
                  type: string
                  description: URL
            attributes:
              $ref: '#/components/schemas/permission/properties/data/properties/attributes'
            relationships:
              type: object
              properties:
                organization:
                  type: object
                  properties:
                    links:
                      type: object
                      properties:
                        self:
                          type: string
                          description: URL
                        related:
                          type: string
                          description: URL
                    data:
                      type: object
                      properties:
                        type:
                          type: string
                          description: The resource's type.
                          enum:
                          - organization
                        id:
                          type: string
                          description: The ID of the resource.
                role:
                  type: object
                  properties:
                    links:
                      type: object
                      properties:
                        self:
                          type: string
                          description: URL
                        related:
                          type: string
                          description: URL
                    data:
                      type: object
                      properties:
                        type:
                          type: string
                          description: The resource's type.
                          enum:
                          - role
                        id:
                          type: string
                          description: The ID of the resource.
                versions:
                  type: object
                  properties:
                    links:
                      type: object
                      properties:
                        self:
                          type: string
                          description: URL
                        related:
                          type: string
                          description: URL
                    data:
                      type: object
                      properties:
                        type:
                          type: string
                          description: The resource's type.
                          enum:
                          - versions
                        id:
                          type: string
                          description: The ID of the resource.
    permissionResponseList:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/permissionResponse/properties/data'
    permissionUpdate:
      required:
      - data
      type: object
      properties:
        data:
          type: object
          required:
          - type
          - id
          - attributes
          properties:
            type:
              type: string
              description: The resource's type.
              enum:
              - permissions
            id:
              type: string
              description: The ID of the resource.
              example: XGZwpOSrWL
            attributes:
              type: object
              properties:
                can_create:
                  type: boolean
                  description: Determines if the permission have access to create rights.
                  example: false
                can_read:
                  type: boolean
                  description: Determines if the permission have access to read rights.
                  example: false
                can_update:
                  type: boolean
                  description: Determines if the permission have access to update rights.
                  example: false
                can_destroy:
                  type: boolean
                  description: Determines if the permission have access to destroy rights.
                  example: false
                reference:
                  type:
                  - string
                  - 'null'
                  description: A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever.
                  example: ANY-EXTERNAL-REFEFERNCE
                reference_origin:
                  type:
                  - string
                  - 'null'
                  description: Any identifier of the third party system that defines the reference code.
                  example: ANY-EXTERNAL-REFEFERNCE-ORIGIN
                metadata:
                  type:
                  - object
                  - 'null'
                  description: Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format.
                  example:
                    foo: bar
            relationships:
              type: object
              properties: {}
    permissionCreate:
      required:
      - data
      type: object
      properties:
        data:
          type: object
          required:
          - type
          - attributes
          properties:
            type:
              type: string
              description: The resource's type.
              enum:
              - permissions
            attributes:
              type: object
              properties:
                can_create:
                  type: boolean
                  description: Determines if the permission have access to create rights.
                  example: false
                can_read:
                  type: boolean
                  description: Determines if the permission have access to read rights.
                  example: false
                can_update:
                  type: boolean
                  description: Determines if the permission have access to update rights.
                  example: false
                can_destroy:
                  type: boolean
                  description: Determines if the permission have access to destroy rights.
                  example: false
                subject:
                  type: string
                  description: The resource where this permission is applied.
                  example: ''
                reference:
                  type: string
                  description: A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever.
                  example: ANY-EXTERNAL-REFEFERNCE
                reference_origin:
                  type: string
                  description: Any identifier of the third party system that defines the reference code.
                  example: ANY-EXTERNAL-REFEFERNCE-ORIGIN
                metadata:
                  type: object
                  description: Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format.
                  example:
                    foo: bar
              required:
              - can_create
              - can_read
              - can_update
              - can_destroy
              - subject
            relationships:
              type: object
              properties:
                role:
                  required:
                  - data
                  type: object
                  properties:
                    data:
                      type: object
                      properties:
                        type:
                          type: string
                          description: The resource's type.
                          enum:
                          - roles
                        id:
                          type: string
                          description: The ID of the resource.
                          example: XGZwpOSrWL
              required:
              - role
    permission:
      type: object
      properties:
        data:
          type: object
          required:
          - type
          - attributes
          properties:
            type:
              type: string
              description: The resource's type.
              enum:
              - permissions
            attributes:
              type: object
              properties:
                can_create:
                  type: boolean
                  description: Determines if the permission have access to create rights.
                  example: false
                can_read:
                  type: boolean
                  description: Determines if the permission have access to read rights.
                  example: false
                can_update:
                  type: boolean
                  description: Determines if the permission have access to update rights.
                  example: false
                can_destroy:
                  type: boolean
                  description: Determines if the permission have access to destroy rights.
                  example: false
                subject:
                  type: string
                  description: The resource where this permission is applied.
                  example: ''
                restrictions:
                  type: object
                  description: An object that contains additional restrictions.
                  example:
                    foo: bar
                  readOnly: true
                created_at:
                  type: string
                  description: Time at which the resource was created.
                  example: '2018-01-01T12:00:00.000Z'
                  readOnly: true
                updated_at:
                  type: string
                  description: Time at which the resource was last updated.
                  example: '2018-01-01T12:00:00.000Z'
                  readOnly: true
                reference:
                  type:
                  - string
                  - 'null'
                  description: A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever.
                  example: ANY-EXTERNAL-REFEFERNCE
                reference_origin:
                  type:
                  - string
                  - 'null'
                  description: Any identifier of the third party system that defines the reference code.
                  example: ANY-EXTERNAL-REFEFERNCE-ORIGIN
                metadata:
                  type:
                  - object
                  - 'null'
                  description: Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format.
                  example:
                    foo: bar
            relationships:
              type: object
              properties:
                organization:
                  type: object
                  properties:
                    data:
                      type: object
                      properties:
                        type:
                          type: string
                          description: The resource's type.
                          enum:
                          - organizations
                        id:
                          type: string
                          description: The ID of the resource.
                          example: XGZwpOSrWL
                role:
                  type: object
                  properties:
                    data:
                      type: object
                      properties:
                        type:
                          type: string
                          description: The resource's type.
                          enum:
                          - roles
                        id:
                          type: string
                          description: The ID of the resource.
                          example: XGZwpOSrWL
                versions:
                  type: object
                  properties:
                    data:
                      type: object
                      properties:
                        type:
                          type: string
                          description: The resource's type.
                          enum:
                          - versions
                        id:
                          type: string
                          description: The ID of the resource.
                          example: XGZwpOSrWL
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT