openapi: 3.0.3
info:
  title: metapic-api
  description: ''
  version: 1.0.0
servers:
  -
    url: 'https://api.metapic.com'
paths:
  /support-admin-chat:
    get:
      summary: 'Get Chats'
      operationId: getChats
      description: 'Get list of user chats with Admin Support'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                example:
                  -
                    user_id: '{userId}'
                    active: 1
                    type: support_admin
                    updated_at: '2022-01-24 16:42:46'
                    created_at: '2022-01-24 16:42:46'
                    id: '{chatId}'
                    messages: []
      tags:
        - Chats
    post:
      summary: 'Create Chat'
      operationId: createChat
      description: 'Create new chat with Admin Support'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  user_id: '{userId}'
                  active: 1
                  type: support_admin
                  updated_at: '2022-01-24 16:42:46'
                  created_at: '2022-01-24 16:42:46'
                  id: '{chatId}'
                  messages:
                    -
                      id: 189
                      chat_id: 2
                      user_id: '{userId}'
                      from: null
                      message: test
                      created_at: '2022-01-24 11:40:10'
                      updated_at: '2022-01-24 11:40:10'
                      user:
                        id: '{userId}'
                        username: '{username}'
                        email: '{email}'
                        is_suspended: false
                        is_verified: false
                properties:
                  user_id:
                    type: string
                    example: '{userId}'
                  active:
                    type: integer
                    example: 1
                  type:
                    type: string
                    example: support_admin
                  updated_at:
                    type: string
                    example: '2022-01-24 16:42:46'
                  created_at:
                    type: string
                    example: '2022-01-24 16:42:46'
                  id:
                    type: string
                    example: '{chatId}'
                  messages:
                    type: array
                    example:
                      -
                        id: 189
                        chat_id: 2
                        user_id: '{userId}'
                        from: null
                        message: test
                        created_at: '2022-01-24 11:40:10'
                        updated_at: '2022-01-24 11:40:10'
                        user:
                          id: '{userId}'
                          username: '{username}'
                          email: '{email}'
                          is_suspended: false
                          is_verified: false
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                          example: 189
                        chat_id:
                          type: integer
                          example: 2
                        user_id:
                          type: string
                          example: '{userId}'
                        from:
                          type: string
                          example: null
                        message:
                          type: string
                          example: test
                        created_at:
                          type: string
                          example: '2022-01-24 11:40:10'
                        updated_at:
                          type: string
                          example: '2022-01-24 11:40:10'
                        user:
                          type: object
                          properties:
                            id:
                              type: string
                              example: '{userId}'
                            username:
                              type: string
                              example: '{username}'
                            email:
                              type: string
                              example: '{email}'
                            is_suspended:
                              type: boolean
                              example: false
                            is_verified:
                              type: boolean
                              example: false
      tags:
        - Chats
  '/support-admin-chat/{id}':
    get:
      summary: 'Get Chat'
      operationId: getChat
      description: 'Get user chat with Admin Support'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  user_id: '{userId}'
                  active: 1
                  type: support_admin
                  updated_at: '2022-01-24 16:42:46'
                  created_at: '2022-01-24 16:42:46'
                  id: '{chatId}'
                  messages:
                    -
                      id: 189
                      chat_id: 2
                      user_id: '{userId}'
                      from: null
                      message: test
                      created_at: '2022-01-24 11:40:10'
                      updated_at: '2022-01-24 11:40:10'
                      user:
                        id: '{userId}'
                        username: '{username}'
                        email: '{email}'
                        is_suspended: false
                        is_verified: false
                properties:
                  user_id:
                    type: string
                    example: '{userId}'
                  active:
                    type: integer
                    example: 1
                  type:
                    type: string
                    example: support_admin
                  updated_at:
                    type: string
                    example: '2022-01-24 16:42:46'
                  created_at:
                    type: string
                    example: '2022-01-24 16:42:46'
                  id:
                    type: string
                    example: '{chatId}'
                  messages:
                    type: array
                    example:
                      -
                        id: 189
                        chat_id: 2
                        user_id: '{userId}'
                        from: null
                        message: test
                        created_at: '2022-01-24 11:40:10'
                        updated_at: '2022-01-24 11:40:10'
                        user:
                          id: '{userId}'
                          username: '{username}'
                          email: '{email}'
                          is_suspended: false
                          is_verified: false
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                          example: 189
                        chat_id:
                          type: integer
                          example: 2
                        user_id:
                          type: string
                          example: '{userId}'
                        from:
                          type: string
                          example: null
                        message:
                          type: string
                          example: test
                        created_at:
                          type: string
                          example: '2022-01-24 11:40:10'
                        updated_at:
                          type: string
                          example: '2022-01-24 11:40:10'
                        user:
                          type: object
                          properties:
                            id:
                              type: string
                              example: '{userId}'
                            username:
                              type: string
                              example: '{username}'
                            email:
                              type: string
                              example: '{email}'
                            is_suspended:
                              type: boolean
                              example: false
                            is_verified:
                              type: boolean
                              example: false
      tags:
        - Chats
    parameters:
      -
        in: path
        name: chat
        description: 'The ID of the chat.'
        example: 1
        required: true
        schema:
          type: integer
  '/support-admin-chat/{chatId}/messages':
    post:
      summary: 'Create Message'
      operationId: createMessage
      description: 'Create message in Admin Support'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  chat_id: '2'
                  user_id: '{userId}'
                  message: 'test message'
                  updated_at: '2022-01-24 17:43:37'
                  created_at: '2022-01-24 17:43:37'
                  id: 222
                properties:
                  chat_id:
                    type: string
                    example: '2'
                  user_id:
                    type: string
                    example: '{userId}'
                  message:
                    type: string
                    example: 'test message'
                  updated_at:
                    type: string
                    example: '2022-01-24 17:43:37'
                  created_at:
                    type: string
                    example: '2022-01-24 17:43:37'
                  id:
                    type: integer
                    example: 222
      tags:
        - Chats
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                message:
                  type: string
                  description: "Chat message.\n\nMust not be greater than 1024 characters."
                  example: textMessage
              required:
                - message
    parameters:
      -
        in: path
        name: chatId
        description: 'The ID of the chat.'
        example: 1
        required: true
        schema:
          type: integer
  '/users/{userId}/deep-link-urls':
    get:
      summary: 'Get Deep-link urls'
      operationId: getDeepLinkUrls
      description: 'Return list of deep-link urls for authorized user'
      parameters: []
      responses: {  }
      tags:
        - 'Deep linking'
    parameters:
      -
        in: path
        name: userId
        description: 'The ID of the user.'
        example: 1
        required: true
        schema:
          type: integer
  '/deepLinkBlogPost/{id}':
    post:
      summary: 'DeepLink BlogPost'
      operationId: deepLinkBlogPost
      description: 'Transform a html blocks links to metapic links. Will only transform links that you can earn money on'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  newHtml: '<div> <a href="https://c.mtpc.se/tags/link/2082970"> link</a></div>'
                  linkTranslation:
                    -
                      before: 'https://na-kd.com'
                      status: success
                      store: NA-KD
                      storeId: '{storeId}'
                      type: tradedoubler_SE
                      after: 'https://c.mtpc.se/tags/link/2082970'
                      currency: SEK
                      tag_id: '{tagId}'
                      user_revenue_cpc: 250
                      user_instagram_cpc: 100
                      user_revenue_cpa: 0
                      user_instagram_cpa: 0
                      user_revenue_cpc_formated: '2.50 kr'
                      user_instagram_cpc_formated: '1.00 kr'
                      traffic_sources_costs:
                        -
                          id: 301
                          store_id: '{storeId}'
                          source: 0
                          cpc: 250
                          invoice_cpc: 250
                          cpa: 0
                          invoice_cpa: null
                          created_at: '2023-05-03 12:01:08'
                          updated_at: '2023-05-03 12:01:08'
                          user_revenue: 1
                          client_revenue: null
                          cpc_formatted: '2.50 kr'
                          title: General
                        -
                          id: 302
                          store_id: '{storeId}'
                          source: 1
                          cpc: 100
                          invoice_cpc: 100
                          cpa: null
                          invoice_cpa: null
                          created_at: '2023-05-03 12:01:09'
                          updated_at: '2023-05-03 12:01:09'
                          user_revenue: 1
                          client_revenue: null
                          cpc_formatted: '1.00 kr'
                          title: Instagram
                  isUpdated: true
                properties:
                  newHtml:
                    type: string
                    example: '<div> <a href="https://c.mtpc.se/tags/link/2082970"> link</a></div>'
                  linkTranslation:
                    type: array
                    example:
                      -
                        before: 'https://na-kd.com'
                        status: success
                        store: NA-KD
                        storeId: '{storeId}'
                        type: tradedoubler_SE
                        after: 'https://c.mtpc.se/tags/link/2082970'
                        currency: SEK
                        tag_id: '{tagId}'
                        user_revenue_cpc: 250
                        user_instagram_cpc: 100
                        user_revenue_cpa: 0
                        user_instagram_cpa: 0
                        user_revenue_cpc_formated: '2.50 kr'
                        user_instagram_cpc_formated: '1.00 kr'
                        traffic_sources_costs:
                          -
                            id: 301
                            store_id: '{storeId}'
                            source: 0
                            cpc: 250
                            invoice_cpc: 250
                            cpa: 0
                            invoice_cpa: null
                            created_at: '2023-05-03 12:01:08'
                            updated_at: '2023-05-03 12:01:08'
                            user_revenue: 1
                            client_revenue: null
                            cpc_formatted: '2.50 kr'
                            title: General
                          -
                            id: 302
                            store_id: '{storeId}'
                            source: 1
                            cpc: 100
                            invoice_cpc: 100
                            cpa: null
                            invoice_cpa: null
                            created_at: '2023-05-03 12:01:09'
                            updated_at: '2023-05-03 12:01:09'
                            user_revenue: 1
                            client_revenue: null
                            cpc_formatted: '1.00 kr'
                            title: Instagram
                    items:
                      type: object
                      properties:
                        before:
                          type: string
                          example: 'https://na-kd.com'
                        status:
                          type: string
                          example: success
                        store:
                          type: string
                          example: NA-KD
                        storeId:
                          type: string
                          example: '{storeId}'
                        type:
                          type: string
                          example: tradedoubler_SE
                        after:
                          type: string
                          example: 'https://c.mtpc.se/tags/link/2082970'
                        currency:
                          type: string
                          example: SEK
                        tag_id:
                          type: string
                          example: '{tagId}'
                        user_revenue_cpc:
                          type: integer
                          example: 250
                        user_instagram_cpc:
                          type: integer
                          example: 100
                        user_revenue_cpa:
                          type: integer
                          example: 0
                        user_instagram_cpa:
                          type: integer
                          example: 0
                        user_revenue_cpc_formated:
                          type: string
                          example: '2.50 kr'
                        user_instagram_cpc_formated:
                          type: string
                          example: '1.00 kr'
                        traffic_sources_costs:
                          type: array
                          example:
                            -
                              id: 301
                              store_id: '{storeId}'
                              source: 0
                              cpc: 250
                              invoice_cpc: 250
                              cpa: 0
                              invoice_cpa: null
                              created_at: '2023-05-03 12:01:08'
                              updated_at: '2023-05-03 12:01:08'
                              user_revenue: 1
                              client_revenue: null
                              cpc_formatted: '2.50 kr'
                              title: General
                            -
                              id: 302
                              store_id: '{storeId}'
                              source: 1
                              cpc: 100
                              invoice_cpc: 100
                              cpa: null
                              invoice_cpa: null
                              created_at: '2023-05-03 12:01:09'
                              updated_at: '2023-05-03 12:01:09'
                              user_revenue: 1
                              client_revenue: null
                              cpc_formatted: '1.00 kr'
                              title: Instagram
                          items:
                            type: object
                            properties:
                              id:
                                type: integer
                                example: 301
                              store_id:
                                type: string
                                example: '{storeId}'
                              source:
                                type: integer
                                example: 0
                              cpc:
                                type: integer
                                example: 250
                              invoice_cpc:
                                type: integer
                                example: 250
                              cpa:
                                type: integer
                                example: 0
                              invoice_cpa:
                                type: string
                                example: null
                              created_at:
                                type: string
                                example: '2023-05-03 12:01:08'
                              updated_at:
                                type: string
                                example: '2023-05-03 12:01:08'
                              user_revenue:
                                type: integer
                                example: 1
                              client_revenue:
                                type: string
                                example: null
                              cpc_formatted:
                                type: string
                                example: '2.50 kr'
                              title:
                                type: string
                                example: General
                  isUpdated:
                    type: boolean
                    example: true
      tags:
        - 'Deep linking'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                blogPost:
                  type: string
                  description: Link.
                  example: "<div> <a href='https://na-kd.com'> link</a></div>"
                dry:
                  type: boolean
                  description: 'When dry is set - link will not be created.'
                  example: 1
              required:
                - blogPost
    parameters:
      -
        in: path
        name: user_id
        description: 'Optional parameter. The id of the user.'
        required: true
        schema:
          type: integer
        examples:
          omitted:
            summary: 'When the value is omitted'
            value: ''
          present:
            summary: 'When the value is present'
            value: 1
  /deep-links:
    post:
      summary: 'Create Deep Links'
      operationId: createDeepLinks
      description: 'Create deeplinks from an array of links'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                example:
                  -
                    before: 'https://na-kd.com'
                    status: success
                    store: NA-KD
                    storeId: '{storeId}'
                    type: tradedoubler_SE
                    after: 'https://c.mtpc.se/tags/link/2082974'
                    currency: SEK
                    tag_id: '{tagId}'
                    user_revenue_cpc: 250
                    user_instagram_cpc: 100
                    user_revenue_cpa: 0
                    user_instagram_cpa: 0
                    user_revenue_cpc_formated: '2.50 kr'
                    user_instagram_cpc_formated: '1.00 kr'
                    traffic_sources_costs:
                      -
                        id: 301
                        store_id: '{storeId}'
                        source: 0
                        cpc: 250
                        invoice_cpc: 250
                        cpa: 0
                        invoice_cpa: null
                        created_at: '2023-05-03 12:01:08'
                        updated_at: '2023-05-03 12:01:08'
                        user_revenue: 1
                        client_revenue: null
                        cpc_formatted: '2.50 kr'
                        title: General
                      -
                        id: 302
                        store_id: '{storeId}'
                        source: 1
                        cpc: 100
                        invoice_cpc: 100
                        cpa: null
                        invoice_cpa: null
                        created_at: '2023-05-03 12:01:09'
                        updated_at: '2023-05-03 12:01:09'
                        user_revenue: 1
                        client_revenue: null
                        cpc_formatted: '1.00 kr'
                        title: Instagram
                  - ...
      tags:
        - 'Deep linking'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                links:
                  type: string
                  description: 'Json array of links.'
                  example: '["https://ellos.com"]'
                userId:
                  type: string
                  description: 'The user ID.'
                  example: 1
                dry:
                  type: boolean
                  description: 'When dry is set - link will not be created.'
                  example: 1
              required:
                - links
                - userId
  '/v2/stores/{store_id}/offers':
    get:
      summary: 'Display a listing of the resource.'
      operationId: displayAListingOfTheResource
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
    post:
      summary: 'Get the validation rules that apply to the request.'
      operationId: getTheValidationRulesThatApplyToTheRequest
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                active:
                  type: boolean
                  description: ''
                  example: true
                campaign_title:
                  type: string
                  description: 'Must not be greater than 64 characters.'
                  example: kjqykwzczhawf
                campaign_text:
                  type: string
                  description: 'Must not be greater than 1056 characters.'
                  example: jpnsdycikeqhplsiialzpru
                has_product_seeding:
                  type: boolean
                  description: ''
                  example: false
                todo:
                  type: array
                  description: ''
                  example:
                    - numquam
                  items:
                    type: string
                has_onetime_payment:
                  type: boolean
                  description: ''
                  example: false
                one_time_payment:
                  type: integer
                  description: 'This field is required when <code>has_onetime_payment</code> is <code>true</code>. Must not be greater than 1000000.'
                  example: 1
                valid_from:
                  type: string
                  description: 'Must be a valid date.'
                  example: '2024-07-02T10:18:46'
                valid_until:
                  type: string
                  description: 'Must be a valid date. Must be a date after <code>from</code>.'
                  example: '2017-07-29'
                max_clicks:
                  type: integer
                  description: 'Must not be greater than 1000000.'
                  example: 8
                per_user_limit:
                  type: boolean
                  description: ''
                  example: true
                max_money:
                  type: integer
                  description: 'Must not be greater than 1000000.'
                  example: 11
                type:
                  type: string
                  description: ''
                  example: standard
                  enum:
                    - standard
                    - user_accept
                    - store_accept
                    - suggestion
                traffic_sources_costs:
                  type: array
                  description: ''
                  example:
                    - []
                  items:
                    type: object
                    properties:
                      source:
                        type: integer
                        description: ''
                        example: 5
                      cpc:
                        type: integer
                        description: 'Must not be greater than 1000.'
                        example: 15
                      cpa:
                        type: number
                        description: 'Must be between 0 and 1.'
                        example: 1
                    required:
                      - source
                      - cpc
                      - cpa
                targets:
                  type: object
                  description: ''
                  example: []
                  properties:
                    user_ids:
                      type: array
                      description: ''
                      example:
                        - 19
                      items:
                        type: integer
                    user_tag_ids:
                      type: array
                      description: ''
                      example:
                        - 18
                      items:
                        type: integer
                    store_group_ids:
                      type: array
                      description: ''
                      example:
                        - 7
                      items:
                        type: integer
                    emails:
                      type: array
                      description: 'The value format is invalid.'
                      example:
                        - josephine.schaden@example.org
                      items:
                        type: string
                    social_media_identifiers:
                      type: array
                      description: 'Must not be greater than 30 characters.'
                      example:
                        - nasvkqstbxprjquo
                      items:
                        type: string
              required:
                - active
                - campaign_title
                - type
                - traffic_sources_costs
                - targets
      security: []
  '/v2/offers/{id}':
    put:
      summary: 'Get the validation rules that apply to the request.'
      operationId: getTheValidationRulesThatApplyToTheRequest
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                active:
                  type: boolean
                  description: ''
                  example: true
                campaign_title:
                  type: string
                  description: 'Must not be greater than 64 characters.'
                  example: cqicksntkb
                campaign_text:
                  type: string
                  description: 'Must not be greater than 1056 characters.'
                  example: qmvrnxjelyefugq
                has_product_seeding:
                  type: boolean
                  description: ''
                  example: true
                todo:
                  type: array
                  description: ''
                  example:
                    - dolorum
                  items:
                    type: string
                has_onetime_payment:
                  type: boolean
                  description: ''
                  example: false
                one_time_payment:
                  type: integer
                  description: 'This field is required when <code>has_onetime_payment</code> is <code>true</code>. Must not be greater than 1000000.'
                  example: 24
                valid_from:
                  type: string
                  description: 'Must be a valid date.'
                  example: '2024-07-02T10:18:46'
                valid_until:
                  type: string
                  description: 'Must be a valid date. Must be a date after <code>from</code>.'
                  example: '2075-07-16'
                max_clicks:
                  type: integer
                  description: 'Must not be greater than 1000000.'
                  example: 5
                per_user_limit:
                  type: boolean
                  description: ''
                  example: true
                max_money:
                  type: integer
                  description: 'Must not be greater than 1000000.'
                  example: 14
                type:
                  type: string
                  description: ''
                  example: store_accept
                  enum:
                    - standard
                    - user_accept
                    - store_accept
                    - suggestion
                traffic_sources_costs:
                  type: array
                  description: ''
                  example:
                    - []
                  items:
                    type: object
                    properties:
                      source:
                        type: integer
                        description: ''
                        example: 2
                      cpc:
                        type: integer
                        description: 'Must not be greater than 1000.'
                        example: 20
                      cpa:
                        type: number
                        description: 'Must be between 0 and 1.'
                        example: 1
                    required:
                      - source
                      - cpc
                      - cpa
                targets:
                  type: object
                  description: ''
                  example: []
                  properties:
                    user_ids:
                      type: array
                      description: ''
                      example:
                        - 5
                      items:
                        type: integer
                    user_tag_ids:
                      type: array
                      description: ''
                      example:
                        - 12
                      items:
                        type: integer
                    store_group_ids:
                      type: array
                      description: ''
                      example:
                        - 3
                      items:
                        type: integer
                    emails:
                      type: array
                      description: 'The value format is invalid.'
                      example:
                        - ziemann.evangeline@example.com
                      items:
                        type: string
                    social_media_identifiers:
                      type: array
                      description: 'Must not be greater than 30 characters.'
                      example:
                        - tsmzzwvxsqmdlrzqgju
                      items:
                        type: string
              required:
                - active
                - campaign_title
                - type
                - traffic_sources_costs
                - targets
      security: []
    delete:
      summary: 'Remove the specified resource from storage.'
      operationId: removeTheSpecifiedResourceFromStorage
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  '/v2/offers/{offer_id}/targets':
    get:
      summary: 'Display a listing of the resource.'
      operationId: displayAListingOfTheResource
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
    post:
      summary: 'Get the validation rules that apply to the request.'
      operationId: getTheValidationRulesThatApplyToTheRequest
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                user_ids:
                  type: array
                  description: ''
                  example:
                    - 5
                  items:
                    type: integer
                user_tag_ids:
                  type: array
                  description: ''
                  example:
                    - 2
                  items:
                    type: integer
                store_group_ids:
                  type: array
                  description: ''
                  example:
                    - 1
                  items:
                    type: integer
                emails:
                  type: array
                  description: 'The value format is invalid.'
                  example:
                    - khalil.parker@example.org
                  items:
                    type: string
                social_media_identifiers:
                  type: array
                  description: 'Must not be greater than 30 characters.'
                  example:
                    - ebewmkpisd
                  items:
                    type: string
      security: []
  '/v2/offers/{offer_id}/targets/{id}':
    get:
      summary: 'Display the specified resource.'
      operationId: displayTheSpecifiedResource
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
    put:
      summary: 'Update the specified resource in storage.'
      operationId: updateTheSpecifiedResourceInStorage
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
    delete:
      summary: 'Remove the specified resource from storage.'
      operationId: removeTheSpecifiedResourceFromStorage
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /v2/clients:
    get:
      summary: 'Get the validation rules that apply to the request.'
      operationId: getTheValidationRulesThatApplyToTheRequest
      description: ''
      parameters:
        -
          in: query
          name: name
          description: 'Must not be greater than 255 characters.'
          example: srgkdulzidrfnoomrsr
          required: false
          schema:
            type: string
            description: 'Must not be greater than 255 characters.'
            example: srgkdulzidrfnoomrsr
        -
          in: query
          name: store_group_id
          description: ''
          example: 11
          required: false
          schema:
            type: integer
            description: ''
            example: 11
        -
          in: query
          name: size
          description: 'Must not be greater than 100.'
          example: 22
          required: false
          schema:
            type: integer
            description: 'Must not be greater than 100.'
            example: 22
        -
          in: query
          name: sort_by
          description: ''
          example: praesentium
          required: false
          schema:
            type: string
            description: ''
            example: praesentium
      responses: {  }
      tags:
        - Endpoints
      security: []
    post:
      summary: 'Store a newly created resource in storage.'
      operationId: storeANewlyCreatedResourceInStorage
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  '/v2/clients/{id}':
    get:
      summary: 'Display the specified resource.'
      operationId: displayTheSpecifiedResource
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
    put:
      summary: 'Update the specified resource in storage.'
      operationId: updateTheSpecifiedResourceInStorage
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
    delete:
      summary: 'Remove the specified resource from storage.'
      operationId: removeTheSpecifiedResourceFromStorage
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /v2/users:
    get:
      summary: 'Get the validation rules that apply to the request.'
      operationId: getTheValidationRulesThatApplyToTheRequest
      description: ''
      parameters:
        -
          in: query
          name: query
          description: 'Must not be greater than 64 characters.'
          example: zaswgikblllngaihfasfi
          required: false
          schema:
            type: string
            description: 'Must not be greater than 64 characters.'
            example: zaswgikblllngaihfasfi
        -
          in: query
          name: client_id
          description: ''
          example: 6
          required: false
          schema:
            type: integer
            description: ''
            example: 6
        -
          in: query
          name: store_group_id
          description: ''
          example: 9
          required: false
          schema:
            type: integer
            description: ''
            example: 9
        -
          in: query
          name: size
          description: 'Must not be greater than 100.'
          example: 12
          required: false
          schema:
            type: integer
            description: 'Must not be greater than 100.'
            example: 12
        -
          in: query
          name: sort_by
          description: ''
          example: animi
          required: false
          schema:
            type: string
            description: ''
            example: animi
      responses: {  }
      tags:
        - Endpoints
      security: []
    post:
      summary: 'Store a newly created resource in storage.'
      operationId: storeANewlyCreatedResourceInStorage
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  '/v2/users/{id}':
    get:
      summary: 'Display the specified resource.'
      operationId: displayTheSpecifiedResource
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
    put:
      summary: 'Update the specified resource in storage.'
      operationId: updateTheSpecifiedResourceInStorage
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
    delete:
      summary: 'Remove the specified resource from storage.'
      operationId: removeTheSpecifiedResourceFromStorage
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /v2/stores:
    get:
      summary: 'Get the validation rules that apply to the request.'
      operationId: getTheValidationRulesThatApplyToTheRequest
      description: ''
      parameters:
        -
          in: query
          name: query
          description: 'Must not be greater than 255 characters.'
          example: nkpdfqcmnovgtpfhuyyoc
          required: false
          schema:
            type: string
            description: 'Must not be greater than 255 characters.'
            example: nkpdfqcmnovgtpfhuyyoc
        -
          in: query
          name: store_group_id
          description: ''
          example: 12
          required: false
          schema:
            type: integer
            description: ''
            example: 12
        -
          in: query
          name: size
          description: 'Must not be greater than 100.'
          example: 22
          required: false
          schema:
            type: integer
            description: 'Must not be greater than 100.'
            example: 22
        -
          in: query
          name: sort_by
          description: ''
          example: molestias
          required: false
          schema:
            type: string
            description: ''
            example: molestias
      responses: {  }
      tags:
        - Endpoints
      security: []
    post:
      summary: 'Create Store'
      operationId: createStore
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Store
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: ''
                  example: repellendus
                domains:
                  type: array
                  description: "Store domains.\n\nMust match the regex /^(https?:\\/\\/)?([\\dA-Za-z\\.-]+)\\.([A-Za-z\\.]{2,6})([\\/\\w \\.-]*)*\\/?$/."
                  example:
                    - 'https://hEVZfx.Tcv-// ---./w./w-./'
                  items:
                    type: string
                categories:
                  type: array
                  description: 'Store categories IDs.'
                  example:
                    - 1
                  items:
                    type: string
                logo_url:
                  type: string
                  description: 'the logo url'
                  example: 'http://www.reinger.biz/'
                country:
                  type: string
                  description: 'Store locale.'
                  example: SE
                currency:
                  type: string
                  description: 'Store ISO currency code.'
                  example: EUR
                language:
                  type: string
                  description: ''
                  example: vel
                billing:
                  type: object
                  description: ''
                  example: []
                  properties:
                    company_name:
                      type: string
                      description: ''
                      example: illum
                    street:
                      type: string
                      description: ''
                      example: voluptas
                    postal_code:
                      type: string
                      description: ''
                      example: iusto
                    city:
                      type: string
                      description: ''
                      example: eum
                    vat_number:
                      type: string
                      description: ''
                      example: accusantium
              required:
                - name
                - logo_url
                - country
                - currency
      security: []
  '/v2/stores/{id}':
    get:
      summary: 'Display the specified resource.'
      operationId: displayTheSpecifiedResource
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
    put:
      summary: 'Update the specified resource in storage.'
      operationId: updateTheSpecifiedResourceInStorage
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
    delete:
      summary: 'Remove the specified resource from storage.'
      operationId: removeTheSpecifiedResourceFromStorage
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /v2/user-tags:
    get:
      summary: 'Get the validation rules that apply to the request.'
      operationId: getTheValidationRulesThatApplyToTheRequest
      description: ''
      parameters:
        -
          in: query
          name: name
          description: 'Must not be greater than 255 characters.'
          example: yancftqijszkdwuydlcad
          required: false
          schema:
            type: string
            description: 'Must not be greater than 255 characters.'
            example: yancftqijszkdwuydlcad
        -
          in: query
          name: store_id
          description: ''
          example: 13
          required: false
          schema:
            type: integer
            description: ''
            example: 13
        -
          in: query
          name: access_levels
          description: ''
          example: null
          required: false
          schema:
            type: object
            description: ''
            example: null
            properties: {  }
        -
          in: query
          name: size
          description: 'Must not be greater than 100.'
          example: 8
          required: false
          schema:
            type: integer
            description: 'Must not be greater than 100.'
            example: 8
        -
          in: query
          name: sort_by
          description: ''
          example: cupiditate
          required: false
          schema:
            type: string
            description: ''
            example: cupiditate
      responses: {  }
      tags:
        - Endpoints
      security: []
    post:
      summary: 'Store a newly created resource in storage.'
      operationId: storeANewlyCreatedResourceInStorage
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  '/v2/user-tags/{id}':
    get:
      summary: 'Display the specified resource.'
      operationId: displayTheSpecifiedResource
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
    put:
      summary: 'Update the specified resource in storage.'
      operationId: updateTheSpecifiedResourceInStorage
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
    delete:
      summary: 'Remove the specified resource from storage.'
      operationId: removeTheSpecifiedResourceFromStorage
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  '/admin/one-time-earnings/{id}':
    delete:
      summary: 'Delete One Time Earning'
      operationId: deleteOneTimeEarning
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  '/v2/stores/{store_id}/payment':
    put:
      summary: ''
      operationId: putV2StoresStore_idPayment
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /stats/tags:
    get:
      summary: "Get User Tags Stats\nGet Tags with TagClickViewV2(clicks and earnings) statistic"
      operationId: getUserTagsStatsGetTagsWithTagClickViewV2clicksAndEarningsStatistic
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  '/users/{id}/stores/stats':
    get:
      summary: ''
      operationId: getUsersIdStoresStats
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /getInformation:
    get:
      summary: ''
      operationId: getGetInformation
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /getEarningBetween:
    post:
      summary: ''
      operationId: postGetEarningBetween
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /sendFeedback:
    post:
      summary: ''
      operationId: postSendFeedback
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /setUserConfig:
    post:
      summary: ''
      operationId: postSetUserConfig
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /extraUserInfo:
    get:
      summary: "Get User Info\nUsed to get personal user info by authorized user"
      operationId: getUserInfoUsedToGetPersonalUserInfoByAuthorizedUser
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
    put:
      summary: 'Update User Information'
      operationId: updateUserInformation
      description: 'Update user data, company, phone, email and vat_no information etc.'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  id: '{userId}'
                  username: '{username}'
                  email: '{email}'
                  phone: null
                  created_at: '2020-12-09 14:51:45'
                  updated_at: '2020-12-09 14:51:45'
                  admin: 0
                  first_name: '{userName}'
                  surname: '{userSurname}'
                  country: '{country}'
                  city: '{city}'
                  address: '{address}'
                  postcode: '{postcode}'
                  tier_pricing_type: ''
                  config: '{}'
                  sign_user_agreement: '2019-08-14 08:34:12'
                  revenue_tier_id: 105
                  recruitment_utm: null
                  bank_info: null
                  social_media: []
                  own_paymentsystem: 0
                  businessType: INDIVIDUAL
                  SSNum: ''
                  bankType: CLEARING
                  is_suspended: false
                  is_verified: true
                  client:
                    id: '{id}'
                    client_id: '{clientId}'
                    name: 'Metapic SE'
                    created_at: '2014-04-24 16:12:29'
                    updated_at: '2020-04-28 06:58:23'
                    own_paymentsystem: 0
                    config: '{}'
                    user_mail_config: null
                    feed: live_se
                    locale: SE
                    revenue_model: blog_percentage
                    revenue_share: '0.00'
                    store_group_id: 1
                    default_revenue_tier: 76
                    default_verified_users: 0
                  company: null
                properties:
                  id:
                    type: string
                    example: '{userId}'
                  username:
                    type: string
                    example: '{username}'
                  email:
                    type: string
                    example: '{email}'
                  phone:
                    type: string
                    example: null
                  created_at:
                    type: string
                    example: '2020-12-09 14:51:45'
                  updated_at:
                    type: string
                    example: '2020-12-09 14:51:45'
                  admin:
                    type: integer
                    example: 0
                  first_name:
                    type: string
                    example: '{userName}'
                  surname:
                    type: string
                    example: '{userSurname}'
                  country:
                    type: string
                    example: '{country}'
                  city:
                    type: string
                    example: '{city}'
                  address:
                    type: string
                    example: '{address}'
                  postcode:
                    type: string
                    example: '{postcode}'
                  tier_pricing_type:
                    type: string
                    example: ''
                  config:
                    type: string
                    example: '{}'
                  sign_user_agreement:
                    type: string
                    example: '2019-08-14 08:34:12'
                  revenue_tier_id:
                    type: integer
                    example: 105
                  recruitment_utm:
                    type: string
                    example: null
                  bank_info:
                    type: string
                    example: null
                  social_media:
                    type: array
                    example: []
                  own_paymentsystem:
                    type: integer
                    example: 0
                  businessType:
                    type: string
                    example: INDIVIDUAL
                  SSNum:
                    type: string
                    example: ''
                  bankType:
                    type: string
                    example: CLEARING
                  is_suspended:
                    type: boolean
                    example: false
                  is_verified:
                    type: boolean
                    example: true
                  client:
                    type: object
                    properties:
                      id:
                        type: string
                        example: '{id}'
                      client_id:
                        type: string
                        example: '{clientId}'
                      name:
                        type: string
                        example: 'Metapic SE'
                      created_at:
                        type: string
                        example: '2014-04-24 16:12:29'
                      updated_at:
                        type: string
                        example: '2020-04-28 06:58:23'
                      own_paymentsystem:
                        type: integer
                        example: 0
                      config:
                        type: string
                        example: '{}'
                      user_mail_config:
                        type: string
                        example: null
                      feed:
                        type: string
                        example: live_se
                      locale:
                        type: string
                        example: SE
                      revenue_model:
                        type: string
                        example: blog_percentage
                      revenue_share:
                        type: string
                        example: '0.00'
                      store_group_id:
                        type: integer
                        example: 1
                      default_revenue_tier:
                        type: integer
                        example: 76
                      default_verified_users:
                        type: integer
                        example: 0
                  company:
                    type: string
                    example: null
      tags:
        - 'User Information'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                extraInfo:
                  type: string
                  description: ''
                  example: ratione
                code:
                  type: string
                  description: ''
                  example: nulla
              required:
                - extraInfo
                - code
  /getPaymentsForUser:
    get:
      summary: 'Get Payments for a user.'
      operationId: getPaymentsForAUser
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
  '/users/{userId}/payments/{id}/pdf':
    get:
      summary: 'Get the pdf for a payment'
      operationId: getThePdfForAPayment
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
    parameters:
      -
        in: path
        name: id
        description: 'the invoice id you want the pdf for'
        example: 19
        required: true
        schema:
          type: integer
  /v2/entrypoint:
    get:
      summary: "App's entrypoint"
      operationId: appsEntrypoint
      description: ''
      parameters:
        -
          in: query
          name: app
          description: ''
          example: creator
          required: true
          schema:
            type: string
            description: ''
            example: creator
            enum:
              - advertiser
              - admin
              - agency
              - creator
        -
          in: query
          name: store_id
          description: 'This field is required when <code>app</code> is <code>advertiser</code>.'
          example: 10
          required: false
          schema:
            type: integer
            description: 'This field is required when <code>app</code> is <code>advertiser</code>.'
            example: 10
      responses: {  }
      tags:
        - Entrypoint
  '/users/{userId}/link-list':
    get:
      summary: 'Get Link List'
      operationId: getLinkList
      description: 'Get link list for user with all links and design'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  id: 1
                  name: username
                  user_id: 1
                  view_type: 1
                  color: 1
                  created_at: '2022-03-30T09:33:44.000000Z'
                  updated_at: '2022-03-30T09:33:44.000000Z'
                  links:
                    -
                      id: 3
                      title: ''
                      tag_id: 123
                      link_list_id: 1
                      link_list_image_id: null
                      position: 1
                      created_at: '2022-03-30T09:33:44.000000Z'
                      updated_at: '2022-03-30T09:33:44.000000Z'
                    -
                      id: 4
                      title: ''
                      tag_id: 123
                      link_list_id: 1
                      link_list_image_id: null
                      position: 2
                      created_at: '2022-03-30T09:37:50.000000Z'
                      updated_at: '2022-03-30T09:37:50.000000Z'
                properties:
                  id:
                    type: integer
                    example: 1
                  name:
                    type: string
                    example: username
                  user_id:
                    type: integer
                    example: 1
                  view_type:
                    type: integer
                    example: 1
                  color:
                    type: integer
                    example: 1
                  created_at:
                    type: string
                    example: '2022-03-30T09:33:44.000000Z'
                  updated_at:
                    type: string
                    example: '2022-03-30T09:33:44.000000Z'
                  links:
                    type: array
                    example:
                      -
                        id: 3
                        title: ''
                        tag_id: 123
                        link_list_id: 1
                        link_list_image_id: null
                        position: 1
                        created_at: '2022-03-30T09:33:44.000000Z'
                        updated_at: '2022-03-30T09:33:44.000000Z'
                      -
                        id: 4
                        title: ''
                        tag_id: 123
                        link_list_id: 1
                        link_list_image_id: null
                        position: 2
                        created_at: '2022-03-30T09:37:50.000000Z'
                        updated_at: '2022-03-30T09:37:50.000000Z'
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                          example: 3
                        title:
                          type: string
                          example: ''
                        tag_id:
                          type: integer
                          example: 123
                        link_list_id:
                          type: integer
                          example: 1
                        link_list_image_id:
                          type: string
                          example: null
                        position:
                          type: integer
                          example: 1
                        created_at:
                          type: string
                          example: '2022-03-30T09:33:44.000000Z'
                        updated_at:
                          type: string
                          example: '2022-03-30T09:33:44.000000Z'
      tags:
        - 'Link List'
    post:
      summary: 'Update Link list view type and color'
      operationId: updateLinkListViewTypeAndColor
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  id: 1
                  name: username
                  user_id: 1
                  view_type: 1
                  color: 1
                  created_at: '2022-03-30T09:33:44.000000Z'
                  updated_at: '2022-03-30T09:33:44.000000Z'
                  links:
                    -
                      id: 3
                      title: ''
                      tag_id: 123
                      link_list_id: 1
                      link_list_image_id: null
                      position: 1
                      created_at: '2022-03-30T09:33:44.000000Z'
                      updated_at: '2022-03-30T09:33:44.000000Z'
                    -
                      id: 4
                      title: ''
                      tag_id: 123
                      link_list_id: 1
                      link_list_image_id: null
                      position: 2
                      created_at: '2022-03-30T09:37:50.000000Z'
                      updated_at: '2022-03-30T09:37:50.000000Z'
                properties:
                  id:
                    type: integer
                    example: 1
                  name:
                    type: string
                    example: username
                  user_id:
                    type: integer
                    example: 1
                  view_type:
                    type: integer
                    example: 1
                  color:
                    type: integer
                    example: 1
                  created_at:
                    type: string
                    example: '2022-03-30T09:33:44.000000Z'
                  updated_at:
                    type: string
                    example: '2022-03-30T09:33:44.000000Z'
                  links:
                    type: array
                    example:
                      -
                        id: 3
                        title: ''
                        tag_id: 123
                        link_list_id: 1
                        link_list_image_id: null
                        position: 1
                        created_at: '2022-03-30T09:33:44.000000Z'
                        updated_at: '2022-03-30T09:33:44.000000Z'
                      -
                        id: 4
                        title: ''
                        tag_id: 123
                        link_list_id: 1
                        link_list_image_id: null
                        position: 2
                        created_at: '2022-03-30T09:37:50.000000Z'
                        updated_at: '2022-03-30T09:37:50.000000Z'
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                          example: 3
                        title:
                          type: string
                          example: ''
                        tag_id:
                          type: integer
                          example: 123
                        link_list_id:
                          type: integer
                          example: 1
                        link_list_image_id:
                          type: string
                          example: null
                        position:
                          type: integer
                          example: 1
                        created_at:
                          type: string
                          example: '2022-03-30T09:33:44.000000Z'
                        updated_at:
                          type: string
                          example: '2022-03-30T09:33:44.000000Z'
      tags:
        - 'Link List'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                view_type:
                  type: string
                  description: required.
                  example: 1
                color:
                  type: string
                  description: required.
                  example: 1
                avatar:
                  type: string
                  description: ''
                  example: 'url | imageData'
              required:
                - view_type
                - color
    parameters:
      -
        in: path
        name: userId
        description: 'The User id.'
        example: 1
        required: true
        schema:
          type: integer
  '/users/{userId}/link':
    post:
      summary: 'Create Link in link list'
      operationId: createLinkInLinkList
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  id: 2
                  title: ''
                  tag_id: 123
                  link_list_id: 1
                  link_list_image_id: 1
                  position: 1
                  created_at: '2022-03-30T09:32:22.000000Z'
                  updated_at: '2022-03-30T09:32:22.000000Z'
                  link_list:
                    id: 1
                    name: username
                    user_id: 1
                    view_type: 1
                    color: 1
                    created_at: '2022-03-30T09:32:22.000000Z'
                    updated_at: '2022-03-30T09:32:22.000000Z'
                properties:
                  id:
                    type: integer
                    example: 2
                  title:
                    type: string
                    example: ''
                  tag_id:
                    type: integer
                    example: 123
                  link_list_id:
                    type: integer
                    example: 1
                  link_list_image_id:
                    type: integer
                    example: 1
                  position:
                    type: integer
                    example: 1
                  created_at:
                    type: string
                    example: '2022-03-30T09:32:22.000000Z'
                  updated_at:
                    type: string
                    example: '2022-03-30T09:32:22.000000Z'
                  link_list:
                    type: object
                    properties:
                      id:
                        type: integer
                        example: 1
                      name:
                        type: string
                        example: username
                      user_id:
                        type: integer
                        example: 1
                      view_type:
                        type: integer
                        example: 1
                      color:
                        type: integer
                        example: 1
                      created_at:
                        type: string
                        example: '2022-03-30T09:32:22.000000Z'
                      updated_at:
                        type: string
                        example: '2022-03-30T09:32:22.000000Z'
      tags:
        - 'Link List'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                title:
                  type: string
                  description: required.
                  example: '"Link Title"'
                tag_id:
                  type: string
                  description: ''
                  example: ipsum
                image:
                  type: string
                  description: required.
                  example: '"href or image data"'
              required:
                - title
                - tag_id
                - image
    parameters:
      -
        in: path
        name: userId
        description: 'The User id.'
        example: 1
        required: true
        schema:
          type: integer
  '/users/{userId}/link/{linkId}':
    post:
      summary: 'Update Link in user link list'
      operationId: updateLinkInUserLinkList
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  id: 2
                  title: ''
                  tag_id: 123
                  link_list_id: 1
                  link_list_image_id: 1
                  position: 1
                  created_at: '2022-03-30T09:32:22.000000Z'
                  updated_at: '2022-03-30T09:32:22.000000Z'
                  link_list:
                    id: 1
                    name: username
                    user_id: 1
                    view_type: 1
                    color: 1
                    created_at: '2022-03-30T09:32:22.000000Z'
                    updated_at: '2022-03-30T09:32:22.000000Z'
                properties:
                  id:
                    type: integer
                    example: 2
                  title:
                    type: string
                    example: ''
                  tag_id:
                    type: integer
                    example: 123
                  link_list_id:
                    type: integer
                    example: 1
                  link_list_image_id:
                    type: integer
                    example: 1
                  position:
                    type: integer
                    example: 1
                  created_at:
                    type: string
                    example: '2022-03-30T09:32:22.000000Z'
                  updated_at:
                    type: string
                    example: '2022-03-30T09:32:22.000000Z'
                  link_list:
                    type: object
                    properties:
                      id:
                        type: integer
                        example: 1
                      name:
                        type: string
                        example: username
                      user_id:
                        type: integer
                        example: 1
                      view_type:
                        type: integer
                        example: 1
                      color:
                        type: integer
                        example: 1
                      created_at:
                        type: string
                        example: '2022-03-30T09:32:22.000000Z'
                      updated_at:
                        type: string
                        example: '2022-03-30T09:32:22.000000Z'
      tags:
        - 'Link List'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                title:
                  type: string
                  description: required.
                  example: '"Link Title"'
                tag_id:
                  type: string
                  description: required.
                  example: 1
                image:
                  type: string
                  description: required.
                  example: '"href or image data"'
              required:
                - title
                - tag_id
                - image
    delete:
      summary: 'Remove Link from user link list'
      operationId: removeLinkFromUserLinkList
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  id: 2
                  title: ''
                  tag_id: 123
                  link_list_id: 1
                  link_list_image_id: 1
                  position: 1
                  created_at: '2022-03-30T09:32:22.000000Z'
                  updated_at: '2022-03-30T09:32:22.000000Z'
                  link_list:
                    id: 1
                    name: username
                    user_id: 1
                    view_type: 1
                    color: 1
                    created_at: '2022-03-30T09:32:22.000000Z'
                    updated_at: '2022-03-30T09:32:22.000000Z'
                properties:
                  id:
                    type: integer
                    example: 2
                  title:
                    type: string
                    example: ''
                  tag_id:
                    type: integer
                    example: 123
                  link_list_id:
                    type: integer
                    example: 1
                  link_list_image_id:
                    type: integer
                    example: 1
                  position:
                    type: integer
                    example: 1
                  created_at:
                    type: string
                    example: '2022-03-30T09:32:22.000000Z'
                  updated_at:
                    type: string
                    example: '2022-03-30T09:32:22.000000Z'
                  link_list:
                    type: object
                    properties:
                      id:
                        type: integer
                        example: 1
                      name:
                        type: string
                        example: username
                      user_id:
                        type: integer
                        example: 1
                      view_type:
                        type: integer
                        example: 1
                      color:
                        type: integer
                        example: 1
                      created_at:
                        type: string
                        example: '2022-03-30T09:32:22.000000Z'
                      updated_at:
                        type: string
                        example: '2022-03-30T09:32:22.000000Z'
      tags:
        - 'Link List'
    parameters:
      -
        in: path
        name: userId
        description: 'The User id.'
        example: 1
        required: true
        schema:
          type: integer
      -
        in: path
        name: link_id
        description: 'The LinkListRow id.'
        example: 5
        required: true
        schema:
          type: integer
  '/users/{userId}/change-links-positions':
    post:
      summary: 'Change Links positions in link list'
      operationId: changeLinksPositionsInLinkList
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                example:
                  -
                    id: 3
                    title: ''
                    tag_id: 123
                    link_list_id: 1
                    link_list_image_id: null
                    position: 1
                    created_at: '2022-03-30T09:33:44.000000Z'
                    updated_at: '2022-03-30T09:33:44.000000Z'
                  -
                    id: 4
                    title: ''
                    tag_id: 123
                    link_list_id: 1
                    link_list_image_id: null
                    position: 2
                    created_at: '2022-03-30T09:37:50.000000Z'
                    updated_at: '2022-03-30T09:37:50.000000Z'
                  -
                    id: 5
                    title: ''
                    tag_id: 123
                    link_list_id: 1
                    link_list_image_id: null
                    position: 4
                    created_at: '2022-03-30T09:38:10.000000Z'
                    updated_at: '2022-03-30T09:38:10.000000Z'
                  -
                    id: 6
                    title: ''
                    tag_id: 123
                    link_list_id: 1
                    link_list_image_id: null
                    position: 3
                    created_at: '2022-03-30T09:39:25.000000Z'
                    updated_at: '2022-03-30T09:39:25.000000Z'
                  -
                    id: 7
                    title: ''
                    tag_id: 123
                    link_list_id: 1
                    link_list_image_id: 1
                    position: 6
                    created_at: '2022-03-30T09:40:39.000000Z'
                    updated_at: '2022-03-30T09:40:53.000000Z'
                  -
                    id: 8
                    title: ''
                    tag_id: 123
                    link_list_id: 1
                    link_list_image_id: null
                    position: 5
                    created_at: '2022-03-30T09:50:12.000000Z'
                    updated_at: '2022-03-30T09:50:12.000000Z'
                  -
                    id: 9
                    title: ''
                    tag_id: 123
                    link_list_id: 1
                    link_list_image_id: null
                    position: 7
                    created_at: '2022-03-30T09:51:13.000000Z'
                    updated_at: '2022-03-30T09:51:13.000000Z'
                  -
                    id: 10
                    title: ''
                    tag_id: 123
                    link_list_id: 1
                    link_list_image_id: null
                    position: 8
                    created_at: '2022-03-30T09:52:42.000000Z'
                    updated_at: '2022-03-30T09:52:42.000000Z'
                  -
                    id: 11
                    title: ''
                    tag_id: 123
                    link_list_id: 1
                    link_list_image_id: 2
                    position: 9
                    created_at: '2022-03-30T09:55:14.000000Z'
                    updated_at: '2022-03-30T09:55:16.000000Z'
                  -
                    id: 12
                    title: ''
                    tag_id: 123
                    link_list_id: 1
                    link_list_image_id: 3
                    position: 10
                    created_at: '2022-03-30T10:05:32.000000Z'
                    updated_at: '2022-03-30T10:05:33.000000Z'
      tags:
        - 'Link List'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                links:
                  type: string
                  description: 'Array of all links in link list with their new positions.'
                  example:
                    - dolore
              required:
                - links
    parameters:
      -
        in: path
        name: userId
        description: 'The User id.'
        example: 1
        required: true
        schema:
          type: integer
  '/users/{userId}/link-list-deep-link':
    post:
      summary: 'Get Deeplink data'
      operationId: getDeeplinkData
      description: 'Get deeplink info with og image'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  id: 2332673
                  x: null
                  'y': null
                  width: 0.1
                  height: 0.1
                  link: 'https://clk.tradedoubler.com/click?p(297880)a(2978484)url(https%3A%2F%2Fwww.aimn.com%2Fproducts%2Fargyle-knit-sweater)'
                  image_id: null
                  text: Aimn
                  type: tradedoubler_SE
                  meta_info: '{"original_url":"https:\/\/www.aimn.com\/products\/argyle-knit-sweater"}'
                  user_id: 60011
                  created_at: '2022-04-27 00:23:34'
                  updated_at: '2022-04-27 00:23:34'
                  product_id: null
                  out_of_stock: 0
                  deleted_at: null
                  ip: 127.0.0.1
                  tier_pricing_id: null
                  created_as: autoTagging
                  affiliate_link: 'https://clk.tradedoubler.com/click?p(297880)a(2978484)url(https%3A%2F%2Fwww.aimn.com%2Fproducts%2Fargyle-knit-sweater)'
                  original_url: 'https://www.aimn.com/products/argyle-knit-sweater'
                  store_id: 5319
                  store: Aimn
                  image_url: 'http://cdn.shopify.com/s/files/1/0090/5222/5616/products/63dab4030ecb1215e534f4c6891e5f8417783f0f4d4321d5d9105327022f2885.jpg?v=1649594101'
                  mtpc_url: 'https://c.mtpc.se/tags/link/2332673'
                properties:
                  id:
                    type: integer
                    example: 2332673
                  x:
                    type: string
                    example: null
                  'y':
                    type: string
                    example: null
                  width:
                    type: number
                    example: 0.1
                  height:
                    type: number
                    example: 0.1
                  link:
                    type: string
                    example: 'https://clk.tradedoubler.com/click?p(297880)a(2978484)url(https%3A%2F%2Fwww.aimn.com%2Fproducts%2Fargyle-knit-sweater)'
                  image_id:
                    type: string
                    example: null
                  text:
                    type: string
                    example: Aimn
                  type:
                    type: string
                    example: tradedoubler_SE
                  meta_info:
                    type: string
                    example: '{"original_url":"https:\/\/www.aimn.com\/products\/argyle-knit-sweater"}'
                  user_id:
                    type: integer
                    example: 60011
                  created_at:
                    type: string
                    example: '2022-04-27 00:23:34'
                  updated_at:
                    type: string
                    example: '2022-04-27 00:23:34'
                  product_id:
                    type: string
                    example: null
                  out_of_stock:
                    type: integer
                    example: 0
                  deleted_at:
                    type: string
                    example: null
                  ip:
                    type: string
                    example: 127.0.0.1
                  tier_pricing_id:
                    type: string
                    example: null
                  created_as:
                    type: string
                    example: autoTagging
                  affiliate_link:
                    type: string
                    example: 'https://clk.tradedoubler.com/click?p(297880)a(2978484)url(https%3A%2F%2Fwww.aimn.com%2Fproducts%2Fargyle-knit-sweater)'
                  original_url:
                    type: string
                    example: 'https://www.aimn.com/products/argyle-knit-sweater'
                  store_id:
                    type: integer
                    example: 5319
                  store:
                    type: string
                    example: Aimn
                  image_url:
                    type: string
                    example: 'http://cdn.shopify.com/s/files/1/0090/5222/5616/products/63dab4030ecb1215e534f4c6891e5f8417783f0f4d4321d5d9105327022f2885.jpg?v=1649594101'
                  mtpc_url:
                    type: string
                    example: 'https://c.mtpc.se/tags/link/2332673'
      tags:
        - 'Link List'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                url:
                  type: string
                  description: ''
                  example: 'https://www.aimn.com/products/argyle-knit-sweater'
              required:
                - url
    parameters:
      -
        in: path
        name: userId
        description: 'The User id.'
        example: 1
        required: true
        schema:
          type: integer
  '/v2/offer-users/{offer_user_id}/comments':
    post:
      summary: 'Add OfferUser comment'
      operationId: addOfferUserComment
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  id: 12
                  user_id: 40185
                  user_full_name: 'Mark mark'
                  comment_text: 'Test new 234'
                  created_at: '2024-04-24T13:03:41'
                  updated_at: '2024-04-24T13:03:41'
                properties:
                  id:
                    type: integer
                    example: 12
                  user_id:
                    type: integer
                    example: 40185
                  user_full_name:
                    type: string
                    example: 'Mark mark'
                  comment_text:
                    type: string
                    example: 'Test new 234'
                  created_at:
                    type: string
                    example: '2024-04-24T13:03:41'
                  updated_at:
                    type: string
                    example: '2024-04-24T13:03:41'
      tags:
        - 'Offer Comments V2'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                comment:
                  type: string
                  description: 'Must not be greater than 15000 characters.'
                  example: t
              required:
                - comment
    parameters:
      -
        in: path
        name: offer_user_id
        description: 'The ID of the offerUser.'
        example: '1'
        required: true
        schema:
          type: string
  '/v2/offer-users/{offer_user_id}/comments/{id}':
    put:
      summary: 'Update OfferUser comment'
      operationId: updateOfferUserComment
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  id: 12
                  user_id: 40185
                  user_full_name: 'Mark mark'
                  comment_text: 'Test new 234'
                  created_at: '2024-04-24T13:03:41'
                  updated_at: '2024-04-24T13:03:41'
                properties:
                  id:
                    type: integer
                    example: 12
                  user_id:
                    type: integer
                    example: 40185
                  user_full_name:
                    type: string
                    example: 'Mark mark'
                  comment_text:
                    type: string
                    example: 'Test new 234'
                  created_at:
                    type: string
                    example: '2024-04-24T13:03:41'
                  updated_at:
                    type: string
                    example: '2024-04-24T13:03:41'
      tags:
        - 'Offer Comments V2'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                comment:
                  type: string
                  description: 'Must not be greater than 15000 characters.'
                  example: xudbsotmncnqpgtuumxaacsax
              required:
                - comment
    delete:
      summary: 'Delete OfferUser comment'
      operationId: deleteOfferUserComment
      description: ''
      parameters: []
      responses: {  }
      tags:
        - 'Offer Comments V2'
    parameters:
      -
        in: path
        name: offer_user_id
        description: 'The ID of the offerUser.'
        example: '1'
        required: true
        schema:
          type: string
      -
        in: path
        name: offer_comment_id
        description: 'The ID of the comment.'
        example: '1'
        required: true
        schema:
          type: string
  '/v2/offer-users/{offerUser_id}/activities':
    get:
      summary: 'Get the list of activities on OfferUser card'
      operationId: getTheListOfActivitiesOnOfferUserCard
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  data:
                    -
                      type: COMMENT
                      actor_id: 34985
                      actor_display_name: '@username'
                      comment_id: 1
                      comment_text: 'Qui delectus provident labore iusto aut ad aperiam. Vitae recusandae quis laborum culpa placeat animi quibusdam. Cum omnis quas velit rerum blanditiis voluptas modi provident.'
                      created_at: '2024-04-16T22:39:26'
                    -
                      type: COMMENT
                      actor_id: 40185
                      actor_display_name: Mark
                      comment_id: 1
                      comment_text: 'Cum a maxime sit rem tenetur. Ad in quibusdam suscipit est eos aut. Ex eligendi necessitatibus tempora distinctio.'
                      created_at: '2024-04-16T22:39:26'
                      updated_at: '2024-04-16T22:39:26'
                    -
                      type: DELETED_COMMENT
                      created_at: '2024-04-16CEST22:15:41'
                    -
                      type: STATUS_CHANGE
                      actor_id: 40185
                      actor_display_name: Admin
                      old_status: suggestion
                      new_status: denied
                      created_at: '2024-04-16T22:39:26'
                    -
                      type: STATUS_CHANGE
                      old_status: applied
                      new_status: have_posted
                      created_at: '2024-04-16T22:42:35'
                    -
                      type: STATUS_CHANGE
                      actor_id: 34985
                      actor_display_name: '@username'
                      old_status: applied
                      new_status: accepted
                      created_at: '2024-04-16T22:44:59'
                  links:
                    first: '/v2/offer-users/48798908/activities?page=1'
                    last: '/v2/offer-users/48798908/activities?page=10'
                    prev: null
                    next: '/v2/offer-users/48798908/activities?page=2'
                  meta:
                    current_page: 1
                    from: 1
                    last_page: 10
                    links: []
                    path: /v2/offer-users/48798908/activities
                    per_page: 20
                    to: 20
                    total: 200
                properties:
                  data:
                    type: array
                    example:
                      -
                        type: COMMENT
                        actor_id: 34985
                        actor_display_name: '@username'
                        comment_id: 1
                        comment_text: 'Qui delectus provident labore iusto aut ad aperiam. Vitae recusandae quis laborum culpa placeat animi quibusdam. Cum omnis quas velit rerum blanditiis voluptas modi provident.'
                        created_at: '2024-04-16T22:39:26'
                      -
                        type: COMMENT
                        actor_id: 40185
                        actor_display_name: Mark
                        comment_id: 1
                        comment_text: 'Cum a maxime sit rem tenetur. Ad in quibusdam suscipit est eos aut. Ex eligendi necessitatibus tempora distinctio.'
                        created_at: '2024-04-16T22:39:26'
                        updated_at: '2024-04-16T22:39:26'
                      -
                        type: DELETED_COMMENT
                        created_at: '2024-04-16CEST22:15:41'
                      -
                        type: STATUS_CHANGE
                        actor_id: 40185
                        actor_display_name: Admin
                        old_status: suggestion
                        new_status: denied
                        created_at: '2024-04-16T22:39:26'
                      -
                        type: STATUS_CHANGE
                        old_status: applied
                        new_status: have_posted
                        created_at: '2024-04-16T22:42:35'
                      -
                        type: STATUS_CHANGE
                        actor_id: 34985
                        actor_display_name: '@username'
                        old_status: applied
                        new_status: accepted
                        created_at: '2024-04-16T22:44:59'
                    items:
                      type: object
                      properties:
                        type:
                          type: string
                          example: COMMENT
                        actor_id:
                          type: integer
                          example: 34985
                        actor_display_name:
                          type: string
                          example: '@username'
                        comment_id:
                          type: integer
                          example: 1
                        comment_text:
                          type: string
                          example: 'Qui delectus provident labore iusto aut ad aperiam. Vitae recusandae quis laborum culpa placeat animi quibusdam. Cum omnis quas velit rerum blanditiis voluptas modi provident.'
                        created_at:
                          type: string
                          example: '2024-04-16T22:39:26'
                  links:
                    type: object
                    properties:
                      first:
                        type: string
                        example: '/v2/offer-users/48798908/activities?page=1'
                      last:
                        type: string
                        example: '/v2/offer-users/48798908/activities?page=10'
                      prev:
                        type: string
                        example: null
                      next:
                        type: string
                        example: '/v2/offer-users/48798908/activities?page=2'
                  meta:
                    type: object
                    properties:
                      current_page:
                        type: integer
                        example: 1
                      from:
                        type: integer
                        example: 1
                      last_page:
                        type: integer
                        example: 10
                      links:
                        type: array
                        example: []
                      path:
                        type: string
                        example: /v2/offer-users/48798908/activities
                      per_page:
                        type: integer
                        example: 20
                      to:
                        type: integer
                        example: 20
                      total:
                        type: integer
                        example: 200
      tags:
        - 'Offer User Activity'
  '/v2/offers/{offer_id}':
    get:
      summary: 'Get offer'
      operationId: getOffer
      description: 'Return offer details.'
      parameters: []
      responses: {  }
      tags:
        - Offers
  '/v2/offers/{offer_id}/uploads':
    post:
      summary: 'Upload Offer Image (v2)'
      operationId: uploadOfferImagev2
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Offers
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                default:
                  type: string
                  description: "Offer image.\n\nMust not be greater than 10240 characters."
                  example: image.png
              required:
                - default
      security: []
  '/v2/offers/{offer_id}/users/{id}':
    get:
      summary: 'Checks if user has been added to the offer.'
      operationId: checksIfUserHasBeenAddedToTheOffer
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Offers
      security: []
  '/v2/offers/{offer_id}/participants':
    get:
      summary: 'List participants in a campaign'
      operationId: listParticipantsInACampaign
      description: ''
      parameters:
        -
          in: query
          name: query
          description: "Filters the results that contain a text match for this term.\n A match may happen on either:\n * social media identifier\n * email\n * user id\n * user's username\n * user tag\n\nPartial matches are supported. For example, 'el' will match 'hello'.\n\nMust not be greater than 128 characters."
          example: fuga
          required: false
          schema:
            type: string
            description: "Filters the results that contain a text match for this term.\n A match may happen on either:\n * social media identifier\n * email\n * user id\n * user's username\n * user tag\n\nPartial matches are supported. For example, 'el' will match 'hello'.\n\nMust not be greater than 128 characters."
            example: fuga
        -
          in: query
          name: status
          description: ''
          example: product_sent
          required: false
          schema:
            type: string
            description: ''
            example: product_sent
            enum:
              - open
              - applied
              - denied
              - accepted
              - store_denied
              - done
              - suggestion
              - second_prio
              - have_posted
              - have_received
              - product_sent
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  data:
                    -
                      id: null
                      offer_id: null
                      user_id: null
                      display_name: null
                      clicks: null
                      status: null
                      todo: null
                      payment_amount: null
                    -
                      id: null
                      offer_id: null
                      user_id: null
                      display_name: null
                      clicks: null
                      status: null
                      todo: null
                      payment_amount: null
                  links:
                    first: '/?page=1'
                    last: '/?page=1'
                    prev: null
                    next: null
                  meta:
                    current_page: 1
                    from: 1
                    last_page: 1
                    links:
                      -
                        url: null
                        label: '&laquo; Previous'
                        active: false
                      -
                        url: '/?page=1'
                        label: '1'
                        active: true
                      -
                        url: null
                        label: 'Next &raquo;'
                        active: false
                    path: /
                    per_page: 10
                    to: 2
                    total: 2
                properties:
                  data:
                    type: array
                    example:
                      -
                        id: null
                        offer_id: null
                        user_id: null
                        display_name: null
                        clicks: null
                        status: null
                        todo: null
                        payment_amount: null
                      -
                        id: null
                        offer_id: null
                        user_id: null
                        display_name: null
                        clicks: null
                        status: null
                        todo: null
                        payment_amount: null
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          example: null
                        offer_id:
                          type: string
                          example: null
                        user_id:
                          type: string
                          example: null
                        display_name:
                          type: string
                          example: null
                        clicks:
                          type: string
                          example: null
                        status:
                          type: string
                          example: null
                        todo:
                          type: string
                          example: null
                        payment_amount:
                          type: string
                          example: null
                  links:
                    type: object
                    properties:
                      first:
                        type: string
                        example: '/?page=1'
                      last:
                        type: string
                        example: '/?page=1'
                      prev:
                        type: string
                        example: null
                      next:
                        type: string
                        example: null
                  meta:
                    type: object
                    properties:
                      current_page:
                        type: integer
                        example: 1
                      from:
                        type: integer
                        example: 1
                      last_page:
                        type: integer
                        example: 1
                      links:
                        type: array
                        example:
                          -
                            url: null
                            label: '&laquo; Previous'
                            active: false
                          -
                            url: '/?page=1'
                            label: '1'
                            active: true
                          -
                            url: null
                            label: 'Next &raquo;'
                            active: false
                        items:
                          type: object
                          properties:
                            url:
                              type: string
                              example: null
                            label:
                              type: string
                              example: '&laquo; Previous'
                            active:
                              type: boolean
                              example: false
                      path:
                        type: string
                        example: /
                      per_page:
                        type: integer
                        example: 10
                      to:
                        type: integer
                        example: 2
                      total:
                        type: integer
                        example: 2
      tags:
        - Offers
    post:
      summary: 'Store a newly created resource in storage.'
      operationId: storeANewlyCreatedResourceInStorage
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Offers
      security: []
  '/v2/offers/{offer_id}/participants/{id}':
    get:
      summary: 'Get participant details'
      operationId: getParticipantDetails
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  id: null
                  offer_id: null
                  user_id: null
                  display_name: null
                  clicks: null
                  status: null
                  todo: null
                  payment_amount: null
                properties:
                  id:
                    type: string
                    example: null
                    description: 'The unique id of this participant'
                  offer_id:
                    type: string
                    example: null
                    description: 'The id of the offer for this participant'
                  user_id:
                    type: string
                    example: null
                    description: 'The id of the user, if Metapic user is linked to the participant'
                  display_name:
                    type: string
                    example: null
                    description: 'The name of the participant'
                  clicks:
                    type: string
                    example: null
                    description: 'The number of clicks left for this participant'
                  status:
                    type: string
                    example: null
                    description: 'The status of this campaign participant'
                  todo:
                    type: string
                    example: null
                    description: 'List of todo items'
                  payment_amount:
                    type: string
                    example: null
      tags:
        - Offers
    put:
      summary: 'Update the specified resource in storage.'
      operationId: updateTheSpecifiedResourceInStorage
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Offers
      security: []
    delete:
      summary: 'Remove the specified resource from storage.'
      operationId: removeTheSpecifiedResourceFromStorage
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Offers
      security: []
  '/v2/offers/{offer_id}/participants/{participant_id}/update-status':
    patch:
      summary: 'Update participant status'
      operationId: updateParticipantStatus
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  id: '{id}'
                  offer_id: '{offerId}'
                  user_id: '{userId}'
                  clicks: 0
                  status: accepted
                  created_at: '2021-05-25 13:02:06'
                  updated_at: '2021-05-27 11:21:23'
                properties:
                  id:
                    type: string
                    example: '{id}'
                    description: 'The unique id of this participant'
                  offer_id:
                    type: string
                    example: '{offerId}'
                    description: 'The id of the offer for this participant'
                  user_id:
                    type: string
                    example: '{userId}'
                    description: 'The id of the user, if Metapic user is linked to the participant'
                  clicks:
                    type: integer
                    example: 0
                    description: 'The number of clicks left for this participant'
                  status:
                    type: string
                    example: accepted
                    description: 'The status of this campaign participant'
                  created_at:
                    type: string
                    example: '2021-05-25 13:02:06'
                  updated_at:
                    type: string
                    example: '2021-05-27 11:21:23'
      tags:
        - Offers
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                status:
                  type: string
                  description: ''
                  example: applied
                  enum:
                    - open
                    - applied
                    - denied
                    - accepted
                    - store_denied
                    - done
                    - suggestion
                    - second_prio
                    - have_posted
                    - have_received
                    - product_sent
              required:
                - status
  '/v2/offer-by-token/{offer_token}':
    get:
      summary: 'Get offer'
      operationId: getOffer
      description: 'Return offer details.'
      parameters: []
      responses: {  }
      tags:
        - Offers
  '/v2/offer-by-token/{offer_token}/users/{userId}':
    get:
      summary: 'Checks if user has been added to the offer.'
      operationId: checksIfUserHasBeenAddedToTheOffer
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Offers
      security: []
  '/v2/offer-by-token/{offer_token}/users/{user_id}/join':
    post:
      summary: 'Mark user as having joined the campaign'
      operationId: markUserAsHavingJoinedTheCampaign
      description: 'This can only be performed by the user themselves.'
      parameters: []
      responses: {  }
      tags:
        - Offers
  '/users/{userId}/offers':
    get:
      summary: 'Get Offers'
      operationId: getOffers
      description: 'Get Influencer Offers List'
      parameters:
        -
          in: query
          name: status
          description: 'Offer status.'
          example: open
          required: false
          schema:
            type: string
            description: 'Offer status.'
            example: open
            enum:
              - open
              - applied
              - denied
              - accepted
              - store_denied
              - done
              - suggestion
              - second_prio
              - have_posted
              - have_received
              - product_sent
        -
          in: query
          name: name
          description: "Offer name.\n\nMust not be greater than 128 characters."
          example: testOffer
          required: false
          schema:
            type: string
            description: "Offer name.\n\nMust not be greater than 128 characters."
            example: testOffer
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  current_page: 1
                  data:
                    -
                      id: '{offerId}'
                      store_id: '{storeId}'
                      name: '{offerName}'
                      from: null
                      to: null
                      cpc: null
                      instagram_cpc: 715
                      invoice_cpc: null
                      invoice_instagram_cpc: null
                      invoice_instagram_cpa: null
                      invoice_cpa: null
                      cpa: null
                      instagram_cpa: null
                      offer_campaign_text: null
                      offer_campaign_title: null
                      status: accepted
                      feed_name: '{storeName}'
                      logo_url: '{storeLogoUrl}'
                      offer_influencer_text: null
                      todo:
                        -
                          key: 'First task'
                          Value: false
                        -
                          key: 'Second task'
                          Value: false
                      traffic_sources_costs:
                        -
                          id: 9333
                          offer_id: '{offerId}'
                          source: 0
                          cpc: null
                          invoice_cpc: null
                          cpa: 0
                          invoice_cpa: null
                          user_revenue: null
                          client_revenue: null
                          created_at: '2023-07-19 13:13:03'
                          updated_at: '2023-07-19 13:13:03'
                        -
                          id: 9334
                          offer_id: '{offerId}'
                          source: 1
                          cpc: 715
                          invoice_cpc: null
                          cpa: 0
                          invoice_cpa: null
                          user_revenue: null
                          client_revenue: null
                          created_at: '2023-07-19 13:13:04'
                          updated_at: '2023-07-19 13:13:04'
                  first_page_url: 'http://metapic-api.loc/users/{userId}/offers?page=1'
                  from: 1
                  last_page: 1
                  last_page_url: 'http://metapic-api.loc/users/{userId}/offers?page=1'
                  links:
                    -
                      url: null
                      label: '&laquo; Previous'
                      active: false
                    -
                      url: 'http://metapic-api.loc/users/{userId}/offers?page=1'
                      label: '1'
                      active: true
                    -
                      url: null
                      label: 'Next &raquo;'
                      active: false
                  next_page_url: null
                  path: 'http://metapic-api.loc/users/{userId}/offers'
                  per_page: 15
                  prev_page_url: null
                  to: 1
                  total: 1
                properties:
                  current_page:
                    type: integer
                    example: 1
                  data:
                    type: array
                    example:
                      -
                        id: '{offerId}'
                        store_id: '{storeId}'
                        name: '{offerName}'
                        from: null
                        to: null
                        cpc: null
                        instagram_cpc: 715
                        invoice_cpc: null
                        invoice_instagram_cpc: null
                        invoice_instagram_cpa: null
                        invoice_cpa: null
                        cpa: null
                        instagram_cpa: null
                        offer_campaign_text: null
                        offer_campaign_title: null
                        status: accepted
                        feed_name: '{storeName}'
                        logo_url: '{storeLogoUrl}'
                        offer_influencer_text: null
                        todo:
                          -
                            key: 'First task'
                            Value: false
                          -
                            key: 'Second task'
                            Value: false
                        traffic_sources_costs:
                          -
                            id: 9333
                            offer_id: '{offerId}'
                            source: 0
                            cpc: null
                            invoice_cpc: null
                            cpa: 0
                            invoice_cpa: null
                            user_revenue: null
                            client_revenue: null
                            created_at: '2023-07-19 13:13:03'
                            updated_at: '2023-07-19 13:13:03'
                          -
                            id: 9334
                            offer_id: '{offerId}'
                            source: 1
                            cpc: 715
                            invoice_cpc: null
                            cpa: 0
                            invoice_cpa: null
                            user_revenue: null
                            client_revenue: null
                            created_at: '2023-07-19 13:13:04'
                            updated_at: '2023-07-19 13:13:04'
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          example: '{offerId}'
                        store_id:
                          type: string
                          example: '{storeId}'
                        name:
                          type: string
                          example: '{offerName}'
                        from:
                          type: string
                          example: null
                        to:
                          type: string
                          example: null
                        cpc:
                          type: string
                          example: null
                        instagram_cpc:
                          type: integer
                          example: 715
                        invoice_cpc:
                          type: string
                          example: null
                        invoice_instagram_cpc:
                          type: string
                          example: null
                        invoice_instagram_cpa:
                          type: string
                          example: null
                        invoice_cpa:
                          type: string
                          example: null
                        cpa:
                          type: string
                          example: null
                        instagram_cpa:
                          type: string
                          example: null
                        offer_campaign_text:
                          type: string
                          example: null
                        offer_campaign_title:
                          type: string
                          example: null
                        status:
                          type: string
                          example: accepted
                        feed_name:
                          type: string
                          example: '{storeName}'
                        logo_url:
                          type: string
                          example: '{storeLogoUrl}'
                        offer_influencer_text:
                          type: string
                          example: null
                        todo:
                          type: array
                          example:
                            -
                              key: 'First task'
                              Value: false
                            -
                              key: 'Second task'
                              Value: false
                          items:
                            type: object
                            properties:
                              key:
                                type: string
                                example: 'First task'
                              Value:
                                type: boolean
                                example: false
                        traffic_sources_costs:
                          type: array
                          example:
                            -
                              id: 9333
                              offer_id: '{offerId}'
                              source: 0
                              cpc: null
                              invoice_cpc: null
                              cpa: 0
                              invoice_cpa: null
                              user_revenue: null
                              client_revenue: null
                              created_at: '2023-07-19 13:13:03'
                              updated_at: '2023-07-19 13:13:03'
                            -
                              id: 9334
                              offer_id: '{offerId}'
                              source: 1
                              cpc: 715
                              invoice_cpc: null
                              cpa: 0
                              invoice_cpa: null
                              user_revenue: null
                              client_revenue: null
                              created_at: '2023-07-19 13:13:04'
                              updated_at: '2023-07-19 13:13:04'
                          items:
                            type: object
                            properties:
                              id:
                                type: integer
                                example: 9333
                              offer_id:
                                type: string
                                example: '{offerId}'
                              source:
                                type: integer
                                example: 0
                              cpc:
                                type: string
                                example: null
                              invoice_cpc:
                                type: string
                                example: null
                              cpa:
                                type: integer
                                example: 0
                              invoice_cpa:
                                type: string
                                example: null
                              user_revenue:
                                type: string
                                example: null
                              client_revenue:
                                type: string
                                example: null
                              created_at:
                                type: string
                                example: '2023-07-19 13:13:03'
                              updated_at:
                                type: string
                                example: '2023-07-19 13:13:03'
                  first_page_url:
                    type: string
                    example: 'http://metapic-api.loc/users/{userId}/offers?page=1'
                  from:
                    type: integer
                    example: 1
                  last_page:
                    type: integer
                    example: 1
                  last_page_url:
                    type: string
                    example: 'http://metapic-api.loc/users/{userId}/offers?page=1'
                  links:
                    type: array
                    example:
                      -
                        url: null
                        label: '&laquo; Previous'
                        active: false
                      -
                        url: 'http://metapic-api.loc/users/{userId}/offers?page=1'
                        label: '1'
                        active: true
                      -
                        url: null
                        label: 'Next &raquo;'
                        active: false
                    items:
                      type: object
                      properties:
                        url:
                          type: string
                          example: null
                        label:
                          type: string
                          example: '&laquo; Previous'
                        active:
                          type: boolean
                          example: false
                  next_page_url:
                    type: string
                    example: null
                  path:
                    type: string
                    example: 'http://metapic-api.loc/users/{userId}/offers'
                  per_page:
                    type: integer
                    example: 15
                  prev_page_url:
                    type: string
                    example: null
                  to:
                    type: integer
                    example: 1
                  total:
                    type: integer
                    example: 1
      tags:
        - Offers
    parameters:
      -
        in: path
        name: userId
        description: 'The User ID.'
        example: 123
        required: true
        schema:
          type: integer
  '/users/{userId}/offers/{offerId}/apply':
    patch:
      summary: 'Apply Offer'
      operationId: applyOffer
      description: 'Apply offer by Influencer'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  id: '{id}'
                  offer_id: '{offerId}'
                  user_id: '{userId}'
                  clicks: 0
                  status: accepted
                  created_at: '2021-05-25 13:02:06'
                  updated_at: '2021-05-27 11:21:23'
                properties:
                  id:
                    type: string
                    example: '{id}'
                  offer_id:
                    type: string
                    example: '{offerId}'
                  user_id:
                    type: string
                    example: '{userId}'
                  clicks:
                    type: integer
                    example: 0
                  status:
                    type: string
                    example: accepted
                  created_at:
                    type: string
                    example: '2021-05-25 13:02:06'
                  updated_at:
                    type: string
                    example: '2021-05-27 11:21:23'
      tags:
        - Offers
    parameters:
      -
        in: path
        name: userId
        description: 'The User ID.'
        example: 123
        required: true
        schema:
          type: integer
      -
        in: path
        name: offerId
        description: 'The Offer ID.'
        example: 123
        required: true
        schema:
          type: integer
  '/users/{userId}/offers/{offerId}/deny':
    patch:
      summary: 'Deny Offer'
      operationId: denyOffer
      description: 'Deny offer by Influencer'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  id: '{id}'
                  offer_id: '{offerId}'
                  user_id: '{userId}'
                  clicks: 0
                  status: accepted
                  created_at: '2021-05-25 13:02:06'
                  updated_at: '2021-05-27 11:21:23'
                properties:
                  id:
                    type: string
                    example: '{id}'
                  offer_id:
                    type: string
                    example: '{offerId}'
                  user_id:
                    type: string
                    example: '{userId}'
                  clicks:
                    type: integer
                    example: 0
                  status:
                    type: string
                    example: accepted
                  created_at:
                    type: string
                    example: '2021-05-25 13:02:06'
                  updated_at:
                    type: string
                    example: '2021-05-27 11:21:23'
      tags:
        - Offers
    parameters:
      -
        in: path
        name: userId
        description: 'The User ID.'
        example: 123
        required: true
        schema:
          type: integer
      -
        in: path
        name: offerId
        description: 'The Offer ID.'
        example: 123
        required: true
        schema:
          type: integer
  '/users/{userId}/offers/{offerId}/revert':
    patch:
      summary: 'Revert Offer'
      operationId: revertOffer
      description: 'Revert Offer to open state by influencer'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  id: '{id}'
                  offer_id: '{offerId}'
                  user_id: '{userId}'
                  clicks: 0
                  status: accepted
                  created_at: '2021-05-25 13:02:06'
                  updated_at: '2021-05-27 11:21:23'
                properties:
                  id:
                    type: string
                    example: '{id}'
                  offer_id:
                    type: string
                    example: '{offerId}'
                  user_id:
                    type: string
                    example: '{userId}'
                  clicks:
                    type: integer
                    example: 0
                  status:
                    type: string
                    example: accepted
                  created_at:
                    type: string
                    example: '2021-05-25 13:02:06'
                  updated_at:
                    type: string
                    example: '2021-05-27 11:21:23'
      tags:
        - Offers
    parameters:
      -
        in: path
        name: userId
        description: 'The User ID.'
        example: 123
        required: true
        schema:
          type: integer
      -
        in: path
        name: offerId
        description: 'The Offer ID.'
        example: 123
        required: true
        schema:
          type: integer
  '/users/{userId}/offers/{offerId}/todo':
    patch:
      summary: 'Update Offer "todo"'
      operationId: updateOffertodo
      description: 'Update offer "todo" by Influencer'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  id: '{id}'
                  offer_id: '{offerId}'
                  user_id: '{userId}'
                  clicks: 0
                  status: accepted
                  created_at: '2021-05-25 13:02:06'
                  updated_at: '2021-05-27 11:21:23'
                properties:
                  id:
                    type: string
                    example: '{id}'
                  offer_id:
                    type: string
                    example: '{offerId}'
                  user_id:
                    type: string
                    example: '{userId}'
                  clicks:
                    type: integer
                    example: 0
                  status:
                    type: string
                    example: accepted
                  created_at:
                    type: string
                    example: '2021-05-25 13:02:06'
                  updated_at:
                    type: string
                    example: '2021-05-27 11:21:23'
      tags:
        - Offers
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                todo:
                  type: array
                  description: ''
                  example:
                    - []
                  items:
                    type: object
                    properties:
                      key:
                        type: string
                        description: ''
                        example: fugit
                      value:
                        type: boolean
                        description: ''
                        example: false
                    required:
                      - key
                      - value
              required:
                - todo
    parameters:
      -
        in: path
        name: userId
        description: 'The User ID.'
        example: 123
        required: true
        schema:
          type: integer
      -
        in: path
        name: offerId
        description: 'The Offer ID.'
        example: 123
        required: true
        schema:
          type: integer
  /admin/one-time-earnings:
    post:
      summary: 'Create One Time Earning'
      operationId: createOneTimeEarning
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  user_id: '{userId}'
                  user_earnings: 1000
                  payment_date: '2022-01-01'
                  comment: 'your earnings'
                  updated_at: '2022-01-26 06:49:51'
                  created_at: '2022-01-26 06:49:51'
                  id: 150
                properties:
                  user_id:
                    type: string
                    example: '{userId}'
                  user_earnings:
                    type: integer
                    example: 1000
                  payment_date:
                    type: string
                    example: '2022-01-01'
                  comment:
                    type: string
                    example: 'your earnings'
                  updated_at:
                    type: string
                    example: '2022-01-26 06:49:51'
                  created_at:
                    type: string
                    example: '2022-01-26 06:49:51'
                  id:
                    type: integer
                    example: 150
      tags:
        - OneTimeEarnings
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                user_id:
                  type: string
                  description: "The ID of the User\n\nThis field is required when <code>user_earnings</code> is present."
                  example: commodi
                store_id:
                  type: string
                  description: "The ID of the Store.\n\nThis field is required when <code>invoice_amount</code> is present."
                  example: 1
                user_earnings:
                  type: integer
                  description: "User one-time earning cost.\n\nThis field is required when <code>invoice_amount</code> is not present."
                  example: 1000
                invoice_amount:
                  type: integer
                  description: "Invoice amount.\n\nThis field is required when <code>user_earnings</code> is not present."
                  example: 1000
                payment_date:
                  type: string
                  description: "Date of one-time payment.\n\nMust be a valid date."
                  example: '2022-01-01'
                comment:
                  type: string
                  description: "Comment to one-time payment.\n\nMust not be greater than 255 characters."
                  example: '"Your one time payment"'
              required:
                - payment_date
  '/users/{userId}/pending-orders':
    get:
      summary: 'Get Pending Orders'
      operationId: getPendingOrders
      description: 'Get Pending Orders by influencer'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  '2020':
                    '8':
                      -
                        year: 2020
                        month: 10
                        store_id: '{storeId}'
                        feed_name: CENEO
                        user_revenue: '2.8800'
                    '9':
                      -
                        year: 2020
                        month: 9
                        store_id: '{storeId}'
                        feed_name: CENEO
                        user_revenue: '55.2'
                properties:
                  2020:
                    type: object
                    properties:
                      8:
                        type: array
                        example:
                          -
                            year: 2020
                            month: 10
                            store_id: '{storeId}'
                            feed_name: CENEO
                            user_revenue: '2.8800'
                        items:
                          type: object
                          properties:
                            year:
                              type: integer
                              example: 2020
                            month:
                              type: integer
                              example: 10
                            store_id:
                              type: string
                              example: '{storeId}'
                            feed_name:
                              type: string
                              example: CENEO
                            user_revenue:
                              type: string
                              example: '2.8800'
                      9:
                        type: array
                        example:
                          -
                            year: 2020
                            month: 9
                            store_id: '{storeId}'
                            feed_name: CENEO
                            user_revenue: '55.2'
                        items:
                          type: object
                          properties:
                            year:
                              type: integer
                              example: 2020
                            month:
                              type: integer
                              example: 9
                            store_id:
                              type: string
                              example: '{storeId}'
                            feed_name:
                              type: string
                              example: CENEO
                            user_revenue:
                              type: string
                              example: '55.2'
      tags:
        - Orders
    parameters:
      -
        in: path
        name: userId
        description: 'The User ID.'
        example: 123
        required: true
        schema:
          type: integer
  '/users/{userId}/product-carousels':
    get:
      summary: 'List Product Carousels'
      operationId: listProductCarousels
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  current_page: 1
                  data:
                    -
                      name: 'Product Carousel'
                      products:
                        -
                          name: 'product 1'
                          price: 100
                          link: 'http://test-link.com'
                          id: 123
                          tag_id: 1234
                          store_name: Store
                      user_id: '{userId}'
                      updated_at: '2021-02-12 08:56:52'
                      created_at: '2021-02-12 08:56:52'
                      id: '{productCarouselId}'
                  first_page_url: 'http://api.metapic.com/users/{userId}/product-carousels?page=1'
                  from: 1
                  last_page: 1
                  last_page_url: 'http://api.metapic.com/users/{userId}/product-carousels?page=3'
                  next_page_url: null
                  path: 'http://api.metapic.com/users/{userId}/product-carousels?page=1'
                  per_page: 15
                  prev_page_url: null
                  to: 3
                  total: 3
                properties:
                  current_page:
                    type: integer
                    example: 1
                  data:
                    type: array
                    example:
                      -
                        name: 'Product Carousel'
                        products:
                          -
                            name: 'product 1'
                            price: 100
                            link: 'http://test-link.com'
                            id: 123
                            tag_id: 1234
                            store_name: Store
                        user_id: '{userId}'
                        updated_at: '2021-02-12 08:56:52'
                        created_at: '2021-02-12 08:56:52'
                        id: '{productCarouselId}'
                    items:
                      type: object
                      properties:
                        name:
                          type: string
                          example: 'Product Carousel'
                        products:
                          type: array
                          example:
                            -
                              name: 'product 1'
                              price: 100
                              link: 'http://test-link.com'
                              id: 123
                              tag_id: 1234
                              store_name: Store
                          items:
                            type: object
                            properties:
                              name:
                                type: string
                                example: 'product 1'
                              price:
                                type: integer
                                example: 100
                              link:
                                type: string
                                example: 'http://test-link.com'
                              id:
                                type: integer
                                example: 123
                              tag_id:
                                type: integer
                                example: 1234
                              store_name:
                                type: string
                                example: Store
                        user_id:
                          type: string
                          example: '{userId}'
                        updated_at:
                          type: string
                          example: '2021-02-12 08:56:52'
                        created_at:
                          type: string
                          example: '2021-02-12 08:56:52'
                        id:
                          type: string
                          example: '{productCarouselId}'
                  first_page_url:
                    type: string
                    example: 'http://api.metapic.com/users/{userId}/product-carousels?page=1'
                  from:
                    type: integer
                    example: 1
                  last_page:
                    type: integer
                    example: 1
                  last_page_url:
                    type: string
                    example: 'http://api.metapic.com/users/{userId}/product-carousels?page=3'
                  next_page_url:
                    type: string
                    example: null
                  path:
                    type: string
                    example: 'http://api.metapic.com/users/{userId}/product-carousels?page=1'
                  per_page:
                    type: integer
                    example: 15
                  prev_page_url:
                    type: string
                    example: null
                  to:
                    type: integer
                    example: 3
                  total:
                    type: integer
                    example: 3
      tags:
        - 'Product Carousel'
    post:
      summary: 'Create Product Carousel'
      operationId: createProductCarousel
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  name: 'Product Carousel'
                  products:
                    -
                      name: 'product 1'
                      price: 100
                      link: 'http://test-link.com'
                      id: 123
                      tag_id: 1234
                      store_name: Store
                  user_id: '{userId}'
                  updated_at: '2021-02-12 08:56:52'
                  created_at: '2021-02-12 08:56:52'
                  id: '{productCarouselId}'
                properties:
                  name:
                    type: string
                    example: 'Product Carousel'
                  products:
                    type: array
                    example:
                      -
                        name: 'product 1'
                        price: 100
                        link: 'http://test-link.com'
                        id: 123
                        tag_id: 1234
                        store_name: Store
                    items:
                      type: object
                      properties:
                        name:
                          type: string
                          example: 'product 1'
                        price:
                          type: integer
                          example: 100
                        link:
                          type: string
                          example: 'http://test-link.com'
                        id:
                          type: integer
                          example: 123
                        tag_id:
                          type: integer
                          example: 1234
                        store_name:
                          type: string
                          example: Store
                  user_id:
                    type: string
                    example: '{userId}'
                  updated_at:
                    type: string
                    example: '2021-02-12 08:56:52'
                  created_at:
                    type: string
                    example: '2021-02-12 08:56:52'
                  id:
                    type: string
                    example: '{productCarouselId}'
      tags:
        - 'Product Carousel'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: 'Product carousel name.'
                  example: test@test.com
                products:
                  type: array
                  description: 'The Product Carousel products array'
                  example:
                    - []
                  items:
                    type: object
                    properties:
                      name:
                        type: string
                        description: ''
                        example: numquam
                      link:
                        type: string
                        description: 'Must be a valid URL.'
                        example: 'http://www.kozey.info/deserunt-explicabo-doloremque-eveniet-illo-voluptatem-voluptatem-omnis.html'
                      price:
                        type: string
                        description: ''
                        example: at
                      id:
                        type: string
                        description: ''
                        example: neque
                      tag_id:
                        type: number
                        description: ''
                        example: 4.100866491
                      store_name:
                        type: string
                        description: 'Must not be greater than 255 characters.'
                        example: bctaugcrpvfzckafu
                      image_url:
                        type: string
                        description: 'Must be a valid URL.'
                        example: 'http://www.paucek.net/'
                    required:
                      - name
                      - link
                      - price
                      - id
                      - tag_id
                      - store_name
                      - image_url
              required:
                - name
                - products
    parameters:
      -
        in: path
        name: userId
        description: 'The ID of the User.'
        example: 123
        required: true
        schema:
          type: integer
  '/users/{userId}/product-carousels/{id}':
    put:
      summary: 'Update Product Carousel'
      operationId: updateProductCarousel
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  name: 'Product Carousel'
                  products:
                    -
                      name: 'product 1'
                      price: 100
                      link: 'http://test-link.com'
                      id: 123
                      tag_id: 1234
                      store_name: Store
                  user_id: '{userId}'
                  updated_at: '2021-02-12 08:56:52'
                  created_at: '2021-02-12 08:56:52'
                  id: '{productCarouselId}'
                properties:
                  name:
                    type: string
                    example: 'Product Carousel'
                  products:
                    type: array
                    example:
                      -
                        name: 'product 1'
                        price: 100
                        link: 'http://test-link.com'
                        id: 123
                        tag_id: 1234
                        store_name: Store
                    items:
                      type: object
                      properties:
                        name:
                          type: string
                          example: 'product 1'
                        price:
                          type: integer
                          example: 100
                        link:
                          type: string
                          example: 'http://test-link.com'
                        id:
                          type: integer
                          example: 123
                        tag_id:
                          type: integer
                          example: 1234
                        store_name:
                          type: string
                          example: Store
                  user_id:
                    type: string
                    example: '{userId}'
                  updated_at:
                    type: string
                    example: '2021-02-12 08:56:52'
                  created_at:
                    type: string
                    example: '2021-02-12 08:56:52'
                  id:
                    type: string
                    example: '{productCarouselId}'
      tags:
        - 'Product Carousel'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: 'Product carousel name.'
                  example: test@test.com
                products:
                  type: array
                  description: 'The Product Carousel products array'
                  example:
                    - []
                  items:
                    type: object
                    properties:
                      name:
                        type: string
                        description: ''
                        example: quasi
                      link:
                        type: string
                        description: 'Must be a valid URL.'
                        example: 'https://dicki.com/aspernatur-dolorem-ex-quam-ut-rerum-illo-quod-quaerat.html'
                      price:
                        type: string
                        description: ''
                        example: sit
                      id:
                        type: string
                        description: ''
                        example: nobis
                      tag_id:
                        type: number
                        description: ''
                        example: 190798364.3682
                      store_name:
                        type: string
                        description: 'Must not be greater than 255 characters.'
                        example: keyt
                      image_url:
                        type: string
                        description: 'Must be a valid URL.'
                        example: 'https://www.bartell.com/velit-a-porro-possimus-libero-aut-dolorem-natus'
                    required:
                      - name
                      - link
                      - price
                      - id
                      - tag_id
                      - store_name
                      - image_url
              required:
                - name
                - products
    delete:
      summary: 'Delete Product Carousel'
      operationId: deleteProductCarousel
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  name: 'Product Carousel'
                  products:
                    -
                      name: 'product 1'
                      price: 100
                      link: 'http://test-link.com'
                      id: 123
                      tag_id: 1234
                      store_name: Store
                  user_id: '{userId}'
                  updated_at: '2021-02-12 08:56:52'
                  created_at: '2021-02-12 08:56:52'
                  id: '{productCarouselId}'
                properties:
                  name:
                    type: string
                    example: 'Product Carousel'
                  products:
                    type: array
                    example:
                      -
                        name: 'product 1'
                        price: 100
                        link: 'http://test-link.com'
                        id: 123
                        tag_id: 1234
                        store_name: Store
                    items:
                      type: object
                      properties:
                        name:
                          type: string
                          example: 'product 1'
                        price:
                          type: integer
                          example: 100
                        link:
                          type: string
                          example: 'http://test-link.com'
                        id:
                          type: integer
                          example: 123
                        tag_id:
                          type: integer
                          example: 1234
                        store_name:
                          type: string
                          example: Store
                  user_id:
                    type: string
                    example: '{userId}'
                  updated_at:
                    type: string
                    example: '2021-02-12 08:56:52'
                  created_at:
                    type: string
                    example: '2021-02-12 08:56:52'
                  id:
                    type: string
                    example: '{productCarouselId}'
      tags:
        - 'Product Carousel'
    parameters:
      -
        in: path
        name: userId
        description: 'The ID of the User.'
        example: 123
        required: true
        schema:
          type: integer
      -
        in: path
        name: product_carousel
        description: 'The ID of the Product Carouse.'
        example: 123
        required: true
        schema:
          type: integer
  /users/verifications/sms:
    post:
      summary: 'Create User Sms Verification'
      operationId: createUserSmsVerification
      description: 'Uses to create verification and send verification code to user'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  phone: '(523) 662-9728 x423'
                  expires_at: '2020-11-04T23:23:41.777994Z'
                  updated_at: '2020-11-04 23:13:41'
                  created_at: '2020-11-04 23:13:41'
                  id: 53
                  type: sms
                properties:
                  phone:
                    type: string
                    example: '(523) 662-9728 x423'
                  expires_at:
                    type: string
                    example: '2020-11-04T23:23:41.777994Z'
                  updated_at:
                    type: string
                    example: '2020-11-04 23:13:41'
                  created_at:
                    type: string
                    example: '2020-11-04 23:13:41'
                  id:
                    type: integer
                    example: 53
                  type:
                    type: string
                    example: sms
      tags:
        - 'Sms Verification'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                phone:
                  type: string
                  description: 'User phone.'
                  example: +380xxxxxxx
              required:
                - phone
  /stats/earnings:
    get:
      summary: 'User Earnings and Clicks Grouped by Date'
      operationId: userEarningsAndClicksGroupedByDate
      description: ''
      parameters:
        -
          in: query
          name: from
          description: "date.\n\nMust be a valid date."
          example: '2019-01-01'
          required: false
          schema:
            type: string
            description: "date.\n\nMust be a valid date."
            example: '2019-01-01'
        -
          in: query
          name: to
          description: "date.\n\nMust be a valid date."
          example: '2019-02-02'
          required: false
          schema:
            type: string
            description: "date.\n\nMust be a valid date."
            example: '2019-02-02'
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  dates:
                    -
                      date: '2020-01-01'
                      clicks: 0
                      earned: 100
                      pending: 0
                  earned: 22300
                  earned_formated: '223.00 kr'
                  pending: 0
                  pending_formated: '0 öre'
                properties:
                  dates:
                    type: array
                    example:
                      -
                        date: '2020-01-01'
                        clicks: 0
                        earned: 100
                        pending: 0
                    items:
                      type: object
                      properties:
                        date:
                          type: string
                          example: '2020-01-01'
                        clicks:
                          type: integer
                          example: 0
                        earned:
                          type: integer
                          example: 100
                        pending:
                          type: integer
                          example: 0
                  earned:
                    type: integer
                    example: 22300
                  earned_formated:
                    type: string
                    example: '223.00 kr'
                  pending:
                    type: integer
                    example: 0
                  pending_formated:
                    type: string
                    example: '0 öre'
      tags:
        - Statistic
  /stats/performance:
    get:
      summary: Performance
      operationId: performance
      description: 'Summarized Earnings, OneTimePayments and Clicks'
      parameters:
        -
          in: query
          name: from
          description: "date.\n\nMust be a valid date."
          example: '2019-01-01'
          required: false
          schema:
            type: string
            description: "date.\n\nMust be a valid date."
            example: '2019-01-01'
        -
          in: query
          name: to
          description: "date.\n\nMust be a valid date."
          example: '2019-02-02'
          required: false
          schema:
            type: string
            description: "date.\n\nMust be a valid date."
            example: '2019-02-02'
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  clicks: 6202
                  earned: 570082
                  one_time_payments: '170200'
                  pending: 0
                  tags: 20
                  images: 0
                properties:
                  clicks:
                    type: integer
                    example: 6202
                  earned:
                    type: integer
                    example: 570082
                  one_time_payments:
                    type: string
                    example: '170200'
                  pending:
                    type: integer
                    example: 0
                  tags:
                    type: integer
                    example: 20
                  images:
                    type: integer
                    example: 0
      tags:
        - Statistic
  /stats/getPaymentsDateAndAmount:
    get:
      summary: 'Get Payment Date And Amount'
      operationId: getPaymentDateAndAmount
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  lastPaymentdate: '2020-08-25'
                  paymentLimit: 15000
                  paymentLimit_formated: '150 zł'
                  payments:
                    -
                      user_earnings: 0
                      payment_date:
                        date: '2020-08-25 00:00:00.000000'
                        timezone_type: 3
                        timezone: UTC
                      payment_for_month: August
                      user_earnings_formated: '0 gr'
                      payment_error_id: 1
                      earnings_left_to_payment: 15000
                      earnings_left_to_payment_formated: '150.00 zł'
                properties:
                  lastPaymentdate:
                    type: string
                    example: '2020-08-25'
                  paymentLimit:
                    type: integer
                    example: 15000
                  paymentLimit_formated:
                    type: string
                    example: '150 zł'
                  payments:
                    type: array
                    example:
                      -
                        user_earnings: 0
                        payment_date:
                          date: '2020-08-25 00:00:00.000000'
                          timezone_type: 3
                          timezone: UTC
                        payment_for_month: August
                        user_earnings_formated: '0 gr'
                        payment_error_id: 1
                        earnings_left_to_payment: 15000
                        earnings_left_to_payment_formated: '150.00 zł'
                    items:
                      type: object
                      properties:
                        user_earnings:
                          type: integer
                          example: 0
                        payment_date:
                          type: object
                          properties:
                            date:
                              type: string
                              example: '2020-08-25 00:00:00.000000'
                            timezone_type:
                              type: integer
                              example: 3
                            timezone:
                              type: string
                              example: UTC
                        payment_for_month:
                          type: string
                          example: August
                        user_earnings_formated:
                          type: string
                          example: '0 gr'
                        payment_error_id:
                          type: integer
                          example: 1
                        earnings_left_to_payment:
                          type: integer
                          example: 15000
                        earnings_left_to_payment_formated:
                          type: string
                          example: '150.00 zł'
      tags:
        - Statistic
  /stats/one-time-earnings:
    get:
      summary: 'Get User One Time Payments'
      operationId: getUserOneTimePayments
      description: ''
      parameters:
        -
          in: query
          name: from
          description: "date.\n\nMust be a valid date."
          example: '2019-01-01'
          required: false
          schema:
            type: string
            description: "date.\n\nMust be a valid date."
            example: '2019-01-01'
        -
          in: query
          name: to
          description: "date.\n\nMust be a valid date."
          example: '2019-02-02'
          required: false
          schema:
            type: string
            description: "date.\n\nMust be a valid date."
            example: '2019-02-02'
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  current_page: 1
                  data:
                    -
                      id: 38
                      user_id: 43944
                      store_id: null
                      user_earnings: '1 502.00 zł'
                      payment_date: '2019-11-25'
                      created_at: '2019-11-29 14:08:22'
                      updated_at: '2019-12-30 11:22:37'
                      comment: 'Wyrównanie kampania Media Markt'
                      store: null
                  first_page_url: '/stats/one-time-earnings?page=1'
                  from: 1
                  last_page: 1
                  last_page_url: '/stats/one-time-earnings?page=1'
                  next_page_url: null
                  path: /stats/one-time-earnings
                  per_page: 15
                  prev_page_url: null
                  to: 2
                  total: 2
                properties:
                  current_page:
                    type: integer
                    example: 1
                  data:
                    type: array
                    example:
                      -
                        id: 38
                        user_id: 43944
                        store_id: null
                        user_earnings: '1 502.00 zł'
                        payment_date: '2019-11-25'
                        created_at: '2019-11-29 14:08:22'
                        updated_at: '2019-12-30 11:22:37'
                        comment: 'Wyrównanie kampania Media Markt'
                        store: null
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                          example: 38
                        user_id:
                          type: integer
                          example: 43944
                        store_id:
                          type: string
                          example: null
                        user_earnings:
                          type: string
                          example: '1 502.00 zł'
                        payment_date:
                          type: string
                          example: '2019-11-25'
                        created_at:
                          type: string
                          example: '2019-11-29 14:08:22'
                        updated_at:
                          type: string
                          example: '2019-12-30 11:22:37'
                        comment:
                          type: string
                          example: 'Wyrównanie kampania Media Markt'
                        store:
                          type: string
                          example: null
                  first_page_url:
                    type: string
                    example: '/stats/one-time-earnings?page=1'
                  from:
                    type: integer
                    example: 1
                  last_page:
                    type: integer
                    example: 1
                  last_page_url:
                    type: string
                    example: '/stats/one-time-earnings?page=1'
                  next_page_url:
                    type: string
                    example: null
                  path:
                    type: string
                    example: /stats/one-time-earnings
                  per_page:
                    type: integer
                    example: 15
                  prev_page_url:
                    type: string
                    example: null
                  to:
                    type: integer
                    example: 2
                  total:
                    type: integer
                    example: 2
      tags:
        - Statistic
  /stats/stores:
    get:
      summary: 'Get all click statistic split on stores'
      operationId: getAllClickStatisticSplitOnStores
      description: ''
      parameters:
        -
          in: query
          name: from
          description: "date.\n\nMust be a valid date."
          example: '2019-01-01'
          required: false
          schema:
            type: string
            description: "date.\n\nMust be a valid date."
            example: '2019-01-01'
        -
          in: query
          name: to
          description: "date.\n\nMust be a valid date."
          example: '2019-02-02'
          required: false
          schema:
            type: string
            description: "date.\n\nMust be a valid date."
            example: '2019-02-02'
      responses: {  }
      tags:
        - Statistic
  '/users/{userId}/get-tag-stats-by-date':
    get:
      summary: 'Get Tag Stats'
      operationId: getTagStats
      description: 'Returns stats for last 30 days or for selected period (from date, to date)'
      parameters:
        -
          in: query
          name: from
          description: "date.\n\nMust be a valid date."
          example: '2019-01-01'
          required: false
          schema:
            type: string
            description: "date.\n\nMust be a valid date."
            example: '2019-01-01'
        -
          in: query
          name: to
          description: "date.\n\nMust be a valid date."
          example: '2019-02-02'
          required: false
          schema:
            type: string
            description: "date.\n\nMust be a valid date."
            example: '2019-02-02'
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                example:
                  -
                    tag_id: '{tagId}'
                    date: '2022-10-26'
                    clicks: 643
                    earned: 64302
                    order_value: 0
                    nr_orders: 0
                    pending_cpa: 0
                    cpc_earned: 64302
                    cpa_earned: 0
      tags:
        - Statistic
  '/users/{userId}/store-categories':
    get:
      summary: 'Get User Store Categories'
      operationId: getUserStoreCategories
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  interested:
                    -
                      id: 1
                      name: Fashion
                    -
                      id: 2
                      name: 'Home & Interior'
                  very_interested: []
                  not_interested: []
                properties:
                  interested:
                    type: array
                    example:
                      -
                        id: 1
                        name: Fashion
                      -
                        id: 2
                        name: 'Home & Interior'
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                          example: 1
                        name:
                          type: string
                          example: Fashion
                  very_interested:
                    type: array
                    example: []
                  not_interested:
                    type: array
                    example: []
      tags:
        - 'Store Categories'
    post:
      summary: 'Save User Store Categories'
      operationId: saveUserStoreCategories
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  interested:
                    -
                      id: 1
                      name: Fashion
                    -
                      id: 2
                      name: 'Home & Interior'
                  very_interested: []
                  not_interested: []
                properties:
                  interested:
                    type: array
                    example:
                      -
                        id: 1
                        name: Fashion
                      -
                        id: 2
                        name: 'Home & Interior'
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                          example: 1
                        name:
                          type: string
                          example: Fashion
                  very_interested:
                    type: array
                    example: []
                  not_interested:
                    type: array
                    example: []
      tags:
        - 'Store Categories'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                store_categories:
                  type: object
                  description: ''
                  example: []
                  properties:
                    interested:
                      type: array
                      description: 'Store categories IDs.'
                      example:
                        - 1
                      items:
                        type: string
                    very_interested:
                      type: array
                      description: 'Store categories IDs.'
                      example:
                        - 1
                      items:
                        type: string
                    not_interested:
                      type: array
                      description: 'Store categories IDs.'
                      example:
                        - 1
                      items:
                        type: string
              required:
                - store_categories
    parameters:
      -
        in: path
        name: userId
        description: 'The User ID.'
        example: 123
        required: true
        schema:
          type: integer
  /store-categories-list:
    get:
      summary: 'Get Store Categories List'
      operationId: getStoreCategoriesList
      description: 'Return all store categories'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                example:
                  -
                    id: 1
                    name: Fashion
                  -
                    id: 2
                    name: 'Home & Interior'
                  -
                    id: 3
                    name: 'Beauty & Health'
                  -
                    id: 4
                    name: 'Electronics & Computers'
                  -
                    id: 5
                    name: 'Children & Baby'
                  -
                    id: 6
                    name: 'Sports & Outdoors'
                  -
                    id: 7
                    name: 'Books & Games'
                  -
                    id: 8
                    name: 'Food & Beverage'
                  -
                    id: 9
                    name: Other
      tags:
        - 'Store Categories'
  /stores:
    get:
      summary: 'Get Stores'
      operationId: getStores
      description: 'List of Stores ordered by cpc/cpa'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                example:
                  -
                    id: '{storeId}'
                    name: Hickap
                    key: Hickap
                    currency: SEK
                    revenue_text: ''
                    deeplinkable: 0
                    product_feed: 0
                    cpc: 250
                    instagram_cpc: 100
                    logo_url: 'https://metapic-cdn.s3.eu-west-1.amazonaws.com/toplists/stores/4505.png'
                    traffic_sources_costs:
                      -
                        id: 301
                        store_id: '{storeId}'
                        source: 0
                        cpc: 250
                        cpa: 0
                        invoice_cpc: null
                        invoice_cpa: null
                        user_revenue: 1
                        client_revenue: null
                        cpc_formatted: '2.50 kr'
                      -
                        id: 302
                        store_id: '{storeId}'
                        source: 1
                        cpc: 100
                        cpa: null
                        invoice_cpc: null
                        invoice_cpa: null
                        user_revenue: 1
                        client_revenue: null
                        cpc_formatted: '1.00 kr'
                    offer:
                      ids:
                        - 3502
                    categories:
                      -
                        id: 3
                        name: Beauty
                      -
                        id: 1
                        name: Fashion
                    url: 'http://hickap.com'
                    cpc_formated: '2.50 kr'
                    instagram_cpc_formated: '1.00 kr'
                    store_categories:
                      -
                        id: 3
                        name: Beauty
                      -
                        id: 1
                        name: Fashion
                    main_url:
                      id: 18635
                      store_id: 4505
                      end_host: hickap.com
                      start_url: null
                      created_at: '2023-06-09 12:56:11'
                      updated_at: '2023-06-09 12:56:11'
      tags:
        - Stores
  '/user/stores/{id}':
    get:
      summary: 'Get store by ID'
      operationId: getStoreByID
      description: 'Returns store information by its ID based on user data.'
      parameters: []
      responses: {  }
      tags:
        - Stores
  /stores-by-interests:
    get:
      summary: 'Get Stores by category interests'
      operationId: getStoresByCategoryInterests
      description: 'List of Stores ordered by category interests and price'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                example:
                  -
                    id: 1
                    name: Fashion
                    stores:
                      -
                        id: '{storeId}'
                        name: Hickap
                        key: Hickap
                        currency: SEK
                        revenue_text: ''
                        deeplinkable: 0
                        product_feed: 0
                        cpc: 250
                        instagram_cpc: 100
                        logo_url: 'https://metapic-cdn.s3.eu-west-1.amazonaws.com/toplists/stores/4505.png'
                        traffic_sources_costs:
                          -
                            id: 301
                            store_id: '{storeId}'
                            source: 0
                            cpc: 250
                            cpa: 0
                            invoice_cpc: null
                            invoice_cpa: null
                            user_revenue: 1
                            client_revenue: null
                            cpc_formatted: '2.50 kr'
                          -
                            id: 302
                            store_id: '{storeId}'
                            source: 1
                            cpc: 100
                            cpa: null
                            invoice_cpc: null
                            invoice_cpa: null
                            user_revenue: 1
                            client_revenue: null
                            cpc_formatted: '1.00 kr'
                        offer:
                          ids:
                            - 3502
                        categories:
                          -
                            id: 3
                            name: Beauty
                          -
                            id: 1
                            name: Fashion
                        url: 'http://hickap.com'
                        cpc_formated: '2.50 kr'
                        instagram_cpc_formated: '1.00 kr'
                        store_categories:
                          -
                            id: 3
                            name: Beauty
                          -
                            id: 1
                            name: Fashion
                        main_url:
                          id: 18635
                          store_id: 4505
                          end_host: hickap.com
                          start_url: null
                          created_at: '2023-06-09 12:56:11'
                          updated_at: '2023-06-09 12:56:11'
      tags:
        - Stores
  '/topList/{locale}':
    get:
      summary: 'Get User toplist'
      operationId: getUserToplist
      description: 'List of Stores ordered by cpc/cpa'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  retailers:
                    -
                      key: Hickap
                      store_id: '{storeId}'
                      store_url: 'http://hickap.com'
                      logo: 'https://metapic-cdn.s3.eu-west-1.amazonaws.com/toplists/stores/4505.png'
                      cpc: 250
                      revenue_text: ''
                      instagram_cpc: 100
                      traffic_sources_costs:
                        -
                          id: 301
                          store_id: '{storeId}'
                          source: 0
                          cpc: 250
                          invoice_cpc: 250
                          cpa: 0
                          invoice_cpa: null
                          created_at: '2023-05-03 12:01:08'
                          updated_at: '2023-05-03 12:01:08'
                          user_revenue: 1
                          client_revenue: null
                          cpc_formatted: '2.50 kr'
                        -
                          id: 302
                          store_id: '{storeId}'
                          source: 1
                          cpc: 100
                          invoice_cpc: 100
                          cpa: null
                          invoice_cpa: null
                          created_at: '2023-05-03 12:01:09'
                          updated_at: '2023-05-03 12:01:09'
                          user_revenue: 1
                          client_revenue: null
                          cpc_formatted: '1.00 kr'
                      offer:
                        ids:
                          - 3502
                      currency: SEK
                      cpc_formated: '2.50 kr'
                      instagram_cpc_formated: '1.00 kr'
                      offer_title: ''
                      offer_text: ''
                properties:
                  retailers:
                    type: array
                    example:
                      -
                        key: Hickap
                        store_id: '{storeId}'
                        store_url: 'http://hickap.com'
                        logo: 'https://metapic-cdn.s3.eu-west-1.amazonaws.com/toplists/stores/4505.png'
                        cpc: 250
                        revenue_text: ''
                        instagram_cpc: 100
                        traffic_sources_costs:
                          -
                            id: 301
                            store_id: '{storeId}'
                            source: 0
                            cpc: 250
                            invoice_cpc: 250
                            cpa: 0
                            invoice_cpa: null
                            created_at: '2023-05-03 12:01:08'
                            updated_at: '2023-05-03 12:01:08'
                            user_revenue: 1
                            client_revenue: null
                            cpc_formatted: '2.50 kr'
                          -
                            id: 302
                            store_id: '{storeId}'
                            source: 1
                            cpc: 100
                            invoice_cpc: 100
                            cpa: null
                            invoice_cpa: null
                            created_at: '2023-05-03 12:01:09'
                            updated_at: '2023-05-03 12:01:09'
                            user_revenue: 1
                            client_revenue: null
                            cpc_formatted: '1.00 kr'
                        offer:
                          ids:
                            - 3502
                        currency: SEK
                        cpc_formated: '2.50 kr'
                        instagram_cpc_formated: '1.00 kr'
                        offer_title: ''
                        offer_text: ''
                    items:
                      type: object
                      properties:
                        key:
                          type: string
                          example: Hickap
                        store_id:
                          type: string
                          example: '{storeId}'
                        store_url:
                          type: string
                          example: 'http://hickap.com'
                        logo:
                          type: string
                          example: 'https://metapic-cdn.s3.eu-west-1.amazonaws.com/toplists/stores/4505.png'
                        cpc:
                          type: integer
                          example: 250
                        revenue_text:
                          type: string
                          example: ''
                        instagram_cpc:
                          type: integer
                          example: 100
                        traffic_sources_costs:
                          type: array
                          example:
                            -
                              id: 301
                              store_id: '{storeId}'
                              source: 0
                              cpc: 250
                              invoice_cpc: 250
                              cpa: 0
                              invoice_cpa: null
                              created_at: '2023-05-03 12:01:08'
                              updated_at: '2023-05-03 12:01:08'
                              user_revenue: 1
                              client_revenue: null
                              cpc_formatted: '2.50 kr'
                            -
                              id: 302
                              store_id: '{storeId}'
                              source: 1
                              cpc: 100
                              invoice_cpc: 100
                              cpa: null
                              invoice_cpa: null
                              created_at: '2023-05-03 12:01:09'
                              updated_at: '2023-05-03 12:01:09'
                              user_revenue: 1
                              client_revenue: null
                              cpc_formatted: '1.00 kr'
                          items:
                            type: object
                            properties:
                              id:
                                type: integer
                                example: 301
                              store_id:
                                type: string
                                example: '{storeId}'
                              source:
                                type: integer
                                example: 0
                              cpc:
                                type: integer
                                example: 250
                              invoice_cpc:
                                type: integer
                                example: 250
                              cpa:
                                type: integer
                                example: 0
                              invoice_cpa:
                                type: string
                                example: null
                              created_at:
                                type: string
                                example: '2023-05-03 12:01:08'
                              updated_at:
                                type: string
                                example: '2023-05-03 12:01:08'
                              user_revenue:
                                type: integer
                                example: 1
                              client_revenue:
                                type: string
                                example: null
                              cpc_formatted:
                                type: string
                                example: '2.50 kr'
                        offer:
                          type: object
                          properties:
                            ids:
                              type: array
                              example:
                                - 3502
                              items:
                                type: integer
                        currency:
                          type: string
                          example: SEK
                        cpc_formated:
                          type: string
                          example: '2.50 kr'
                        instagram_cpc_formated:
                          type: string
                          example: '1.00 kr'
                        offer_title:
                          type: string
                          example: ''
                        offer_text:
                          type: string
                          example: ''
      tags:
        - Stores
  /unsubscribe:
    post:
      summary: Unsubscribe
      operationId: unsubscribe
      description: 'Unsubscribe from newsletter or campaign mails'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  email: test@mail.com
                  type: campaign
                  updated_at: '2022-10-11T04:36:46.000000Z'
                  created_at: '2022-10-11T04:36:46.000000Z'
                  id: 1
                properties:
                  email:
                    type: string
                    example: test@mail.com
                  type:
                    type: string
                    example: campaign
                  updated_at:
                    type: string
                    example: '2022-10-11T04:36:46.000000Z'
                  created_at:
                    type: string
                    example: '2022-10-11T04:36:46.000000Z'
                  id:
                    type: integer
                    example: 1
      tags:
        - Subscriptions
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                email:
                  type: string
                  description: "The email to unsubscribe.\n\nThe value format is invalid."
                  example: test@mail.com
                type:
                  type: string
                  description: 'The subscription type.'
                  example: campaign
                  enum:
                    - campaign
                    - newsletter
                token:
                  type: string
                  description: 'Hashed string.'
                  example: $2y$10$Hvf6Y9lVjrY/Qzg8eiynsu8vgq53cw3uDV3J9hAs/ScpSyt32Sl6S
              required:
                - email
                - type
                - token
      security: []
  /user/info:
    get:
      summary: 'User Info'
      operationId: userInfo
      description: 'Get the same info as postLogin but with access token.'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  id: '{userId}'
                  username: '{username}'
                  email: '{email}'
                  created_at: '2019-06-17 11:53:17'
                  updated_at: '2019-08-20 07:07:50'
                  admin: 1
                  last_active: '0000-00-00 00:00:00'
                  first_name: '{userName}'
                  surname: '{userSurname}'
                  country: '{country}'
                  city: '{city}'
                  address: '{address}'
                  postcode: '{postcode}'
                  tier_pricing_type: ''
                  config: '{"showedPopups":["firstCollageItem"]}'
                  sign_user_agreement: '2019-08-14 08:34:12'
                  revenue_tier_id: 105
                  access_token:
                    id: '{tokenId}'
                    user_id: '{userId}'
                    access_token: '{token}'
                    created_at: '2019-06-17 11:53:17'
                    updated_at: '2019-06-17 11:53:17'
                  currencyObj:
                    code: SEK
                    name: 'Swedish krona'
                    symbol: kr
                    subunit: öre
                    is_before: 0
                    ratio_to_eur: 0.09
                  roles: []
                  own_paymentsystem: 0
                  revenue_tier:
                    id: 105
                    created_at: '2018-12-12 14:21:45'
                    updated_at: '2018-12-12 14:21:45'
                    client_id: 79
                    revenue_share: '0.70'
                    instagram_revenue_share: '0.70'
                    name: Diamond
                properties:
                  id:
                    type: string
                    example: '{userId}'
                  username:
                    type: string
                    example: '{username}'
                  email:
                    type: string
                    example: '{email}'
                  created_at:
                    type: string
                    example: '2019-06-17 11:53:17'
                  updated_at:
                    type: string
                    example: '2019-08-20 07:07:50'
                  admin:
                    type: integer
                    example: 1
                  last_active:
                    type: string
                    example: '0000-00-00 00:00:00'
                  first_name:
                    type: string
                    example: '{userName}'
                  surname:
                    type: string
                    example: '{userSurname}'
                  country:
                    type: string
                    example: '{country}'
                  city:
                    type: string
                    example: '{city}'
                  address:
                    type: string
                    example: '{address}'
                  postcode:
                    type: string
                    example: '{postcode}'
                  tier_pricing_type:
                    type: string
                    example: ''
                  config:
                    type: string
                    example: '{"showedPopups":["firstCollageItem"]}'
                  sign_user_agreement:
                    type: string
                    example: '2019-08-14 08:34:12'
                  revenue_tier_id:
                    type: integer
                    example: 105
                  access_token:
                    type: object
                    properties:
                      id:
                        type: string
                        example: '{tokenId}'
                      user_id:
                        type: string
                        example: '{userId}'
                      access_token:
                        type: string
                        example: '{token}'
                      created_at:
                        type: string
                        example: '2019-06-17 11:53:17'
                      updated_at:
                        type: string
                        example: '2019-06-17 11:53:17'
                  currencyObj:
                    type: object
                    properties:
                      code:
                        type: string
                        example: SEK
                      name:
                        type: string
                        example: 'Swedish krona'
                      symbol:
                        type: string
                        example: kr
                      subunit:
                        type: string
                        example: öre
                      is_before:
                        type: integer
                        example: 0
                      ratio_to_eur:
                        type: number
                        example: 0.09
                  roles:
                    type: array
                    example: []
                  own_paymentsystem:
                    type: integer
                    example: 0
                  revenue_tier:
                    type: object
                    properties:
                      id:
                        type: integer
                        example: 105
                      created_at:
                        type: string
                        example: '2018-12-12 14:21:45'
                      updated_at:
                        type: string
                        example: '2018-12-12 14:21:45'
                      client_id:
                        type: integer
                        example: 79
                      revenue_share:
                        type: string
                        example: '0.70'
                      instagram_revenue_share:
                        type: string
                        example: '0.70'
                      name:
                        type: string
                        example: Diamond
      tags:
        - User
  /validate-iban:
    get:
      summary: 'Validate IBAN'
      operationId: validateIBAN
      description: 'Check IBAN and get additional bank info'
      parameters:
        -
          in: query
          name: iban
          description: 'User IBAN.'
          example: SEXXXXXXXXXXX
          required: true
          schema:
            type: string
            description: 'User IBAN.'
            example: SEXXXXXXXXXXX
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  bank_data:
                    bic: '{bic}'
                    branch: null
                    bank: '{bank}'
                    address: '{address}'
                    city: Bratislava
                    state: null
                    zip: '811 01'
                    phone: null
                    fax: null
                    www: null
                    email: null
                    country: Slovakia
                    country_iso: SK
                    account: '{account}'
                    bank_code: '{bank_code}'
                    branch_code: '000000'
                  sepa_data:
                    SCT: 'YES'
                    SDD: 'YES'
                    COR1: 'YES'
                    B2B: 'NO'
                    SCC: 'NO'
                  validations:
                    chars:
                      code: '006'
                      message: 'IBAN does not contain illegal characters'
                    account:
                      code: '002'
                      message: 'Account Number check digit is correct'
                    iban:
                      code: '001'
                      message: 'IBAN Check digit is correct'
                    structure:
                      code: '005'
                      message: 'IBAN structure is correct'
                    length:
                      code: '003'
                      message: 'IBAN Length is correct'
                    country_support:
                      code: '007'
                      message: 'Country supports IBAN standard'
                  errors: []
                  is_valid: true
                properties:
                  bank_data:
                    type: object
                    properties:
                      bic:
                        type: string
                        example: '{bic}'
                      branch:
                        type: string
                        example: null
                      bank:
                        type: string
                        example: '{bank}'
                      address:
                        type: string
                        example: '{address}'
                      city:
                        type: string
                        example: Bratislava
                      state:
                        type: string
                        example: null
                      zip:
                        type: string
                        example: '811 01'
                      phone:
                        type: string
                        example: null
                      fax:
                        type: string
                        example: null
                      www:
                        type: string
                        example: null
                      email:
                        type: string
                        example: null
                      country:
                        type: string
                        example: Slovakia
                      country_iso:
                        type: string
                        example: SK
                      account:
                        type: string
                        example: '{account}'
                      bank_code:
                        type: string
                        example: '{bank_code}'
                      branch_code:
                        type: string
                        example: '000000'
                  sepa_data:
                    type: object
                    properties:
                      SCT:
                        type: string
                        example: 'YES'
                      SDD:
                        type: string
                        example: 'YES'
                      COR1:
                        type: string
                        example: 'YES'
                      B2B:
                        type: string
                        example: 'NO'
                      SCC:
                        type: string
                        example: 'NO'
                  validations:
                    type: object
                    properties:
                      chars:
                        type: object
                        properties:
                          code:
                            type: string
                            example: '006'
                          message:
                            type: string
                            example: 'IBAN does not contain illegal characters'
                      account:
                        type: object
                        properties:
                          code:
                            type: string
                            example: '002'
                          message:
                            type: string
                            example: 'Account Number check digit is correct'
                      iban:
                        type: object
                        properties:
                          code:
                            type: string
                            example: '001'
                          message:
                            type: string
                            example: 'IBAN Check digit is correct'
                      structure:
                        type: object
                        properties:
                          code:
                            type: string
                            example: '005'
                          message:
                            type: string
                            example: 'IBAN structure is correct'
                      length:
                        type: object
                        properties:
                          code:
                            type: string
                            example: '003'
                          message:
                            type: string
                            example: 'IBAN Length is correct'
                      country_support:
                        type: object
                        properties:
                          code:
                            type: string
                            example: '007'
                          message:
                            type: string
                            example: 'Country supports IBAN standard'
                  errors:
                    type: array
                    example: []
                  is_valid:
                    type: boolean
                    example: true
      tags:
        - 'User Information'
tags:
  -
    name: Chats
    description: ''
  -
    name: 'Deep linking'
    description: ''
  -
    name: Endpoints
    description: ''
  -
    name: Entrypoint
    description: ''
  -
    name: 'Link List'
    description: ''
  -
    name: 'Offer Comments V2'
    description: ''
  -
    name: 'Offer User Activity'
    description: ''
  -
    name: Offers
    description: ''
  -
    name: OneTimeEarnings
    description: ''
  -
    name: Orders
    description: ''
  -
    name: 'Product Carousel'
    description: ''
  -
    name: 'Sms Verification'
    description: ''
  -
    name: Statistic
    description: ''
  -
    name: Store
    description: ''
  -
    name: 'Store Categories'
    description: ''
  -
    name: Stores
    description: ''
  -
    name: Subscriptions
    description: ''
  -
    name: User
    description: ''
  -
    name: 'User Information'
    description: ''
