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

# Get iframe order details

> Returns order details for iframe-based integration.

The request body must contain a signed JWT issued by WizzGift.




## OpenAPI

````yaml openapi.yaml post /b2b/iframeOrder/getDetails
openapi: 3.0.3
info:
  title: WizzGift B2B API
  version: 1.1.0
  description: |
    WizzGift B2B API for:
    - Iframe Integration
    - Direct API Integration

    Authentication:
    - All endpoints require a Bearer token in the `Authorization` header:
      `Authorization: Bearer YOUR_API_KEY_HERE`
servers:
  - url: https://api2.wizzgift.com
    description: Production server
security:
  - bearerAuth: []
tags:
  - name: Iframe Integration
    description: Endpoints for iframe-based payment flows.
  - name: API Integration
    description: Endpoints for direct API / server-to-server integrations.
  - name: Other tools
    description: Miscellaneous supporting endpoints (e.g. balance, utilities).
paths:
  /b2b/iframeOrder/getDetails:
    post:
      tags:
        - Iframe Integration
      summary: Get iframe order details
      description: |
        Returns order details for iframe-based integration.

        The request body must contain a signed JWT issued by WizzGift.
      operationId: iframeGetDetails
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IframeGetDetailsRequest'
            example:
              jwt: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
      responses:
        '200':
          description: Iframe order details returned successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IframeOrderDetailsResponse'
              example:
                success: true
                data:
                  order_id: IFR-123456
                  product_slug: paypal-gift-worldwide
                  amount: 50
                  currency: USD
                  expires_at: '2025-01-01T12:00:00Z'
        '400':
          description: Invalid JWT or malformed request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: Invalid JWT
        '401':
          description: Missing or invalid authorization header.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: Missing Authorization header
      security:
        - bearerAuth: []
components:
  schemas:
    IframeGetDetailsRequest:
      type: object
      properties:
        jwt:
          type: string
          description: Signed JWT token issued by WizzGift.
      required:
        - jwt
    IframeOrderDetailsResponse:
      type: object
      description: Generic container for iframe order details.
      properties:
        success:
          type: boolean
        data:
          type: object
          description: Order details required for iframe flow.
          additionalProperties: true
      required:
        - success
        - data
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          example: Missing Authorization header
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````