openapi: 3.2.0 info: title: Vibes Platform Incentive Code API version: 1.0.0 servers: - url: https://public-api.vibescm.com description: North America - url: https://public-api.eu.vibes.com/ description: EMEA security: - basicAuth: [] tags: - name: Incentive Code API paths: /companies/{company_key}/incentives/pools/{issuance_pool_id}/issuances: post: tags: - Incentive Code API summary: Issue an incentive code requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/incentiveCodeIssuanceRequest' parameters: - name: X-API-Version in: header schema: type: string default: 1 - name: Content-Type in: header schema: type: string example: application/json required: true - name: company_key in: path schema: type: string required: true - name: issuance_pool_id in: path schema: type: string required: true description:
Important: If you are entering a live issuance_pool_id, please note that using the "Try It" feature on the righthand console will send an actual API call to our system. This may result in a code being issued.
responses: '200': description: Successful response content: application/json: schema: $ref: '#/components/schemas/incentiveCodeIssuanceResponse' '422': description: No codes are available from the code pool specified. /companies/{company_key}/incentives/codes/{incentive_code}: get: tags: - Incentive Code API summary: Get incentive code parameters: - name: X-API-Version in: header schema: type: string default: 1 - name: Content-Type in: header schema: type: string example: application/json required: true - name: company_key in: path schema: type: string required: true - name: incentive_code in: path schema: type: string required: true responses: '200': description: Successful response content: application/json: schema: $ref: '#/components/schemas/incentiveCodeResponse' /companies/{company_key}/incentives/codes/{incentive_code}/issuances: get: tags: - Incentive Code API summary: Get issuances for a code parameters: - name: X-API-Version in: header schema: type: string default: 1 - name: Content-Type in: header schema: type: string example: application/json required: true - name: company_key in: path schema: type: string required: true - name: incentive_code in: path schema: type: string required: true responses: '200': description: Successful response content: application/json: schema: $ref: '#/components/schemas/incentiveCodeIssuancesResponse' /companies/{company_key}/incentives/codes/{incentive_code}/redemptions: post: tags: - Incentive Code API summary: Redeem an incentive code requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/incentiveCodeIssuanceRequest' parameters: - name: X-API-Version in: header schema: type: string default: 1 - name: Content-Type in: header schema: type: string example: application/json required: true - name: company_key in: path schema: type: string required: true - name: incentive_code in: path schema: type: string required: true description:
Important: If you are entering a real incentive_code, please note that using the "Try It" feature on the righthand console will send an actual API call to our system. This may result in a code being redeemed.
responses: '200': description: Successful response content: application/json: schema: $ref: '#/components/schemas/incentiveCodeIssuancesResponse' '422': description: Returned in the following cases: