openapi: 3.0.3
info:
  title: metapic-api
  description: ''
  version: 1.0.0
servers:
  -
    url: 'https://api.metapic.com'
paths:
  '/stores/{id}/clients':
    get:
      summary: 'Get Clients'
      operationId: getClients
      description: ''
      parameters:
        -
          in: query
          name: query
          description: "Client name query.\n\nMust not be greater than 255 characters."
          example: nouw
          required: false
          schema:
            type: string
            description: "Client name query.\n\nMust not be greater than 255 characters."
            example: nouw
        -
          in: query
          name: size
          description: 'Count per page.'
          example: 20
          required: false
          schema:
            type: integer
            description: 'Count per page.'
            example: 20
        -
          in: query
          name: group
          description: 'Store group ID.'
          example: 1
          required: false
          schema:
            type: integer
            description: 'Store group ID.'
            example: 1
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  current_page: 1
                  data:
                    -
                      id: 2
                      client_id: '{clientId}'
                      name: '{clientName}'
                      created_at: '2014-04-24 16:12:29'
                      updated_at: '2020-05-25 12:39:52'
                      own_paymentsystem: 0
                      config: "{    \"tabs\": {        \"home\":{\"showMenu\":true},        \"find\":{\"showMenu\":true},\t\"collage\":{\"showMenu\":true},\t\"tagEditor\":{\"showMenu\":true},        \"stats\":{\"showMenu\":true},\t\"listLinks\":{\"showMenu\":true}    },    \"canLogin\": true}"
                      user_mail_config:
                        accepted: test-erik
                        inactive: alla-inaktivitet
                        used_tool: alla-f-rsta-veckan
                        registered: metapic-v-lkommen-till-metapic
                      feed: live_se
                      locale: SE
                      revenue_model: blog_percentage
                      revenue_share: '0.30'
                      store_group_id: 1
                      default_revenue_tier: 81
                      default_verified_users: 0
                      client_secret: '{clientSecret}'
                      store_group:
                        id: '{id}'
                        name: 'Standard SE'
                        shopello: 0
                        key: se
                        locale: SE
                        lang: sv
                        currency: SEK
                        es: 0
                        payment_limit: 100000
                      revenue_tiers: []
                  first_page_url: '{first_page_url}'
                  from: 1
                  last_page: 2
                  last_page_url: '{last_page_url}'
                  next_page_url: '{next_page_url}'
                  path: 'http://metapic-api.loc/clients'
                  per_page: 50
                  prev_page_url: null
                  to: 50
                  total: 98
                properties:
                  current_page:
                    type: integer
                    example: 1
                  data:
                    type: array
                    example:
                      -
                        id: 2
                        client_id: '{clientId}'
                        name: '{clientName}'
                        created_at: '2014-04-24 16:12:29'
                        updated_at: '2020-05-25 12:39:52'
                        own_paymentsystem: 0
                        config: "{    \"tabs\": {        \"home\":{\"showMenu\":true},        \"find\":{\"showMenu\":true},\t\"collage\":{\"showMenu\":true},\t\"tagEditor\":{\"showMenu\":true},        \"stats\":{\"showMenu\":true},\t\"listLinks\":{\"showMenu\":true}    },    \"canLogin\": true}"
                        user_mail_config:
                          accepted: test-erik
                          inactive: alla-inaktivitet
                          used_tool: alla-f-rsta-veckan
                          registered: metapic-v-lkommen-till-metapic
                        feed: live_se
                        locale: SE
                        revenue_model: blog_percentage
                        revenue_share: '0.30'
                        store_group_id: 1
                        default_revenue_tier: 81
                        default_verified_users: 0
                        client_secret: '{clientSecret}'
                        store_group:
                          id: '{id}'
                          name: 'Standard SE'
                          shopello: 0
                          key: se
                          locale: SE
                          lang: sv
                          currency: SEK
                          es: 0
                          payment_limit: 100000
                        revenue_tiers: []
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                          example: 2
                        client_id:
                          type: string
                          example: '{clientId}'
                        name:
                          type: string
                          example: '{clientName}'
                        created_at:
                          type: string
                          example: '2014-04-24 16:12:29'
                        updated_at:
                          type: string
                          example: '2020-05-25 12:39:52'
                        own_paymentsystem:
                          type: integer
                          example: 0
                        config:
                          type: string
                          example: "{    \"tabs\": {        \"home\":{\"showMenu\":true},        \"find\":{\"showMenu\":true},\t\"collage\":{\"showMenu\":true},\t\"tagEditor\":{\"showMenu\":true},        \"stats\":{\"showMenu\":true},\t\"listLinks\":{\"showMenu\":true}    },    \"canLogin\": true}"
                        user_mail_config:
                          type: object
                          properties:
                            accepted:
                              type: string
                              example: test-erik
                            inactive:
                              type: string
                              example: alla-inaktivitet
                            used_tool:
                              type: string
                              example: alla-f-rsta-veckan
                            registered:
                              type: string
                              example: metapic-v-lkommen-till-metapic
                        feed:
                          type: string
                          example: live_se
                        locale:
                          type: string
                          example: SE
                        revenue_model:
                          type: string
                          example: blog_percentage
                        revenue_share:
                          type: string
                          example: '0.30'
                        store_group_id:
                          type: integer
                          example: 1
                        default_revenue_tier:
                          type: integer
                          example: 81
                        default_verified_users:
                          type: integer
                          example: 0
                        client_secret:
                          type: string
                          example: '{clientSecret}'
                        store_group:
                          type: object
                          properties:
                            id:
                              type: string
                              example: '{id}'
                            name:
                              type: string
                              example: 'Standard SE'
                            shopello:
                              type: integer
                              example: 0
                            key:
                              type: string
                              example: se
                            locale:
                              type: string
                              example: SE
                            lang:
                              type: string
                              example: sv
                            currency:
                              type: string
                              example: SEK
                            es:
                              type: integer
                              example: 0
                            payment_limit:
                              type: integer
                              example: 100000
                        revenue_tiers:
                          type: array
                          example: []
                  first_page_url:
                    type: string
                    example: '{first_page_url}'
                  from:
                    type: integer
                    example: 1
                  last_page:
                    type: integer
                    example: 2
                  last_page_url:
                    type: string
                    example: '{last_page_url}'
                  next_page_url:
                    type: string
                    example: '{next_page_url}'
                  path:
                    type: string
                    example: 'http://metapic-api.loc/clients'
                  per_page:
                    type: integer
                    example: 50
                  prev_page_url:
                    type: string
                    example: null
                  to:
                    type: integer
                    example: 50
                  total:
                    type: integer
                    example: 98
      tags:
        - Clients
  '/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: false
                campaign_title:
                  type: string
                  description: 'Must not be greater than 64 characters.'
                  example: zmsvytyyvgudw
                campaign_text:
                  type: string
                  description: 'Must not be greater than 1056 characters.'
                  example: xcywpvssuy
                has_product_seeding:
                  type: boolean
                  description: ''
                  example: true
                todo:
                  type: array
                  description: ''
                  example:
                    - molestiae
                  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: 18
                valid_from:
                  type: string
                  description: 'Must be a valid date.'
                  example: '2024-07-02T10:18:43'
                valid_until:
                  type: string
                  description: 'Must be a valid date. Must be a date after <code>from</code>.'
                  example: '2097-05-26'
                max_clicks:
                  type: integer
                  description: 'Must not be greater than 1000000.'
                  example: 14
                per_user_limit:
                  type: boolean
                  description: ''
                  example: true
                max_money:
                  type: integer
                  description: 'Must not be greater than 1000000.'
                  example: 25
                type:
                  type: string
                  description: ''
                  example: user_accept
                  enum:
                    - standard
                    - user_accept
                    - store_accept
                    - suggestion
                traffic_sources_costs:
                  type: array
                  description: ''
                  example:
                    - []
                  items:
                    type: object
                    properties:
                      source:
                        type: integer
                        description: ''
                        example: 8
                      cpc:
                        type: integer
                        description: 'Must not be greater than 1000.'
                        example: 1
                      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:
                        - 15
                      items:
                        type: integer
                    user_tag_ids:
                      type: array
                      description: ''
                      example:
                        - 19
                      items:
                        type: integer
                    store_group_ids:
                      type: array
                      description: ''
                      example:
                        - 17
                      items:
                        type: integer
                    emails:
                      type: array
                      description: 'The value format is invalid.'
                      example:
                        - elvera53@example.net
                      items:
                        type: string
                    social_media_identifiers:
                      type: array
                      description: 'Must not be greater than 30 characters.'
                      example:
                        - vttf
                      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: diswwgjqtv
                campaign_text:
                  type: string
                  description: 'Must not be greater than 1056 characters.'
                  example: zpvjmcptafsdhs
                has_product_seeding:
                  type: boolean
                  description: ''
                  example: false
                todo:
                  type: array
                  description: ''
                  example:
                    - ex
                  items:
                    type: string
                has_onetime_payment:
                  type: boolean
                  description: ''
                  example: true
                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:43'
                valid_until:
                  type: string
                  description: 'Must be a valid date. Must be a date after <code>from</code>.'
                  example: '2053-06-29'
                max_clicks:
                  type: integer
                  description: 'Must not be greater than 1000000.'
                  example: 17
                per_user_limit:
                  type: boolean
                  description: ''
                  example: true
                max_money:
                  type: integer
                  description: 'Must not be greater than 1000000.'
                  example: 20
                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: 16
                      cpc:
                        type: integer
                        description: 'Must not be greater than 1000.'
                        example: 1
                      cpa:
                        type: number
                        description: 'Must be between 0 and 1.'
                        example: 0
                    required:
                      - source
                      - cpc
                      - cpa
                targets:
                  type: object
                  description: ''
                  example: []
                  properties:
                    user_ids:
                      type: array
                      description: ''
                      example:
                        - 3
                      items:
                        type: integer
                    user_tag_ids:
                      type: array
                      description: ''
                      example:
                        - 9
                      items:
                        type: integer
                    store_group_ids:
                      type: array
                      description: ''
                      example:
                        - 20
                      items:
                        type: integer
                    emails:
                      type: array
                      description: 'The value format is invalid.'
                      example:
                        - murphy.derek@example.net
                      items:
                        type: string
                    social_media_identifiers:
                      type: array
                      description: 'Must not be greater than 30 characters.'
                      example:
                        - gze
                      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:
                    - 1
                  items:
                    type: integer
                user_tag_ids:
                  type: array
                  description: ''
                  example:
                    - 7
                  items:
                    type: integer
                store_group_ids:
                  type: array
                  description: ''
                  example:
                    - 13
                  items:
                    type: integer
                emails:
                  type: array
                  description: 'The value format is invalid.'
                  example:
                    - schmidt.salma@example.com
                  items:
                    type: string
                social_media_identifiers:
                  type: array
                  description: 'Must not be greater than 30 characters.'
                  example:
                    - bh
                  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: avjxwfkata
          required: false
          schema:
            type: string
            description: 'Must not be greater than 255 characters.'
            example: avjxwfkata
        -
          in: query
          name: store_group_id
          description: ''
          example: 8
          required: false
          schema:
            type: integer
            description: ''
            example: 8
        -
          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: voluptas
          required: false
          schema:
            type: string
            description: ''
            example: voluptas
      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: upkxlhma
          required: false
          schema:
            type: string
            description: 'Must not be greater than 64 characters.'
            example: upkxlhma
        -
          in: query
          name: client_id
          description: ''
          example: 9
          required: false
          schema:
            type: integer
            description: ''
            example: 9
        -
          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: 6
          required: false
          schema:
            type: integer
            description: 'Must not be greater than 100.'
            example: 6
        -
          in: query
          name: sort_by
          description: ''
          example: corrupti
          required: false
          schema:
            type: string
            description: ''
            example: corrupti
      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: pvutgpgpvojavxigjjsvaqt
          required: false
          schema:
            type: string
            description: 'Must not be greater than 255 characters.'
            example: pvutgpgpvojavxigjjsvaqt
        -
          in: query
          name: store_group_id
          description: ''
          example: 17
          required: false
          schema:
            type: integer
            description: ''
            example: 17
        -
          in: query
          name: size
          description: 'Must not be greater than 100.'
          example: 10
          required: false
          schema:
            type: integer
            description: 'Must not be greater than 100.'
            example: 10
        -
          in: query
          name: sort_by
          description: ''
          example: tempore
          required: false
          schema:
            type: string
            description: ''
            example: tempore
      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: ipsa
                domains:
                  type: array
                  description: "Store domains.\n\nMust match the regex /^(https?:\\/\\/)?([\\dA-Za-z\\.-]+)\\.([A-Za-z\\.]{2,6})([\\/\\w \\.-]*)*\\/?$/."
                  example:
                    - 'https://T.uPEYXZ/'
                  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.steuber.com/suscipit-earum-quo-et-aliquam.html'
                country:
                  type: string
                  description: 'Store locale.'
                  example: SE
                currency:
                  type: string
                  description: 'Store ISO currency code.'
                  example: EUR
                language:
                  type: string
                  description: ''
                  example: error
                billing:
                  type: object
                  description: ''
                  example: []
                  properties:
                    company_name:
                      type: string
                      description: ''
                      example: omnis
                    street:
                      type: string
                      description: ''
                      example: ex
                    postal_code:
                      type: string
                      description: ''
                      example: nam
                    city:
                      type: string
                      description: ''
                      example: laborum
                    vat_number:
                      type: string
                      description: ''
                      example: reiciendis
              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: snvrjzujtwoefjyrttzvoaaaw
          required: false
          schema:
            type: string
            description: 'Must not be greater than 255 characters.'
            example: snvrjzujtwoefjyrttzvoaaaw
        -
          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: 4
          required: false
          schema:
            type: integer
            description: 'Must not be greater than 100.'
            example: 4
        -
          in: query
          name: sort_by
          description: ''
          example: dolores
          required: false
          schema:
            type: string
            description: ''
            example: dolores
      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: []
  /advertiser/payment-details:
    post:
      summary: 'Return payment details to the front-end'
      operationId: returnPaymentDetailsToTheFrontEnd
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  '/advertiser/{id}/stripe/session':
    get:
      summary: ''
      operationId: getAdvertiserIdStripeSession
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  '/advertiser/stores/{id}/hashtags':
    get:
      summary: 'Get Advertiser Store Hashtags'
      operationId: getAdvertiserStoreHashtags
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
    patch:
      summary: 'Update Store Hashtags'
      operationId: updateStoreHashtags
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                example:
                  -
                    id: 50
                    store_id: 20476
                    hashtag: hashtag1
                    created_at: '2023-09-06T11:16:33.000000Z'
                    updated_at: '2023-09-06T11:16:33.000000Z'
                  -
                    id: 51
                    store_id: 20476
                    hashtag: hashtag2
                    created_at: '2023-09-06T11:16:33.000000Z'
                    updated_at: '2023-09-06T11:16:33.000000Z'
      tags:
        - Store
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                store_id:
                  type: string
                  description: ''
                  example: molestiae
                hashtags:
                  type: array
                  description: ''
                  example: null
                  items:
                    type: string
              required:
                - store_id
      security: []
  '/stores/{id}/invoices/{storeInvoiceId}/pdf':
    get:
      summary: 'Get Store Invoice Pdf'
      operationId: getStoreInvoicePdf
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  '/stores/{id}/offer-users/{offerUserId}/payment-amount/{paymentAmount}':
    post:
      summary: 'Add payment amount to OfferUser'
      operationId: addPaymentAmountToOfferUser
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  '/stores/{id}/user/{userId}/oneTimePayment':
    post:
      summary: 'Add One time payment to a user'
      operationId: addOneTimePaymentToAUser
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  user_id: 2
                  store_id: '2'
                  comment: test
                  user_earnings: '1000'
                  payment_date: '2020-11-29'
                  updated_at: '2020-11-27 14:21:22'
                  created_at: '2020-11-27 14:21:22'
                  id: 504
                properties:
                  user_id:
                    type: integer
                    example: 2
                  store_id:
                    type: string
                    example: '2'
                  comment:
                    type: string
                    example: test
                  user_earnings:
                    type: string
                    example: '1000'
                  payment_date:
                    type: string
                    example: '2020-11-29'
                  updated_at:
                    type: string
                    example: '2020-11-27 14:21:22'
                  created_at:
                    type: string
                    example: '2020-11-27 14:21:22'
                  id:
                    type: integer
                    example: 504
      tags:
        - Endpoints
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                comment:
                  type: string
                  description: "that discribe why they did get the money the user will se this.\n\nMust be at least 2 characters. Must not be greater than 1024 characters."
                  example: 'Money for black friday'
                payment_date:
                  type: string
                  description: "date where the user will se the payemnt.\n\nMust be a valid date."
                  example: '"2020-11-29"'
                user_earnings:
                  type: integer
                  description: "amount of money as integer(cent,öre).\n\nMust not be greater than 10000000. Must be at least 0."
                  example: '100000'
              required:
                - comment
                - payment_date
                - user_earnings
      security: []
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the Advertiser Store.'
        example: 123
        required: true
        schema:
          type: integer
      -
        in: path
        name: userId
        description: 'The userid of the user.'
        example: 123
        required: true
        schema:
          type: integer
  /connect-with-google-analytics:
    get:
      summary: ''
      operationId: getConnectWithGoogleAnalytics
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  '/v2/stores/{store_id}/payment':
    put:
      summary: ''
      operationId: putV2StoresStore_idPayment
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  /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: 17
          required: false
          schema:
            type: integer
            description: 'This field is required when <code>app</code> is <code>advertiser</code>.'
            example: 17
      responses: {  }
      tags:
        - Entrypoint
  '/advertiser/stores/{id}/influencers':
    get:
      summary: "Get Influencers\nGet Advertiser Influencers List"
      operationId: getInfluencersGetAdvertiserInfluencersList
      description: ''
      parameters:
        -
          in: query
          name: page
          description: ''
          example: 7.491
          required: false
          schema:
            type: number
            description: ''
            example: 7.491
        -
          in: query
          name: store_id
          description: ''
          example: 1168.3
          required: false
          schema:
            type: number
            description: ''
            example: 1168.3
        -
          in: query
          name: follower_from
          description: ''
          example: 427.4894803
          required: false
          schema:
            type: number
            description: ''
            example: 427.4894803
        -
          in: query
          name: follower_to
          description: ''
          example: 646416.2502948
          required: false
          schema:
            type: number
            description: ''
            example: 646416.2502948
        -
          in: query
          name: avg_stories_from
          description: ''
          example: 45.9325418
          required: false
          schema:
            type: number
            description: ''
            example: 45.9325418
        -
          in: query
          name: avg_stories_to
          description: ''
          example: 209132.0
          required: false
          schema:
            type: number
            description: ''
            example: 209132.0
        -
          in: query
          name: performance_from
          description: ''
          example: 5258792.1687
          required: false
          schema:
            type: number
            description: ''
            example: 5258792.1687
        -
          in: query
          name: performance_to
          description: ''
          example: 487212902.25
          required: false
          schema:
            type: number
            description: ''
            example: 487212902.25
        -
          in: query
          name: branding_from
          description: ''
          example: 54.6597
          required: false
          schema:
            type: number
            description: ''
            example: 54.6597
        -
          in: query
          name: branding_to
          description: ''
          example: 249596616.83884
          required: false
          schema:
            type: number
            description: ''
            example: 249596616.83884
        -
          in: query
          name: tags
          description: ''
          example: null
          required: false
          schema:
            type: object
            description: ''
            example: null
            properties: {  }
        -
          in: query
          name: users
          description: ''
          example: null
          required: false
          schema:
            type: object
            description: ''
            example: null
            properties: {  }
        -
          in: query
          name: is_business
          description: ''
          example: false
          required: false
          schema:
            type: boolean
            description: ''
            example: false
        -
          in: query
          name: locale
          description: ''
          example: ku_TR
          required: false
          schema:
            type: string
            description: ''
            example: ku_TR
        -
          in: query
          name: work_status
          description: ''
          example: eum
          required: false
          schema:
            type: string
            description: ''
            example: eum
        -
          in: query
          name: sort
          description: ''
          example: quaerat
          required: false
          schema:
            type: string
            description: ''
            example: quaerat
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  current_page: 1
                  data:
                    -
                      id: '{offerId}'
                      name: '{offerName}'
                      type: standard
                      store_id: '{storeId}'
                      to: '0000-00-00 00:00:00'
                      cpc: 100
                      max_clicks: 30
                      current_clicks: 0
                      max_money: 10000
                      current_money: 0
                      active: 1
                      created_at: '2020-08-12 08:35:42'
                      updated_at: '2020-08-12 08:35:42'
                      from: '0000-00-00 00:00:00'
                      instagram_cpc: 100
                      invoice_cpc: 100
                      invoice_instagram_cpc: 100
                      revenue_cpa: null
                      revenue_instagram_cpa: null
                      invoice_instagram_cpa: null
                      invoice_cpa: null
                      priority: 10
                      cpa: null
                      instagram_cpa: null
                      store_visibility: null
                      offer_campaign_show: null
                      offer_campaign_text: null
                      offer_campaign_title: null
                      user_revenue_general: null
                      user_revenue_instagram: null
                      client_revenue: null
                  first_page_url: 'http://metapic-api.loc/stores/{storeId}/offers?page=1'
                  from: 1
                  last_page: 1
                  last_page_url: 'http://metapic-api.loc/stores/{storeId}/offers?page=1'
                  next_page_url: null
                  path: 'http://metapic-api.loc/stores/{storeId}/offers'
                  per_page: 15
                  prev_page_url: null
                  to: 3
                  total: 3
                properties:
                  current_page:
                    type: integer
                    example: 1
                  data:
                    type: array
                    example:
                      -
                        id: '{offerId}'
                        name: '{offerName}'
                        type: standard
                        store_id: '{storeId}'
                        to: '0000-00-00 00:00:00'
                        cpc: 100
                        max_clicks: 30
                        current_clicks: 0
                        max_money: 10000
                        current_money: 0
                        active: 1
                        created_at: '2020-08-12 08:35:42'
                        updated_at: '2020-08-12 08:35:42'
                        from: '0000-00-00 00:00:00'
                        instagram_cpc: 100
                        invoice_cpc: 100
                        invoice_instagram_cpc: 100
                        revenue_cpa: null
                        revenue_instagram_cpa: null
                        invoice_instagram_cpa: null
                        invoice_cpa: null
                        priority: 10
                        cpa: null
                        instagram_cpa: null
                        store_visibility: null
                        offer_campaign_show: null
                        offer_campaign_text: null
                        offer_campaign_title: null
                        user_revenue_general: null
                        user_revenue_instagram: null
                        client_revenue: null
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          example: '{offerId}'
                        name:
                          type: string
                          example: '{offerName}'
                        type:
                          type: string
                          example: standard
                        store_id:
                          type: string
                          example: '{storeId}'
                        to:
                          type: string
                          example: '0000-00-00 00:00:00'
                        cpc:
                          type: integer
                          example: 100
                        max_clicks:
                          type: integer
                          example: 30
                        current_clicks:
                          type: integer
                          example: 0
                        max_money:
                          type: integer
                          example: 10000
                        current_money:
                          type: integer
                          example: 0
                        active:
                          type: integer
                          example: 1
                        created_at:
                          type: string
                          example: '2020-08-12 08:35:42'
                        updated_at:
                          type: string
                          example: '2020-08-12 08:35:42'
                        from:
                          type: string
                          example: '0000-00-00 00:00:00'
                        instagram_cpc:
                          type: integer
                          example: 100
                        invoice_cpc:
                          type: integer
                          example: 100
                        invoice_instagram_cpc:
                          type: integer
                          example: 100
                        revenue_cpa:
                          type: string
                          example: null
                        revenue_instagram_cpa:
                          type: string
                          example: null
                        invoice_instagram_cpa:
                          type: string
                          example: null
                        invoice_cpa:
                          type: string
                          example: null
                        priority:
                          type: integer
                          example: 10
                        cpa:
                          type: string
                          example: null
                        instagram_cpa:
                          type: string
                          example: null
                        store_visibility:
                          type: string
                          example: null
                        offer_campaign_show:
                          type: string
                          example: null
                        offer_campaign_text:
                          type: string
                          example: null
                        offer_campaign_title:
                          type: string
                          example: null
                        user_revenue_general:
                          type: string
                          example: null
                        user_revenue_instagram:
                          type: string
                          example: null
                        client_revenue:
                          type: string
                          example: null
                  first_page_url:
                    type: string
                    example: 'http://metapic-api.loc/stores/{storeId}/offers?page=1'
                  from:
                    type: integer
                    example: 1
                  last_page:
                    type: integer
                    example: 1
                  last_page_url:
                    type: string
                    example: 'http://metapic-api.loc/stores/{storeId}/offers?page=1'
                  next_page_url:
                    type: string
                    example: null
                  path:
                    type: string
                    example: 'http://metapic-api.loc/stores/{storeId}/offers'
                  per_page:
                    type: integer
                    example: 15
                  prev_page_url:
                    type: string
                    example: null
                  to:
                    type: integer
                    example: 3
                  total:
                    type: integer
                    example: 3
      tags:
        - Influencers
  '/advertiser/stores/{id}/influencers/fullData':
    get:
      summary: 'Get user Full Data'
      operationId: getUserFullData
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  current_page: 1
                  data:
                    -
                      id: '{offerId}'
                      name: '{offerName}'
                      type: standard
                      store_id: '{storeId}'
                      to: '0000-00-00 00:00:00'
                      cpc: 100
                      max_clicks: 30
                      current_clicks: 0
                      max_money: 10000
                      current_money: 0
                      active: 1
                      created_at: '2020-08-12 08:35:42'
                      updated_at: '2020-08-12 08:35:42'
                      from: '0000-00-00 00:00:00'
                      instagram_cpc: 100
                      invoice_cpc: 100
                      invoice_instagram_cpc: 100
                      revenue_cpa: null
                      revenue_instagram_cpa: null
                      invoice_instagram_cpa: null
                      invoice_cpa: null
                      priority: 10
                      cpa: null
                      instagram_cpa: null
                      store_visibility: null
                      offer_campaign_show: null
                      offer_campaign_text: null
                      offer_campaign_title: null
                      user_revenue_general: null
                      user_revenue_instagram: null
                      client_revenue: null
                  first_page_url: 'http://metapic-api.loc/stores/{storeId}/offers?page=1'
                  from: 1
                  last_page: 1
                  last_page_url: 'http://metapic-api.loc/stores/{storeId}/offers?page=1'
                  next_page_url: null
                  path: 'http://metapic-api.loc/stores/{storeId}/offers'
                  per_page: 15
                  prev_page_url: null
                  to: 3
                  total: 3
                properties:
                  current_page:
                    type: integer
                    example: 1
                  data:
                    type: array
                    example:
                      -
                        id: '{offerId}'
                        name: '{offerName}'
                        type: standard
                        store_id: '{storeId}'
                        to: '0000-00-00 00:00:00'
                        cpc: 100
                        max_clicks: 30
                        current_clicks: 0
                        max_money: 10000
                        current_money: 0
                        active: 1
                        created_at: '2020-08-12 08:35:42'
                        updated_at: '2020-08-12 08:35:42'
                        from: '0000-00-00 00:00:00'
                        instagram_cpc: 100
                        invoice_cpc: 100
                        invoice_instagram_cpc: 100
                        revenue_cpa: null
                        revenue_instagram_cpa: null
                        invoice_instagram_cpa: null
                        invoice_cpa: null
                        priority: 10
                        cpa: null
                        instagram_cpa: null
                        store_visibility: null
                        offer_campaign_show: null
                        offer_campaign_text: null
                        offer_campaign_title: null
                        user_revenue_general: null
                        user_revenue_instagram: null
                        client_revenue: null
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          example: '{offerId}'
                        name:
                          type: string
                          example: '{offerName}'
                        type:
                          type: string
                          example: standard
                        store_id:
                          type: string
                          example: '{storeId}'
                        to:
                          type: string
                          example: '0000-00-00 00:00:00'
                        cpc:
                          type: integer
                          example: 100
                        max_clicks:
                          type: integer
                          example: 30
                        current_clicks:
                          type: integer
                          example: 0
                        max_money:
                          type: integer
                          example: 10000
                        current_money:
                          type: integer
                          example: 0
                        active:
                          type: integer
                          example: 1
                        created_at:
                          type: string
                          example: '2020-08-12 08:35:42'
                        updated_at:
                          type: string
                          example: '2020-08-12 08:35:42'
                        from:
                          type: string
                          example: '0000-00-00 00:00:00'
                        instagram_cpc:
                          type: integer
                          example: 100
                        invoice_cpc:
                          type: integer
                          example: 100
                        invoice_instagram_cpc:
                          type: integer
                          example: 100
                        revenue_cpa:
                          type: string
                          example: null
                        revenue_instagram_cpa:
                          type: string
                          example: null
                        invoice_instagram_cpa:
                          type: string
                          example: null
                        invoice_cpa:
                          type: string
                          example: null
                        priority:
                          type: integer
                          example: 10
                        cpa:
                          type: string
                          example: null
                        instagram_cpa:
                          type: string
                          example: null
                        store_visibility:
                          type: string
                          example: null
                        offer_campaign_show:
                          type: string
                          example: null
                        offer_campaign_text:
                          type: string
                          example: null
                        offer_campaign_title:
                          type: string
                          example: null
                        user_revenue_general:
                          type: string
                          example: null
                        user_revenue_instagram:
                          type: string
                          example: null
                        client_revenue:
                          type: string
                          example: null
                  first_page_url:
                    type: string
                    example: 'http://metapic-api.loc/stores/{storeId}/offers?page=1'
                  from:
                    type: integer
                    example: 1
                  last_page:
                    type: integer
                    example: 1
                  last_page_url:
                    type: string
                    example: 'http://metapic-api.loc/stores/{storeId}/offers?page=1'
                  next_page_url:
                    type: string
                    example: null
                  path:
                    type: string
                    example: 'http://metapic-api.loc/stores/{storeId}/offers'
                  per_page:
                    type: integer
                    example: 15
                  prev_page_url:
                    type: string
                    example: null
                  to:
                    type: integer
                    example: 3
                  total:
                    type: integer
                    example: 3
      tags:
        - Influencers
  /advertiser/influencers/instagram-data-downloaded:
    post:
      summary: 'Instagram Data Downloaded Notification'
      operationId: instagramDataDownloadedNotification
      description: 'Notify Advertiser that Influencer Instagram data was fully downloaded'
      parameters: []
      responses: {  }
      tags:
        - Influencers
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                user_id:
                  type: integer
                  description: 'User ID to notify.'
                  example: 2
                identifier:
                  type: string
                  description: 'The influencers identifier whos data was downloaded.'
                  example: username123
              required:
                - user_id
                - identifier
      security: []
  '/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: ankmzbroggpo
              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: qjoorwrpdhchmnfmacgdek
              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: veniam
          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: veniam
        -
          in: query
          name: status
          description: ''
          example: open
          required: false
          schema:
            type: string
            description: ''
            example: open
            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: store_denied
                  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
  '/stores/{id}/offers':
    get:
      summary: 'Get Offers'
      operationId: getOffers
      description: 'Get Advertiser Store Offers Paginated List.'
      parameters:
        -
          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
        -
          in: query
          name: pagination
          description: 'Should be offers paginated.'
          example: false
          required: false
          schema:
            type: boolean
            description: 'Should be offers paginated.'
            example: false
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  current_page: 1
                  data:
                    -
                      id: '{offerId}'
                      name: '{offerName}'
                      type: standard
                      store_id: '{storeId}'
                      to: '0000-00-00 00:00:00'
                      cpc: 100
                      max_clicks: 30
                      current_clicks: 0
                      max_money: 10000
                      current_money: 0
                      active: 1
                      created_at: '2020-08-12 08:35:42'
                      updated_at: '2020-08-12 08:35:42'
                      from: '0000-00-00 00:00:00'
                      instagram_cpc: 100
                      invoice_cpc: 100
                      invoice_instagram_cpc: 100
                      revenue_cpa: null
                      revenue_instagram_cpa: null
                      invoice_instagram_cpa: null
                      invoice_cpa: null
                      priority: 10
                      cpa: null
                      instagram_cpa: null
                      store_visibility: null
                      offer_campaign_show: null
                      offer_campaign_text: null
                      offer_campaign_title: null
                      user_revenue_general: null
                      user_revenue_instagram: null
                      client_revenue: null
                      traffic_sources_costs:
                        -
                          id: 43
                          offer_id: '{offerId}'
                          source: 0
                          cpc: 100
                          invoice_cpc: 100
                          cpa: null
                          invoice_cpa: null
                          user_revenue: null
                          client_revenue: null
                          created_at: '2023-06-06 10:49:53'
                          updated_at: '2023-06-06 10:49:53'
                        - ...
                  first_page_url: 'http://metapic-api.loc/stores/{storeId}/offers?page=1'
                  from: 1
                  last_page: 1
                  last_page_url: 'http://metapic-api.loc/stores/{storeId}/offers?page=1'
                  next_page_url: null
                  path: 'http://metapic-api.loc/stores/{storeId}/offers'
                  per_page: 15
                  prev_page_url: null
                  to: 3
                  total: 3
                properties:
                  current_page:
                    type: integer
                    example: 1
                  data:
                    type: array
                    example:
                      -
                        id: '{offerId}'
                        name: '{offerName}'
                        type: standard
                        store_id: '{storeId}'
                        to: '0000-00-00 00:00:00'
                        cpc: 100
                        max_clicks: 30
                        current_clicks: 0
                        max_money: 10000
                        current_money: 0
                        active: 1
                        created_at: '2020-08-12 08:35:42'
                        updated_at: '2020-08-12 08:35:42'
                        from: '0000-00-00 00:00:00'
                        instagram_cpc: 100
                        invoice_cpc: 100
                        invoice_instagram_cpc: 100
                        revenue_cpa: null
                        revenue_instagram_cpa: null
                        invoice_instagram_cpa: null
                        invoice_cpa: null
                        priority: 10
                        cpa: null
                        instagram_cpa: null
                        store_visibility: null
                        offer_campaign_show: null
                        offer_campaign_text: null
                        offer_campaign_title: null
                        user_revenue_general: null
                        user_revenue_instagram: null
                        client_revenue: null
                        traffic_sources_costs:
                          -
                            id: 43
                            offer_id: '{offerId}'
                            source: 0
                            cpc: 100
                            invoice_cpc: 100
                            cpa: null
                            invoice_cpa: null
                            user_revenue: null
                            client_revenue: null
                            created_at: '2023-06-06 10:49:53'
                            updated_at: '2023-06-06 10:49:53'
                          - ...
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          example: '{offerId}'
                        name:
                          type: string
                          example: '{offerName}'
                        type:
                          type: string
                          example: standard
                        store_id:
                          type: string
                          example: '{storeId}'
                        to:
                          type: string
                          example: '0000-00-00 00:00:00'
                        cpc:
                          type: integer
                          example: 100
                        max_clicks:
                          type: integer
                          example: 30
                        current_clicks:
                          type: integer
                          example: 0
                        max_money:
                          type: integer
                          example: 10000
                        current_money:
                          type: integer
                          example: 0
                        active:
                          type: integer
                          example: 1
                        created_at:
                          type: string
                          example: '2020-08-12 08:35:42'
                        updated_at:
                          type: string
                          example: '2020-08-12 08:35:42'
                        from:
                          type: string
                          example: '0000-00-00 00:00:00'
                        instagram_cpc:
                          type: integer
                          example: 100
                        invoice_cpc:
                          type: integer
                          example: 100
                        invoice_instagram_cpc:
                          type: integer
                          example: 100
                        revenue_cpa:
                          type: string
                          example: null
                        revenue_instagram_cpa:
                          type: string
                          example: null
                        invoice_instagram_cpa:
                          type: string
                          example: null
                        invoice_cpa:
                          type: string
                          example: null
                        priority:
                          type: integer
                          example: 10
                        cpa:
                          type: string
                          example: null
                        instagram_cpa:
                          type: string
                          example: null
                        store_visibility:
                          type: string
                          example: null
                        offer_campaign_show:
                          type: string
                          example: null
                        offer_campaign_text:
                          type: string
                          example: null
                        offer_campaign_title:
                          type: string
                          example: null
                        user_revenue_general:
                          type: string
                          example: null
                        user_revenue_instagram:
                          type: string
                          example: null
                        client_revenue:
                          type: string
                          example: null
                        traffic_sources_costs:
                          type: array
                          example:
                            -
                              id: 43
                              offer_id: '{offerId}'
                              source: 0
                              cpc: 100
                              invoice_cpc: 100
                              cpa: null
                              invoice_cpa: null
                              user_revenue: null
                              client_revenue: null
                              created_at: '2023-06-06 10:49:53'
                              updated_at: '2023-06-06 10:49:53'
                            - ...
                          items:
                            type: object
                            properties:
                              id:
                                type: integer
                                example: 43
                              offer_id:
                                type: string
                                example: '{offerId}'
                              source:
                                type: integer
                                example: 0
                              cpc:
                                type: integer
                                example: 100
                              invoice_cpc:
                                type: integer
                                example: 100
                              cpa:
                                type: string
                                example: null
                              invoice_cpa:
                                type: string
                                example: null
                              user_revenue:
                                type: string
                                example: null
                              client_revenue:
                                type: string
                                example: null
                              created_at:
                                type: string
                                example: '2023-06-06 10:49:53'
                              updated_at:
                                type: string
                                example: '2023-06-06 10:49:53'
                  first_page_url:
                    type: string
                    example: 'http://metapic-api.loc/stores/{storeId}/offers?page=1'
                  from:
                    type: integer
                    example: 1
                  last_page:
                    type: integer
                    example: 1
                  last_page_url:
                    type: string
                    example: 'http://metapic-api.loc/stores/{storeId}/offers?page=1'
                  next_page_url:
                    type: string
                    example: null
                  path:
                    type: string
                    example: 'http://metapic-api.loc/stores/{storeId}/offers'
                  per_page:
                    type: integer
                    example: 15
                  prev_page_url:
                    type: string
                    example: null
                  to:
                    type: integer
                    example: 3
                  total:
                    type: integer
                    example: 3
      tags:
        - Offers
    post:
      summary: 'Create Offer'
      operationId: createOffer
      description: 'Create Store Offer by Advertiser'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  id: '{offerId}'
                  name: '{offerName}'
                  to: '0000-00-00 00:00:00'
                  cpc: 100
                  max_clicks: 30
                  current_clicks: 0
                  max_money: 10000
                  current_money: 0
                  active: 1
                  created_at: '2020-08-12 08:35:42'
                  updated_at: '2020-08-12 08:35:42'
                  from: '0000-00-00 00:00:00'
                  instagram_cpc: 100
                  invoice_cpc: 100
                  invoice_instagram_cpc: 100
                  revenue_cpa: null
                  revenue_instagram_cpa: null
                  invoice_instagram_cpa: null
                  invoice_cpa: null
                  priority: 10
                  cpa: null
                  instagram_cpa: null
                  store_visibility: null
                  offer_campaign_show: null
                  offer_campaign_text: null
                  offer_campaign_title: null
                  user_revenue_general: null
                  user_revenue_instagram: null
                  client_revenue: null
                  clients: []
                  store_groups: []
                  revenue_tier: []
                  user_tags: []
                  traffic_sources_costs:
                    -
                      id: 43
                      offer_id: '{offerId}'
                      source: 0
                      cpc: 100
                      invoice_cpc: 100
                      cpa: null
                      invoice_cpa: null
                      user_revenue: null
                      client_revenue: null
                      created_at: '2023-06-06 10:49:53'
                      updated_at: '2023-06-06 10:49:53'
                    - ...
                properties:
                  id:
                    type: string
                    example: '{offerId}'
                  name:
                    type: string
                    example: '{offerName}'
                  to:
                    type: string
                    example: '0000-00-00 00:00:00'
                  cpc:
                    type: integer
                    example: 100
                  max_clicks:
                    type: integer
                    example: 30
                  current_clicks:
                    type: integer
                    example: 0
                  max_money:
                    type: integer
                    example: 10000
                  current_money:
                    type: integer
                    example: 0
                  active:
                    type: integer
                    example: 1
                  created_at:
                    type: string
                    example: '2020-08-12 08:35:42'
                  updated_at:
                    type: string
                    example: '2020-08-12 08:35:42'
                  from:
                    type: string
                    example: '0000-00-00 00:00:00'
                  instagram_cpc:
                    type: integer
                    example: 100
                  invoice_cpc:
                    type: integer
                    example: 100
                  invoice_instagram_cpc:
                    type: integer
                    example: 100
                  revenue_cpa:
                    type: string
                    example: null
                  revenue_instagram_cpa:
                    type: string
                    example: null
                  invoice_instagram_cpa:
                    type: string
                    example: null
                  invoice_cpa:
                    type: string
                    example: null
                  priority:
                    type: integer
                    example: 10
                  cpa:
                    type: string
                    example: null
                  instagram_cpa:
                    type: string
                    example: null
                  store_visibility:
                    type: string
                    example: null
                  offer_campaign_show:
                    type: string
                    example: null
                  offer_campaign_text:
                    type: string
                    example: null
                  offer_campaign_title:
                    type: string
                    example: null
                  user_revenue_general:
                    type: string
                    example: null
                  user_revenue_instagram:
                    type: string
                    example: null
                  client_revenue:
                    type: string
                    example: null
                  clients:
                    type: array
                    example: []
                  store_groups:
                    type: array
                    example: []
                  revenue_tier:
                    type: array
                    example: []
                  user_tags:
                    type: array
                    example: []
                  traffic_sources_costs:
                    type: array
                    example:
                      -
                        id: 43
                        offer_id: '{offerId}'
                        source: 0
                        cpc: 100
                        invoice_cpc: 100
                        cpa: null
                        invoice_cpa: null
                        user_revenue: null
                        client_revenue: null
                        created_at: '2023-06-06 10:49:53'
                        updated_at: '2023-06-06 10:49:53'
                      - ...
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                          example: 43
                        offer_id:
                          type: string
                          example: '{offerId}'
                        source:
                          type: integer
                          example: 0
                        cpc:
                          type: integer
                          example: 100
                        invoice_cpc:
                          type: integer
                          example: 100
                        cpa:
                          type: string
                          example: null
                        invoice_cpa:
                          type: string
                          example: null
                        user_revenue:
                          type: string
                          example: null
                        client_revenue:
                          type: string
                          example: null
                        created_at:
                          type: string
                          example: '2023-06-06 10:49:53'
                        updated_at:
                          type: string
                          example: '2023-06-06 10:49:53'
      tags:
        - Offers
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: "Offer name.\n\nMust not be greater than 64 characters."
                  example: 'My Offer'
                from:
                  type: string
                  description: "Offer start date.\n\nMust be a valid date."
                  example: '2020-01-01'
                to:
                  type: string
                  description: "Offer end date.\n\nMust be a valid date."
                  example: '2020-01-02'
                max_clicks:
                  type: integer
                  description: "Offer max clicks.\n\nMust not be greater than 1000000."
                  example: 1000
                max_money:
                  type: integer
                  description: "Offer max money.\n\nMust not be greater than 1000000."
                  example: 10000
                one_time_payment:
                  type: integer
                  description: "Offer one time payment.\n\nMust not be greater than 1000000."
                  example: 10000
                active:
                  type: boolean
                  description: 'Offer status (0 - inactive, 1 - active).'
                  example: 1
                priority:
                  type: integer
                  description: "Offer priority - the offer with higher priority will be used.\n\nMust be at least 1. Must not be greater than 100."
                  example: 10
                store_visibility:
                  type: integer
                  description: 'Show offer store for users (0 - will be used store options, 1 - hide store, 2 - show store).'
                  example: 2
                  enum:
                    - '0'
                    - '1'
                    - '2'
                offer_campaign_show:
                  type: boolean
                  description: "Offer campaign show (0 - don't show, 1 - show)."
                  example: 1
                offer_campaign_title:
                  type: string
                  description: "Offer campaign title.\n\nMust not be greater than 64 characters."
                  example: 'Offer Campaign'
                offer_campaign_text:
                  type: string
                  description: "Offer campaign text.\n\nMust not be greater than 1056 characters."
                  example: 'Offer Campaign Text'
                clients:
                  type: array
                  description: 'Offer clients.'
                  example: null
                  items:
                    type: object
                    properties:
                      id:
                        type: integer
                        description: 'This field is required when <code>clients</code> is present.'
                        example: 15
                revenue_tiers:
                  type: array
                  description: 'Offer revenue tiers.'
                  example: null
                  items:
                    type: object
                    properties:
                      id:
                        type: integer
                        description: 'This field is required when <code>revenue_tiers</code> is present.'
                        example: 20
                store_groups:
                  type: array
                  description: 'Offer store groups.'
                  example: null
                  items:
                    type: object
                    properties:
                      id:
                        type: integer
                        description: 'This field is required when <code>store_groups</code> is present.'
                        example: 19
                users:
                  type: array
                  description: 'Offer users.'
                  example: null
                  items:
                    type: object
                    properties:
                      id:
                        type: integer
                        description: 'This field is required when <code>store_groups</code> is present.'
                        example: 16
                user_tags:
                  type: array
                  description: 'Offer user tags.'
                  example: null
                  items:
                    type: object
                    properties:
                      id:
                        type: integer
                        description: 'This field is required when <code>user_tags</code> is present.'
                        example: 2
                offer_influencer_text:
                  type: string
                  description: "Offer influencer text.\n\nMust not be greater than 255 characters."
                  example: 'Offer influencer Text'
                email_users:
                  type: array
                  description: "Pre-register offer users by e-mail.\n\nThe value format is invalid. Must not be greater than 128 characters."
                  example:
                    - 'y'
                  items:
                    type: string
                social_media_users:
                  type: array
                  description: "Pre-register offer users instagram identifier.\n\nMust not be greater than 128 characters."
                  example:
                    - pxsvlhilqdlfgtwgt
                  items:
                    type: string
                type:
                  type: string
                  description: 'Offer type.'
                  example: store_accept
                  enum:
                    - standard
                    - user_accept
                    - store_accept
                    - suggestion
                todo:
                  type: object
                  description: ''
                  example: null
                  properties: {  }
                each_user_limit:
                  type: boolean
                  description: 'Use offer limits for each user (0 - no, 1 - yes).'
                  example: 1
                has_product_seeding:
                  type: boolean
                  description: ''
                  example: true
                has_onetime_payment:
                  type: boolean
                  description: ''
                  example: true
                traffic_sources_costs:
                  type: array
                  description: 'Store traffic sources costs.'
                  example: null
                  items:
                    type: object
                    properties:
                      source:
                        type: integer
                        description: ''
                        example: 2
                      cpc:
                        type: integer
                        description: 'Must not be greater than 1000.'
                        example: 22
                      cpa:
                        type: number
                        description: 'Must be between 0 and 1.'
                        example: 0
                    required:
                      - source
                      - cpc
                      - cpa
              required:
                - active
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the Advertiser Store.'
        example: 123
        required: true
        schema:
          type: integer
  '/stores/{id}/offers/{id}':
    get:
      summary: 'Get Offer'
      operationId: getOffer
      description: 'View Store Offer by ID'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  id: '{offerId}'
                  name: '{offerName}'
                  to: '0000-00-00 00:00:00'
                  cpc: 100
                  max_clicks: 30
                  current_clicks: 0
                  max_money: 10000
                  current_money: 0
                  active: 1
                  created_at: '2020-08-12 08:35:42'
                  updated_at: '2020-08-12 08:35:42'
                  from: '0000-00-00 00:00:00'
                  instagram_cpc: 100
                  invoice_cpc: 100
                  invoice_instagram_cpc: 100
                  revenue_cpa: null
                  revenue_instagram_cpa: null
                  invoice_instagram_cpa: null
                  invoice_cpa: null
                  priority: 10
                  cpa: null
                  instagram_cpa: null
                  store_visibility: null
                  offer_campaign_show: null
                  offer_campaign_text: null
                  offer_campaign_title: null
                  user_revenue_general: null
                  user_revenue_instagram: null
                  client_revenue: null
                  clients: []
                  store_groups: []
                  revenue_tier: []
                  user_tags: []
                  traffic_sources_costs:
                    -
                      id: 43
                      offer_id: '{offerId}'
                      source: 0
                      cpc: 100
                      invoice_cpc: 100
                      cpa: null
                      invoice_cpa: null
                      user_revenue: null
                      client_revenue: null
                      created_at: '2023-06-06 10:49:53'
                      updated_at: '2023-06-06 10:49:53'
                    - ...
                properties:
                  id:
                    type: string
                    example: '{offerId}'
                  name:
                    type: string
                    example: '{offerName}'
                  to:
                    type: string
                    example: '0000-00-00 00:00:00'
                  cpc:
                    type: integer
                    example: 100
                  max_clicks:
                    type: integer
                    example: 30
                  current_clicks:
                    type: integer
                    example: 0
                  max_money:
                    type: integer
                    example: 10000
                  current_money:
                    type: integer
                    example: 0
                  active:
                    type: integer
                    example: 1
                  created_at:
                    type: string
                    example: '2020-08-12 08:35:42'
                  updated_at:
                    type: string
                    example: '2020-08-12 08:35:42'
                  from:
                    type: string
                    example: '0000-00-00 00:00:00'
                  instagram_cpc:
                    type: integer
                    example: 100
                  invoice_cpc:
                    type: integer
                    example: 100
                  invoice_instagram_cpc:
                    type: integer
                    example: 100
                  revenue_cpa:
                    type: string
                    example: null
                  revenue_instagram_cpa:
                    type: string
                    example: null
                  invoice_instagram_cpa:
                    type: string
                    example: null
                  invoice_cpa:
                    type: string
                    example: null
                  priority:
                    type: integer
                    example: 10
                  cpa:
                    type: string
                    example: null
                  instagram_cpa:
                    type: string
                    example: null
                  store_visibility:
                    type: string
                    example: null
                  offer_campaign_show:
                    type: string
                    example: null
                  offer_campaign_text:
                    type: string
                    example: null
                  offer_campaign_title:
                    type: string
                    example: null
                  user_revenue_general:
                    type: string
                    example: null
                  user_revenue_instagram:
                    type: string
                    example: null
                  client_revenue:
                    type: string
                    example: null
                  clients:
                    type: array
                    example: []
                  store_groups:
                    type: array
                    example: []
                  revenue_tier:
                    type: array
                    example: []
                  user_tags:
                    type: array
                    example: []
                  traffic_sources_costs:
                    type: array
                    example:
                      -
                        id: 43
                        offer_id: '{offerId}'
                        source: 0
                        cpc: 100
                        invoice_cpc: 100
                        cpa: null
                        invoice_cpa: null
                        user_revenue: null
                        client_revenue: null
                        created_at: '2023-06-06 10:49:53'
                        updated_at: '2023-06-06 10:49:53'
                      - ...
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                          example: 43
                        offer_id:
                          type: string
                          example: '{offerId}'
                        source:
                          type: integer
                          example: 0
                        cpc:
                          type: integer
                          example: 100
                        invoice_cpc:
                          type: integer
                          example: 100
                        cpa:
                          type: string
                          example: null
                        invoice_cpa:
                          type: string
                          example: null
                        user_revenue:
                          type: string
                          example: null
                        client_revenue:
                          type: string
                          example: null
                        created_at:
                          type: string
                          example: '2023-06-06 10:49:53'
                        updated_at:
                          type: string
                          example: '2023-06-06 10:49:53'
      tags:
        - Offers
    put:
      summary: 'Update Offer'
      operationId: updateOffer
      description: 'Update Store Offer by Advertiser'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  id: '{offerId}'
                  name: '{offerName}'
                  to: '0000-00-00 00:00:00'
                  cpc: 100
                  max_clicks: 30
                  current_clicks: 0
                  max_money: 10000
                  current_money: 0
                  active: 1
                  created_at: '2020-08-12 08:35:42'
                  updated_at: '2020-08-12 08:35:42'
                  from: '0000-00-00 00:00:00'
                  instagram_cpc: 100
                  invoice_cpc: 100
                  invoice_instagram_cpc: 100
                  revenue_cpa: null
                  revenue_instagram_cpa: null
                  invoice_instagram_cpa: null
                  invoice_cpa: null
                  priority: 10
                  cpa: null
                  instagram_cpa: null
                  store_visibility: null
                  offer_campaign_show: null
                  offer_campaign_text: null
                  offer_campaign_title: null
                  user_revenue_general: null
                  user_revenue_instagram: null
                  client_revenue: null
                  clients: []
                  store_groups: []
                  revenue_tier: []
                  user_tags: []
                  traffic_sources_costs:
                    -
                      id: 43
                      offer_id: '{offerId}'
                      source: 0
                      cpc: 100
                      invoice_cpc: 100
                      cpa: null
                      invoice_cpa: null
                      user_revenue: null
                      client_revenue: null
                      created_at: '2023-06-06 10:49:53'
                      updated_at: '2023-06-06 10:49:53'
                    - ...
                properties:
                  id:
                    type: string
                    example: '{offerId}'
                  name:
                    type: string
                    example: '{offerName}'
                  to:
                    type: string
                    example: '0000-00-00 00:00:00'
                  cpc:
                    type: integer
                    example: 100
                  max_clicks:
                    type: integer
                    example: 30
                  current_clicks:
                    type: integer
                    example: 0
                  max_money:
                    type: integer
                    example: 10000
                  current_money:
                    type: integer
                    example: 0
                  active:
                    type: integer
                    example: 1
                  created_at:
                    type: string
                    example: '2020-08-12 08:35:42'
                  updated_at:
                    type: string
                    example: '2020-08-12 08:35:42'
                  from:
                    type: string
                    example: '0000-00-00 00:00:00'
                  instagram_cpc:
                    type: integer
                    example: 100
                  invoice_cpc:
                    type: integer
                    example: 100
                  invoice_instagram_cpc:
                    type: integer
                    example: 100
                  revenue_cpa:
                    type: string
                    example: null
                  revenue_instagram_cpa:
                    type: string
                    example: null
                  invoice_instagram_cpa:
                    type: string
                    example: null
                  invoice_cpa:
                    type: string
                    example: null
                  priority:
                    type: integer
                    example: 10
                  cpa:
                    type: string
                    example: null
                  instagram_cpa:
                    type: string
                    example: null
                  store_visibility:
                    type: string
                    example: null
                  offer_campaign_show:
                    type: string
                    example: null
                  offer_campaign_text:
                    type: string
                    example: null
                  offer_campaign_title:
                    type: string
                    example: null
                  user_revenue_general:
                    type: string
                    example: null
                  user_revenue_instagram:
                    type: string
                    example: null
                  client_revenue:
                    type: string
                    example: null
                  clients:
                    type: array
                    example: []
                  store_groups:
                    type: array
                    example: []
                  revenue_tier:
                    type: array
                    example: []
                  user_tags:
                    type: array
                    example: []
                  traffic_sources_costs:
                    type: array
                    example:
                      -
                        id: 43
                        offer_id: '{offerId}'
                        source: 0
                        cpc: 100
                        invoice_cpc: 100
                        cpa: null
                        invoice_cpa: null
                        user_revenue: null
                        client_revenue: null
                        created_at: '2023-06-06 10:49:53'
                        updated_at: '2023-06-06 10:49:53'
                      - ...
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                          example: 43
                        offer_id:
                          type: string
                          example: '{offerId}'
                        source:
                          type: integer
                          example: 0
                        cpc:
                          type: integer
                          example: 100
                        invoice_cpc:
                          type: integer
                          example: 100
                        cpa:
                          type: string
                          example: null
                        invoice_cpa:
                          type: string
                          example: null
                        user_revenue:
                          type: string
                          example: null
                        client_revenue:
                          type: string
                          example: null
                        created_at:
                          type: string
                          example: '2023-06-06 10:49:53'
                        updated_at:
                          type: string
                          example: '2023-06-06 10:49:53'
      tags:
        - Offers
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: "Offer name.\n\nMust not be greater than 64 characters."
                  example: 'My Offer'
                from:
                  type: string
                  description: "Offer start date.\n\nMust be a valid date."
                  example: '2020-01-01'
                to:
                  type: string
                  description: "Offer end date.\n\nMust be a valid date."
                  example: '2020-01-02'
                max_clicks:
                  type: integer
                  description: "Offer max clicks.\n\nMust not be greater than 1000000."
                  example: 1000
                max_money:
                  type: integer
                  description: "Offer max money.\n\nMust not be greater than 1000000."
                  example: 10000
                one_time_payment:
                  type: integer
                  description: "Offer one time payment.\n\nMust not be greater than 1000000."
                  example: 10000
                active:
                  type: boolean
                  description: 'Offer status (0 - inactive, 1 - active).'
                  example: 1
                priority:
                  type: integer
                  description: "Offer priority - the offer with higher priority will be used.\n\nMust be at least 1. Must not be greater than 100."
                  example: 10
                store_visibility:
                  type: integer
                  description: 'Show offer store for users (0 - will be used store options, 1 - hide store, 2 - show store).'
                  example: 2
                  enum:
                    - '0'
                    - '1'
                    - '2'
                offer_campaign_show:
                  type: boolean
                  description: "Offer campaign show (0 - don't show, 1 - show)."
                  example: 1
                offer_campaign_title:
                  type: string
                  description: "Offer campaign title.\n\nMust not be greater than 64 characters."
                  example: 'Offer Campaign'
                offer_campaign_text:
                  type: string
                  description: "Offer campaign text.\n\nMust not be greater than 1056 characters."
                  example: 'Offer Campaign Text'
                clients:
                  type: array
                  description: 'Offer clients.'
                  example: null
                  items:
                    type: object
                    properties:
                      id:
                        type: integer
                        description: 'This field is required when <code>clients</code> is present.'
                        example: 17
                revenue_tiers:
                  type: array
                  description: 'Offer revenue tiers.'
                  example: null
                  items:
                    type: object
                    properties:
                      id:
                        type: integer
                        description: 'This field is required when <code>revenue_tiers</code> is present.'
                        example: 14
                store_groups:
                  type: array
                  description: 'Offer store groups.'
                  example: null
                  items:
                    type: object
                    properties:
                      id:
                        type: integer
                        description: 'This field is required when <code>store_groups</code> is present.'
                        example: 6
                users:
                  type: array
                  description: 'Offer users.'
                  example: null
                  items:
                    type: object
                    properties:
                      id:
                        type: integer
                        description: 'This field is required when <code>store_groups</code> is present.'
                        example: 10
                user_tags:
                  type: array
                  description: 'Offer user tags.'
                  example: null
                  items:
                    type: object
                    properties:
                      id:
                        type: integer
                        description: 'This field is required when <code>user_tags</code> is present.'
                        example: 7
                offer_influencer_text:
                  type: string
                  description: "Offer influencer text.\n\nMust not be greater than 255 characters."
                  example: 'Offer influencer Text'
                email_users:
                  type: array
                  description: "Pre-register offer users by e-mail.\n\nThe value format is invalid. Must not be greater than 128 characters."
                  example:
                    - jjqqcuygwmjexqeklpvpucg
                  items:
                    type: string
                social_media_users:
                  type: array
                  description: "Pre-register offer users instagram identifier.\n\nMust not be greater than 128 characters."
                  example:
                    - vkvdosdfmdxlgbgoho
                  items:
                    type: string
                type:
                  type: string
                  description: 'Offer type.'
                  example: store_accept
                  enum:
                    - standard
                    - user_accept
                    - store_accept
                    - suggestion
                todo:
                  type: object
                  description: ''
                  example: null
                  properties: {  }
                each_user_limit:
                  type: boolean
                  description: 'Use offer limits for each user (0 - no, 1 - yes).'
                  example: 1
                has_product_seeding:
                  type: boolean
                  description: ''
                  example: false
                has_onetime_payment:
                  type: boolean
                  description: ''
                  example: false
                traffic_sources_costs:
                  type: array
                  description: 'Store traffic sources costs.'
                  example: null
                  items:
                    type: object
                    properties:
                      source:
                        type: integer
                        description: ''
                        example: 13
                      cpc:
                        type: integer
                        description: 'Must not be greater than 1000.'
                        example: 13
                      cpa:
                        type: number
                        description: 'Must be between 0 and 1.'
                        example: 0
                    required:
                      - source
                      - cpc
                      - cpa
              required:
                - active
    delete:
      summary: 'Delete Offer'
      operationId: deleteOffer
      description: 'Update Store Advertiser Offer by ID'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  id: '{offerId}'
                  name: '{offerName}'
                  to: '0000-00-00 00:00:00'
                  cpc: 100
                  max_clicks: 30
                  current_clicks: 0
                  max_money: 10000
                  current_money: 0
                  active: 1
                  created_at: '2020-08-12 08:35:42'
                  updated_at: '2020-08-12 08:35:42'
                  from: '0000-00-00 00:00:00'
                  instagram_cpc: 100
                  invoice_cpc: 100
                  invoice_instagram_cpc: 100
                  revenue_cpa: null
                  revenue_instagram_cpa: null
                  invoice_instagram_cpa: null
                  invoice_cpa: null
                  priority: 10
                  cpa: null
                  instagram_cpa: null
                  store_visibility: null
                  offer_campaign_show: null
                  offer_campaign_text: null
                  offer_campaign_title: null
                  user_revenue_general: null
                  user_revenue_instagram: null
                  client_revenue: null
                  clients: []
                  store_groups: []
                  revenue_tier: []
                  user_tags: []
                  traffic_sources_costs:
                    -
                      id: 43
                      offer_id: '{offerId}'
                      source: 0
                      cpc: 100
                      invoice_cpc: 100
                      cpa: null
                      invoice_cpa: null
                      user_revenue: null
                      client_revenue: null
                      created_at: '2023-06-06 10:49:53'
                      updated_at: '2023-06-06 10:49:53'
                    - ...
                properties:
                  id:
                    type: string
                    example: '{offerId}'
                  name:
                    type: string
                    example: '{offerName}'
                  to:
                    type: string
                    example: '0000-00-00 00:00:00'
                  cpc:
                    type: integer
                    example: 100
                  max_clicks:
                    type: integer
                    example: 30
                  current_clicks:
                    type: integer
                    example: 0
                  max_money:
                    type: integer
                    example: 10000
                  current_money:
                    type: integer
                    example: 0
                  active:
                    type: integer
                    example: 1
                  created_at:
                    type: string
                    example: '2020-08-12 08:35:42'
                  updated_at:
                    type: string
                    example: '2020-08-12 08:35:42'
                  from:
                    type: string
                    example: '0000-00-00 00:00:00'
                  instagram_cpc:
                    type: integer
                    example: 100
                  invoice_cpc:
                    type: integer
                    example: 100
                  invoice_instagram_cpc:
                    type: integer
                    example: 100
                  revenue_cpa:
                    type: string
                    example: null
                  revenue_instagram_cpa:
                    type: string
                    example: null
                  invoice_instagram_cpa:
                    type: string
                    example: null
                  invoice_cpa:
                    type: string
                    example: null
                  priority:
                    type: integer
                    example: 10
                  cpa:
                    type: string
                    example: null
                  instagram_cpa:
                    type: string
                    example: null
                  store_visibility:
                    type: string
                    example: null
                  offer_campaign_show:
                    type: string
                    example: null
                  offer_campaign_text:
                    type: string
                    example: null
                  offer_campaign_title:
                    type: string
                    example: null
                  user_revenue_general:
                    type: string
                    example: null
                  user_revenue_instagram:
                    type: string
                    example: null
                  client_revenue:
                    type: string
                    example: null
                  clients:
                    type: array
                    example: []
                  store_groups:
                    type: array
                    example: []
                  revenue_tier:
                    type: array
                    example: []
                  user_tags:
                    type: array
                    example: []
                  traffic_sources_costs:
                    type: array
                    example:
                      -
                        id: 43
                        offer_id: '{offerId}'
                        source: 0
                        cpc: 100
                        invoice_cpc: 100
                        cpa: null
                        invoice_cpa: null
                        user_revenue: null
                        client_revenue: null
                        created_at: '2023-06-06 10:49:53'
                        updated_at: '2023-06-06 10:49:53'
                      - ...
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                          example: 43
                        offer_id:
                          type: string
                          example: '{offerId}'
                        source:
                          type: integer
                          example: 0
                        cpc:
                          type: integer
                          example: 100
                        invoice_cpc:
                          type: integer
                          example: 100
                        cpa:
                          type: string
                          example: null
                        invoice_cpa:
                          type: string
                          example: null
                        user_revenue:
                          type: string
                          example: null
                        client_revenue:
                          type: string
                          example: null
                        created_at:
                          type: string
                          example: '2023-06-06 10:49:53'
                        updated_at:
                          type: string
                          example: '2023-06-06 10:49:53'
      tags:
        - Offers
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the Advertiser Store.'
        example: 123
        required: true
        schema:
          type: integer
      -
        in: path
        name: offer
        description: 'The ID of the Advertiser Offer.'
        example: 12
        required: true
        schema:
          type: integer
  '/stores/{id}/offers/{offerId}/users':
    get:
      summary: 'Get Offer Users'
      operationId: getOfferUsers
      description: 'Search for Offer Users'
      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: vel
          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: vel
        -
          in: query
          name: status
          description: ''
          example: denied
          required: false
          schema:
            type: string
            description: ''
            example: denied
            enum:
              - open
              - applied
              - denied
              - accepted
              - store_denied
              - done
              - suggestion
              - second_prio
              - have_posted
              - have_received
              - product_sent
      responses: {  }
      tags:
        - Offers
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the Advertiser Store.'
        example: '123'
        required: true
        schema:
          type: string
      -
        in: path
        name: offerId
        description: 'The ID of the Advertiser Offer.'
        example: '12'
        required: true
        schema:
          type: string
  '/stores/{id}/offers/{offerId}/users/add':
    post:
      summary: 'Add Users To Offer'
      operationId: addUsersToOffer
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  current_page: 1
                  data:
                    -
                      id: 14631688
                      user_id: '{userId}'
                      offer_id: '{offerId}'
                      clicks: 0
                      status: accepted
                      username: '{username}'
                      email: '{email}'
                      todo: null
                      user:
                        id: 24050
                        username: '{username}'
                        email: '{email}'
                        phone: '{phone}'
                        created_at: '2017-04-11 11:39:45'
                        updated_at: '2022-10-18 14:29:50'
                        social_media:
                          -
                            id: 1
                            user_id: 24050
                            type: instagram
                            identifier: '{identifier}'
                            is_valid: 1
                            created_at: '2018-09-19 15:04:27'
                            updated_at: '2021-06-03 13:49:44'
                            followers: 285853
                            remote_id: '310876147'
                          -
                            id: 2
                            user_id: 24050
                            type: blog
                            identifier: '{identifier}'
                            is_valid: 1
                            created_at: '2021-01-23 23:26:46'
                            updated_at: '2021-01-23 23:26:46'
                            followers: null
                            remote_id: ''
                      offer_comments:
                        -
                          id: 1
                          comment: 'The comment text'
                          offers_to_users_id: 14631688
                          deleted_at: null
                          created_at: '2022-11-15T16:29:23.000000Z'
                          updated_at: '2022-11-15T16:29:23.000000Z'
                          created_by: 61708
                  first_page_url: 'http://metapic-api.loc/stores/{storeId}/offers/{offerId}/users?page=1'
                  from: 1
                  last_page: 1
                  last_page_url: 'http://metapic-api.loc/stores/{storeId}/offers/{offerId}/users?page=1'
                  links:
                    -
                      url: null
                      label: '&laquo; Previous'
                      active: false
                    -
                      url: 'http://metapic-api.loc/stores/{storeId}/offers/{offerId}/users?page=1'
                      label: '1'
                      active: true
                    -
                      url: null
                      label: 'Next &raquo;'
                      active: false
                  next_page_url: null
                  path: 'http://metapic-api.loc/stores/{storeId}/offers/{offerId}/users'
                  per_page: 15
                  prev_page_url: null
                  to: 1
                  total: 1
                properties:
                  current_page:
                    type: integer
                    example: 1
                  data:
                    type: array
                    example:
                      -
                        id: 14631688
                        user_id: '{userId}'
                        offer_id: '{offerId}'
                        clicks: 0
                        status: accepted
                        username: '{username}'
                        email: '{email}'
                        todo: null
                        user:
                          id: 24050
                          username: '{username}'
                          email: '{email}'
                          phone: '{phone}'
                          created_at: '2017-04-11 11:39:45'
                          updated_at: '2022-10-18 14:29:50'
                          social_media:
                            -
                              id: 1
                              user_id: 24050
                              type: instagram
                              identifier: '{identifier}'
                              is_valid: 1
                              created_at: '2018-09-19 15:04:27'
                              updated_at: '2021-06-03 13:49:44'
                              followers: 285853
                              remote_id: '310876147'
                            -
                              id: 2
                              user_id: 24050
                              type: blog
                              identifier: '{identifier}'
                              is_valid: 1
                              created_at: '2021-01-23 23:26:46'
                              updated_at: '2021-01-23 23:26:46'
                              followers: null
                              remote_id: ''
                        offer_comments:
                          -
                            id: 1
                            comment: 'The comment text'
                            offers_to_users_id: 14631688
                            deleted_at: null
                            created_at: '2022-11-15T16:29:23.000000Z'
                            updated_at: '2022-11-15T16:29:23.000000Z'
                            created_by: 61708
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                          example: 14631688
                        user_id:
                          type: string
                          example: '{userId}'
                        offer_id:
                          type: string
                          example: '{offerId}'
                        clicks:
                          type: integer
                          example: 0
                        status:
                          type: string
                          example: accepted
                        username:
                          type: string
                          example: '{username}'
                        email:
                          type: string
                          example: '{email}'
                        todo:
                          type: string
                          example: null
                        user:
                          type: object
                          properties:
                            id:
                              type: integer
                              example: 24050
                            username:
                              type: string
                              example: '{username}'
                            email:
                              type: string
                              example: '{email}'
                            phone:
                              type: string
                              example: '{phone}'
                            created_at:
                              type: string
                              example: '2017-04-11 11:39:45'
                            updated_at:
                              type: string
                              example: '2022-10-18 14:29:50'
                            social_media:
                              type: array
                              example:
                                -
                                  id: 1
                                  user_id: 24050
                                  type: instagram
                                  identifier: '{identifier}'
                                  is_valid: 1
                                  created_at: '2018-09-19 15:04:27'
                                  updated_at: '2021-06-03 13:49:44'
                                  followers: 285853
                                  remote_id: '310876147'
                                -
                                  id: 2
                                  user_id: 24050
                                  type: blog
                                  identifier: '{identifier}'
                                  is_valid: 1
                                  created_at: '2021-01-23 23:26:46'
                                  updated_at: '2021-01-23 23:26:46'
                                  followers: null
                                  remote_id: ''
                              items:
                                type: object
                                properties:
                                  id:
                                    type: integer
                                    example: 1
                                  user_id:
                                    type: integer
                                    example: 24050
                                  type:
                                    type: string
                                    example: instagram
                                  identifier:
                                    type: string
                                    example: '{identifier}'
                                  is_valid:
                                    type: integer
                                    example: 1
                                  created_at:
                                    type: string
                                    example: '2018-09-19 15:04:27'
                                  updated_at:
                                    type: string
                                    example: '2021-06-03 13:49:44'
                                  followers:
                                    type: integer
                                    example: 285853
                                  remote_id:
                                    type: string
                                    example: '310876147'
                        offer_comments:
                          type: array
                          example:
                            -
                              id: 1
                              comment: 'The comment text'
                              offers_to_users_id: 14631688
                              deleted_at: null
                              created_at: '2022-11-15T16:29:23.000000Z'
                              updated_at: '2022-11-15T16:29:23.000000Z'
                              created_by: 61708
                          items:
                            type: object
                            properties:
                              id:
                                type: integer
                                example: 1
                              comment:
                                type: string
                                example: 'The comment text'
                              offers_to_users_id:
                                type: integer
                                example: 14631688
                              deleted_at:
                                type: string
                                example: null
                              created_at:
                                type: string
                                example: '2022-11-15T16:29:23.000000Z'
                              updated_at:
                                type: string
                                example: '2022-11-15T16:29:23.000000Z'
                              created_by:
                                type: integer
                                example: 61708
                  first_page_url:
                    type: string
                    example: 'http://metapic-api.loc/stores/{storeId}/offers/{offerId}/users?page=1'
                  from:
                    type: integer
                    example: 1
                  last_page:
                    type: integer
                    example: 1
                  last_page_url:
                    type: string
                    example: 'http://metapic-api.loc/stores/{storeId}/offers/{offerId}/users?page=1'
                  links:
                    type: array
                    example:
                      -
                        url: null
                        label: '&laquo; Previous'
                        active: false
                      -
                        url: 'http://metapic-api.loc/stores/{storeId}/offers/{offerId}/users?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/stores/{storeId}/offers/{offerId}/users'
                  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
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                users:
                  type: array
                  description: 'Offer users.'
                  example: null
                  items:
                    type: object
                    properties:
                      id:
                        type: integer
                        description: 'This field is required when <code>users</code> is present.'
                        example: 4
                user_tags:
                  type: array
                  description: 'Offer user tags.'
                  example: null
                  items:
                    type: object
                    properties:
                      id:
                        type: integer
                        description: 'This field is required when <code>user_tags</code> is present.'
                        example: 10
                store_groups:
                  type: array
                  description: ''
                  example: null
                  items:
                    type: object
                    properties:
                      id:
                        type: integer
                        description: 'This field is required when <code>store_groups</code> is present.'
                        example: 11
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the Advertiser Store.'
        example: 123
        required: true
        schema:
          type: integer
      -
        in: path
        name: offerId
        description: 'The Offer ID.'
        example: 123
        required: true
        schema:
          type: integer
  '/advertiser/stores/{id}/offers/{offerId}/social-media-user/add':
    post:
      summary: 'Add Social Media Users To Offer'
      operationId: addSocialMediaUsersToOffer
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  current_page: 1
                  data:
                    -
                      id: 14631688
                      user_id: '{userId}'
                      offer_id: '{offerId}'
                      clicks: 0
                      status: accepted
                      username: '{username}'
                      email: '{email}'
                      todo: null
                      user:
                        id: 24050
                        username: '{username}'
                        email: '{email}'
                        phone: '{phone}'
                        created_at: '2017-04-11 11:39:45'
                        updated_at: '2022-10-18 14:29:50'
                        social_media:
                          -
                            id: 1
                            user_id: 24050
                            type: instagram
                            identifier: '{identifier}'
                            is_valid: 1
                            created_at: '2018-09-19 15:04:27'
                            updated_at: '2021-06-03 13:49:44'
                            followers: 285853
                            remote_id: '310876147'
                          -
                            id: 2
                            user_id: 24050
                            type: blog
                            identifier: '{identifier}'
                            is_valid: 1
                            created_at: '2021-01-23 23:26:46'
                            updated_at: '2021-01-23 23:26:46'
                            followers: null
                            remote_id: ''
                      offer_comments:
                        -
                          id: 1
                          comment: 'The comment text'
                          offers_to_users_id: 14631688
                          deleted_at: null
                          created_at: '2022-11-15T16:29:23.000000Z'
                          updated_at: '2022-11-15T16:29:23.000000Z'
                          created_by: 61708
                  first_page_url: 'http://metapic-api.loc/stores/{storeId}/offers/{offerId}/users?page=1'
                  from: 1
                  last_page: 1
                  last_page_url: 'http://metapic-api.loc/stores/{storeId}/offers/{offerId}/users?page=1'
                  links:
                    -
                      url: null
                      label: '&laquo; Previous'
                      active: false
                    -
                      url: 'http://metapic-api.loc/stores/{storeId}/offers/{offerId}/users?page=1'
                      label: '1'
                      active: true
                    -
                      url: null
                      label: 'Next &raquo;'
                      active: false
                  next_page_url: null
                  path: 'http://metapic-api.loc/stores/{storeId}/offers/{offerId}/users'
                  per_page: 15
                  prev_page_url: null
                  to: 1
                  total: 1
                properties:
                  current_page:
                    type: integer
                    example: 1
                  data:
                    type: array
                    example:
                      -
                        id: 14631688
                        user_id: '{userId}'
                        offer_id: '{offerId}'
                        clicks: 0
                        status: accepted
                        username: '{username}'
                        email: '{email}'
                        todo: null
                        user:
                          id: 24050
                          username: '{username}'
                          email: '{email}'
                          phone: '{phone}'
                          created_at: '2017-04-11 11:39:45'
                          updated_at: '2022-10-18 14:29:50'
                          social_media:
                            -
                              id: 1
                              user_id: 24050
                              type: instagram
                              identifier: '{identifier}'
                              is_valid: 1
                              created_at: '2018-09-19 15:04:27'
                              updated_at: '2021-06-03 13:49:44'
                              followers: 285853
                              remote_id: '310876147'
                            -
                              id: 2
                              user_id: 24050
                              type: blog
                              identifier: '{identifier}'
                              is_valid: 1
                              created_at: '2021-01-23 23:26:46'
                              updated_at: '2021-01-23 23:26:46'
                              followers: null
                              remote_id: ''
                        offer_comments:
                          -
                            id: 1
                            comment: 'The comment text'
                            offers_to_users_id: 14631688
                            deleted_at: null
                            created_at: '2022-11-15T16:29:23.000000Z'
                            updated_at: '2022-11-15T16:29:23.000000Z'
                            created_by: 61708
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                          example: 14631688
                        user_id:
                          type: string
                          example: '{userId}'
                        offer_id:
                          type: string
                          example: '{offerId}'
                        clicks:
                          type: integer
                          example: 0
                        status:
                          type: string
                          example: accepted
                        username:
                          type: string
                          example: '{username}'
                        email:
                          type: string
                          example: '{email}'
                        todo:
                          type: string
                          example: null
                        user:
                          type: object
                          properties:
                            id:
                              type: integer
                              example: 24050
                            username:
                              type: string
                              example: '{username}'
                            email:
                              type: string
                              example: '{email}'
                            phone:
                              type: string
                              example: '{phone}'
                            created_at:
                              type: string
                              example: '2017-04-11 11:39:45'
                            updated_at:
                              type: string
                              example: '2022-10-18 14:29:50'
                            social_media:
                              type: array
                              example:
                                -
                                  id: 1
                                  user_id: 24050
                                  type: instagram
                                  identifier: '{identifier}'
                                  is_valid: 1
                                  created_at: '2018-09-19 15:04:27'
                                  updated_at: '2021-06-03 13:49:44'
                                  followers: 285853
                                  remote_id: '310876147'
                                -
                                  id: 2
                                  user_id: 24050
                                  type: blog
                                  identifier: '{identifier}'
                                  is_valid: 1
                                  created_at: '2021-01-23 23:26:46'
                                  updated_at: '2021-01-23 23:26:46'
                                  followers: null
                                  remote_id: ''
                              items:
                                type: object
                                properties:
                                  id:
                                    type: integer
                                    example: 1
                                  user_id:
                                    type: integer
                                    example: 24050
                                  type:
                                    type: string
                                    example: instagram
                                  identifier:
                                    type: string
                                    example: '{identifier}'
                                  is_valid:
                                    type: integer
                                    example: 1
                                  created_at:
                                    type: string
                                    example: '2018-09-19 15:04:27'
                                  updated_at:
                                    type: string
                                    example: '2021-06-03 13:49:44'
                                  followers:
                                    type: integer
                                    example: 285853
                                  remote_id:
                                    type: string
                                    example: '310876147'
                        offer_comments:
                          type: array
                          example:
                            -
                              id: 1
                              comment: 'The comment text'
                              offers_to_users_id: 14631688
                              deleted_at: null
                              created_at: '2022-11-15T16:29:23.000000Z'
                              updated_at: '2022-11-15T16:29:23.000000Z'
                              created_by: 61708
                          items:
                            type: object
                            properties:
                              id:
                                type: integer
                                example: 1
                              comment:
                                type: string
                                example: 'The comment text'
                              offers_to_users_id:
                                type: integer
                                example: 14631688
                              deleted_at:
                                type: string
                                example: null
                              created_at:
                                type: string
                                example: '2022-11-15T16:29:23.000000Z'
                              updated_at:
                                type: string
                                example: '2022-11-15T16:29:23.000000Z'
                              created_by:
                                type: integer
                                example: 61708
                  first_page_url:
                    type: string
                    example: 'http://metapic-api.loc/stores/{storeId}/offers/{offerId}/users?page=1'
                  from:
                    type: integer
                    example: 1
                  last_page:
                    type: integer
                    example: 1
                  last_page_url:
                    type: string
                    example: 'http://metapic-api.loc/stores/{storeId}/offers/{offerId}/users?page=1'
                  links:
                    type: array
                    example:
                      -
                        url: null
                        label: '&laquo; Previous'
                        active: false
                      -
                        url: 'http://metapic-api.loc/stores/{storeId}/offers/{offerId}/users?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/stores/{storeId}/offers/{offerId}/users'
                  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
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                username:
                  type: string
                  description: 'media username).'
                  example: madyanmalfi
              required:
                - username
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the Advertiser Store.'
        example: 123
        required: true
        schema:
          type: integer
      -
        in: path
        name: offerId
        description: 'The Offer ID.'
        example: 123
        required: true
        schema:
          type: integer
  '/stores/{id}/user/{userId}/offer':
    post:
      summary: 'Add offer to user'
      operationId: addOfferToUser
      description: 'Creates a offer to a user or update a offer it it exist one to this store for only this user.'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  id: '{offerId}'
                  name: '{offerName}'
                  to: '0000-00-00 00:00:00'
                  cpc: 100
                  max_clicks: 30
                  current_clicks: 0
                  max_money: 10000
                  current_money: 0
                  active: 1
                  created_at: '2020-08-12 08:35:42'
                  updated_at: '2020-08-12 08:35:42'
                  from: '0000-00-00 00:00:00'
                  instagram_cpc: 100
                  invoice_cpc: 100
                  invoice_instagram_cpc: 100
                  revenue_cpa: null
                  revenue_instagram_cpa: null
                  invoice_instagram_cpa: null
                  invoice_cpa: null
                  priority: 10
                  cpa: null
                  instagram_cpa: null
                  store_visibility: null
                  offer_campaign_show: null
                  offer_campaign_text: null
                  offer_campaign_title: null
                  user_revenue_general: null
                  user_revenue_instagram: null
                  client_revenue: null
                  clients: []
                  store_groups: []
                  revenue_tier: []
                  user_tags: []
                  traffic_sources_costs:
                    -
                      id: 43
                      offer_id: '{offerId}'
                      source: 0
                      cpc: 100
                      invoice_cpc: 100
                      cpa: null
                      invoice_cpa: null
                      user_revenue: null
                      client_revenue: null
                      created_at: '2023-06-06 10:49:53'
                      updated_at: '2023-06-06 10:49:53'
                    - ...
                properties:
                  id:
                    type: string
                    example: '{offerId}'
                  name:
                    type: string
                    example: '{offerName}'
                  to:
                    type: string
                    example: '0000-00-00 00:00:00'
                  cpc:
                    type: integer
                    example: 100
                  max_clicks:
                    type: integer
                    example: 30
                  current_clicks:
                    type: integer
                    example: 0
                  max_money:
                    type: integer
                    example: 10000
                  current_money:
                    type: integer
                    example: 0
                  active:
                    type: integer
                    example: 1
                  created_at:
                    type: string
                    example: '2020-08-12 08:35:42'
                  updated_at:
                    type: string
                    example: '2020-08-12 08:35:42'
                  from:
                    type: string
                    example: '0000-00-00 00:00:00'
                  instagram_cpc:
                    type: integer
                    example: 100
                  invoice_cpc:
                    type: integer
                    example: 100
                  invoice_instagram_cpc:
                    type: integer
                    example: 100
                  revenue_cpa:
                    type: string
                    example: null
                  revenue_instagram_cpa:
                    type: string
                    example: null
                  invoice_instagram_cpa:
                    type: string
                    example: null
                  invoice_cpa:
                    type: string
                    example: null
                  priority:
                    type: integer
                    example: 10
                  cpa:
                    type: string
                    example: null
                  instagram_cpa:
                    type: string
                    example: null
                  store_visibility:
                    type: string
                    example: null
                  offer_campaign_show:
                    type: string
                    example: null
                  offer_campaign_text:
                    type: string
                    example: null
                  offer_campaign_title:
                    type: string
                    example: null
                  user_revenue_general:
                    type: string
                    example: null
                  user_revenue_instagram:
                    type: string
                    example: null
                  client_revenue:
                    type: string
                    example: null
                  clients:
                    type: array
                    example: []
                  store_groups:
                    type: array
                    example: []
                  revenue_tier:
                    type: array
                    example: []
                  user_tags:
                    type: array
                    example: []
                  traffic_sources_costs:
                    type: array
                    example:
                      -
                        id: 43
                        offer_id: '{offerId}'
                        source: 0
                        cpc: 100
                        invoice_cpc: 100
                        cpa: null
                        invoice_cpa: null
                        user_revenue: null
                        client_revenue: null
                        created_at: '2023-06-06 10:49:53'
                        updated_at: '2023-06-06 10:49:53'
                      - ...
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                          example: 43
                        offer_id:
                          type: string
                          example: '{offerId}'
                        source:
                          type: integer
                          example: 0
                        cpc:
                          type: integer
                          example: 100
                        invoice_cpc:
                          type: integer
                          example: 100
                        cpa:
                          type: string
                          example: null
                        invoice_cpa:
                          type: string
                          example: null
                        user_revenue:
                          type: string
                          example: null
                        client_revenue:
                          type: string
                          example: null
                        created_at:
                          type: string
                          example: '2023-06-06 10:49:53'
                        updated_at:
                          type: string
                          example: '2023-06-06 10:49:53'
      tags:
        - Offers
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                traffic_sources_costs:
                  type: array
                  description: 'Store traffic sources costs.'
                  example: null
                  items:
                    type: object
                    properties:
                      source:
                        type: integer
                        description: ''
                        example: 19
                      cpc:
                        type: integer
                        description: 'Must not be greater than 1000.'
                        example: 21
                      cpa:
                        type: number
                        description: 'Must be between 0 and 1.'
                        example: 0
                    required:
                      - source
                      - cpc
                      - cpa
      security: []
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the Advertiser Store.'
        example: 123
        required: true
        schema:
          type: integer
      -
        in: path
        name: userId
        description: 'The userid of the user.'
        example: 123
        required: true
        schema:
          type: integer
  '/advertiser/stores/{id}/offers/{offerId}/upload-img':
    post:
      summary: 'Upload Offer Image'
      operationId: uploadOfferImage
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  id: '{offerId}'
                  name: '{offerName}'
                  to: '0000-00-00 00:00:00'
                  cpc: 100
                  max_clicks: 30
                  current_clicks: 0
                  max_money: 10000
                  current_money: 0
                  active: 1
                  created_at: '2020-08-12 08:35:42'
                  updated_at: '2020-08-12 08:35:42'
                  from: '0000-00-00 00:00:00'
                  instagram_cpc: 100
                  invoice_cpc: 100
                  invoice_instagram_cpc: 100
                  revenue_cpa: null
                  revenue_instagram_cpa: null
                  invoice_instagram_cpa: null
                  invoice_cpa: null
                  priority: 10
                  cpa: null
                  instagram_cpa: null
                  store_visibility: null
                  offer_campaign_show: null
                  offer_campaign_text: null
                  offer_campaign_title: null
                  user_revenue_general: null
                  user_revenue_instagram: null
                  client_revenue: null
                  clients: []
                  store_groups: []
                  revenue_tier: []
                  user_tags: []
                  traffic_sources_costs:
                    -
                      id: 43
                      offer_id: '{offerId}'
                      source: 0
                      cpc: 100
                      invoice_cpc: 100
                      cpa: null
                      invoice_cpa: null
                      user_revenue: null
                      client_revenue: null
                      created_at: '2023-06-06 10:49:53'
                      updated_at: '2023-06-06 10:49:53'
                    - ...
                properties:
                  id:
                    type: string
                    example: '{offerId}'
                  name:
                    type: string
                    example: '{offerName}'
                  to:
                    type: string
                    example: '0000-00-00 00:00:00'
                  cpc:
                    type: integer
                    example: 100
                  max_clicks:
                    type: integer
                    example: 30
                  current_clicks:
                    type: integer
                    example: 0
                  max_money:
                    type: integer
                    example: 10000
                  current_money:
                    type: integer
                    example: 0
                  active:
                    type: integer
                    example: 1
                  created_at:
                    type: string
                    example: '2020-08-12 08:35:42'
                  updated_at:
                    type: string
                    example: '2020-08-12 08:35:42'
                  from:
                    type: string
                    example: '0000-00-00 00:00:00'
                  instagram_cpc:
                    type: integer
                    example: 100
                  invoice_cpc:
                    type: integer
                    example: 100
                  invoice_instagram_cpc:
                    type: integer
                    example: 100
                  revenue_cpa:
                    type: string
                    example: null
                  revenue_instagram_cpa:
                    type: string
                    example: null
                  invoice_instagram_cpa:
                    type: string
                    example: null
                  invoice_cpa:
                    type: string
                    example: null
                  priority:
                    type: integer
                    example: 10
                  cpa:
                    type: string
                    example: null
                  instagram_cpa:
                    type: string
                    example: null
                  store_visibility:
                    type: string
                    example: null
                  offer_campaign_show:
                    type: string
                    example: null
                  offer_campaign_text:
                    type: string
                    example: null
                  offer_campaign_title:
                    type: string
                    example: null
                  user_revenue_general:
                    type: string
                    example: null
                  user_revenue_instagram:
                    type: string
                    example: null
                  client_revenue:
                    type: string
                    example: null
                  clients:
                    type: array
                    example: []
                  store_groups:
                    type: array
                    example: []
                  revenue_tier:
                    type: array
                    example: []
                  user_tags:
                    type: array
                    example: []
                  traffic_sources_costs:
                    type: array
                    example:
                      -
                        id: 43
                        offer_id: '{offerId}'
                        source: 0
                        cpc: 100
                        invoice_cpc: 100
                        cpa: null
                        invoice_cpa: null
                        user_revenue: null
                        client_revenue: null
                        created_at: '2023-06-06 10:49:53'
                        updated_at: '2023-06-06 10:49:53'
                      - ...
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                          example: 43
                        offer_id:
                          type: string
                          example: '{offerId}'
                        source:
                          type: integer
                          example: 0
                        cpc:
                          type: integer
                          example: 100
                        invoice_cpc:
                          type: integer
                          example: 100
                        cpa:
                          type: string
                          example: null
                        invoice_cpa:
                          type: string
                          example: null
                        user_revenue:
                          type: string
                          example: null
                        client_revenue:
                          type: string
                          example: null
                        created_at:
                          type: string
                          example: '2023-06-06 10:49:53'
                        updated_at:
                          type: string
                          example: '2023-06-06 10:49:53'
      tags:
        - Offers
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                img_src:
                  type: string
                  description: "Offer image.\n\nMust not be greater than 100000 characters."
                  example: image.png
              required:
                - img_src
      security: []
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the Advertiser Store.'
        example: 123
        required: true
        schema:
          type: integer
      -
        in: path
        name: offerId
        description: 'The Offer ID.'
        example: 123
        required: true
        schema:
          type: integer
  '/stores/{id}/offer-users/{offerUserId}/todo':
    patch:
      summary: 'Update Offer "todo"'
      operationId: updateOffertodo
      description: 'Update offer "todo" by advertiser'
      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: accusamus
                      value:
                        type: boolean
                        description: ''
                        example: true
                    required:
                      - key
                      - value
              required:
                - todo
    parameters:
      -
        in: path
        name: offerUserId
        description: 'The OfferUser ID.'
        example: 123
        required: true
        schema:
          type: integer
  '/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
  '/advertiser/stores/{id}/orders':
    get:
      summary: 'Get Orders'
      operationId: getOrders
      description: 'Returns list of Store Orders'
      parameters:
        -
          in: query
          name: user_id
          description: 'The id of the User.'
          example: '123'
          required: false
          schema:
            type: integer
            description: 'The id of the User.'
            example: '123'
        -
          in: query
          name: format
          description: 'Format to export.'
          example: csv
          required: false
          schema:
            type: string
            description: 'Format to export.'
            example: csv
            enum:
              - csv
              - xlsx
              - json
        -
          in: query
          name: from
          description: "Date (Y-m-d).\n\nMust be a valid date."
          example: '2019-01-01'
          required: false
          schema:
            type: string
            description: "Date (Y-m-d).\n\nMust be a valid date."
            example: '2019-01-01'
        -
          in: query
          name: to
          description: "Date (Y-m-d).\n\nMust be a valid date."
          example: '2019-01-02'
          required: false
          schema:
            type: string
            description: "Date (Y-m-d).\n\nMust be a valid date."
            example: '2019-01-02'
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  current_page: 1
                  data:
                    -
                      id: 306472
                      user_id: '{userId}'
                      username: '{userName}'
                      order_id: '{order_id}'
                      order_at: '2021-01-17 11:01:06'
                      order_value: 44974.6965
                      currency: SEK
                      voucher_code: null
                      status: Pending
                      updated_at: '2021-01-17 11:08:07'
                  first_page_url: 'http://metapic-api.loc/advertiser/stores/12/orders?page=1'
                  from: 1
                  last_page: 1579
                  last_page_url: 'http://metapic-api.loc/advertiser/stores/12/orders?page=1579'
                  next_page_url: 'http://metapic-api.loc/advertiser/stores/12/orders?page=2'
                  path: 'http://metapic-api.loc/advertiser/stores/12/orders'
                  per_page: 15
                  prev_page_url: null
                  to: 15
                  total: 23672
                properties:
                  current_page:
                    type: integer
                    example: 1
                  data:
                    type: array
                    example:
                      -
                        id: 306472
                        user_id: '{userId}'
                        username: '{userName}'
                        order_id: '{order_id}'
                        order_at: '2021-01-17 11:01:06'
                        order_value: 44974.6965
                        currency: SEK
                        voucher_code: null
                        status: Pending
                        updated_at: '2021-01-17 11:08:07'
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                          example: 306472
                        user_id:
                          type: string
                          example: '{userId}'
                        username:
                          type: string
                          example: '{userName}'
                        order_id:
                          type: string
                          example: '{order_id}'
                        order_at:
                          type: string
                          example: '2021-01-17 11:01:06'
                        order_value:
                          type: number
                          example: 44974.6965
                        currency:
                          type: string
                          example: SEK
                        voucher_code:
                          type: string
                          example: null
                        status:
                          type: string
                          example: Pending
                        updated_at:
                          type: string
                          example: '2021-01-17 11:08:07'
                  first_page_url:
                    type: string
                    example: 'http://metapic-api.loc/advertiser/stores/12/orders?page=1'
                  from:
                    type: integer
                    example: 1
                  last_page:
                    type: integer
                    example: 1579
                  last_page_url:
                    type: string
                    example: 'http://metapic-api.loc/advertiser/stores/12/orders?page=1579'
                  next_page_url:
                    type: string
                    example: 'http://metapic-api.loc/advertiser/stores/12/orders?page=2'
                  path:
                    type: string
                    example: 'http://metapic-api.loc/advertiser/stores/12/orders'
                  per_page:
                    type: integer
                    example: 15
                  prev_page_url:
                    type: string
                    example: null
                  to:
                    type: integer
                    example: 15
                  total:
                    type: integer
                    example: 23672
      tags:
        - Orders
    parameters:
      -
        in: path
        name: storeId
        description: 'The ID of the Advertiser Store.'
        example: 123
        required: true
        schema:
          type: integer
  '/stores/{id}/invoices':
    get:
      summary: 'Get Store Invoices'
      operationId: getStoreInvoices
      description: 'Returns list of Store Invoices with invoice PDF url'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                example:
                  -
                    id: '{storeInvoiceId}'
                    store_id: '{storeId}'
                    payment_date: '2021-10-01'
                    total_price: 100000
                    url: '{invoicePdfUrl}'
      tags:
        - Payments
    parameters:
      -
        in: path
        name: storeId
        description: 'The ID of the Advertiser Store.'
        example: 123
        required: true
        schema:
          type: integer
  '/stores/{id}/credit-invoices/{storeInvoiceId}/pdf':
    get:
      summary: 'Download credit invoice as a PDF file'
      operationId: downloadCreditInvoiceAsAPDFFile
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Payments
    parameters:
      -
        in: path
        name: id
        description: 'The store id.'
        example: 11
        required: true
        schema:
          type: integer
      -
        in: path
        name: storeInvoiceId
        description: 'The store invoice id.'
        example: 20
        required: true
        schema:
          type: integer
      -
        in: path
        name: accessToken
        description: 'The ID of the store invoice payment'
        example: 16
        required: true
        schema:
          type: integer
  '/stores/{id}/clicksPerDay':
    get:
      summary: 'Click Per Day'
      operationId: clickPerDay
      description: 'Get Click Per Day'
      parameters:
        -
          in: query
          name: from
          description: "Date (Y-m-d).\n\nMust be a valid date."
          example: '2019-01-01'
          required: false
          schema:
            type: string
            description: "Date (Y-m-d).\n\nMust be a valid date."
            example: '2019-01-01'
        -
          in: query
          name: to
          description: "Date (Y-m-d).\n\nMust be a valid date."
          example: '2019-01-02'
          required: false
          schema:
            type: string
            description: "Date (Y-m-d).\n\nMust be a valid date."
            example: '2019-01-02'
        -
          in: query
          name: users
          description: 'a comma separated list with user ids'
          example: '123,2224'
          required: false
          schema:
            type: string
            description: 'a comma separated list with user ids'
            example: '123,2224'
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  clicks: 10245
                  order_value: 2486671
                  order_value_formatted: '24 866.71 kr'
                  cost: 0
                  cost_formatted: '0 kr'
                  unique_users: 103
                  unique_links: 515
                  nr_orders: 45
                  per_day:
                    '2020-11-01':
                      date: '2020-11-01'
                      clicks: '5689'
                      cost: '0'
                      cost_formatted: '0 kr'
                      order_value: '591404'
                      order_value_formatted: '5 914.04 kr'
                      nr_orders: '13'
                    '2020-11-02':
                      date: '2020-11-02'
                      clicks: '2164'
                      cost: '0'
                      cost_formatted: '0 kr'
                      order_value: '972736'
                      order_value_formatted: '9 727.36 kr'
                      nr_orders: '14'
                properties:
                  clicks:
                    type: integer
                    example: 10245
                  order_value:
                    type: integer
                    example: 2486671
                  order_value_formatted:
                    type: string
                    example: '24 866.71 kr'
                  cost:
                    type: integer
                    example: 0
                  cost_formatted:
                    type: string
                    example: '0 kr'
                  unique_users:
                    type: integer
                    example: 103
                  unique_links:
                    type: integer
                    example: 515
                  nr_orders:
                    type: integer
                    example: 45
                  per_day:
                    type: object
                    properties:
                      '2020-11-01':
                        type: object
                        properties:
                          date:
                            type: string
                            example: '2020-11-01'
                          clicks:
                            type: string
                            example: '5689'
                          cost:
                            type: string
                            example: '0'
                          cost_formatted:
                            type: string
                            example: '0 kr'
                          order_value:
                            type: string
                            example: '591404'
                          order_value_formatted:
                            type: string
                            example: '5 914.04 kr'
                          nr_orders:
                            type: string
                            example: '13'
                      '2020-11-02':
                        type: object
                        properties:
                          date:
                            type: string
                            example: '2020-11-02'
                          clicks:
                            type: string
                            example: '2164'
                          cost:
                            type: string
                            example: '0'
                          cost_formatted:
                            type: string
                            example: '0 kr'
                          order_value:
                            type: string
                            example: '972736'
                          order_value_formatted:
                            type: string
                            example: '9 727.36 kr'
                          nr_orders:
                            type: string
                            example: '14'
      tags:
        - Statistic
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the store.'
        example: 1
        required: true
        schema:
          type: integer
  '/stores/{id}/generalStats':
    get:
      summary: 'General Stats'
      operationId: generalStats
      description: 'Get Store General Stats'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  clicks: 0
                  unique_users: 0
                  tags: 0
                  invoice_cpc: null
                  avrage_cpc: null
                  currency:
                    code: SEK
                    name: 'Swedish krona'
                    symbol: kr
                    subunit: öre
                    is_before: 0
                    ratio_to_eur: 0.09
                  invoice_cpc_formated: '0 öre'
                  avrage_cpc_formated: '0 öre'
                properties:
                  clicks:
                    type: integer
                    example: 0
                  unique_users:
                    type: integer
                    example: 0
                  tags:
                    type: integer
                    example: 0
                  invoice_cpc:
                    type: string
                    example: null
                  avrage_cpc:
                    type: string
                    example: null
                  currency:
                    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
                  invoice_cpc_formated:
                    type: string
                    example: '0 öre'
                  avrage_cpc_formated:
                    type: string
                    example: '0 öre'
      tags:
        - Statistic
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the store.'
        example: 1
        required: true
        schema:
          type: integer
  '/stores/{id}/orders/perDate':
    get:
      summary: 'Orders Per Date'
      operationId: ordersPerDate
      description: 'Get Store Orders Per Date'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  '2019-10-05':
                    date: '2019-10-05'
                    nr_orders: 0
                    order_value: 0
                  '2019-10-06':
                    date: '2019-10-06'
                    nr_orders: 0
                    order_value: 0
                  '2019-10-07':
                    date: '2019-10-07'
                    nr_orders: 0
                    order_value: 0
                  ...: ...
                properties:
                  '2019-10-05':
                    type: object
                    properties:
                      date:
                        type: string
                        example: '2019-10-05'
                      nr_orders:
                        type: integer
                        example: 0
                      order_value:
                        type: integer
                        example: 0
                  '2019-10-06':
                    type: object
                    properties:
                      date:
                        type: string
                        example: '2019-10-06'
                      nr_orders:
                        type: integer
                        example: 0
                      order_value:
                        type: integer
                        example: 0
                  '2019-10-07':
                    type: object
                    properties:
                      date:
                        type: string
                        example: '2019-10-07'
                      nr_orders:
                        type: integer
                        example: 0
                      order_value:
                        type: integer
                        example: 0
                  ...:
                    type: string
                    example: ...
      tags:
        - Statistic
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the store.'
        example: 1
        required: true
        schema:
          type: integer
  '/stores/{id}/userStats':
    get:
      summary: 'User Stats'
      operationId: userStats
      description: 'Get Store Users Stats'
      parameters:
        -
          in: query
          name: from
          description: "date. Date (Y-m-d).\n\nMust be a valid date."
          example: '2019-01-01'
          required: false
          schema:
            type: string
            description: "date. Date (Y-m-d).\n\nMust be a valid date."
            example: '2019-01-01'
        -
          in: query
          name: to
          description: "date. Date (Y-m-d).\n\nMust be a valid date."
          example: '2019-01-02'
          required: false
          schema:
            type: string
            description: "date. Date (Y-m-d).\n\nMust be a valid date."
            example: '2019-01-02'
        -
          in: query
          name: orderBy
          description: 'what endpoint should sort by,'
          example: sapiente
          required: false
          schema:
            type: string
            description: 'what endpoint should sort by,'
            example: sapiente
            enum:
              - username
              - instagram_followers
              - clicks
              - order_value
              - nr_orders
              - store_cost
              - roas
        -
          in: query
          name: orderByOrder
          description: 'if orderBy is set,'
          example: aliquid
          required: false
          schema:
            type: string
            description: 'if orderBy is set,'
            example: aliquid
            enum:
              - asc
              - desc
        -
          in: query
          name: page
          description: 'what page you want to get,'
          example: 9
          required: false
          schema:
            type: integer
            description: 'what page you want to get,'
            example: 9
        -
          in: query
          name: q
          description: 'search on username'
          example: omnis
          required: false
          schema:
            type: string
            description: 'search on username'
            example: omnis
        -
          in: query
          name: format
          description: 'Format to export.'
          example: csv
          required: false
          schema:
            type: string
            description: 'Format to export.'
            example: csv
            enum:
              - csv
              - xlsx
              - json
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  current_page: 1
                  data:
                    -
                      username: Username
                      user_id: '{userId}'
                      clicks: '2575'
                      order_value: '3604356'
                      nr_orders: '74'
                      store_cost: '432519'
                      instagram_followers: '171853'
                      user_tags: []
                      cpc: 73
                      instagram_cpc: 358
                      cpa: null
                      instagram_cpa: null
                      traffic_sources_costs:
                        -
                          id: 319
                          store_id: 5319
                          source: 0
                          cpc: 73
                          cpa: null
                          title: General
                        -
                          id: 320
                          store_id: 5319
                          source: 1
                          cpc: 358
                          cpa: null
                          title: Instagram
                    - ...
                  first_page_url: 'http://metapic-api.loc/stores/5319/userStats?page=1'
                  from: 1
                  last_page: 4
                  last_page_url: 'http://metapic-api.loc/stores/5319/userStats?page=4'
                  links: []
                  next_page_url: 'http://metapic-api.loc/stores/5319/userStats?page=2'
                  path: 'http://metapic-api.loc/stores/5319/userStats'
                  per_page: 15
                  prev_page_url: null
                  to: 15
                  total: 60
                properties:
                  current_page:
                    type: integer
                    example: 1
                  data:
                    type: array
                    example:
                      -
                        username: Username
                        user_id: '{userId}'
                        clicks: '2575'
                        order_value: '3604356'
                        nr_orders: '74'
                        store_cost: '432519'
                        instagram_followers: '171853'
                        user_tags: []
                        cpc: 73
                        instagram_cpc: 358
                        cpa: null
                        instagram_cpa: null
                        traffic_sources_costs:
                          -
                            id: 319
                            store_id: 5319
                            source: 0
                            cpc: 73
                            cpa: null
                            title: General
                          -
                            id: 320
                            store_id: 5319
                            source: 1
                            cpc: 358
                            cpa: null
                            title: Instagram
                      - ...
                    items:
                      type: object
                      properties:
                        username:
                          type: string
                          example: Username
                        user_id:
                          type: string
                          example: '{userId}'
                        clicks:
                          type: string
                          example: '2575'
                        order_value:
                          type: string
                          example: '3604356'
                        nr_orders:
                          type: string
                          example: '74'
                        store_cost:
                          type: string
                          example: '432519'
                        instagram_followers:
                          type: string
                          example: '171853'
                        user_tags:
                          type: array
                          example: []
                        cpc:
                          type: integer
                          example: 73
                        instagram_cpc:
                          type: integer
                          example: 358
                        cpa:
                          type: string
                          example: null
                        instagram_cpa:
                          type: string
                          example: null
                        traffic_sources_costs:
                          type: array
                          example:
                            -
                              id: 319
                              store_id: 5319
                              source: 0
                              cpc: 73
                              cpa: null
                              title: General
                            -
                              id: 320
                              store_id: 5319
                              source: 1
                              cpc: 358
                              cpa: null
                              title: Instagram
                          items:
                            type: object
                            properties:
                              id:
                                type: integer
                                example: 319
                              store_id:
                                type: integer
                                example: 5319
                              source:
                                type: integer
                                example: 0
                              cpc:
                                type: integer
                                example: 73
                              cpa:
                                type: string
                                example: null
                              title:
                                type: string
                                example: General
                  first_page_url:
                    type: string
                    example: 'http://metapic-api.loc/stores/5319/userStats?page=1'
                  from:
                    type: integer
                    example: 1
                  last_page:
                    type: integer
                    example: 4
                  last_page_url:
                    type: string
                    example: 'http://metapic-api.loc/stores/5319/userStats?page=4'
                  links:
                    type: array
                    example: []
                  next_page_url:
                    type: string
                    example: 'http://metapic-api.loc/stores/5319/userStats?page=2'
                  path:
                    type: string
                    example: 'http://metapic-api.loc/stores/5319/userStats'
                  per_page:
                    type: integer
                    example: 15
                  prev_page_url:
                    type: string
                    example: null
                  to:
                    type: integer
                    example: 15
                  total:
                    type: integer
                    example: 60
      tags:
        - Statistic
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the store.'
        example: 1
        required: true
        schema:
          type: integer
  '/stores/{id}/linkStats':
    get:
      summary: 'Link Stats'
      operationId: linkStats
      description: 'Get Link Stats'
      parameters:
        -
          in: query
          name: query
          description: 'Must not be greater than 50 characters.'
          example: qviyjd
          required: false
          schema:
            type: string
            description: 'Must not be greater than 50 characters.'
            example: qviyjd
        -
          in: query
          name: from
          description: "Date (Y-m-d).\n\nMust be a valid date."
          example: '2019-01-01'
          required: false
          schema:
            type: string
            description: "Date (Y-m-d).\n\nMust be a valid date."
            example: '2019-01-01'
        -
          in: query
          name: to
          description: "page.\n\nMust be a valid date."
          example: 2
          required: false
          schema:
            type: string
            description: "page.\n\nMust be a valid date."
            example: 2
        -
          in: query
          name: orderBy
          description: ''
          example: title
          required: false
          schema:
            type: string
            description: ''
            example: title
            enum:
              - clicks
              - order_value
              - nr_orders
              - cost
              - date
              - username
              - cost_per_click
              - title
        -
          in: query
          name: orderByOrder
          description: ''
          example: asc
          required: false
          schema:
            type: string
            description: ''
            example: asc
            enum:
              - asc
              - desc
        -
          in: query
          name: page
          description: ''
          example: 16
          required: false
          schema:
            type: integer
            description: ''
            example: 16
        -
          in: query
          name: users
          description: 'comma separated list of user ids.'
          example: '1222,45123'
          required: false
          schema:
            type: string
            description: 'comma separated list of user ids.'
            example: '1222,45123'
        -
          in: query
          name: format
          description: 'Format to export.'
          example: csv
          required: false
          schema:
            type: string
            description: 'Format to export.'
            example: csv
            enum:
              - csv
              - xlsx
              - json
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  current_page: 1
                  data:
                    -
                      tag_id: '{tagId}'
                      username: Nessie
                      user_id: '{userId}'
                      link: 'https://clk.tradedoubler.com/click?p'
                      text: Aimn
                      title: null
                      img: null
                      date: '2022-04-06 16:47:19'
                      created_at: '2022-04-06 16:47:19'
                      clicks: '2976'
                      nr_orders: '86'
                      order_value: 5410032
                      cost: 649201
                      cost_per_click: 218.14549731183
                    -
                      ...: ...
                properties:
                  current_page:
                    type: integer
                    example: 1
                  data:
                    type: array
                    example:
                      -
                        tag_id: '{tagId}'
                        username: Nessie
                        user_id: '{userId}'
                        link: 'https://clk.tradedoubler.com/click?p'
                        text: Aimn
                        title: null
                        img: null
                        date: '2022-04-06 16:47:19'
                        created_at: '2022-04-06 16:47:19'
                        clicks: '2976'
                        nr_orders: '86'
                        order_value: 5410032
                        cost: 649201
                        cost_per_click: 218.14549731183
                      -
                        ...: ...
                    items:
                      type: object
                      properties:
                        tag_id:
                          type: string
                          example: '{tagId}'
                        username:
                          type: string
                          example: Nessie
                        user_id:
                          type: string
                          example: '{userId}'
                        link:
                          type: string
                          example: 'https://clk.tradedoubler.com/click?p'
                        text:
                          type: string
                          example: Aimn
                        title:
                          type: string
                          example: null
                        img:
                          type: string
                          example: null
                        date:
                          type: string
                          example: '2022-04-06 16:47:19'
                        created_at:
                          type: string
                          example: '2022-04-06 16:47:19'
                        clicks:
                          type: string
                          example: '2976'
                        nr_orders:
                          type: string
                          example: '86'
                        order_value:
                          type: integer
                          example: 5410032
                        cost:
                          type: integer
                          example: 649201
                        cost_per_click:
                          type: number
                          example: 218.14549731183
      tags:
        - Statistic
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the store.'
        example: 1
        required: true
        schema:
          type: integer
  '/advertiser/stores/{id}/stats-config':
    get:
      summary: 'Get Stats Configurations'
      operationId: getStatsConfigurations
      description: 'Get Stats Configurations list for advertiser store'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                example:
                  -
                    id: 2
                    store_id: 12
                    name: 'Test Config'
                    data:
                      from: '2021-01-01'
                      tags:
                        - 1
                        - 2
                      types:
                        - 3
                        - 2
                    default: 0
                    created_at: '2021-01-19 09:34:04'
                    updated_at: '2021-01-19 09:36:15'
      tags:
        - 'Stats Configuration'
    post:
      summary: 'Create Stats Config'
      operationId: createStatsConfig
      description: 'Create Stats Config for advertiser store'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  id: 1
                  store_id: 12
                  name: 'Test Config 2'
                  data:
                    from: '2021-01-01'
                    tags:
                      - 1
                      - 2
                    types:
                      - 3
                      - 2
                  default: 1
                  created_at: '2021-01-18 13:05:44'
                  updated_at: '2021-01-19 09:36:14'
                properties:
                  id:
                    type: integer
                    example: 1
                  store_id:
                    type: integer
                    example: 12
                  name:
                    type: string
                    example: 'Test Config 2'
                  data:
                    type: object
                    properties:
                      from:
                        type: string
                        example: '2021-01-01'
                      tags:
                        type: array
                        example:
                          - 1
                          - 2
                        items:
                          type: integer
                      types:
                        type: array
                        example:
                          - 3
                          - 2
                        items:
                          type: integer
                  default:
                    type: integer
                    example: 1
                  created_at:
                    type: string
                    example: '2021-01-18 13:05:44'
                  updated_at:
                    type: string
                    example: '2021-01-19 09:36:14'
      tags:
        - 'Stats Configuration'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: 'Config name.'
                  example: 'My statistic'
                default:
                  type: integer
                  description: 'Does the config is default.'
                  example: 1
                  enum:
                    - '1'
                    - '0'
                data:
                  type: object
                  description: 'Array of config data.'
                  example: []
                  properties:
                    tags:
                      type: array
                      description: "array of tag's IDs."
                      example:
                        - 9
                      items:
                        type: integer
                    from:
                      type: string
                      description: "(Y-m-d).\n\nMust be a valid date."
                      example: '2019-01-01'
                    to:
                      type: string
                      description: "(Y-m-d).\n\nMust be a valid date."
                      example: '2019-01-02'
                    types:
                      type: array
                      description: ''
                      example:
                        - nr_orders
                      items:
                        type: string
                        enum:
                          - order_value
                          - nr_orders
                          - clicks
                          - estimated_cost
              required:
                - name
                - data
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the Advertiser Store.'
        example: 123
        required: true
        schema:
          type: integer
  '/advertiser/stores/{id}/stats-config/{id}':
    put:
      summary: 'Update Stats Config'
      operationId: updateStatsConfig
      description: 'Update Stats Config for advertiser store'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  id: 1
                  store_id: 12
                  name: 'Test Config 2'
                  data:
                    from: '2021-01-01'
                    tags:
                      - 1
                      - 2
                    types:
                      - 3
                      - 2
                  default: 1
                  created_at: '2021-01-18 13:05:44'
                  updated_at: '2021-01-19 09:36:14'
                properties:
                  id:
                    type: integer
                    example: 1
                  store_id:
                    type: integer
                    example: 12
                  name:
                    type: string
                    example: 'Test Config 2'
                  data:
                    type: object
                    properties:
                      from:
                        type: string
                        example: '2021-01-01'
                      tags:
                        type: array
                        example:
                          - 1
                          - 2
                        items:
                          type: integer
                      types:
                        type: array
                        example:
                          - 3
                          - 2
                        items:
                          type: integer
                  default:
                    type: integer
                    example: 1
                  created_at:
                    type: string
                    example: '2021-01-18 13:05:44'
                  updated_at:
                    type: string
                    example: '2021-01-19 09:36:14'
      tags:
        - 'Stats Configuration'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: 'Config name.'
                  example: 'My statistic'
                default:
                  type: integer
                  description: 'Does the config is default.'
                  example: 1
                  enum:
                    - '1'
                    - '0'
                data:
                  type: object
                  description: 'Array of config data.'
                  example: []
                  properties:
                    tags:
                      type: array
                      description: "array of tag's IDs."
                      example:
                        - 10
                      items:
                        type: integer
                    from:
                      type: string
                      description: "(Y-m-d).\n\nMust be a valid date."
                      example: '2019-01-01'
                    to:
                      type: string
                      description: "(Y-m-d).\n\nMust be a valid date."
                      example: '2019-01-02'
                    types:
                      type: array
                      description: ''
                      example:
                        - estimated_cost
                      items:
                        type: string
                        enum:
                          - order_value
                          - nr_orders
                          - clicks
                          - estimated_cost
              required:
                - name
                - data
    delete:
      summary: 'Delete Stats Config'
      operationId: deleteStatsConfig
      description: 'Delete Stats Config for advertiser store'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  id: 1
                  store_id: 12
                  name: 'Test Config 2'
                  data:
                    from: '2021-01-01'
                    tags:
                      - 1
                      - 2
                    types:
                      - 3
                      - 2
                  default: 1
                  created_at: '2021-01-18 13:05:44'
                  updated_at: '2021-01-19 09:36:14'
                properties:
                  id:
                    type: integer
                    example: 1
                  store_id:
                    type: integer
                    example: 12
                  name:
                    type: string
                    example: 'Test Config 2'
                  data:
                    type: object
                    properties:
                      from:
                        type: string
                        example: '2021-01-01'
                      tags:
                        type: array
                        example:
                          - 1
                          - 2
                        items:
                          type: integer
                      types:
                        type: array
                        example:
                          - 3
                          - 2
                        items:
                          type: integer
                  default:
                    type: integer
                    example: 1
                  created_at:
                    type: string
                    example: '2021-01-18 13:05:44'
                  updated_at:
                    type: string
                    example: '2021-01-19 09:36:14'
      tags:
        - 'Stats Configuration'
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the Advertiser Store.'
        example: 123
        required: true
        schema:
          type: integer
      -
        in: path
        name: config
        description: 'The ID of the Stats Config.'
        example: 123
        required: true
        schema:
          type: integer
  /advertiser/register-store:
    post:
      summary: 'Register Store'
      operationId: registerStore
      description: 'Register User with Store'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  id: '{storeId}'
                  feed_id: ''
                  feed_name: '{storeName}'
                  feed_provider: direct
                  language_iso_code: sv
                  currency_iso_code: EUR
                  locale: SE
                  revenue_cpc: 100
                  direct_link: ''
                  deeplinkable: 0
                  autoupdate: 0
                  metainfo: null
                  url: ':TARGET_URL'
                  feed: 0
                  created_at: '2020-07-02 17:59:17'
                  updated_at: '2020-07-02 17:59:21'
                  instagram_revenue_cpc: 100
                  store_provider_account_id: 64
                  last_correct_sync: null
                  number_of_products: 0
                  invoice_cpc: 100
                  invoice_instagram_cpc: 100
                  program_id: null
                  deleted_at: null
                  revenue_cpa: null
                  revenue_text: null
                  revenue_of_commision: null
                  revenue_instagram_cpa: null
                  invoice_instagram_cpa: null
                  invoice_cpa: null
                  earnings_return_rate: 0
                  hidden: 0
                  td_earning: null
                  metapic_invoicing: 0
                  logo_url: '{logoUrl}'
                  status: 1
                  users:
                    -
                      id: '{userId}'
                      username: '{userName}'
                      email: '{userEmail}'
                      created_at: '2020-07-02 17:59:17'
                      updated_at: '2020-07-02 17:59:17'
                      admin: 0
                      last_active: '0000-00-00 00:00:00'
                      first_name: ''
                      surname: ''
                      country: ''
                      city: ''
                      address: ''
                      postcode: ''
                      tier_pricing_type: ''
                      config: ''
                      sign_user_agreement: null
                      revenue_tier_id: 312
                      recruitment_utm: null
                      is_suspended: false
                      is_verified: false
                      pivot:
                        store_id: '{storeId}'
                        user_id: '{userId}'
                  traffic_sources_costs:
                    -
                      id: 9630
                      store_id: '{storeId}'
                      source: 0
                      cpc: 100
                      invoice_cpc: 100
                      cpa: null
                      invoice_cpa: null
                      created_at: '2023-08-17 10:38:46'
                      updated_at: '2023-08-17 10:38:46'
                      title: General
                    -
                      id: 9631
                      store_id: '{storeId}'
                      source: 1
                      cpc: 100
                      invoice_cpc: 100
                      cpa: null
                      invoice_cpa: null
                      created_at: '2023-08-17 10:38:47'
                      updated_at: '2023-08-17 10:38:47'
                      title: Instagram
                properties:
                  id:
                    type: string
                    example: '{storeId}'
                  feed_id:
                    type: string
                    example: ''
                  feed_name:
                    type: string
                    example: '{storeName}'
                  feed_provider:
                    type: string
                    example: direct
                  language_iso_code:
                    type: string
                    example: sv
                  currency_iso_code:
                    type: string
                    example: EUR
                  locale:
                    type: string
                    example: SE
                  revenue_cpc:
                    type: integer
                    example: 100
                  direct_link:
                    type: string
                    example: ''
                  deeplinkable:
                    type: integer
                    example: 0
                  autoupdate:
                    type: integer
                    example: 0
                  metainfo:
                    type: string
                    example: null
                  url:
                    type: string
                    example: ':TARGET_URL'
                  feed:
                    type: integer
                    example: 0
                  created_at:
                    type: string
                    example: '2020-07-02 17:59:17'
                  updated_at:
                    type: string
                    example: '2020-07-02 17:59:21'
                  instagram_revenue_cpc:
                    type: integer
                    example: 100
                  store_provider_account_id:
                    type: integer
                    example: 64
                  last_correct_sync:
                    type: string
                    example: null
                  number_of_products:
                    type: integer
                    example: 0
                  invoice_cpc:
                    type: integer
                    example: 100
                  invoice_instagram_cpc:
                    type: integer
                    example: 100
                  program_id:
                    type: string
                    example: null
                  deleted_at:
                    type: string
                    example: null
                  revenue_cpa:
                    type: string
                    example: null
                  revenue_text:
                    type: string
                    example: null
                  revenue_of_commision:
                    type: string
                    example: null
                  revenue_instagram_cpa:
                    type: string
                    example: null
                  invoice_instagram_cpa:
                    type: string
                    example: null
                  invoice_cpa:
                    type: string
                    example: null
                  earnings_return_rate:
                    type: integer
                    example: 0
                  hidden:
                    type: integer
                    example: 0
                  td_earning:
                    type: string
                    example: null
                  metapic_invoicing:
                    type: integer
                    example: 0
                  logo_url:
                    type: string
                    example: '{logoUrl}'
                  status:
                    type: integer
                    example: 1
                  users:
                    type: array
                    example:
                      -
                        id: '{userId}'
                        username: '{userName}'
                        email: '{userEmail}'
                        created_at: '2020-07-02 17:59:17'
                        updated_at: '2020-07-02 17:59:17'
                        admin: 0
                        last_active: '0000-00-00 00:00:00'
                        first_name: ''
                        surname: ''
                        country: ''
                        city: ''
                        address: ''
                        postcode: ''
                        tier_pricing_type: ''
                        config: ''
                        sign_user_agreement: null
                        revenue_tier_id: 312
                        recruitment_utm: null
                        is_suspended: false
                        is_verified: false
                        pivot:
                          store_id: '{storeId}'
                          user_id: '{userId}'
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          example: '{userId}'
                        username:
                          type: string
                          example: '{userName}'
                        email:
                          type: string
                          example: '{userEmail}'
                        created_at:
                          type: string
                          example: '2020-07-02 17:59:17'
                        updated_at:
                          type: string
                          example: '2020-07-02 17:59:17'
                        admin:
                          type: integer
                          example: 0
                        last_active:
                          type: string
                          example: '0000-00-00 00:00:00'
                        first_name:
                          type: string
                          example: ''
                        surname:
                          type: string
                          example: ''
                        country:
                          type: string
                          example: ''
                        city:
                          type: string
                          example: ''
                        address:
                          type: string
                          example: ''
                        postcode:
                          type: string
                          example: ''
                        tier_pricing_type:
                          type: string
                          example: ''
                        config:
                          type: string
                          example: ''
                        sign_user_agreement:
                          type: string
                          example: null
                        revenue_tier_id:
                          type: integer
                          example: 312
                        recruitment_utm:
                          type: string
                          example: null
                        is_suspended:
                          type: boolean
                          example: false
                        is_verified:
                          type: boolean
                          example: false
                        pivot:
                          type: object
                          properties:
                            store_id:
                              type: string
                              example: '{storeId}'
                            user_id:
                              type: string
                              example: '{userId}'
                  traffic_sources_costs:
                    type: array
                    example:
                      -
                        id: 9630
                        store_id: '{storeId}'
                        source: 0
                        cpc: 100
                        invoice_cpc: 100
                        cpa: null
                        invoice_cpa: null
                        created_at: '2023-08-17 10:38:46'
                        updated_at: '2023-08-17 10:38:46'
                        title: General
                      -
                        id: 9631
                        store_id: '{storeId}'
                        source: 1
                        cpc: 100
                        invoice_cpc: 100
                        cpa: null
                        invoice_cpa: null
                        created_at: '2023-08-17 10:38:47'
                        updated_at: '2023-08-17 10:38:47'
                        title: Instagram
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                          example: 9630
                        store_id:
                          type: string
                          example: '{storeId}'
                        source:
                          type: integer
                          example: 0
                        cpc:
                          type: integer
                          example: 100
                        invoice_cpc:
                          type: integer
                          example: 100
                        cpa:
                          type: string
                          example: null
                        invoice_cpa:
                          type: string
                          example: null
                        created_at:
                          type: string
                          example: '2023-08-17 10:38:46'
                        updated_at:
                          type: string
                          example: '2023-08-17 10:38:46'
                        title:
                          type: string
                          example: General
      tags:
        - Store
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                user:
                  type: object
                  description: 'Json array of user data.'
                  example: []
                  properties:
                    username:
                      type: string
                      description: "The name of user.\n\nMust be at least 2 characters. Must not be greater than 64 characters."
                      example: aut
                    email:
                      type: string
                      description: "The email of user.\n\nThe value format is invalid. Must not be greater than 128 characters."
                      example: stroman.derrick@example.org
                    password:
                      type: string
                      description: "User Password. Should also be present password_confirmation field.\n\nMust be at least 8 characters."
                      example: 'j&sIPo,Sc6{Fb'
                feed_name:
                  type: string
                  description: 'Store name.'
                  example: 'My Store'
                language_iso_code:
                  type: string
                  description: 'Store language code.'
                  example: sv
                locale:
                  type: string
                  description: 'Store locale.'
                  example: SE
                currency_iso_code:
                  type: string
                  description: 'Store currency code.'
                  example: EUR
                domains:
                  type: array
                  description: "Store domains.\n\nMust match the regex /^[a-z0-9]+([\\-\\.]{1}[a-z0-9]+)*\\.[a-z]{2,5}(:[0-9]{1,5})?(\\/.*)?$/."
                  example:
                    - 'i00p-7lp.ija:82'
                  items:
                    type: string
                categories:
                  type: array
                  description: 'Store categories IDs.'
                  example:
                    - 1
                  items:
                    type: string
                stripe_customer_id:
                  type: string
                  description: ''
                  example: cus_O4D7QMBN8IMOEB
                stripePaymentIntentId:
                  type: string
                  description: ''
                  example: pi_3NI4gyIptBdpM0Dx1b8K1LBJ
                selectedUtmTag:
                  type: string
                  description: required.
                  example: utm_source
                  enum:
                    - utm_campaign
                    - utm_medium
                    - utm_source
                    - utm_content
                    - utm_term
                selectedUtmTagValue:
                  type: string
                  description: required.
                  example: commodi
                selectedUtmTagUsername:
                  type: string
                  description: required.
                  example: utm_term
                  enum:
                    - utm_campaign
                    - utm_medium
                    - utm_source
                    - utm_content
                    - utm_term
                logo_url:
                  type: string
                  description: 'the logo url'
                  example: 'https://www.mccullough.com/illum-sunt-ipsum-rerum-est'
                companyName:
                  type: string
                  description: ''
                  example: officia
                vatNumber:
                  type: string
                  description: ''
                  example: repellendus
                emails:
                  type: object
                  description: 'required, an array contains one email at least, this will be used for the invoice configuration'
                  example: []
                  properties: {  }
                address:
                  type: object
                  description: 'required. Address of the company, an array containing 1 item at least, max items are 3.'
                  example: []
                  properties: {  }
              required:
                - user
                - feed_name
                - language_iso_code
                - locale
                - currency_iso_code
                - stripe_customer_id
                - stripePaymentIntentId
                - selectedUtmTag
                - selectedUtmTagValue
                - selectedUtmTagUsername
                - logo_url
                - companyName
                - vatNumber
                - emails
                - address
      security: []
  '/advertiser/stores/{id}/users/{userid}/dashboard':
    get:
      summary: 'Get a user'
      operationId: getAUser
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  id: 2323
                  username: username
                  email: email@email.com
                  phone: null
                  created_at: '2012-11-05 08:47:34'
                  updated_at: '2020-10-29 13:22:41'
                  admin: 1
                  last_active: '2020-10-27 14:00:59'
                  first_name: firstname
                  surname: surname
                  country: Sverige
                  tier_pricing_type: ''
                  sign_user_agreement: '2020-10-29 13:22:41'
                  revenue_tier_id: 2
                  recruitment_utm: null
                  user_tags:
                    -
                      id: 1
                      name: Fashion
                      slug: fashion
                      created_at: '2019-10-16 15:06:58'
                      updated_at: '2019-10-16 15:06:58'
                      access_level: 1
                      store_id: null
                      pivot:
                        user_id: 2
                        user_tag_id: 1
                    -
                      id: 12
                      name: Erik
                      slug: erik
                      created_at: '2019-12-10 16:00:56'
                      updated_at: '2019-12-10 16:00:56'
                      access_level: 2
                      store_id: 5927
                      pivot:
                        user_id: 2
                        user_tag_id: 12
                  can_edit: false
                  is_suspended: false
                  is_verified: true
                  social_media:
                    -
                      id: 22
                      user_id: 2
                      type: blog
                      identifier: 'https://mynice.blogg.se'
                      is_valid: 1
                      created_at: '2018-09-10 14:44:27'
                      updated_at: '2018-11-22 16:32:13'
                      followers: null
                    -
                      id: 5360
                      user_id: 2
                      type: instagram
                      identifier: instagramUsername
                      is_valid: 1
                      created_at: '2019-12-03 11:09:44'
                      updated_at: '2019-12-23 05:07:19'
                      followers: null
                  one_time_earnings:
                    -
                      id: 34
                      user_id: 2
                      store_id: 5927
                      user_earnings: 500
                      payment_date: '2019-11-25'
                      created_at: '2019-11-29 13:57:29'
                      updated_at: '2020-11-09 14:41:28'
                      comment: 'test payment'
                  traffic_sources_costs:
                    -
                      id: 319
                      store_id: '{storeId}'
                      source: 0
                      cpc: 100
                      invoice_cpc: 100
                      cpa: null
                      invoice_cpa: null
                      created_at: '2023-05-03 12:01:13'
                      updated_at: '2023-05-03 12:01:13'
                      title: General
                    - ...
                properties:
                  id:
                    type: integer
                    example: 2323
                  username:
                    type: string
                    example: username
                  email:
                    type: string
                    example: email@email.com
                  phone:
                    type: string
                    example: null
                  created_at:
                    type: string
                    example: '2012-11-05 08:47:34'
                  updated_at:
                    type: string
                    example: '2020-10-29 13:22:41'
                  admin:
                    type: integer
                    example: 1
                  last_active:
                    type: string
                    example: '2020-10-27 14:00:59'
                  first_name:
                    type: string
                    example: firstname
                  surname:
                    type: string
                    example: surname
                  country:
                    type: string
                    example: Sverige
                  tier_pricing_type:
                    type: string
                    example: ''
                  sign_user_agreement:
                    type: string
                    example: '2020-10-29 13:22:41'
                  revenue_tier_id:
                    type: integer
                    example: 2
                  recruitment_utm:
                    type: string
                    example: null
                  user_tags:
                    type: array
                    example:
                      -
                        id: 1
                        name: Fashion
                        slug: fashion
                        created_at: '2019-10-16 15:06:58'
                        updated_at: '2019-10-16 15:06:58'
                        access_level: 1
                        store_id: null
                        pivot:
                          user_id: 2
                          user_tag_id: 1
                      -
                        id: 12
                        name: Erik
                        slug: erik
                        created_at: '2019-12-10 16:00:56'
                        updated_at: '2019-12-10 16:00:56'
                        access_level: 2
                        store_id: 5927
                        pivot:
                          user_id: 2
                          user_tag_id: 12
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                          example: 1
                        name:
                          type: string
                          example: Fashion
                        slug:
                          type: string
                          example: fashion
                        created_at:
                          type: string
                          example: '2019-10-16 15:06:58'
                        updated_at:
                          type: string
                          example: '2019-10-16 15:06:58'
                        access_level:
                          type: integer
                          example: 1
                        store_id:
                          type: string
                          example: null
                        pivot:
                          type: object
                          properties:
                            user_id:
                              type: integer
                              example: 2
                            user_tag_id:
                              type: integer
                              example: 1
                  can_edit:
                    type: boolean
                    example: false
                  is_suspended:
                    type: boolean
                    example: false
                  is_verified:
                    type: boolean
                    example: true
                  social_media:
                    type: array
                    example:
                      -
                        id: 22
                        user_id: 2
                        type: blog
                        identifier: 'https://mynice.blogg.se'
                        is_valid: 1
                        created_at: '2018-09-10 14:44:27'
                        updated_at: '2018-11-22 16:32:13'
                        followers: null
                      -
                        id: 5360
                        user_id: 2
                        type: instagram
                        identifier: instagramUsername
                        is_valid: 1
                        created_at: '2019-12-03 11:09:44'
                        updated_at: '2019-12-23 05:07:19'
                        followers: null
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                          example: 22
                        user_id:
                          type: integer
                          example: 2
                        type:
                          type: string
                          example: blog
                        identifier:
                          type: string
                          example: 'https://mynice.blogg.se'
                        is_valid:
                          type: integer
                          example: 1
                        created_at:
                          type: string
                          example: '2018-09-10 14:44:27'
                        updated_at:
                          type: string
                          example: '2018-11-22 16:32:13'
                        followers:
                          type: string
                          example: null
                  one_time_earnings:
                    type: array
                    example:
                      -
                        id: 34
                        user_id: 2
                        store_id: 5927
                        user_earnings: 500
                        payment_date: '2019-11-25'
                        created_at: '2019-11-29 13:57:29'
                        updated_at: '2020-11-09 14:41:28'
                        comment: 'test payment'
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                          example: 34
                        user_id:
                          type: integer
                          example: 2
                        store_id:
                          type: integer
                          example: 5927
                        user_earnings:
                          type: integer
                          example: 500
                        payment_date:
                          type: string
                          example: '2019-11-25'
                        created_at:
                          type: string
                          example: '2019-11-29 13:57:29'
                        updated_at:
                          type: string
                          example: '2020-11-09 14:41:28'
                        comment:
                          type: string
                          example: 'test payment'
                  traffic_sources_costs:
                    type: array
                    example:
                      -
                        id: 319
                        store_id: '{storeId}'
                        source: 0
                        cpc: 100
                        invoice_cpc: 100
                        cpa: null
                        invoice_cpa: null
                        created_at: '2023-05-03 12:01:13'
                        updated_at: '2023-05-03 12:01:13'
                        title: General
                      - ...
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                          example: 319
                        store_id:
                          type: string
                          example: '{storeId}'
                        source:
                          type: integer
                          example: 0
                        cpc:
                          type: integer
                          example: 100
                        invoice_cpc:
                          type: integer
                          example: 100
                        cpa:
                          type: string
                          example: null
                        invoice_cpa:
                          type: string
                          example: null
                        created_at:
                          type: string
                          example: '2023-05-03 12:01:13'
                        updated_at:
                          type: string
                          example: '2023-05-03 12:01:13'
                        title:
                          type: string
                          example: General
      tags:
        - Store
      security: []
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the store.'
        example: 1
        required: true
        schema:
          type: integer
      -
        in: path
        name: userid
        description: 'Optional parameter. the user id of the user you want info about.'
        required: true
        schema:
          type: integer
        examples:
          omitted:
            summary: 'When the value is omitted'
            value: ''
          present:
            summary: 'When the value is present'
            value: 1233
  '/advertiser/stores/{id}':
    get:
      summary: 'Get Store'
      operationId: getStore
      description: 'Get Advertiser Store'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  id: '{storeId}'
                  feed_name: '{storeName}'
                  feed_provider: direct
                  language_iso_code: sv
                  currency_iso_code: EUR
                  locale: SE
                  revenue_cpc: 100
                  direct_link: ''
                  deeplinkable: 0
                  autoupdate: 0
                  metainfo: null
                  url: ':TARGET_URL'
                  created_at: '2020-07-02 17:59:17'
                  updated_at: '2020-07-02 17:59:21'
                  instagram_revenue_cpc: 100
                  store_provider_account_id: 64
                  last_correct_sync: null
                  number_of_products: 0
                  invoice_cpc: 100
                  invoice_instagram_cpc: 100
                  program_id: null
                  deleted_at: null
                  revenue_cpa: null
                  revenue_text: null
                  revenue_of_commision: null
                  revenue_instagram_cpa: null
                  invoice_instagram_cpa: null
                  invoice_cpa: null
                  earnings_return_rate: 0
                  hidden: 0
                  td_earning: null
                  metapic_invoicing: 0
                  logo_url: '{logoUrl}'
                  status: 1
                  urls:
                    -
                      id: '{urlId}'
                      store_id: '{storeId}'
                      end_host: dev.test-test123.com
                      start_url: null
                      created_at: '2020-08-04 09:03:55'
                      updated_at: '2020-08-04 09:03:55'
                  store_categories:
                    -
                      id: 1
                      name: Fashion
                  traffic_sources_costs:
                    -
                      id: 319
                      store_id: '{storeId}'
                      source: 0
                      cpc: 100
                      invoice_cpc: 100
                      cpa: null
                      invoice_cpa: null
                      created_at: '2023-05-03 12:01:13'
                      updated_at: '2023-05-03 12:01:13'
                      title: General
                    - ...
                properties:
                  id:
                    type: string
                    example: '{storeId}'
                  feed_name:
                    type: string
                    example: '{storeName}'
                  feed_provider:
                    type: string
                    example: direct
                  language_iso_code:
                    type: string
                    example: sv
                  currency_iso_code:
                    type: string
                    example: EUR
                  locale:
                    type: string
                    example: SE
                  revenue_cpc:
                    type: integer
                    example: 100
                  direct_link:
                    type: string
                    example: ''
                  deeplinkable:
                    type: integer
                    example: 0
                  autoupdate:
                    type: integer
                    example: 0
                  metainfo:
                    type: string
                    example: null
                  url:
                    type: string
                    example: ':TARGET_URL'
                  created_at:
                    type: string
                    example: '2020-07-02 17:59:17'
                  updated_at:
                    type: string
                    example: '2020-07-02 17:59:21'
                  instagram_revenue_cpc:
                    type: integer
                    example: 100
                  store_provider_account_id:
                    type: integer
                    example: 64
                  last_correct_sync:
                    type: string
                    example: null
                  number_of_products:
                    type: integer
                    example: 0
                  invoice_cpc:
                    type: integer
                    example: 100
                  invoice_instagram_cpc:
                    type: integer
                    example: 100
                  program_id:
                    type: string
                    example: null
                  deleted_at:
                    type: string
                    example: null
                  revenue_cpa:
                    type: string
                    example: null
                  revenue_text:
                    type: string
                    example: null
                  revenue_of_commision:
                    type: string
                    example: null
                  revenue_instagram_cpa:
                    type: string
                    example: null
                  invoice_instagram_cpa:
                    type: string
                    example: null
                  invoice_cpa:
                    type: string
                    example: null
                  earnings_return_rate:
                    type: integer
                    example: 0
                  hidden:
                    type: integer
                    example: 0
                  td_earning:
                    type: string
                    example: null
                  metapic_invoicing:
                    type: integer
                    example: 0
                  logo_url:
                    type: string
                    example: '{logoUrl}'
                  status:
                    type: integer
                    example: 1
                  urls:
                    type: array
                    example:
                      -
                        id: '{urlId}'
                        store_id: '{storeId}'
                        end_host: dev.test-test123.com
                        start_url: null
                        created_at: '2020-08-04 09:03:55'
                        updated_at: '2020-08-04 09:03:55'
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          example: '{urlId}'
                        store_id:
                          type: string
                          example: '{storeId}'
                        end_host:
                          type: string
                          example: dev.test-test123.com
                        start_url:
                          type: string
                          example: null
                        created_at:
                          type: string
                          example: '2020-08-04 09:03:55'
                        updated_at:
                          type: string
                          example: '2020-08-04 09:03:55'
                  store_categories:
                    type: array
                    example:
                      -
                        id: 1
                        name: Fashion
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                          example: 1
                        name:
                          type: string
                          example: Fashion
                  traffic_sources_costs:
                    type: array
                    example:
                      -
                        id: 319
                        store_id: '{storeId}'
                        source: 0
                        cpc: 100
                        invoice_cpc: 100
                        cpa: null
                        invoice_cpa: null
                        created_at: '2023-05-03 12:01:13'
                        updated_at: '2023-05-03 12:01:13'
                        title: General
                      - ...
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                          example: 319
                        store_id:
                          type: string
                          example: '{storeId}'
                        source:
                          type: integer
                          example: 0
                        cpc:
                          type: integer
                          example: 100
                        invoice_cpc:
                          type: integer
                          example: 100
                        cpa:
                          type: string
                          example: null
                        invoice_cpa:
                          type: string
                          example: null
                        created_at:
                          type: string
                          example: '2023-05-03 12:01:13'
                        updated_at:
                          type: string
                          example: '2023-05-03 12:01:13'
                        title:
                          type: string
                          example: General
      tags:
        - Store
    patch:
      summary: 'Update Store'
      operationId: updateStore
      description: 'Advertiser Update Store'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  id: '{storeId}'
                  feed_name: '{storeName}'
                  feed_provider: direct
                  language_iso_code: sv
                  currency_iso_code: EUR
                  locale: SE
                  revenue_cpc: 100
                  direct_link: ''
                  deeplinkable: 0
                  autoupdate: 0
                  metainfo: null
                  url: ':TARGET_URL'
                  created_at: '2020-07-02 17:59:17'
                  updated_at: '2020-07-02 17:59:21'
                  instagram_revenue_cpc: 100
                  store_provider_account_id: 64
                  last_correct_sync: null
                  number_of_products: 0
                  invoice_cpc: 100
                  invoice_instagram_cpc: 100
                  program_id: null
                  deleted_at: null
                  revenue_cpa: null
                  revenue_text: null
                  revenue_of_commision: null
                  revenue_instagram_cpa: null
                  invoice_instagram_cpa: null
                  invoice_cpa: null
                  earnings_return_rate: 0
                  hidden: 0
                  td_earning: null
                  metapic_invoicing: 0
                  logo_url: '{logoUrl}'
                  status: 1
                  urls:
                    -
                      id: '{urlId}'
                      store_id: '{storeId}'
                      end_host: dev.test-test123.com
                      start_url: null
                      created_at: '2020-08-04 09:03:55'
                      updated_at: '2020-08-04 09:03:55'
                  store_categories:
                    -
                      id: 1
                      name: Fashion
                  traffic_sources_costs:
                    -
                      id: 319
                      store_id: '{storeId}'
                      source: 0
                      cpc: 100
                      invoice_cpc: 100
                      cpa: null
                      invoice_cpa: null
                      created_at: '2023-05-03 12:01:13'
                      updated_at: '2023-05-03 12:01:13'
                      title: General
                    - ...
                properties:
                  id:
                    type: string
                    example: '{storeId}'
                  feed_name:
                    type: string
                    example: '{storeName}'
                  feed_provider:
                    type: string
                    example: direct
                  language_iso_code:
                    type: string
                    example: sv
                  currency_iso_code:
                    type: string
                    example: EUR
                  locale:
                    type: string
                    example: SE
                  revenue_cpc:
                    type: integer
                    example: 100
                  direct_link:
                    type: string
                    example: ''
                  deeplinkable:
                    type: integer
                    example: 0
                  autoupdate:
                    type: integer
                    example: 0
                  metainfo:
                    type: string
                    example: null
                  url:
                    type: string
                    example: ':TARGET_URL'
                  created_at:
                    type: string
                    example: '2020-07-02 17:59:17'
                  updated_at:
                    type: string
                    example: '2020-07-02 17:59:21'
                  instagram_revenue_cpc:
                    type: integer
                    example: 100
                  store_provider_account_id:
                    type: integer
                    example: 64
                  last_correct_sync:
                    type: string
                    example: null
                  number_of_products:
                    type: integer
                    example: 0
                  invoice_cpc:
                    type: integer
                    example: 100
                  invoice_instagram_cpc:
                    type: integer
                    example: 100
                  program_id:
                    type: string
                    example: null
                  deleted_at:
                    type: string
                    example: null
                  revenue_cpa:
                    type: string
                    example: null
                  revenue_text:
                    type: string
                    example: null
                  revenue_of_commision:
                    type: string
                    example: null
                  revenue_instagram_cpa:
                    type: string
                    example: null
                  invoice_instagram_cpa:
                    type: string
                    example: null
                  invoice_cpa:
                    type: string
                    example: null
                  earnings_return_rate:
                    type: integer
                    example: 0
                  hidden:
                    type: integer
                    example: 0
                  td_earning:
                    type: string
                    example: null
                  metapic_invoicing:
                    type: integer
                    example: 0
                  logo_url:
                    type: string
                    example: '{logoUrl}'
                  status:
                    type: integer
                    example: 1
                  urls:
                    type: array
                    example:
                      -
                        id: '{urlId}'
                        store_id: '{storeId}'
                        end_host: dev.test-test123.com
                        start_url: null
                        created_at: '2020-08-04 09:03:55'
                        updated_at: '2020-08-04 09:03:55'
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          example: '{urlId}'
                        store_id:
                          type: string
                          example: '{storeId}'
                        end_host:
                          type: string
                          example: dev.test-test123.com
                        start_url:
                          type: string
                          example: null
                        created_at:
                          type: string
                          example: '2020-08-04 09:03:55'
                        updated_at:
                          type: string
                          example: '2020-08-04 09:03:55'
                  store_categories:
                    type: array
                    example:
                      -
                        id: 1
                        name: Fashion
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                          example: 1
                        name:
                          type: string
                          example: Fashion
                  traffic_sources_costs:
                    type: array
                    example:
                      -
                        id: 319
                        store_id: '{storeId}'
                        source: 0
                        cpc: 100
                        invoice_cpc: 100
                        cpa: null
                        invoice_cpa: null
                        created_at: '2023-05-03 12:01:13'
                        updated_at: '2023-05-03 12:01:13'
                        title: General
                      - ...
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                          example: 319
                        store_id:
                          type: string
                          example: '{storeId}'
                        source:
                          type: integer
                          example: 0
                        cpc:
                          type: integer
                          example: 100
                        invoice_cpc:
                          type: integer
                          example: 100
                        cpa:
                          type: string
                          example: null
                        invoice_cpa:
                          type: string
                          example: null
                        created_at:
                          type: string
                          example: '2023-05-03 12:01:13'
                        updated_at:
                          type: string
                          example: '2023-05-03 12:01:13'
                        title:
                          type: string
                          example: General
      tags:
        - Store
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                hidden:
                  type: integer
                  description: 'Hide or show Store.'
                  example: 1
                  enum:
                    - '0'
                    - '1'
                    - '2'
                    - '3'
                domains:
                  type: array
                  description: "Store domains\n\nMust match the regex /^[a-z0-9]+([\\-\\.]{1}[a-z0-9]+)*\\.[a-z]{2,5}(:[0-9]{1,5})?(\\/.*)?$/."
                  example:
                    - bynj60kv-34espk.9pdty0.jmgnh/9
                  items:
                    type: string
                categories:
                  type: array
                  description: 'Store categories'
                  example:
                    - sit
                  items:
                    type: string
                monthly_budget:
                  type: number
                  description: Monthly_budget.
                  example: '1000'
                properties:
                  type: string
                  description: 'Must be a valid JSON string.'
                  example: '["dolores","a"]'
                traffic_sources_costs:
                  type: array
                  description: 'Store traffic sources costs.'
                  example: null
                  items:
                    type: object
                    properties:
                      source:
                        type: integer
                        description: ''
                        example: 18
                      cpc:
                        type: integer
                        description: 'Must not be greater than 1000.'
                        example: 24
                      cpa:
                        type: number
                        description: 'Must be between 0 and 1.'
                        example: 0
                    required:
                      - source
                      - cpc
                      - cpa
              required:
                - hidden
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the store.'
        example: 1
        required: true
        schema:
          type: integer
  '/advertiser/stores/{id}/upload-logo':
    post:
      summary: 'Upload Store Logo'
      operationId: uploadStoreLogo
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  id: '{storeId}'
                  feed_name: '{storeName}'
                  feed_provider: direct
                  language_iso_code: sv
                  currency_iso_code: EUR
                  locale: SE
                  revenue_cpc: 100
                  direct_link: ''
                  deeplinkable: 0
                  autoupdate: 0
                  metainfo: null
                  url: ':TARGET_URL'
                  created_at: '2020-07-02 17:59:17'
                  updated_at: '2020-07-02 17:59:21'
                  instagram_revenue_cpc: 100
                  store_provider_account_id: 64
                  last_correct_sync: null
                  number_of_products: 0
                  invoice_cpc: 100
                  invoice_instagram_cpc: 100
                  program_id: null
                  deleted_at: null
                  revenue_cpa: null
                  revenue_text: null
                  revenue_of_commision: null
                  revenue_instagram_cpa: null
                  invoice_instagram_cpa: null
                  invoice_cpa: null
                  earnings_return_rate: 0
                  hidden: 0
                  td_earning: null
                  metapic_invoicing: 0
                  logo_url: '{logoUrl}'
                  status: 1
                  urls:
                    -
                      id: '{urlId}'
                      store_id: '{storeId}'
                      end_host: dev.test-test123.com
                      start_url: null
                      created_at: '2020-08-04 09:03:55'
                      updated_at: '2020-08-04 09:03:55'
                  store_categories:
                    -
                      id: 1
                      name: Fashion
                  traffic_sources_costs:
                    -
                      id: 319
                      store_id: '{storeId}'
                      source: 0
                      cpc: 100
                      invoice_cpc: 100
                      cpa: null
                      invoice_cpa: null
                      created_at: '2023-05-03 12:01:13'
                      updated_at: '2023-05-03 12:01:13'
                      title: General
                    - ...
                properties:
                  id:
                    type: string
                    example: '{storeId}'
                  feed_name:
                    type: string
                    example: '{storeName}'
                  feed_provider:
                    type: string
                    example: direct
                  language_iso_code:
                    type: string
                    example: sv
                  currency_iso_code:
                    type: string
                    example: EUR
                  locale:
                    type: string
                    example: SE
                  revenue_cpc:
                    type: integer
                    example: 100
                  direct_link:
                    type: string
                    example: ''
                  deeplinkable:
                    type: integer
                    example: 0
                  autoupdate:
                    type: integer
                    example: 0
                  metainfo:
                    type: string
                    example: null
                  url:
                    type: string
                    example: ':TARGET_URL'
                  created_at:
                    type: string
                    example: '2020-07-02 17:59:17'
                  updated_at:
                    type: string
                    example: '2020-07-02 17:59:21'
                  instagram_revenue_cpc:
                    type: integer
                    example: 100
                  store_provider_account_id:
                    type: integer
                    example: 64
                  last_correct_sync:
                    type: string
                    example: null
                  number_of_products:
                    type: integer
                    example: 0
                  invoice_cpc:
                    type: integer
                    example: 100
                  invoice_instagram_cpc:
                    type: integer
                    example: 100
                  program_id:
                    type: string
                    example: null
                  deleted_at:
                    type: string
                    example: null
                  revenue_cpa:
                    type: string
                    example: null
                  revenue_text:
                    type: string
                    example: null
                  revenue_of_commision:
                    type: string
                    example: null
                  revenue_instagram_cpa:
                    type: string
                    example: null
                  invoice_instagram_cpa:
                    type: string
                    example: null
                  invoice_cpa:
                    type: string
                    example: null
                  earnings_return_rate:
                    type: integer
                    example: 0
                  hidden:
                    type: integer
                    example: 0
                  td_earning:
                    type: string
                    example: null
                  metapic_invoicing:
                    type: integer
                    example: 0
                  logo_url:
                    type: string
                    example: '{logoUrl}'
                  status:
                    type: integer
                    example: 1
                  urls:
                    type: array
                    example:
                      -
                        id: '{urlId}'
                        store_id: '{storeId}'
                        end_host: dev.test-test123.com
                        start_url: null
                        created_at: '2020-08-04 09:03:55'
                        updated_at: '2020-08-04 09:03:55'
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          example: '{urlId}'
                        store_id:
                          type: string
                          example: '{storeId}'
                        end_host:
                          type: string
                          example: dev.test-test123.com
                        start_url:
                          type: string
                          example: null
                        created_at:
                          type: string
                          example: '2020-08-04 09:03:55'
                        updated_at:
                          type: string
                          example: '2020-08-04 09:03:55'
                  store_categories:
                    type: array
                    example:
                      -
                        id: 1
                        name: Fashion
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                          example: 1
                        name:
                          type: string
                          example: Fashion
                  traffic_sources_costs:
                    type: array
                    example:
                      -
                        id: 319
                        store_id: '{storeId}'
                        source: 0
                        cpc: 100
                        invoice_cpc: 100
                        cpa: null
                        invoice_cpa: null
                        created_at: '2023-05-03 12:01:13'
                        updated_at: '2023-05-03 12:01:13'
                        title: General
                      - ...
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                          example: 319
                        store_id:
                          type: string
                          example: '{storeId}'
                        source:
                          type: integer
                          example: 0
                        cpc:
                          type: integer
                          example: 100
                        invoice_cpc:
                          type: integer
                          example: 100
                        cpa:
                          type: string
                          example: null
                        invoice_cpa:
                          type: string
                          example: null
                        created_at:
                          type: string
                          example: '2023-05-03 12:01:13'
                        updated_at:
                          type: string
                          example: '2023-05-03 12:01:13'
                        title:
                          type: string
                          example: General
      tags:
        - Store
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                logo:
                  type: string
                  description: "Store logo.\n\nMust not be greater than 100000 characters."
                  example: image.png
              required:
                - logo
      security: []
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the store.'
        example: 1
        required: true
        schema:
          type: integer
  '/advertiser/stores/{id}/order-collectors/td':
    get:
      summary: 'Generate Tracking Configs for plugins'
      operationId: generateTrackingConfigsForPlugins
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  email: '{email}'
                  password: '{password}'
                  personId: '{personId}'
                  activationKey: '{activationKey}'
                  organizationId: '{organizationId}'
                properties:
                  email:
                    type: string
                    example: '{email}'
                  password:
                    type: string
                    example: '{password}'
                  personId:
                    type: string
                    example: '{personId}'
                  activationKey:
                    type: string
                    example: '{activationKey}'
                  organizationId:
                    type: string
                    example: '{organizationId}'
      tags:
        - Store
      security: []
  '/advertiser/stores/{id}/order-collectors/ga':
    patch:
      summary: 'Update GaConfig'
      operationId: updateGaConfig
      description: ''
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  id: '{storeId}'
                  feed_id: ''
                  feed_name: '{storeName}'
                  feed_provider: direct
                  language_iso_code: sv
                  currency_iso_code: EUR
                  locale: SE
                  revenue_cpc: 100
                  direct_link: ''
                  deeplinkable: 0
                  autoupdate: 0
                  metainfo: null
                  url: ':TARGET_URL'
                  feed: 0
                  created_at: '2020-07-02 17:59:17'
                  updated_at: '2020-07-02 17:59:21'
                  instagram_revenue_cpc: 100
                  store_provider_account_id: 64
                  last_correct_sync: null
                  number_of_products: 0
                  invoice_cpc: 100
                  invoice_instagram_cpc: 100
                  program_id: null
                  deleted_at: null
                  revenue_cpa: null
                  revenue_text: null
                  revenue_of_commision: null
                  revenue_instagram_cpa: null
                  invoice_instagram_cpa: null
                  invoice_cpa: null
                  earnings_return_rate: 0
                  hidden: 0
                  td_earning: null
                  metapic_invoicing: 0
                  logo_url: '{logoUrl}'
                  status: 1
                  users:
                    -
                      id: '{userId}'
                      username: '{userName}'
                      email: '{userEmail}'
                      created_at: '2020-07-02 17:59:17'
                      updated_at: '2020-07-02 17:59:17'
                      admin: 0
                      last_active: '0000-00-00 00:00:00'
                      first_name: ''
                      surname: ''
                      country: ''
                      city: ''
                      address: ''
                      postcode: ''
                      tier_pricing_type: ''
                      config: ''
                      sign_user_agreement: null
                      revenue_tier_id: 312
                      recruitment_utm: null
                      is_suspended: false
                      is_verified: false
                      pivot:
                        store_id: '{storeId}'
                        user_id: '{userId}'
                  traffic_sources_costs:
                    -
                      id: 9630
                      store_id: '{storeId}'
                      source: 0
                      cpc: 100
                      invoice_cpc: 100
                      cpa: null
                      invoice_cpa: null
                      created_at: '2023-08-17 10:38:46'
                      updated_at: '2023-08-17 10:38:46'
                      title: General
                    -
                      id: 9631
                      store_id: '{storeId}'
                      source: 1
                      cpc: 100
                      invoice_cpc: 100
                      cpa: null
                      invoice_cpa: null
                      created_at: '2023-08-17 10:38:47'
                      updated_at: '2023-08-17 10:38:47'
                      title: Instagram
                properties:
                  id:
                    type: string
                    example: '{storeId}'
                  feed_id:
                    type: string
                    example: ''
                  feed_name:
                    type: string
                    example: '{storeName}'
                  feed_provider:
                    type: string
                    example: direct
                  language_iso_code:
                    type: string
                    example: sv
                  currency_iso_code:
                    type: string
                    example: EUR
                  locale:
                    type: string
                    example: SE
                  revenue_cpc:
                    type: integer
                    example: 100
                  direct_link:
                    type: string
                    example: ''
                  deeplinkable:
                    type: integer
                    example: 0
                  autoupdate:
                    type: integer
                    example: 0
                  metainfo:
                    type: string
                    example: null
                  url:
                    type: string
                    example: ':TARGET_URL'
                  feed:
                    type: integer
                    example: 0
                  created_at:
                    type: string
                    example: '2020-07-02 17:59:17'
                  updated_at:
                    type: string
                    example: '2020-07-02 17:59:21'
                  instagram_revenue_cpc:
                    type: integer
                    example: 100
                  store_provider_account_id:
                    type: integer
                    example: 64
                  last_correct_sync:
                    type: string
                    example: null
                  number_of_products:
                    type: integer
                    example: 0
                  invoice_cpc:
                    type: integer
                    example: 100
                  invoice_instagram_cpc:
                    type: integer
                    example: 100
                  program_id:
                    type: string
                    example: null
                  deleted_at:
                    type: string
                    example: null
                  revenue_cpa:
                    type: string
                    example: null
                  revenue_text:
                    type: string
                    example: null
                  revenue_of_commision:
                    type: string
                    example: null
                  revenue_instagram_cpa:
                    type: string
                    example: null
                  invoice_instagram_cpa:
                    type: string
                    example: null
                  invoice_cpa:
                    type: string
                    example: null
                  earnings_return_rate:
                    type: integer
                    example: 0
                  hidden:
                    type: integer
                    example: 0
                  td_earning:
                    type: string
                    example: null
                  metapic_invoicing:
                    type: integer
                    example: 0
                  logo_url:
                    type: string
                    example: '{logoUrl}'
                  status:
                    type: integer
                    example: 1
                  users:
                    type: array
                    example:
                      -
                        id: '{userId}'
                        username: '{userName}'
                        email: '{userEmail}'
                        created_at: '2020-07-02 17:59:17'
                        updated_at: '2020-07-02 17:59:17'
                        admin: 0
                        last_active: '0000-00-00 00:00:00'
                        first_name: ''
                        surname: ''
                        country: ''
                        city: ''
                        address: ''
                        postcode: ''
                        tier_pricing_type: ''
                        config: ''
                        sign_user_agreement: null
                        revenue_tier_id: 312
                        recruitment_utm: null
                        is_suspended: false
                        is_verified: false
                        pivot:
                          store_id: '{storeId}'
                          user_id: '{userId}'
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          example: '{userId}'
                        username:
                          type: string
                          example: '{userName}'
                        email:
                          type: string
                          example: '{userEmail}'
                        created_at:
                          type: string
                          example: '2020-07-02 17:59:17'
                        updated_at:
                          type: string
                          example: '2020-07-02 17:59:17'
                        admin:
                          type: integer
                          example: 0
                        last_active:
                          type: string
                          example: '0000-00-00 00:00:00'
                        first_name:
                          type: string
                          example: ''
                        surname:
                          type: string
                          example: ''
                        country:
                          type: string
                          example: ''
                        city:
                          type: string
                          example: ''
                        address:
                          type: string
                          example: ''
                        postcode:
                          type: string
                          example: ''
                        tier_pricing_type:
                          type: string
                          example: ''
                        config:
                          type: string
                          example: ''
                        sign_user_agreement:
                          type: string
                          example: null
                        revenue_tier_id:
                          type: integer
                          example: 312
                        recruitment_utm:
                          type: string
                          example: null
                        is_suspended:
                          type: boolean
                          example: false
                        is_verified:
                          type: boolean
                          example: false
                        pivot:
                          type: object
                          properties:
                            store_id:
                              type: string
                              example: '{storeId}'
                            user_id:
                              type: string
                              example: '{userId}'
                  traffic_sources_costs:
                    type: array
                    example:
                      -
                        id: 9630
                        store_id: '{storeId}'
                        source: 0
                        cpc: 100
                        invoice_cpc: 100
                        cpa: null
                        invoice_cpa: null
                        created_at: '2023-08-17 10:38:46'
                        updated_at: '2023-08-17 10:38:46'
                        title: General
                      -
                        id: 9631
                        store_id: '{storeId}'
                        source: 1
                        cpc: 100
                        invoice_cpc: 100
                        cpa: null
                        invoice_cpa: null
                        created_at: '2023-08-17 10:38:47'
                        updated_at: '2023-08-17 10:38:47'
                        title: Instagram
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                          example: 9630
                        store_id:
                          type: string
                          example: '{storeId}'
                        source:
                          type: integer
                          example: 0
                        cpc:
                          type: integer
                          example: 100
                        invoice_cpc:
                          type: integer
                          example: 100
                        cpa:
                          type: string
                          example: null
                        invoice_cpa:
                          type: string
                          example: null
                        created_at:
                          type: string
                          example: '2023-08-17 10:38:46'
                        updated_at:
                          type: string
                          example: '2023-08-17 10:38:46'
                        title:
                          type: string
                          example: General
      tags:
        - Store
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                propertyId:
                  type: string
                  description: ''
                  example: laborum
              required:
                - propertyId
      security: []
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the store.'
        example: 1
        required: true
        schema:
          type: integer
  '/stores/{id}/media':
    get:
      summary: 'Get Store Media'
      operationId: getStoreMedia
      description: 'Get Instagram stories and collages by store'
      parameters:
        -
          in: query
          name: type
          description: 'if you only what one type'
          example: architecto
          required: false
          schema:
            type: string
            description: 'if you only what one type'
            example: architecto
            enum:
              - all
              - youtube
              - tiktok
              - instagram
        -
          in: query
          name: identifier
          description: 'for the social media account you getting'
          example: 18
          required: false
          schema:
            type: string
            description: 'for the social media account you getting'
            example: 18
        -
          in: query
          name: order_by
          description: 'Sort by clicks or created_at'
          example: qui
          required: false
          schema:
            type: string
            description: 'Sort by clicks or created_at'
            example: qui
            enum:
              - created_at
              - clicks
        -
          in: query
          name: offer_id
          description: 'integer. The id of the Offer.'
          example: '123'
          required: false
          schema:
            type: integer
            description: 'integer. The id of the Offer.'
            example: '123'
        -
          in: query
          name: date_from
          description: "date get media published after given date (incl)\n\nMust be a valid date."
          example: cupiditate
          required: false
          schema:
            type: string
            description: "date get media published after given date (incl)\n\nMust be a valid date."
            example: cupiditate
        -
          in: query
          name: date_to
          description: "date get media published until given date (incl)\n\nMust be a valid date."
          example: eum
          required: false
          schema:
            type: string
            description: "date get media published until given date (incl)\n\nMust be a valid date."
            example: eum
        -
          in: query
          name: per_page
          description: 'Items per page.'
          example: 10
          required: false
          schema:
            type: integer
            description: 'Items per page.'
            example: 10
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  current_page: 1
                  data:
                    -
                      id: '{mediaId}'
                      username: '{username}'
                      url: '/instagramStorys/{username}/2245371215538904581_4704145696.mp4'
                      type: instagram
                      created_at: '2020-02-16 22:42:36'
                      clicks: '657'
                      nr_orders: 12
                      order_value: 21345
                      cost: 12312
                    -
                      ...: ...
                  first_page_url: 'http://local.api.metapic/stores/{id}/media?page=1'
                  from: 1
                  last_page: 3
                  last_page_url: 'http://local.api.metapic/stores/{id}/media?page=3'
                  next_page_url: 'http://local.api.metapic/stores/{id}/media?page=2'
                  path: 'http://local.api.metapic/stores/{id}/media'
                  per_page: 8
                  prev_page_url: null
                  to: 8
                  total: 21
                properties:
                  current_page:
                    type: integer
                    example: 1
                  data:
                    type: array
                    example:
                      -
                        id: '{mediaId}'
                        username: '{username}'
                        url: '/instagramStorys/{username}/2245371215538904581_4704145696.mp4'
                        type: instagram
                        created_at: '2020-02-16 22:42:36'
                        clicks: '657'
                        nr_orders: 12
                        order_value: 21345
                        cost: 12312
                      -
                        ...: ...
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          example: '{mediaId}'
                        username:
                          type: string
                          example: '{username}'
                        url:
                          type: string
                          example: '/instagramStorys/{username}/2245371215538904581_4704145696.mp4'
                        type:
                          type: string
                          example: instagram
                        created_at:
                          type: string
                          example: '2020-02-16 22:42:36'
                        clicks:
                          type: string
                          example: '657'
                        nr_orders:
                          type: integer
                          example: 12
                        order_value:
                          type: integer
                          example: 21345
                        cost:
                          type: integer
                          example: 12312
                  first_page_url:
                    type: string
                    example: 'http://local.api.metapic/stores/{id}/media?page=1'
                  from:
                    type: integer
                    example: 1
                  last_page:
                    type: integer
                    example: 3
                  last_page_url:
                    type: string
                    example: 'http://local.api.metapic/stores/{id}/media?page=3'
                  next_page_url:
                    type: string
                    example: 'http://local.api.metapic/stores/{id}/media?page=2'
                  path:
                    type: string
                    example: 'http://local.api.metapic/stores/{id}/media'
                  per_page:
                    type: integer
                    example: 8
                  prev_page_url:
                    type: string
                    example: null
                  to:
                    type: integer
                    example: 8
                  total:
                    type: integer
                    example: 21
      tags:
        - 'Store Media'
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the store.'
        example: 1
        required: true
        schema:
          type: integer
  '/stores/{id}/instagramStorys/{username}/{image}':
    get:
      summary: 'Get Store Media Object'
      operationId: getStoreMediaObject
      description: 'Get Video or Image for Instagram'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  data:
                    type: image/jpg|video/mp4
                properties:
                  data:
                    type: object
                    properties:
                      type:
                        type: string
                        example: image/jpg|video/mp4
      tags:
        - 'Store Media'
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the store.'
        example: '1'
        required: true
        schema:
          type: string
      -
        in: path
        name: username
        description: Username.
        example: user1
        required: true
        schema:
          type: string
      -
        in: path
        name: image
        description: Image.
        example: 1880696686516681576_6388984.jpg
        required: true
        schema:
          type: string
  '/stores/{id}/instagram-stories/{username}/{image}':
    get:
      summary: 'Get Store Media Object'
      operationId: getStoreMediaObject
      description: 'Get Video or Image for Instagram'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  data:
                    type: image/jpg|video/mp4
                properties:
                  data:
                    type: object
                    properties:
                      type:
                        type: string
                        example: image/jpg|video/mp4
      tags:
        - 'Store Media'
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the store.'
        example: '1'
        required: true
        schema:
          type: string
      -
        in: path
        name: username
        description: Username.
        example: user1
        required: true
        schema:
          type: string
      -
        in: path
        name: image
        description: Image.
        example: 1880696686516681576_6388984.jpg
        required: true
        schema:
          type: string
  '/stores/{id}/user/{userId}/user-tags':
    post:
      summary: 'Add User Tags'
      operationId: addUserTags
      description: 'Send in a array with tag objects you want to add to the user. If no Id is sent in in tags object in array it will create a new user-tag.'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                example:
                  -
                    id: 1
                    name: Fashion
                    users_count: 2
                    total_followers: '8'
                    offer: '{offerResource}'
                    offers:
                      - '{offerResource}'
      tags:
        - 'User Tags'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                tags:
                  type: string
                  description: 'a array of object that need name or id.'
                  example: "[{'id':123,'name':'vip'}]"
              required:
                - tags
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the store.'
        example: 1
        required: true
        schema:
          type: integer
      -
        in: path
        name: userId
        description: 'Optional parameter. the userId of the store.'
        required: true
        schema:
          type: integer
        examples:
          omitted:
            summary: 'When the value is omitted'
            value: ''
          present:
            summary: 'When the value is present'
            value: 123
  '/advertiser/stores/{id}/user-tag-stats':
    get:
      summary: 'Get User Tag Stats'
      operationId: getUserTagStats
      description: 'Get statistic by user tags'
      parameters:
        -
          in: query
          name: tags
          description: "The array of tag's IDs."
          example:
            - 15
          required: true
          schema:
            type: array
            description: "The array of tag's IDs."
            example:
              - 15
            items:
              type: integer
        -
          in: query
          name: types
          description: 'Types array (order_value, nr_orders, clicks, estimated_cost).'
          example:
            - nr_orders
          required: false
          schema:
            type: array
            description: 'Types array (order_value, nr_orders, clicks, estimated_cost).'
            example:
              - nr_orders
            items:
              type: string
              enum:
                - order_value
                - nr_orders
                - clicks
                - estimated_cost
        -
          in: query
          name: from
          description: "Date (Y-m-d).\n\nMust be a valid date."
          example: '2019-01-01'
          required: false
          schema:
            type: string
            description: "Date (Y-m-d).\n\nMust be a valid date."
            example: '2019-01-01'
        -
          in: query
          name: to
          description: "Date (Y-m-d).\n\nMust be a valid date."
          example: '2019-01-02'
          required: false
          schema:
            type: string
            description: "Date (Y-m-d).\n\nMust be a valid date."
            example: '2019-01-02'
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  order_value:
                    '2020-03-19':
                      Test2: '46970'
                    '2020-03-20':
                      Test2: '6129'
                  nr_orders:
                    '2020-03-19':
                      Test2: '8'
                    '2020-03-20':
                      Test2: '4'
                  clicks:
                    '2020-03-19':
                      Test2: '1225'
                    '2020-03-20':
                      Test2: '417'
                properties:
                  order_value:
                    type: object
                    properties:
                      '2020-03-19':
                        type: object
                        properties:
                          Test2:
                            type: string
                            example: '46970'
                      '2020-03-20':
                        type: object
                        properties:
                          Test2:
                            type: string
                            example: '6129'
                  nr_orders:
                    type: object
                    properties:
                      '2020-03-19':
                        type: object
                        properties:
                          Test2:
                            type: string
                            example: '8'
                      '2020-03-20':
                        type: object
                        properties:
                          Test2:
                            type: string
                            example: '4'
                  clicks:
                    type: object
                    properties:
                      '2020-03-19':
                        type: object
                        properties:
                          Test2:
                            type: string
                            example: '1225'
                      '2020-03-20':
                        type: object
                        properties:
                          Test2:
                            type: string
                            example: '417'
      tags:
        - 'User Tags'
    parameters:
      -
        in: path
        name: storeId
        description: 'The ID of the Advertiser Store.'
        example: 123
        required: true
        schema:
          type: integer
  '/stores/{store_id}/user-tags':
    get:
      summary: 'Get User Tags for Store'
      operationId: getUserTagsForStore
      description: 'Get all tags with offers'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                example:
                  -
                    id: 1
                    name: Fashion
                    users_count: 2
                    total_followers: '8'
                    offer: '{offerResource}'
                    offers:
                      - '{offerResource}'
      tags:
        - 'User Tags'
    post:
      summary: 'Create User Tag for Store'
      operationId: createUserTagForStore
      description: 'Creates a user tag with store level access.'
      parameters: []
      responses: {  }
      tags:
        - 'User Tags'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: ''
                  example: sit
              required:
                - name
      security: []
    parameters:
      -
        in: path
        name: id
        description: 'The ID of the store.'
        example: 1
        required: true
        schema:
          type: integer
  '/profiles/{profile_id}/user-tags/{id}':
    put:
      summary: 'Assign Tag to Profile'
      operationId: assignTagToProfile
      description: "Assigns the selected Tag to the current Profile.\n\nIf the Profile belongs to an existing Metapic User, the Tag is assigned to the User instead."
      parameters: []
      responses: {  }
      tags:
        - 'User Tags'
      security: []
    delete:
      summary: 'Remove Tag from Profile'
      operationId: removeTagFromProfile
      description: 'Removes Tag from Profile or Metapic User, if it exists.'
      parameters: []
      responses: {  }
      tags:
        - 'User Tags'
      security: []
  '/advertiser/stores/{id}/users/{user}/voucher-codes':
    get:
      summary: 'Get User Voucher Codes'
      operationId: getUserVoucherCodes
      description: 'Get User Voucher Codes list by Advertiser'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                example:
                  -
                    id: 1
                    store_id: '{storeId}'
                    user_id: '{userId}'
                    voucher_code: testcode12345
                    created_at: '2021-02-02 13:29:57'
                    updated_at: '2021-02-02 13:29:57'
      tags:
        - 'User Voucher Codes'
    post:
      summary: 'Create User Voucher Codes'
      operationId: createUserVoucherCodes
      description: 'Create User Voucher Code by Advertiser'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  store_id: '{storeId}'
                  user_id: '{userId}'
                  voucher_code: testcode12345
                  updated_at: '2021-02-02 13:29:57'
                  created_at: '2021-02-02 13:29:57'
                  id: 1
                properties:
                  store_id:
                    type: string
                    example: '{storeId}'
                  user_id:
                    type: string
                    example: '{userId}'
                  voucher_code:
                    type: string
                    example: testcode12345
                  updated_at:
                    type: string
                    example: '2021-02-02 13:29:57'
                  created_at:
                    type: string
                    example: '2021-02-02 13:29:57'
                  id:
                    type: integer
                    example: 1
      tags:
        - 'User Voucher Codes'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                voucher_code:
                  type: string
                  description: "Voucher code.\n\nMust not be greater than 255 characters. Must be at least 3 characters."
                  example: CODE123
              required:
                - voucher_code
    parameters:
      -
        in: path
        name: storeId
        description: 'The ID of the Advertiser Store.'
        example: 123
        required: true
        schema:
          type: integer
      -
        in: path
        name: user
        description: 'The ID of the User.'
        example: 123
        required: true
        schema:
          type: integer
  '/advertiser/stores/{id}/users/{user}/voucher-codes/{id}':
    delete:
      summary: 'Delete User Voucher Codes'
      operationId: deleteUserVoucherCodes
      description: 'Delete User Voucher Code by Advertiser'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  store_id: '{storeId}'
                  user_id: '{userId}'
                  voucher_code: testcode12345
                  updated_at: '2021-02-02 13:29:57'
                  created_at: '2021-02-02 13:29:57'
                  id: 1
                properties:
                  store_id:
                    type: string
                    example: '{storeId}'
                  user_id:
                    type: string
                    example: '{userId}'
                  voucher_code:
                    type: string
                    example: testcode12345
                  updated_at:
                    type: string
                    example: '2021-02-02 13:29:57'
                  created_at:
                    type: string
                    example: '2021-02-02 13:29:57'
                  id:
                    type: integer
                    example: 1
      tags:
        - 'User Voucher Codes'
    parameters:
      -
        in: path
        name: storeId
        description: 'The ID of the Advertiser Store.'
        example: 123
        required: true
        schema:
          type: integer
      -
        in: path
        name: user
        description: 'The ID of the User.'
        example: 123
        required: true
        schema:
          type: integer
      -
        in: path
        name: code
        description: 'The ID of the Usder Voucher Code.'
        example: 123
        required: true
        schema:
          type: integer
  '/advertiser/stores/{id}/users':
    get:
      summary: 'Get Users'
      operationId: getUsers
      description: 'Get Users list by Advertiser. Return users from current store and client'
      parameters:
        -
          in: query
          name: q
          description: 'Search query (can be part of or hole, social media, username, email or tag)'
          example: asperiores
          required: false
          schema:
            type: string
            description: 'Search query (can be part of or hole, social media, username, email or tag)'
            example: asperiores
        -
          in: query
          name: status
          description: 'User status (accepted, suspended, undecided)'
          example: corrupti
          required: false
          schema:
            type: string
            description: 'User status (accepted, suspended, undecided)'
            example: corrupti
            enum:
              - accepted
              - suspended
              - undecided
        -
          in: query
          name: format
          description: 'Format to export.'
          example: csv
          required: false
          schema:
            type: string
            description: 'Format to export.'
            example: csv
            enum:
              - csv
              - xlsx
              - json
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  current_page: 1
                  data:
                    -
                      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
                      is_suspended: false
                      is_verified: true
                      social_media:
                        -
                          id: '{socialMediaId}'
                          user_id: '{userId}'
                          type: blog
                          identifier: '{socialIdentifier}'
                          is_valid: 1
                          created_at: '2018-11-13 11:25:26'
                          updated_at: '2019-07-25 10:03:43'
                          followers: null
                      user_tags:
                        -
                          id: 5
                          name: 'High Fashion'
                          slug: highfashion
                          created_at: '2019-10-16 15:08:40'
                          updated_at: '2019-10-16 15:08:40'
                          access_level: 1
                          store_id: null
                          pivot:
                            user_id: '{userId}'
                            user_tag_id: 5
                  first_page_url: 'http://metapic-api.loc/advertiser/stores/25095/users?page=1'
                  from: 1
                  last_page: 1
                  last_page_url: 'http://metapic-api.loc/advertiser/stores/25095/users?page=1'
                  next_page_url: null
                  path: 'http://metapic-api.loc/advertiser/stores/25095/users'
                  per_page: 15
                  prev_page_url: null
                  to: 11
                  total: 11
                properties:
                  current_page:
                    type: integer
                    example: 1
                  data:
                    type: array
                    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
                        is_suspended: false
                        is_verified: true
                        social_media:
                          -
                            id: '{socialMediaId}'
                            user_id: '{userId}'
                            type: blog
                            identifier: '{socialIdentifier}'
                            is_valid: 1
                            created_at: '2018-11-13 11:25:26'
                            updated_at: '2019-07-25 10:03:43'
                            followers: null
                        user_tags:
                          -
                            id: 5
                            name: 'High Fashion'
                            slug: highfashion
                            created_at: '2019-10-16 15:08:40'
                            updated_at: '2019-10-16 15:08:40'
                            access_level: 1
                            store_id: null
                            pivot:
                              user_id: '{userId}'
                              user_tag_id: 5
                    items:
                      type: object
                      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
                        is_suspended:
                          type: boolean
                          example: false
                        is_verified:
                          type: boolean
                          example: true
                        social_media:
                          type: array
                          example:
                            -
                              id: '{socialMediaId}'
                              user_id: '{userId}'
                              type: blog
                              identifier: '{socialIdentifier}'
                              is_valid: 1
                              created_at: '2018-11-13 11:25:26'
                              updated_at: '2019-07-25 10:03:43'
                              followers: null
                          items:
                            type: object
                            properties:
                              id:
                                type: string
                                example: '{socialMediaId}'
                              user_id:
                                type: string
                                example: '{userId}'
                              type:
                                type: string
                                example: blog
                              identifier:
                                type: string
                                example: '{socialIdentifier}'
                              is_valid:
                                type: integer
                                example: 1
                              created_at:
                                type: string
                                example: '2018-11-13 11:25:26'
                              updated_at:
                                type: string
                                example: '2019-07-25 10:03:43'
                              followers:
                                type: string
                                example: null
                        user_tags:
                          type: array
                          example:
                            -
                              id: 5
                              name: 'High Fashion'
                              slug: highfashion
                              created_at: '2019-10-16 15:08:40'
                              updated_at: '2019-10-16 15:08:40'
                              access_level: 1
                              store_id: null
                              pivot:
                                user_id: '{userId}'
                                user_tag_id: 5
                          items:
                            type: object
                            properties:
                              id:
                                type: integer
                                example: 5
                              name:
                                type: string
                                example: 'High Fashion'
                              slug:
                                type: string
                                example: highfashion
                              created_at:
                                type: string
                                example: '2019-10-16 15:08:40'
                              updated_at:
                                type: string
                                example: '2019-10-16 15:08:40'
                              access_level:
                                type: integer
                                example: 1
                              store_id:
                                type: string
                                example: null
                              pivot:
                                type: object
                                properties:
                                  user_id:
                                    type: string
                                    example: '{userId}'
                                  user_tag_id:
                                    type: integer
                                    example: 5
                  first_page_url:
                    type: string
                    example: 'http://metapic-api.loc/advertiser/stores/25095/users?page=1'
                  from:
                    type: integer
                    example: 1
                  last_page:
                    type: integer
                    example: 1
                  last_page_url:
                    type: string
                    example: 'http://metapic-api.loc/advertiser/stores/25095/users?page=1'
                  next_page_url:
                    type: string
                    example: null
                  path:
                    type: string
                    example: 'http://metapic-api.loc/advertiser/stores/25095/users'
                  per_page:
                    type: integer
                    example: 15
                  prev_page_url:
                    type: string
                    example: null
                  to:
                    type: integer
                    example: 11
                  total:
                    type: integer
                    example: 11
      tags:
        - Users
    post:
      summary: 'Create User'
      operationId: createUser
      description: 'Advertiser can create users in store client context.'
      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:
        - Users
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                email:
                  type: string
                  description: 'User email.'
                  example: test@test.com
                username:
                  type: string
                  description: 'The name of the user. Max 24 alphanumeric characters.'
                  example: testUser
                social_media:
                  type: array
                  description: 'Array of social media data.'
                  example:
                    - []
                  items:
                    type: object
                    properties:
                      type:
                        type: string
                        description: ''
                        example: whatsapp
                        enum:
                          - instagram
                          - blog
                          - website
                          - youtube
                          - tiktok
                          - pinterest
                          - zezam
                          - onbaz
                          - snapchat
                          - facebook
                          - discord
                          - linkedin
                          - patreon
                          - telegram
                          - twitter
                          - vimeo
                          - whatsapp
                          - tumblr
                      identifier:
                        type: string
                        description: ''
                        example: optio
                    required:
                      - type
                      - identifier
              required:
                - email
                - username
                - social_media
    parameters:
      -
        in: path
        name: storeId
        description: 'The ID of the Advertiser Store.'
        example: 123
        required: true
        schema:
          type: integer
  '/advertiser/stores/{id}/users/{id}':
    get:
      summary: 'Get User Information'
      operationId: getUserInformation
      description: 'Get User with Extra User Info by Advertiser'
      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:
        - Users
    put:
      summary: 'Update User Information'
      operationId: updateUserInformation
      description: 'Advertiser can update users in store client context.'
      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:
        - Users
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                SSNum:
                  type: string
                  description: ''
                  example: perspiciatis
                vat_no:
                  type: string
                  description: 'This field is required when <code>vatEligibility</code> is <code>1</code>.'
                  example: et
                username:
                  type: string
                  description: ''
                  example: et
                surname:
                  type: string
                  description: ''
                  example: voluptate
                first_name:
                  type: string
                  description: ''
                  example: nihil
                city:
                  type: string
                  description: ''
                  example: nostrum
                country:
                  type: string
                  description: ''
                  example: voluptatem
                address:
                  type: string
                  description: ''
                  example: aperiam
                postcode:
                  type: string
                  description: ''
                  example: dolor
                phone:
                  type: string
                  description: ''
                  example: at
                bankType:
                  type: string
                  description: ''
                  example: esse
                bank_info:
                  type: string
                  description: 'This field is required when <code>bankType</code> is present.'
                  example: null
                businessType:
                  type: string
                  description: ''
                  example: quibusdam
                company:
                  type: object
                  description: ''
                  example: null
                  properties:
                    vat:
                      type: string
                      description: ''
                      example: in
                    name:
                      type: string
                      description: ''
                      example: quia
                    orginisation_id:
                      type: string
                      description: ''
                      example: et
                social_media:
                  type: array
                  description: 'Array of social media data.'
                  example:
                    - error
                  items:
                    type: object
                    properties:
                      type:
                        type: string
                        description: 'This field is required when <code>social_media</code> is present.'
                        example: linkedin
                        enum:
                          - instagram
                          - blog
                          - website
                          - youtube
                          - tiktok
                          - pinterest
                          - zezam
                          - onbaz
                          - snapchat
                          - facebook
                          - discord
                          - linkedin
                          - patreon
                          - telegram
                          - twitter
                          - vimeo
                          - whatsapp
                          - tumblr
                      identifier:
                        type: string
                        description: 'This field is required when <code>social_media</code> is present.'
                        example: ipsum
    parameters:
      -
        in: path
        name: storeId
        description: 'The ID of the Advertiser Store.'
        example: 123
        required: true
        schema:
          type: integer
      -
        in: path
        name: userId
        description: 'The ID of the User to update.'
        example: 123
        required: true
        schema:
          type: integer
  '/advertiser/stores/{id}/users/{user}/status':
    patch:
      summary: 'Update User Status'
      operationId: updateUserStatus
      description: 'Advertiser can update user status in store client context.'
      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:
        - Users
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                status:
                  type: string
                  description: 'User status (accepted, suspended, undecided)'
                  example: similique
                  enum:
                    - accepted
                    - suspended
                    - undecided
              required:
                - status
    parameters:
      -
        in: path
        name: storeId
        description: 'The ID of the Advertiser Store.'
        example: 123
        required: true
        schema:
          type: integer
      -
        in: path
        name: userId
        description: 'The ID of the User to update.'
        example: 123
        required: true
        schema:
          type: integer
  '/stores/{id}/users/search':
    get:
      summary: 'Search Users emails'
      operationId: searchUsersEmails
      description: ''
      parameters:
        -
          in: query
          name: q
          description: 'Search query start of a email.'
          example: Email
          required: false
          schema:
            type: string
            description: 'Search query start of a email.'
            example: Email
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                example:
                  -
                    email: email@email.com
                    id: 23
                  -
                    email: email2@email.com
                    id: 22
                  -
                    email: email3@email.com
                    id: 11
                  -
                    email: email4@email.com
                    id: 22
      tags:
        - Users
    parameters:
      -
        in: path
        name: storeId
        description: 'The ID of the Advertiser Store.'
        example: 123
        required: true
        schema:
          type: integer
  '/stores/{id}/users/search-by-instagram':
    get:
      summary: 'Search Users emails'
      operationId: searchUsersEmails
      description: ''
      parameters:
        -
          in: query
          name: q
          description: 'Search query start of a instagram identifier.'
          example: insta123
          required: false
          schema:
            type: string
            description: 'Search query start of a instagram identifier.'
            example: insta123
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                example:
                  -
                    identifier: identifier1
                    id: 23
                  -
                    email: identifier2
                    id: 22
                  -
                    email: identifier3
                    id: 11
                  -
                    email: '4'
                    id: 22
      tags:
        - Users
    parameters:
      -
        in: path
        name: storeId
        description: 'The ID of the Advertiser Store.'
        example: 123
        required: true
        schema:
          type: integer
tags:
  -
    name: Clients
    description: ''
  -
    name: Endpoints
    description: ''
  -
    name: Entrypoint
    description: ''
  -
    name: Influencers
    description: ''
  -
    name: 'Offer Comments V2'
    description: ''
  -
    name: 'Offer User Activity'
    description: ''
  -
    name: Offers
    description: ''
  -
    name: Orders
    description: ''
  -
    name: Payments
    description: ''
  -
    name: Statistic
    description: ''
  -
    name: 'Stats Configuration'
    description: ''
  -
    name: Store
    description: ''
  -
    name: 'Store Media'
    description: ''
  -
    name: 'User Tags'
    description: "\nAPI for assigning tags to social media profiles"
  -
    name: 'User Voucher Codes'
    description: ''
  -
    name: Users
    description: ''
