openapi: 3.0.3
info:
  title: metapic-api
  description: ''
  version: 1.0.0
servers:
  -
    url: 'https://api.metapic.com'
paths:
  '/agency/dashboard/{clientId}':
    get:
      summary: 'Get agency earnings'
      operationId: getAgencyEarnings
      description: "Returns agency earnings grouped by date. if from and to query parameters have been provided it will\nreturn the agency earning during this period of time."
      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'
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  dates:
                    -
                      date: '2022-04-10'
                      user_earnings: 2349774
                      agency_earnings: 0
                      agency_earnings_avg: 0.0
                    -
                      date: '2022-04-11'
                      user_earnings: '1713475'
                      agency_earnings: '0'
                      agency_earnings_avg: 0.0
                    -
                      date: '2022-04-12'
                      user_earnings: '2397901'
                      agency_earnings: '0'
                      agency_earnings_avg: 0.0
                  total_agency_earnings: 2655
                  total_agency_earnings_formatted: '26.55 €'
                  total_user_earnings: 78542586
                  total_user_earnings_formatted: '785 425.86 €'
                  active_users: 953
                  agency_avg_earnings: 0.0037
                  nr_of_posts: 3267
                properties:
                  dates:
                    type: array
                    example:
                      -
                        date: '2022-04-10'
                        user_earnings: 2349774
                        agency_earnings: 0
                        agency_earnings_avg: 0
                      -
                        date: '2022-04-11'
                        user_earnings: '1713475'
                        agency_earnings: '0'
                        agency_earnings_avg: 0
                      -
                        date: '2022-04-12'
                        user_earnings: '2397901'
                        agency_earnings: '0'
                        agency_earnings_avg: 0
                    items:
                      type: object
                      properties:
                        date:
                          type: string
                          example: '2022-04-10'
                        user_earnings:
                          type: integer
                          example: 2349774
                        agency_earnings:
                          type: integer
                          example: 0
                        agency_earnings_avg:
                          type: number
                          example: 0.0
                  total_agency_earnings:
                    type: integer
                    example: 2655
                  total_agency_earnings_formatted:
                    type: string
                    example: '26.55 €'
                  total_user_earnings:
                    type: integer
                    example: 78542586
                  total_user_earnings_formatted:
                    type: string
                    example: '785 425.86 €'
                  active_users:
                    type: integer
                    example: 953
                  agency_avg_earnings:
                    type: number
                    example: 0.0037
                  nr_of_posts:
                    type: integer
                    example: 3267
      tags:
        - 'Agency Earnings'
  /agencies/login:
    post:
      summary: 'Login as an agency'
      operationId: loginAsAnAgency
      description: "Return the current logged in user info or unauthorized error\nif the user login info is incorrect or if the user doesn't have permission"
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  id: '{user_id}'
                  username: ''
                  email: example@metapic.com
                  phone: null
                  created_at: '2022-08-02 15:23:53'
                  updated_at: '2022-08-15 13:17:56'
                  admin: 1
                  last_active: '2022-08-15T11:17:56.359046Z'
                  first_name: ''
                  surname: ''
                  vat_no: null
                  country: ''
                  city: ''
                  address: ''
                  postcode: ''
                  tier_pricing_type: ''
                  config: ''
                  sign_user_agreement: '2022-08-02 15:23:55'
                  revenue_tier_id: 107
                  recruitment_utm: null
                  access_token: '{ access_token }'
                  is_suspended: false
                  is_verified: true
                  revenue_tier:
                    id: 107
                    created_at: '2018-12-12 14:21:45'
                    updated_at: '2021-12-01 12:05:56'
                    client_id: 79
                    revenue_share: '0.00'
                    instagram_revenue_share: '0.00'
                    name: 'Not Approved'
                  client:
                    id: 79
                    client_id: '949469247648506'
                    payment_organization_id: null
                    name: 'Metapic GB'
                    created_at: '2018-12-12 14:21:45'
                    updated_at: '2021-08-03 12:48:21'
                    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: uk-welcome-to-metapic
                      registered: we-ve-received-your-application
                    feed: live_gb
                    locale: GB
                    revenue_model: blog_percentage
                    revenue_share: '0.00'
                    store_group_id: 17
                    default_revenue_tier: 107
                    default_verified_users: 0
                    storegroup:
                      id: 17
                      name: 'Standard GB'
                      shopello: 0
                      key: gb
                      locale: GB
                      lang: en
                      currency: GBP
                      es: 0
                      payment_limit: 5000
                      paid_to_account: 550-5185
                      our_reference: 'Tobias Sjödin'
                      currency_obj:
                        code: GBP
                        name: 'Pound sterling'
                        symbol: £
                        subunit: p
                        is_before: 1
                        ratio_to_eur: 1.16
                properties:
                  id:
                    type: string
                    example: '{user_id}'
                  username:
                    type: string
                    example: ''
                  email:
                    type: string
                    example: example@metapic.com
                  phone:
                    type: string
                    example: null
                  created_at:
                    type: string
                    example: '2022-08-02 15:23:53'
                  updated_at:
                    type: string
                    example: '2022-08-15 13:17:56'
                  admin:
                    type: integer
                    example: 1
                  last_active:
                    type: string
                    example: '2022-08-15T11:17:56.359046Z'
                  first_name:
                    type: string
                    example: ''
                  surname:
                    type: string
                    example: ''
                  vat_no:
                    type: string
                    example: null
                  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: '2022-08-02 15:23:55'
                  revenue_tier_id:
                    type: integer
                    example: 107
                  recruitment_utm:
                    type: string
                    example: null
                  access_token:
                    type: string
                    example: '{ access_token }'
                  is_suspended:
                    type: boolean
                    example: false
                  is_verified:
                    type: boolean
                    example: true
                  revenue_tier:
                    type: object
                    properties:
                      id:
                        type: integer
                        example: 107
                      created_at:
                        type: string
                        example: '2018-12-12 14:21:45'
                      updated_at:
                        type: string
                        example: '2021-12-01 12:05:56'
                      client_id:
                        type: integer
                        example: 79
                      revenue_share:
                        type: string
                        example: '0.00'
                      instagram_revenue_share:
                        type: string
                        example: '0.00'
                      name:
                        type: string
                        example: 'Not Approved'
                  client:
                    type: object
                    properties:
                      id:
                        type: integer
                        example: 79
                      client_id:
                        type: string
                        example: '949469247648506'
                      payment_organization_id:
                        type: string
                        example: null
                      name:
                        type: string
                        example: 'Metapic GB'
                      created_at:
                        type: string
                        example: '2018-12-12 14:21:45'
                      updated_at:
                        type: string
                        example: '2021-08-03 12:48:21'
                      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: uk-welcome-to-metapic
                          registered:
                            type: string
                            example: we-ve-received-your-application
                      feed:
                        type: string
                        example: live_gb
                      locale:
                        type: string
                        example: GB
                      revenue_model:
                        type: string
                        example: blog_percentage
                      revenue_share:
                        type: string
                        example: '0.00'
                      store_group_id:
                        type: integer
                        example: 17
                      default_revenue_tier:
                        type: integer
                        example: 107
                      default_verified_users:
                        type: integer
                        example: 0
                      storegroup:
                        type: object
                        properties:
                          id:
                            type: integer
                            example: 17
                          name:
                            type: string
                            example: 'Standard GB'
                          shopello:
                            type: integer
                            example: 0
                          key:
                            type: string
                            example: gb
                          locale:
                            type: string
                            example: GB
                          lang:
                            type: string
                            example: en
                          currency:
                            type: string
                            example: GBP
                          es:
                            type: integer
                            example: 0
                          payment_limit:
                            type: integer
                            example: 5000
                          paid_to_account:
                            type: string
                            example: 550-5185
                          our_reference:
                            type: string
                            example: 'Tobias Sjödin'
                          currency_obj:
                            type: object
                            properties:
                              code:
                                type: string
                                example: GBP
                              name:
                                type: string
                                example: 'Pound sterling'
                              symbol:
                                type: string
                                example: £
                              subunit:
                                type: string
                                example: p
                              is_before:
                                type: integer
                                example: 1
                              ratio_to_eur:
                                type: number
                                example: 1.16
      tags:
        - 'Agency login'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                email:
                  type: string
                  description: required.
                  example: example@gmail.com
                password:
                  type: string
                  description: required.
                  example: '129^{^'
              required:
                - email
                - password
      security: []
  '/agency/{clientId}/users/{userId}/create-link':
    post:
      summary: 'Create Deep Links'
      operationId: createDeepLinks
      description: 'Create deeplinks from an array of links'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                example:
                  -
                    before: 'https://na-kd.com'
                    status: success
                    store: NA-KD
                    storeId: '{storeId}'
                    type: tradedoubler_SE
                    after: 'https://c.mtpc.se/tags/link/2082974'
                    currency: SEK
                    tag_id: '{tagId}'
                    user_revenue_cpc: 250
                    user_instagram_cpc: 100
                    user_revenue_cpa: 0
                    user_instagram_cpa: 0
                    user_revenue_cpc_formated: '2.50 kr'
                    user_instagram_cpc_formated: '1.00 kr'
                    traffic_sources_costs:
                      -
                        id: 301
                        store_id: '{storeId}'
                        source: 0
                        cpc: 250
                        invoice_cpc: 250
                        cpa: 0
                        invoice_cpa: null
                        created_at: '2023-05-03 12:01:08'
                        updated_at: '2023-05-03 12:01:08'
                        user_revenue: 1
                        client_revenue: null
                        cpc_formatted: '2.50 kr'
                        title: General
                      -
                        id: 302
                        store_id: '{storeId}'
                        source: 1
                        cpc: 100
                        invoice_cpc: 100
                        cpa: null
                        invoice_cpa: null
                        created_at: '2023-05-03 12:01:09'
                        updated_at: '2023-05-03 12:01:09'
                        user_revenue: 1
                        client_revenue: null
                        cpc_formatted: '1.00 kr'
                        title: Instagram
                  - ...
      tags:
        - 'Deep linking'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                links:
                  type: string
                  description: 'Json array of links.'
                  example: '["https://ellos.com"]'
                dry:
                  type: boolean
                  description: 'When dry is set - link will not be created.'
                  example: 1
              required:
                - links
  '/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: ypzotykbeugvs
                campaign_text:
                  type: string
                  description: 'Must not be greater than 1056 characters.'
                  example: lbtxgiov
                has_product_seeding:
                  type: boolean
                  description: ''
                  example: true
                todo:
                  type: array
                  description: ''
                  example:
                    - suscipit
                  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: 19
                valid_from:
                  type: string
                  description: 'Must be a valid date.'
                  example: '2024-07-02T10:18:48'
                valid_until:
                  type: string
                  description: 'Must be a valid date. Must be a date after <code>from</code>.'
                  example: '2063-06-25'
                max_clicks:
                  type: integer
                  description: 'Must not be greater than 1000000.'
                  example: 19
                per_user_limit:
                  type: boolean
                  description: ''
                  example: false
                max_money:
                  type: integer
                  description: 'Must not be greater than 1000000.'
                  example: 12
                type:
                  type: string
                  description: ''
                  example: suggestion
                  enum:
                    - standard
                    - user_accept
                    - store_accept
                    - suggestion
                traffic_sources_costs:
                  type: array
                  description: ''
                  example:
                    - []
                  items:
                    type: object
                    properties:
                      source:
                        type: integer
                        description: ''
                        example: 3
                      cpc:
                        type: integer
                        description: 'Must not be greater than 1000.'
                        example: 19
                      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:
                        - 16
                      items:
                        type: integer
                    user_tag_ids:
                      type: array
                      description: ''
                      example:
                        - 17
                      items:
                        type: integer
                    store_group_ids:
                      type: array
                      description: ''
                      example:
                        - 5
                      items:
                        type: integer
                    emails:
                      type: array
                      description: 'The value format is invalid.'
                      example:
                        - demetris.altenwerth@example.net
                      items:
                        type: string
                    social_media_identifiers:
                      type: array
                      description: 'Must not be greater than 30 characters.'
                      example:
                        - ctirrtvuavo
                      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: joebkpixskdchjpvvntvvh
                campaign_text:
                  type: string
                  description: 'Must not be greater than 1056 characters.'
                  example: yg
                has_product_seeding:
                  type: boolean
                  description: ''
                  example: false
                todo:
                  type: array
                  description: ''
                  example:
                    - esse
                  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: 25
                valid_from:
                  type: string
                  description: 'Must be a valid date.'
                  example: '2024-07-02T10:18:48'
                valid_until:
                  type: string
                  description: 'Must be a valid date. Must be a date after <code>from</code>.'
                  example: '2036-03-24'
                max_clicks:
                  type: integer
                  description: 'Must not be greater than 1000000.'
                  example: 2
                per_user_limit:
                  type: boolean
                  description: ''
                  example: false
                max_money:
                  type: integer
                  description: 'Must not be greater than 1000000.'
                  example: 1
                type:
                  type: string
                  description: ''
                  example: suggestion
                  enum:
                    - standard
                    - user_accept
                    - store_accept
                    - suggestion
                traffic_sources_costs:
                  type: array
                  description: ''
                  example:
                    - []
                  items:
                    type: object
                    properties:
                      source:
                        type: integer
                        description: ''
                        example: 20
                      cpc:
                        type: integer
                        description: 'Must not be greater than 1000.'
                        example: 9
                      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:
                        - 13
                      items:
                        type: integer
                    user_tag_ids:
                      type: array
                      description: ''
                      example:
                        - 12
                      items:
                        type: integer
                    store_group_ids:
                      type: array
                      description: ''
                      example:
                        - 11
                      items:
                        type: integer
                    emails:
                      type: array
                      description: 'The value format is invalid.'
                      example:
                        - zieme.narciso@example.com
                      items:
                        type: string
                    social_media_identifiers:
                      type: array
                      description: 'Must not be greater than 30 characters.'
                      example:
                        - nnv
                      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:
                    - 13
                  items:
                    type: integer
                user_tag_ids:
                  type: array
                  description: ''
                  example:
                    - 6
                  items:
                    type: integer
                store_group_ids:
                  type: array
                  description: ''
                  example:
                    - 5
                  items:
                    type: integer
                emails:
                  type: array
                  description: 'The value format is invalid.'
                  example:
                    - carol53@example.net
                  items:
                    type: string
                social_media_identifiers:
                  type: array
                  description: 'Must not be greater than 30 characters.'
                  example:
                    - a
                  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: tufqaniujwqkpfa
          required: false
          schema:
            type: string
            description: 'Must not be greater than 255 characters.'
            example: tufqaniujwqkpfa
        -
          in: query
          name: store_group_id
          description: ''
          example: 2
          required: false
          schema:
            type: integer
            description: ''
            example: 2
        -
          in: query
          name: size
          description: 'Must not be greater than 100.'
          example: 3
          required: false
          schema:
            type: integer
            description: 'Must not be greater than 100.'
            example: 3
        -
          in: query
          name: sort_by
          description: ''
          example: at
          required: false
          schema:
            type: string
            description: ''
            example: at
      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: g
          required: false
          schema:
            type: string
            description: 'Must not be greater than 64 characters.'
            example: g
        -
          in: query
          name: client_id
          description: ''
          example: 13
          required: false
          schema:
            type: integer
            description: ''
            example: 13
        -
          in: query
          name: store_group_id
          description: ''
          example: 16
          required: false
          schema:
            type: integer
            description: ''
            example: 16
        -
          in: query
          name: size
          description: 'Must not be greater than 100.'
          example: 18
          required: false
          schema:
            type: integer
            description: 'Must not be greater than 100.'
            example: 18
        -
          in: query
          name: sort_by
          description: ''
          example: velit
          required: false
          schema:
            type: string
            description: ''
            example: velit
      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: racdnhizf
          required: false
          schema:
            type: string
            description: 'Must not be greater than 255 characters.'
            example: racdnhizf
        -
          in: query
          name: store_group_id
          description: ''
          example: 16
          required: false
          schema:
            type: integer
            description: ''
            example: 16
        -
          in: query
          name: size
          description: 'Must not be greater than 100.'
          example: 16
          required: false
          schema:
            type: integer
            description: 'Must not be greater than 100.'
            example: 16
        -
          in: query
          name: sort_by
          description: ''
          example: voluptas
          required: false
          schema:
            type: string
            description: ''
            example: voluptas
      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: assumenda
                domains:
                  type: array
                  description: "Store domains.\n\nMust match the regex /^(https?:\\/\\/)?([\\dA-Za-z\\.-]+)\\.([A-Za-z\\.]{2,6})([\\/\\w \\.-]*)*\\/?$/."
                  example:
                    - 'https://qZn.aa/'
                  items:
                    type: string
                categories:
                  type: array
                  description: 'Store categories IDs.'
                  example:
                    - 1
                  items:
                    type: string
                logo_url:
                  type: string
                  description: 'the logo url'
                  example: 'https://www.fadel.biz/quisquam-qui-omnis-porro-hic-in-accusantium-labore-enim'
                country:
                  type: string
                  description: 'Store locale.'
                  example: SE
                currency:
                  type: string
                  description: 'Store ISO currency code.'
                  example: EUR
                language:
                  type: string
                  description: ''
                  example: veritatis
                billing:
                  type: object
                  description: ''
                  example: []
                  properties:
                    company_name:
                      type: string
                      description: ''
                      example: esse
                    street:
                      type: string
                      description: ''
                      example: ut
                    postal_code:
                      type: string
                      description: ''
                      example: velit
                    city:
                      type: string
                      description: ''
                      example: est
                    vat_number:
                      type: string
                      description: ''
                      example: asperiores
              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: gqaobopxqoggp
          required: false
          schema:
            type: string
            description: 'Must not be greater than 255 characters.'
            example: gqaobopxqoggp
        -
          in: query
          name: store_id
          description: ''
          example: 18
          required: false
          schema:
            type: integer
            description: ''
            example: 18
        -
          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: 21
          required: false
          schema:
            type: integer
            description: 'Must not be greater than 100.'
            example: 21
        -
          in: query
          name: sort_by
          description: ''
          example: et
          required: false
          schema:
            type: string
            description: ''
            example: et
      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: []
  '/agency/user/permissions/{clientId}':
    get:
      summary: 'Get client user permission config the agency user.'
      operationId: getClientUserPermissionConfigTheAgencyUser
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Endpoints
      security: []
  '/agency/{clientId}/users/{userId}/stats/tags':
    get:
      summary: "Get the invited user's email."
      operationId: getTheInvitedUsersEmail
      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: agency
          required: true
          schema:
            type: string
            description: ''
            example: agency
            enum:
              - advertiser
              - admin
              - agency
              - creator
        -
          in: query
          name: store_id
          description: 'This field is required when <code>app</code> is <code>advertiser</code>.'
          example: 5
          required: false
          schema:
            type: integer
            description: 'This field is required when <code>app</code> is <code>advertiser</code>.'
            example: 5
      responses: {  }
      tags:
        - Entrypoint
  '/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: tiroy
              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: ojyuftlwpyiypmqvre
              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: vero
          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: vero
        -
          in: query
          name: status
          description: ''
          example: store_denied
          required: false
          schema:
            type: string
            description: ''
            example: store_denied
            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: second_prio
                  enum:
                    - open
                    - applied
                    - denied
                    - accepted
                    - store_denied
                    - done
                    - suggestion
                    - second_prio
                    - have_posted
                    - have_received
                    - product_sent
              required:
                - status
  '/v2/offer-by-token/{offer_token}':
    get:
      summary: 'Get offer'
      operationId: getOffer
      description: 'Return offer details.'
      parameters: []
      responses: {  }
      tags:
        - Offers
  '/v2/offer-by-token/{offer_token}/users/{userId}':
    get:
      summary: 'Checks if user has been added to the offer.'
      operationId: checksIfUserHasBeenAddedToTheOffer
      description: ''
      parameters: []
      responses: {  }
      tags:
        - Offers
      security: []
  '/v2/offer-by-token/{offer_token}/users/{user_id}/join':
    post:
      summary: 'Mark user as having joined the campaign'
      operationId: markUserAsHavingJoinedTheCampaign
      description: 'This can only be performed by the user themselves.'
      parameters: []
      responses: {  }
      tags:
        - Offers
  '/agency/{clientId}/users/{userId}/performance':
    get:
      summary: Performance
      operationId: performance
      description: 'Summarized Earnings, OneTimePayments and Clicks'
      parameters:
        -
          in: query
          name: from
          description: "date.\n\nMust be a valid date."
          example: '2019-01-01'
          required: false
          schema:
            type: string
            description: "date.\n\nMust be a valid date."
            example: '2019-01-01'
        -
          in: query
          name: to
          description: "date.\n\nMust be a valid date."
          example: '2019-02-02'
          required: false
          schema:
            type: string
            description: "date.\n\nMust be a valid date."
            example: '2019-02-02'
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  clicks: 6202
                  earned: 570082
                  one_time_payments: '170200'
                  pending: 0
                  tags: 20
                  images: 0
                properties:
                  clicks:
                    type: integer
                    example: 6202
                  earned:
                    type: integer
                    example: 570082
                  one_time_payments:
                    type: string
                    example: '170200'
                  pending:
                    type: integer
                    example: 0
                  tags:
                    type: integer
                    example: 20
                  images:
                    type: integer
                    example: 0
      tags:
        - Statistic
  '/agency/{clientId}/users/{userId}/instagram-stats':
    get:
      summary: 'User with insta stats.'
      operationId: userWithInstaStats
      description: 'Returns json response'
      parameters: []
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  id: '316306590'
                  username: stonetag
                  email: AVSTÄNGDpetra_stentagg@hotmail.com
                  phone: null
                  created_at: '2014-06-11 18:12:51'
                  updated_at: '2022-05-26 12:32:45'
                  admin: 0
                  last_active: '2022-05-26 08:20:02'
                  first_name: petra
                  surname: stentagg
                  vat_no: null
                  country: SE
                  city: karlshamn
                  address: 'hallonstigen 10'
                  postcode: '37440'
                  tier_pricing_type: ''
                  config: null
                  sign_user_agreement: '2020-03-25 20:46:47'
                  revenue_tier_id: 4
                  recruitment_utm: null
                  auth0: null
                  payment_blocked: 0
                  is_suspended: true
                  is_verified: false
                  social_media:
                    -
                      id: 131
                      user_id: 1270
                      type: instagram
                      identifier: stonetag
                      is_valid: 1
                      created_at: '2018-10-04 13:59:49'
                      updated_at: '2021-06-02 11:02:01'
                      followers: 1978
                      remote_id: '316306590'
                    -
                      id: 223
                      user_id: 1270
                      type: blog
                      identifier: 'https://nouw.com/stonetag'
                      is_valid: 1
                      created_at: '2018-11-05 10:11:33'
                      updated_at: '2018-11-05 10:11:33'
                      followers: null
                      remote_id: ''
                  user_id: null
                  full_name: 'Petra Stentagg'
                  follower_count: 2581
                  avg_like_count: 22.979166666667
                  avg_comment_count: 2.5
                  avg_stories_per_day: '4.537'
                  profile_pic_s3_url: 'https://metapic-instagram.s3.eu-west-1.amazonaws.com/profilePictures/stonetag.jpg'
                  has_full_data: false
                  performance_score: 0.36
                  branding_score: 0.021
                  work_status: 0
                  engagement_rate: 0.98718197081235
                properties:
                  id:
                    type: string
                    example: '316306590'
                  username:
                    type: string
                    example: stonetag
                  email:
                    type: string
                    example: AVSTÄNGDpetra_stentagg@hotmail.com
                  phone:
                    type: string
                    example: null
                  created_at:
                    type: string
                    example: '2014-06-11 18:12:51'
                  updated_at:
                    type: string
                    example: '2022-05-26 12:32:45'
                  admin:
                    type: integer
                    example: 0
                  last_active:
                    type: string
                    example: '2022-05-26 08:20:02'
                  first_name:
                    type: string
                    example: petra
                  surname:
                    type: string
                    example: stentagg
                  vat_no:
                    type: string
                    example: null
                  country:
                    type: string
                    example: SE
                  city:
                    type: string
                    example: karlshamn
                  address:
                    type: string
                    example: 'hallonstigen 10'
                  postcode:
                    type: string
                    example: '37440'
                  tier_pricing_type:
                    type: string
                    example: ''
                  config:
                    type: string
                    example: null
                  sign_user_agreement:
                    type: string
                    example: '2020-03-25 20:46:47'
                  revenue_tier_id:
                    type: integer
                    example: 4
                  recruitment_utm:
                    type: string
                    example: null
                  auth0:
                    type: string
                    example: null
                  payment_blocked:
                    type: integer
                    example: 0
                  is_suspended:
                    type: boolean
                    example: true
                  is_verified:
                    type: boolean
                    example: false
                  social_media:
                    type: array
                    example:
                      -
                        id: 131
                        user_id: 1270
                        type: instagram
                        identifier: stonetag
                        is_valid: 1
                        created_at: '2018-10-04 13:59:49'
                        updated_at: '2021-06-02 11:02:01'
                        followers: 1978
                        remote_id: '316306590'
                      -
                        id: 223
                        user_id: 1270
                        type: blog
                        identifier: 'https://nouw.com/stonetag'
                        is_valid: 1
                        created_at: '2018-11-05 10:11:33'
                        updated_at: '2018-11-05 10:11:33'
                        followers: null
                        remote_id: ''
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                          example: 131
                        user_id:
                          type: integer
                          example: 1270
                        type:
                          type: string
                          example: instagram
                        identifier:
                          type: string
                          example: stonetag
                        is_valid:
                          type: integer
                          example: 1
                        created_at:
                          type: string
                          example: '2018-10-04 13:59:49'
                        updated_at:
                          type: string
                          example: '2021-06-02 11:02:01'
                        followers:
                          type: integer
                          example: 1978
                        remote_id:
                          type: string
                          example: '316306590'
                  user_id:
                    type: string
                    example: null
                  full_name:
                    type: string
                    example: 'Petra Stentagg'
                  follower_count:
                    type: integer
                    example: 2581
                  avg_like_count:
                    type: number
                    example: 22.979166666667
                  avg_comment_count:
                    type: number
                    example: 2.5
                  avg_stories_per_day:
                    type: string
                    example: '4.537'
                  profile_pic_s3_url:
                    type: string
                    example: 'https://metapic-instagram.s3.eu-west-1.amazonaws.com/profilePictures/stonetag.jpg'
                  has_full_data:
                    type: boolean
                    example: false
                  performance_score:
                    type: number
                    example: 0.36
                  branding_score:
                    type: number
                    example: 0.021
                  work_status:
                    type: integer
                    example: 0
                  engagement_rate:
                    type: number
                    example: 0.98718197081235
      tags:
        - Statistic
    parameters:
      -
        in: path
        name: clientId
        description: 'Optional parameter. The client id required.'
        required: true
        schema:
          type: integer
        examples:
          omitted:
            summary: 'When the value is omitted'
            value: ''
          present:
            summary: 'When the value is present'
            value: 1
      -
        in: path
        name: userId
        description: 'Optional parameter. The client id required.'
        required: true
        schema:
          type: integer
        examples:
          omitted:
            summary: 'When the value is omitted'
            value: ''
          present:
            summary: 'When the value is present'
            value: 17
  '/agency/{clientId}/users/{userId}/link-list':
    get:
      summary: 'User link list.'
      operationId: userLinkList
      description: 'Returns json response'
      parameters:
        -
          in: query
          name: page
          description: int.
          example: nostrum
          required: false
          schema:
            type: integer
            description: int.
            example: nostrum
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  current_page: 1
                  data:
                    2023-Aug:
                      -
                        link_date: '2023-08-09 21:33:11'
                        tag_id: 3541743
                        id: 3541743
                        link: 'https://ion.lyko.com/t/t?a=1117786221&as=1035641997&t=2&tk=1&url=https%3A%2F%2Flyko.com%2Fsv%2Fsmink%2Fansikte%2Fsolpuder%2Fhickap-the-wonder-stick-bronze---contour-golden-truffle-8g?'
                        original_url: 'https://lyko.com/sv/smink/ansikte/solpuder/hickap-the-wonder-stick-bronze---contour-golden-truffle-8g'
                        store_id: 33
                        mtpc_url: 'https://c.mtpc.se/tags/link/3541743'
                        user: null
                        tag_store:
                          id: 33
                          feed_name: Lyko
                          logo_url: 'https://metapic-cdn.s3-eu-west-1.amazonaws.com/toplists/stores/33.png'
                        clicks_and_earnings: null
                      -
                        link_date: '2023-08-09 21:33:07'
                        tag_id: 3541742
                        id: 3541742
                        link: 'https://ion.lyko.com/t/t?a=1117786221&as=1035641997&t=2&tk=1&url=https%3A%2F%2Flyko.com%2Fsv%2Fsmink%2Fansikte%2Fsolpuder%2Fhickap-the-wonder-stick-bronze---contour-golden-truffle-8g?'
                        original_url: 'https://lyko.com/sv/smink/ansikte/solpuder/hickap-the-wonder-stick-bronze---contour-golden-truffle-8g'
                        store_id: 33
                        mtpc_url: 'https://c.mtpc.se/tags/link/3541742'
                        user: null
                        tag_store:
                          id: 33
                          feed_name: Lyko
                          logo_url: 'https://metapic-cdn.s3-eu-west-1.amazonaws.com/toplists/stores/33.png'
                        clicks_and_earnings: null
                      -
                        link_date: '2023-08-08 10:31:42'
                        tag_id: 3541661
                        id: 3541661
                        link: 'http://clk.tradedoubler.com/click?p(307214)a(3043613)url(https%3A%2F%2Fhickap.com%2Fproducts%2Fhickap-borstkollektion)'
                        original_url: 'https://hickap.com/products/hickap-borstkollektion'
                        store_id: 4505
                        mtpc_url: 'https://c.mtpc.se/tags/link/3541661'
                        user: null
                        tag_store:
                          id: 4505
                          feed_name: Hickap
                          logo_url: 'https://metapic-cdn.s3.eu-west-1.amazonaws.com/toplists/stores/4505.png'
                        clicks_and_earnings: null
                    2023-Jul:
                      -
                        link_date: '2023-07-28 16:58:29'
                        tag_id: 3541312
                        id: 3541312
                        link: 'https://ion.lyko.com/t/t?a=1117786221&as=1035641997&t=2&tk=1&url=https%3A%2F%2Flyko.com%2Fsv%2Fparfym?'
                        original_url: 'https://lyko.com/sv/parfym'
                        store_id: 33
                        mtpc_url: 'https://c.mtpc.se/tags/link/3541312'
                        user: null
                        tag_store:
                          id: 33
                          feed_name: Lyko
                          logo_url: 'https://metapic-cdn.s3-eu-west-1.amazonaws.com/toplists/stores/33.png'
                        clicks_and_earnings: null
                      -
                        link_date: '2023-07-13 14:37:36'
                        tag_id: 3528214
                        id: 3528214
                        link: 'https://www.awin1.com/cread.php?awinmid=8841&awinaffid=416307&p=https%3A%2F%2Fwww.jdsports.se%2F'
                        original_url: 'https://www.jdsports.se/'
                        store_id: 25246
                        mtpc_url: 'https://c.mtpc.se/tags/link/3528214'
                        user: null
                        tag_store:
                          id: 25246
                          feed_name: 'JD Sports SE'
                          logo_url: 'https://metapic-cdn.s3.eu-west-1.amazonaws.com/toplists/stores/25246.png'
                        clicks_and_earnings: null
                      -
                        link_date: '2023-07-13 14:37:00'
                        tag_id: 3528210
                        id: 3528210
                        link: 'https://www.awin1.com/cread.php?awinmid=8841&awinaffid=416307&p=https%3A%2F%2Fwww.jdsports.se%2F'
                        original_url: 'https://www.jdsports.se/'
                        store_id: 25246
                        mtpc_url: 'https://c.mtpc.se/tags/link/3528210'
                        user: null
                        tag_store:
                          id: 25246
                          feed_name: 'JD Sports SE'
                          logo_url: 'https://metapic-cdn.s3.eu-west-1.amazonaws.com/toplists/stores/25246.png'
                        clicks_and_earnings: null
                      -
                        link_date: '2023-07-07 12:07:10'
                        tag_id: 3517208
                        id: 3517208
                        link: 'https://ellosse.sjv.io/3P7Qjn?u=https%3A%2F%2Fwww.ellos.com%2F?utm_campaign=affiliates'
                        original_url: 'https://www.ellos.com/'
                        store_id: 2
                        mtpc_url: 'https://c.mtpc.se/tags/link/3517208'
                        user: null
                        tag_store:
                          id: 2
                          feed_name: Ellos
                          logo_url: 'https://metapic-cdn.s3.eu-west-1.amazonaws.com/toplists/stores/2.png'
                        clicks_and_earnings: null
                      -
                        link_date: '2023-07-04 15:57:38'
                        tag_id: 3511134
                        id: 3511134
                        link: 'https://ion.lyko.com/t/t?a=1117786221&as=1035641997&t=2&tk=1&url=https%3A%2F%2Flyko.com%2Fsv%2Fsmink%2Fansikte%2Fsolpuder%2Fhickap-the-wonder-stick-bronze---contour-golden-truffle-8g?'
                        original_url: 'https://lyko.com/sv/smink/ansikte/solpuder/hickap-the-wonder-stick-bronze---contour-golden-truffle-8g'
                        store_id: 33
                        mtpc_url: 'https://c.mtpc.se/tags/link/3511134'
                        user: null
                        tag_store:
                          id: 33
                          feed_name: Lyko
                          logo_url: 'https://metapic-cdn.s3-eu-west-1.amazonaws.com/toplists/stores/33.png'
                        clicks_and_earnings:
                          tag_id: 3511134
                          clicks: '265'
                          instagram_clicks: '67'
                          general_clicks: '198'
                          earned: '13448'
                          cpc_instagram_earned: '3350'
                          cpc_general_earned: '10098'
                          pending: '0'
                          cpa_instagram_earned: '0'
                          cpa_general_earned: '0'
                      -
                        link_date: '2023-07-04 15:57:38'
                        tag_id: 3511133
                        id: 3511133
                        link: 'https://ion.lyko.com/t/t?a=1117786221&as=1035641997&t=2&tk=1&url=https%3A%2F%2Flyko.com%2Fsv%2Fsmink%2Fansikte%2Fsolpuder%2Fhickap-the-wonder-stick-bronze---contour-golden-truffle-8g?'
                        original_url: 'https://lyko.com/sv/smink/ansikte/solpuder/hickap-the-wonder-stick-bronze---contour-golden-truffle-8g'
                        store_id: 33
                        mtpc_url: 'https://c.mtpc.se/tags/link/3511133'
                        user: null
                        tag_store:
                          id: 33
                          feed_name: Lyko
                          logo_url: 'https://metapic-cdn.s3-eu-west-1.amazonaws.com/toplists/stores/33.png'
                        clicks_and_earnings: null
                      -
                        link_date: '2023-07-04 15:47:45'
                        tag_id: 3511093
                        id: 3511093
                        link: 'http://clk.tradedoubler.com/click?p(293895)a(3043613)url(https%3A%2F%2Fwww.cocopanda.se%2Fproducts%2Foutlet)'
                        original_url: 'https://www.cocopanda.se/products/outlet'
                        store_id: 5927
                        mtpc_url: 'https://c.mtpc.se/tags/link/3511093'
                        user: null
                        tag_store:
                          id: 5927
                          feed_name: Cocopanda
                          logo_url: 'https://metapic-cdn.s3.eu-west-1.amazonaws.com/toplists/stores/5927.png'
                        clicks_and_earnings:
                          tag_id: 3511093
                          clicks: '213'
                          instagram_clicks: '57'
                          general_clicks: '156'
                          earned: '13462'
                          cpc_instagram_earned: '4525'
                          cpc_general_earned: '8937'
                          pending: '0'
                          cpa_instagram_earned: '0'
                          cpa_general_earned: '0'
                      -
                        link_date: '2023-07-04 15:47:45'
                        tag_id: 3511092
                        id: 3511092
                        link: 'http://clk.tradedoubler.com/click?p(293895)a(3043613)url(https%3A%2F%2Fwww.cocopanda.se%2Fproducts%2Foutlet)'
                        original_url: 'https://www.cocopanda.se/products/outlet'
                        store_id: 5927
                        mtpc_url: 'https://c.mtpc.se/tags/link/3511092'
                        user: null
                        tag_store:
                          id: 5927
                          feed_name: Cocopanda
                          logo_url: 'https://metapic-cdn.s3.eu-west-1.amazonaws.com/toplists/stores/5927.png'
                        clicks_and_earnings: null
                      -
                        link_date: '2023-07-04 14:05:46'
                        tag_id: 3510880
                        id: 3510880
                        link: 'https://ion.lyko.com/t/t?a=1117786221&as=1035641997&t=2&tk=1&url=https%3A%2F%2Flyko.com%2Fsv%2Fkerastase?'
                        original_url: 'https://lyko.com/sv/kerastase'
                        store_id: 33
                        mtpc_url: 'https://c.mtpc.se/tags/link/3510880'
                        user: null
                        tag_store:
                          id: 33
                          feed_name: Lyko
                          logo_url: 'https://metapic-cdn.s3-eu-west-1.amazonaws.com/toplists/stores/33.png'
                        clicks_and_earnings:
                          tag_id: 3510880
                          clicks: '250'
                          instagram_clicks: '62'
                          general_clicks: '188'
                          earned: '12688'
                          cpc_instagram_earned: '3100'
                          cpc_general_earned: '9588'
                          pending: '0'
                          cpa_instagram_earned: '0'
                          cpa_general_earned: '0'
                      -
                        link_date: '2023-07-04 14:05:46'
                        tag_id: 3510879
                        id: 3510879
                        link: 'https://ion.lyko.com/t/t?a=1117786221&as=1035641997&t=2&tk=1&url=https%3A%2F%2Flyko.com%2Fsv%2Fkerastase?'
                        original_url: 'https://lyko.com/sv/kerastase'
                        store_id: 33
                        mtpc_url: 'https://c.mtpc.se/tags/link/3510879'
                        user: null
                        tag_store:
                          id: 33
                          feed_name: Lyko
                          logo_url: 'https://metapic-cdn.s3-eu-west-1.amazonaws.com/toplists/stores/33.png'
                        clicks_and_earnings: null
                      -
                        link_date: '2023-07-04 10:15:20'
                        tag_id: 3510439
                        id: 3510439
                        link: 'https://www.awin1.com/cread.php?awinmid=33723&awinaffid=416307&p=https%3A%2F%2Fwww.babyshop.com%2Fus%2Fen%2Fa%2Fend-of-season-sale%2F'
                        original_url: 'https://www.babyshop.com/us/en/a/end-of-season-sale/'
                        store_id: 25940
                        mtpc_url: 'https://c.mtpc.se/tags/link/3510439'
                        user: null
                        tag_store:
                          id: 25940
                          feed_name: Babyshop
                          logo_url: 'https://metapic-cdn.s3.eu-west-1.amazonaws.com/toplists/stores/25940.png'
                        clicks_and_earnings:
                          tag_id: 3510439
                          clicks: '2'
                          instagram_clicks: '1'
                          general_clicks: '1'
                          earned: '150'
                          cpc_instagram_earned: '75'
                          cpc_general_earned: '75'
                          pending: '0'
                          cpa_instagram_earned: '0'
                          cpa_general_earned: '0'
                      -
                        link_date: '2023-07-04 10:15:20'
                        tag_id: 3510438
                        id: 3510438
                        link: 'https://www.awin1.com/cread.php?awinmid=33723&awinaffid=416307&p=https%3A%2F%2Fwww.babyshop.com%2Fus%2Fen%2Fa%2Fend-of-season-sale%2F'
                        original_url: 'https://www.babyshop.com/us/en/a/end-of-season-sale/'
                        store_id: 25940
                        mtpc_url: 'https://c.mtpc.se/tags/link/3510438'
                        user: null
                        tag_store:
                          id: 25940
                          feed_name: Babyshop
                          logo_url: 'https://metapic-cdn.s3.eu-west-1.amazonaws.com/toplists/stores/25940.png'
                        clicks_and_earnings: null
                  first_page_url: 'http://metapic-api.my/agency/2/users/2/link-list?page=1'
                  from: 1
                  last_page: 101
                  last_page_url: 'http://metapic-api.my/agency/2/users/2/link-list?page=101'
                  links:
                    -
                      url: null
                      label: '&laquo; Previous'
                      active: false
                    -
                      url: 'http://metapic-api.my/agency/2/users/2/link-list?page=1'
                      label: '1'
                      active: true
                    -
                      url: 'http://metapic-api.my/agency/2/users/2/link-list?page=2'
                      label: '2'
                      active: false
                    -
                      url: 'http://metapic-api.my/agency/2/users/2/link-list?page=3'
                      label: '3'
                      active: false
                    -
                      url: 'http://metapic-api.my/agency/2/users/2/link-list?page=4'
                      label: '4'
                      active: false
                    -
                      url: 'http://metapic-api.my/agency/2/users/2/link-list?page=5'
                      label: '5'
                      active: false
                    -
                      url: 'http://metapic-api.my/agency/2/users/2/link-list?page=6'
                      label: '6'
                      active: false
                    -
                      url: 'http://metapic-api.my/agency/2/users/2/link-list?page=7'
                      label: '7'
                      active: false
                    -
                      url: 'http://metapic-api.my/agency/2/users/2/link-list?page=8'
                      label: '8'
                      active: false
                    -
                      url: 'http://metapic-api.my/agency/2/users/2/link-list?page=9'
                      label: '9'
                      active: false
                    -
                      url: 'http://metapic-api.my/agency/2/users/2/link-list?page=10'
                      label: '10'
                      active: false
                    -
                      url: null
                      label: ...
                      active: false
                    -
                      url: 'http://metapic-api.my/agency/2/users/2/link-list?page=100'
                      label: '100'
                      active: false
                    -
                      url: 'http://metapic-api.my/agency/2/users/2/link-list?page=101'
                      label: '101'
                      active: false
                    -
                      url: 'http://metapic-api.my/agency/2/users/2/link-list?page=2'
                      label: 'Next &raquo;'
                      active: false
                  next_page_url: 'http://metapic-api.my/agency/2/users/2/link-list?page=2'
                  path: 'http://metapic-api.my/agency/2/users/2/link-list'
                  per_page: 15
                  prev_page_url: null
                  to: 2
                  total: 1514
                properties:
                  current_page:
                    type: integer
                    example: 1
                  data:
                    type: object
                    properties:
                      2023-Aug:
                        type: array
                        example:
                          -
                            link_date: '2023-08-09 21:33:11'
                            tag_id: 3541743
                            id: 3541743
                            link: 'https://ion.lyko.com/t/t?a=1117786221&as=1035641997&t=2&tk=1&url=https%3A%2F%2Flyko.com%2Fsv%2Fsmink%2Fansikte%2Fsolpuder%2Fhickap-the-wonder-stick-bronze---contour-golden-truffle-8g?'
                            original_url: 'https://lyko.com/sv/smink/ansikte/solpuder/hickap-the-wonder-stick-bronze---contour-golden-truffle-8g'
                            store_id: 33
                            mtpc_url: 'https://c.mtpc.se/tags/link/3541743'
                            user: null
                            tag_store:
                              id: 33
                              feed_name: Lyko
                              logo_url: 'https://metapic-cdn.s3-eu-west-1.amazonaws.com/toplists/stores/33.png'
                            clicks_and_earnings: null
                          -
                            link_date: '2023-08-09 21:33:07'
                            tag_id: 3541742
                            id: 3541742
                            link: 'https://ion.lyko.com/t/t?a=1117786221&as=1035641997&t=2&tk=1&url=https%3A%2F%2Flyko.com%2Fsv%2Fsmink%2Fansikte%2Fsolpuder%2Fhickap-the-wonder-stick-bronze---contour-golden-truffle-8g?'
                            original_url: 'https://lyko.com/sv/smink/ansikte/solpuder/hickap-the-wonder-stick-bronze---contour-golden-truffle-8g'
                            store_id: 33
                            mtpc_url: 'https://c.mtpc.se/tags/link/3541742'
                            user: null
                            tag_store:
                              id: 33
                              feed_name: Lyko
                              logo_url: 'https://metapic-cdn.s3-eu-west-1.amazonaws.com/toplists/stores/33.png'
                            clicks_and_earnings: null
                          -
                            link_date: '2023-08-08 10:31:42'
                            tag_id: 3541661
                            id: 3541661
                            link: 'http://clk.tradedoubler.com/click?p(307214)a(3043613)url(https%3A%2F%2Fhickap.com%2Fproducts%2Fhickap-borstkollektion)'
                            original_url: 'https://hickap.com/products/hickap-borstkollektion'
                            store_id: 4505
                            mtpc_url: 'https://c.mtpc.se/tags/link/3541661'
                            user: null
                            tag_store:
                              id: 4505
                              feed_name: Hickap
                              logo_url: 'https://metapic-cdn.s3.eu-west-1.amazonaws.com/toplists/stores/4505.png'
                            clicks_and_earnings: null
                        items:
                          type: object
                          properties:
                            link_date:
                              type: string
                              example: '2023-08-09 21:33:11'
                            tag_id:
                              type: integer
                              example: 3541743
                            id:
                              type: integer
                              example: 3541743
                            link:
                              type: string
                              example: 'https://ion.lyko.com/t/t?a=1117786221&as=1035641997&t=2&tk=1&url=https%3A%2F%2Flyko.com%2Fsv%2Fsmink%2Fansikte%2Fsolpuder%2Fhickap-the-wonder-stick-bronze---contour-golden-truffle-8g?'
                            original_url:
                              type: string
                              example: 'https://lyko.com/sv/smink/ansikte/solpuder/hickap-the-wonder-stick-bronze---contour-golden-truffle-8g'
                            store_id:
                              type: integer
                              example: 33
                            mtpc_url:
                              type: string
                              example: 'https://c.mtpc.se/tags/link/3541743'
                            user:
                              type: string
                              example: null
                            tag_store:
                              type: object
                              properties:
                                id:
                                  type: integer
                                  example: 33
                                feed_name:
                                  type: string
                                  example: Lyko
                                logo_url:
                                  type: string
                                  example: 'https://metapic-cdn.s3-eu-west-1.amazonaws.com/toplists/stores/33.png'
                            clicks_and_earnings:
                              type: string
                              example: null
                      2023-Jul:
                        type: array
                        example:
                          -
                            link_date: '2023-07-28 16:58:29'
                            tag_id: 3541312
                            id: 3541312
                            link: 'https://ion.lyko.com/t/t?a=1117786221&as=1035641997&t=2&tk=1&url=https%3A%2F%2Flyko.com%2Fsv%2Fparfym?'
                            original_url: 'https://lyko.com/sv/parfym'
                            store_id: 33
                            mtpc_url: 'https://c.mtpc.se/tags/link/3541312'
                            user: null
                            tag_store:
                              id: 33
                              feed_name: Lyko
                              logo_url: 'https://metapic-cdn.s3-eu-west-1.amazonaws.com/toplists/stores/33.png'
                            clicks_and_earnings: null
                          -
                            link_date: '2023-07-13 14:37:36'
                            tag_id: 3528214
                            id: 3528214
                            link: 'https://www.awin1.com/cread.php?awinmid=8841&awinaffid=416307&p=https%3A%2F%2Fwww.jdsports.se%2F'
                            original_url: 'https://www.jdsports.se/'
                            store_id: 25246
                            mtpc_url: 'https://c.mtpc.se/tags/link/3528214'
                            user: null
                            tag_store:
                              id: 25246
                              feed_name: 'JD Sports SE'
                              logo_url: 'https://metapic-cdn.s3.eu-west-1.amazonaws.com/toplists/stores/25246.png'
                            clicks_and_earnings: null
                          -
                            link_date: '2023-07-13 14:37:00'
                            tag_id: 3528210
                            id: 3528210
                            link: 'https://www.awin1.com/cread.php?awinmid=8841&awinaffid=416307&p=https%3A%2F%2Fwww.jdsports.se%2F'
                            original_url: 'https://www.jdsports.se/'
                            store_id: 25246
                            mtpc_url: 'https://c.mtpc.se/tags/link/3528210'
                            user: null
                            tag_store:
                              id: 25246
                              feed_name: 'JD Sports SE'
                              logo_url: 'https://metapic-cdn.s3.eu-west-1.amazonaws.com/toplists/stores/25246.png'
                            clicks_and_earnings: null
                          -
                            link_date: '2023-07-07 12:07:10'
                            tag_id: 3517208
                            id: 3517208
                            link: 'https://ellosse.sjv.io/3P7Qjn?u=https%3A%2F%2Fwww.ellos.com%2F?utm_campaign=affiliates'
                            original_url: 'https://www.ellos.com/'
                            store_id: 2
                            mtpc_url: 'https://c.mtpc.se/tags/link/3517208'
                            user: null
                            tag_store:
                              id: 2
                              feed_name: Ellos
                              logo_url: 'https://metapic-cdn.s3.eu-west-1.amazonaws.com/toplists/stores/2.png'
                            clicks_and_earnings: null
                          -
                            link_date: '2023-07-04 15:57:38'
                            tag_id: 3511134
                            id: 3511134
                            link: 'https://ion.lyko.com/t/t?a=1117786221&as=1035641997&t=2&tk=1&url=https%3A%2F%2Flyko.com%2Fsv%2Fsmink%2Fansikte%2Fsolpuder%2Fhickap-the-wonder-stick-bronze---contour-golden-truffle-8g?'
                            original_url: 'https://lyko.com/sv/smink/ansikte/solpuder/hickap-the-wonder-stick-bronze---contour-golden-truffle-8g'
                            store_id: 33
                            mtpc_url: 'https://c.mtpc.se/tags/link/3511134'
                            user: null
                            tag_store:
                              id: 33
                              feed_name: Lyko
                              logo_url: 'https://metapic-cdn.s3-eu-west-1.amazonaws.com/toplists/stores/33.png'
                            clicks_and_earnings:
                              tag_id: 3511134
                              clicks: '265'
                              instagram_clicks: '67'
                              general_clicks: '198'
                              earned: '13448'
                              cpc_instagram_earned: '3350'
                              cpc_general_earned: '10098'
                              pending: '0'
                              cpa_instagram_earned: '0'
                              cpa_general_earned: '0'
                          -
                            link_date: '2023-07-04 15:57:38'
                            tag_id: 3511133
                            id: 3511133
                            link: 'https://ion.lyko.com/t/t?a=1117786221&as=1035641997&t=2&tk=1&url=https%3A%2F%2Flyko.com%2Fsv%2Fsmink%2Fansikte%2Fsolpuder%2Fhickap-the-wonder-stick-bronze---contour-golden-truffle-8g?'
                            original_url: 'https://lyko.com/sv/smink/ansikte/solpuder/hickap-the-wonder-stick-bronze---contour-golden-truffle-8g'
                            store_id: 33
                            mtpc_url: 'https://c.mtpc.se/tags/link/3511133'
                            user: null
                            tag_store:
                              id: 33
                              feed_name: Lyko
                              logo_url: 'https://metapic-cdn.s3-eu-west-1.amazonaws.com/toplists/stores/33.png'
                            clicks_and_earnings: null
                          -
                            link_date: '2023-07-04 15:47:45'
                            tag_id: 3511093
                            id: 3511093
                            link: 'http://clk.tradedoubler.com/click?p(293895)a(3043613)url(https%3A%2F%2Fwww.cocopanda.se%2Fproducts%2Foutlet)'
                            original_url: 'https://www.cocopanda.se/products/outlet'
                            store_id: 5927
                            mtpc_url: 'https://c.mtpc.se/tags/link/3511093'
                            user: null
                            tag_store:
                              id: 5927
                              feed_name: Cocopanda
                              logo_url: 'https://metapic-cdn.s3.eu-west-1.amazonaws.com/toplists/stores/5927.png'
                            clicks_and_earnings:
                              tag_id: 3511093
                              clicks: '213'
                              instagram_clicks: '57'
                              general_clicks: '156'
                              earned: '13462'
                              cpc_instagram_earned: '4525'
                              cpc_general_earned: '8937'
                              pending: '0'
                              cpa_instagram_earned: '0'
                              cpa_general_earned: '0'
                          -
                            link_date: '2023-07-04 15:47:45'
                            tag_id: 3511092
                            id: 3511092
                            link: 'http://clk.tradedoubler.com/click?p(293895)a(3043613)url(https%3A%2F%2Fwww.cocopanda.se%2Fproducts%2Foutlet)'
                            original_url: 'https://www.cocopanda.se/products/outlet'
                            store_id: 5927
                            mtpc_url: 'https://c.mtpc.se/tags/link/3511092'
                            user: null
                            tag_store:
                              id: 5927
                              feed_name: Cocopanda
                              logo_url: 'https://metapic-cdn.s3.eu-west-1.amazonaws.com/toplists/stores/5927.png'
                            clicks_and_earnings: null
                          -
                            link_date: '2023-07-04 14:05:46'
                            tag_id: 3510880
                            id: 3510880
                            link: 'https://ion.lyko.com/t/t?a=1117786221&as=1035641997&t=2&tk=1&url=https%3A%2F%2Flyko.com%2Fsv%2Fkerastase?'
                            original_url: 'https://lyko.com/sv/kerastase'
                            store_id: 33
                            mtpc_url: 'https://c.mtpc.se/tags/link/3510880'
                            user: null
                            tag_store:
                              id: 33
                              feed_name: Lyko
                              logo_url: 'https://metapic-cdn.s3-eu-west-1.amazonaws.com/toplists/stores/33.png'
                            clicks_and_earnings:
                              tag_id: 3510880
                              clicks: '250'
                              instagram_clicks: '62'
                              general_clicks: '188'
                              earned: '12688'
                              cpc_instagram_earned: '3100'
                              cpc_general_earned: '9588'
                              pending: '0'
                              cpa_instagram_earned: '0'
                              cpa_general_earned: '0'
                          -
                            link_date: '2023-07-04 14:05:46'
                            tag_id: 3510879
                            id: 3510879
                            link: 'https://ion.lyko.com/t/t?a=1117786221&as=1035641997&t=2&tk=1&url=https%3A%2F%2Flyko.com%2Fsv%2Fkerastase?'
                            original_url: 'https://lyko.com/sv/kerastase'
                            store_id: 33
                            mtpc_url: 'https://c.mtpc.se/tags/link/3510879'
                            user: null
                            tag_store:
                              id: 33
                              feed_name: Lyko
                              logo_url: 'https://metapic-cdn.s3-eu-west-1.amazonaws.com/toplists/stores/33.png'
                            clicks_and_earnings: null
                          -
                            link_date: '2023-07-04 10:15:20'
                            tag_id: 3510439
                            id: 3510439
                            link: 'https://www.awin1.com/cread.php?awinmid=33723&awinaffid=416307&p=https%3A%2F%2Fwww.babyshop.com%2Fus%2Fen%2Fa%2Fend-of-season-sale%2F'
                            original_url: 'https://www.babyshop.com/us/en/a/end-of-season-sale/'
                            store_id: 25940
                            mtpc_url: 'https://c.mtpc.se/tags/link/3510439'
                            user: null
                            tag_store:
                              id: 25940
                              feed_name: Babyshop
                              logo_url: 'https://metapic-cdn.s3.eu-west-1.amazonaws.com/toplists/stores/25940.png'
                            clicks_and_earnings:
                              tag_id: 3510439
                              clicks: '2'
                              instagram_clicks: '1'
                              general_clicks: '1'
                              earned: '150'
                              cpc_instagram_earned: '75'
                              cpc_general_earned: '75'
                              pending: '0'
                              cpa_instagram_earned: '0'
                              cpa_general_earned: '0'
                          -
                            link_date: '2023-07-04 10:15:20'
                            tag_id: 3510438
                            id: 3510438
                            link: 'https://www.awin1.com/cread.php?awinmid=33723&awinaffid=416307&p=https%3A%2F%2Fwww.babyshop.com%2Fus%2Fen%2Fa%2Fend-of-season-sale%2F'
                            original_url: 'https://www.babyshop.com/us/en/a/end-of-season-sale/'
                            store_id: 25940
                            mtpc_url: 'https://c.mtpc.se/tags/link/3510438'
                            user: null
                            tag_store:
                              id: 25940
                              feed_name: Babyshop
                              logo_url: 'https://metapic-cdn.s3.eu-west-1.amazonaws.com/toplists/stores/25940.png'
                            clicks_and_earnings: null
                        items:
                          type: object
                          properties:
                            link_date:
                              type: string
                              example: '2023-07-28 16:58:29'
                            tag_id:
                              type: integer
                              example: 3541312
                            id:
                              type: integer
                              example: 3541312
                            link:
                              type: string
                              example: 'https://ion.lyko.com/t/t?a=1117786221&as=1035641997&t=2&tk=1&url=https%3A%2F%2Flyko.com%2Fsv%2Fparfym?'
                            original_url:
                              type: string
                              example: 'https://lyko.com/sv/parfym'
                            store_id:
                              type: integer
                              example: 33
                            mtpc_url:
                              type: string
                              example: 'https://c.mtpc.se/tags/link/3541312'
                            user:
                              type: string
                              example: null
                            tag_store:
                              type: object
                              properties:
                                id:
                                  type: integer
                                  example: 33
                                feed_name:
                                  type: string
                                  example: Lyko
                                logo_url:
                                  type: string
                                  example: 'https://metapic-cdn.s3-eu-west-1.amazonaws.com/toplists/stores/33.png'
                            clicks_and_earnings:
                              type: string
                              example: null
                  first_page_url:
                    type: string
                    example: 'http://metapic-api.my/agency/2/users/2/link-list?page=1'
                  from:
                    type: integer
                    example: 1
                  last_page:
                    type: integer
                    example: 101
                  last_page_url:
                    type: string
                    example: 'http://metapic-api.my/agency/2/users/2/link-list?page=101'
                  links:
                    type: array
                    example:
                      -
                        url: null
                        label: '&laquo; Previous'
                        active: false
                      -
                        url: 'http://metapic-api.my/agency/2/users/2/link-list?page=1'
                        label: '1'
                        active: true
                      -
                        url: 'http://metapic-api.my/agency/2/users/2/link-list?page=2'
                        label: '2'
                        active: false
                      -
                        url: 'http://metapic-api.my/agency/2/users/2/link-list?page=3'
                        label: '3'
                        active: false
                      -
                        url: 'http://metapic-api.my/agency/2/users/2/link-list?page=4'
                        label: '4'
                        active: false
                      -
                        url: 'http://metapic-api.my/agency/2/users/2/link-list?page=5'
                        label: '5'
                        active: false
                      -
                        url: 'http://metapic-api.my/agency/2/users/2/link-list?page=6'
                        label: '6'
                        active: false
                      -
                        url: 'http://metapic-api.my/agency/2/users/2/link-list?page=7'
                        label: '7'
                        active: false
                      -
                        url: 'http://metapic-api.my/agency/2/users/2/link-list?page=8'
                        label: '8'
                        active: false
                      -
                        url: 'http://metapic-api.my/agency/2/users/2/link-list?page=9'
                        label: '9'
                        active: false
                      -
                        url: 'http://metapic-api.my/agency/2/users/2/link-list?page=10'
                        label: '10'
                        active: false
                      -
                        url: null
                        label: ...
                        active: false
                      -
                        url: 'http://metapic-api.my/agency/2/users/2/link-list?page=100'
                        label: '100'
                        active: false
                      -
                        url: 'http://metapic-api.my/agency/2/users/2/link-list?page=101'
                        label: '101'
                        active: false
                      -
                        url: 'http://metapic-api.my/agency/2/users/2/link-list?page=2'
                        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: 'http://metapic-api.my/agency/2/users/2/link-list?page=2'
                  path:
                    type: string
                    example: 'http://metapic-api.my/agency/2/users/2/link-list'
                  per_page:
                    type: integer
                    example: 15
                  prev_page_url:
                    type: string
                    example: null
                  to:
                    type: integer
                    example: 2
                  total:
                    type: integer
                    example: 1514
      tags:
        - Statistic
    parameters:
      -
        in: path
        name: clientId
        description: 'Optional parameter. The client id required.'
        required: true
        schema:
          type: integer
        examples:
          omitted:
            summary: 'When the value is omitted'
            value: ''
          present:
            summary: 'When the value is present'
            value: 14
      -
        in: path
        name: userId
        description: 'Optional parameter. The client id required.'
        required: true
        schema:
          type: integer
        examples:
          omitted:
            summary: 'When the value is omitted'
            value: ''
          present:
            summary: 'When the value is present'
            value: 8
  '/agency/{clientId}/users/{userId}/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: voluptas
          required: false
          schema:
            type: string
            description: 'if you only what one type'
            example: voluptas
            enum:
              - all
              - youtube
              - tiktok
              - instagram
        -
          in: query
          name: identifier
          description: 'for the social media account you getting'
          example: 11
          required: false
          schema:
            type: string
            description: 'for the social media account you getting'
            example: 11
        -
          in: query
          name: order_by
          description: 'Sort by clicks or created_at'
          example: consequatur
          required: false
          schema:
            type: string
            description: 'Sort by clicks or created_at'
            example: consequatur
            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: odit
          required: false
          schema:
            type: string
            description: "date get media published after given date (incl)\n\nMust be a valid date."
            example: odit
        -
          in: query
          name: date_to
          description: "date get media published until given date (incl)\n\nMust be a valid date."
          example: sunt
          required: false
          schema:
            type: string
            description: "date get media published until given date (incl)\n\nMust be a valid date."
            example: sunt
        -
          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
  '/agency/influencers/{clientId}':
    get:
      summary: "Get agency's user earnings"
      operationId: getAgencysUserEarnings
      description: "Returns client earnings grouped by username. if from and to query parameters have been provided it will\nreturn the client earning during this period of time, you can also provide the username to search for a\nspecific user."
      parameters:
        -
          in: query
          name: username
          description: 'String search client influencers by username'
          example: quis
          required: false
          schema:
            type: string
            description: 'String search client influencers by username'
            example: quis
        -
          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: sort
          description: 'String sort in ascending or descending order.'
          example: repudiandae
          required: false
          schema:
            type: string
            description: 'String sort in ascending or descending order.'
            example: repudiandae
            enum:
              - asc
              - desc
        -
          in: query
          name: orderBy
          description: 'String order data by a specific column.'
          example: repellendus
          required: false
          schema:
            type: string
            description: 'String order data by a specific column.'
            example: repellendus
            enum:
              - clicks
              - agency_earnings
              - user_earnings
              - date
        -
          in: query
          name: format
          description: 'String export data in a specific format'
          example: quia
          required: false
          schema:
            type: string
            description: 'String export data in a specific format'
            example: quia
            enum:
              - csv
              - xlsx
              - json
        -
          in: query
          name: groupByDate
          description: "group data by date\n\nMust be between 0 and 1."
          example: 1
          required: false
          schema:
            type: integer
            description: "group data by date\n\nMust be between 0 and 1."
            example: 1
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  current_page: 1
                  data:
                    -
                      date: '2019-03-02'
                      user_id: '{userId}'
                      username: '{userName}'
                      client_id: '{clientID}'
                      clicks: 15
                      user_earnings: 1924
                      agency_earnings: 0
                    -
                      date: '2020-04-14'
                      user_id: '{userId}'
                      username: '{userName}'
                      client_id: '{clientID}'
                      clicks: 376
                      user_earnings: 8879
                      agency_earnings: 0
                    -
                      date: '2019-07-12'
                      user_id: '{userId}'
                      username: '{userName}'
                      client_id: '{clientID}'
                      clicks: 0
                      user_earnings: 200
                      agency_earnings: 0
                  first_page_url: 'https://api.metapic.com/agency/influencers?page=1'
                  from: 1
                  last_page: 58
                  last_page_url: 'https://api.metapic.com/agency/influencers?page=58'
                  links:
                    -
                      url: null
                      label: '&laquo; Previous'
                      active: false
                    -
                      url: 'https://api.metapic.com/agency/influencers?page=1'
                      label: '1'
                      active: true
                    -
                      url: 'https://api.metapic.com/agency/influencers?page=2'
                      label: '2'
                      active: false
                    -
                      url: 'https://api.metapic.com/agency/influencers?page=3'
                      label: '3'
                      active: false
                    -
                      url: 'https://api.metapic.com/agency/influencers?page=4'
                      label: '4'
                      active: false
                    -
                      url: 'https://api.metapic.com/agency/influencers?page=5'
                      label: '5'
                      active: false
                    -
                      url: 'https://api.metapic.com/agency/influencers?page=6'
                      label: '6'
                      active: false
                    -
                      url: 'https://api.metapic.com/agency/influencers?page=7'
                      label: '7'
                      active: false
                    -
                      url: 'https://api.metapic.com/agency/influencers?page=8'
                      label: '8'
                      active: false
                    -
                      url: 'https://api.metapic.com/agency/influencers?page=9'
                      label: '9'
                      active: false
                    -
                      url: 'https://api.metapic.com/agency/influencers?page=10'
                      label: '10'
                      active: false
                    -
                      url: null
                      label: ...
                      active: false
                    -
                      url: 'https://api.metapic.com/agency/influencers?page=57'
                      label: '57'
                      active: false
                    -
                      url: 'https://api.metapic.com/agency/influencers?page=58'
                      label: '58'
                      active: false
                    -
                      url: 'https://api.metapic.com/agency/influencers?page=2'
                      label: 'Next &raquo;'
                      active: false
                  next_page_url: 'https://api.metapic.com/agency/influencers?page=2'
                  path: 'https://api.metapic.com/agency/influencers'
                  per_page: 15
                  prev_page_url: null
                  to: 15
                  total: 862
                properties:
                  current_page:
                    type: integer
                    example: 1
                  data:
                    type: array
                    example:
                      -
                        date: '2019-03-02'
                        user_id: '{userId}'
                        username: '{userName}'
                        client_id: '{clientID}'
                        clicks: 15
                        user_earnings: 1924
                        agency_earnings: 0
                      -
                        date: '2020-04-14'
                        user_id: '{userId}'
                        username: '{userName}'
                        client_id: '{clientID}'
                        clicks: 376
                        user_earnings: 8879
                        agency_earnings: 0
                      -
                        date: '2019-07-12'
                        user_id: '{userId}'
                        username: '{userName}'
                        client_id: '{clientID}'
                        clicks: 0
                        user_earnings: 200
                        agency_earnings: 0
                    items:
                      type: object
                      properties:
                        date:
                          type: string
                          example: '2019-03-02'
                        user_id:
                          type: string
                          example: '{userId}'
                        username:
                          type: string
                          example: '{userName}'
                        client_id:
                          type: string
                          example: '{clientID}'
                        clicks:
                          type: integer
                          example: 15
                        user_earnings:
                          type: integer
                          example: 1924
                        agency_earnings:
                          type: integer
                          example: 0
                  first_page_url:
                    type: string
                    example: 'https://api.metapic.com/agency/influencers?page=1'
                  from:
                    type: integer
                    example: 1
                  last_page:
                    type: integer
                    example: 58
                  last_page_url:
                    type: string
                    example: 'https://api.metapic.com/agency/influencers?page=58'
                  links:
                    type: array
                    example:
                      -
                        url: null
                        label: '&laquo; Previous'
                        active: false
                      -
                        url: 'https://api.metapic.com/agency/influencers?page=1'
                        label: '1'
                        active: true
                      -
                        url: 'https://api.metapic.com/agency/influencers?page=2'
                        label: '2'
                        active: false
                      -
                        url: 'https://api.metapic.com/agency/influencers?page=3'
                        label: '3'
                        active: false
                      -
                        url: 'https://api.metapic.com/agency/influencers?page=4'
                        label: '4'
                        active: false
                      -
                        url: 'https://api.metapic.com/agency/influencers?page=5'
                        label: '5'
                        active: false
                      -
                        url: 'https://api.metapic.com/agency/influencers?page=6'
                        label: '6'
                        active: false
                      -
                        url: 'https://api.metapic.com/agency/influencers?page=7'
                        label: '7'
                        active: false
                      -
                        url: 'https://api.metapic.com/agency/influencers?page=8'
                        label: '8'
                        active: false
                      -
                        url: 'https://api.metapic.com/agency/influencers?page=9'
                        label: '9'
                        active: false
                      -
                        url: 'https://api.metapic.com/agency/influencers?page=10'
                        label: '10'
                        active: false
                      -
                        url: null
                        label: ...
                        active: false
                      -
                        url: 'https://api.metapic.com/agency/influencers?page=57'
                        label: '57'
                        active: false
                      -
                        url: 'https://api.metapic.com/agency/influencers?page=58'
                        label: '58'
                        active: false
                      -
                        url: 'https://api.metapic.com/agency/influencers?page=2'
                        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: 'https://api.metapic.com/agency/influencers?page=2'
                  path:
                    type: string
                    example: 'https://api.metapic.com/agency/influencers'
                  per_page:
                    type: integer
                    example: 15
                  prev_page_url:
                    type: string
                    example: null
                  to:
                    type: integer
                    example: 15
                  total:
                    type: integer
                    example: 862
      tags:
        - 'User Earnings'
tags:
  -
    name: 'Agency Earnings'
    description: ''
  -
    name: 'Agency login'
    description: ''
  -
    name: 'Deep linking'
    description: ''
  -
    name: Endpoints
    description: ''
  -
    name: Entrypoint
    description: ''
  -
    name: 'Offer Comments V2'
    description: ''
  -
    name: 'Offer User Activity'
    description: ''
  -
    name: Offers
    description: ''
  -
    name: Statistic
    description: ''
  -
    name: Store
    description: ''
  -
    name: 'Store Media'
    description: ''
  -
    name: 'User Earnings'
    description: ''
