> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blink.store/llms.txt
> Use this file to discover all available pages before exploring further.

# Resolve Geo Pricing

> Retrieve the localized discount percentage for a buyer based on the store's Geo Pricing (Purchasing Power Parity) configuration. Supports explicit country code resolution for server-side calls, and automatic IP fallback for client-side calls.



## OpenAPI

````yaml /api-reference/blink-api.json get /geo-pricing
openapi: 3.0.0
info:
  title: Blink API
  description: Comprehensive API documentation for Blink.
  version: 1.0.0
servers:
  - url: https://api.blink.store/v1
security:
  - storeIdHeader: []
tags:
  - name: Invoices
    description: Unified merchant of record invoices for products and subscriptions.
  - name: Geo Pricing
    description: Resolve Purchasing Power Parity (PPP) localized pricing.
paths:
  /geo-pricing:
    get:
      tags:
        - Geo Pricing
      summary: Resolve Geo Pricing
      description: >-
        Retrieve the localized discount percentage for a buyer based on the
        store's Geo Pricing (Purchasing Power Parity) configuration. Supports
        explicit country code resolution for server-side calls, and automatic IP
        fallback for client-side calls.
      operationId: getGeoPricing
      parameters:
        - name: country_code
          in: query
          required: false
          schema:
            type: string
          description: >-
            The 2-letter ISO country code of the buyer (e.g., `BR`, `IN`). If
            omitted, the API will automatically resolve the buyer's location via
            their IP address.
        - name: product_id
          in: query
          required: false
          schema:
            type: string
          description: >-
            If provided, checks if geo-pricing is explicitly disabled for this
            specific product, returning a 0% discount if opted out.
      responses:
        '200':
          description: The calculated geo-pricing discount
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      discount_percentage:
                        type: integer
                        description: >-
                          The percentage discount to apply to the product's base
                          price (e.g. 40).
                      country_code:
                        type: string
                        description: The 2-letter ISO country code that was resolved.
                      country_name:
                        type: string
                        description: The full name of the resolved country.
                      is_enabled:
                        type: boolean
                        description: Whether the store has globally enabled geo-pricing.
        '401':
          description: Unauthorized
        '404':
          description: Store or Product not found
components:
  securitySchemes:
    storeIdHeader:
      type: apiKey
      in: header
      name: x-store-id

````