# Create an FX Quote

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/fx_quotes:
    post:
      summary: Create an FX Quote
      deprecated: false
      description: ''
      tags:
        - API Reference/FX Quote
      parameters:
        - name: Accept
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
        - name: Content-Type
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                from_currencies:
                  type: array
                  items:
                    type: string
                to_currency:
                  type: string
                usage:
                  type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - payin
                        - payout
                      x-apifox-enum:
                        - value: payin
                          name: ''
                          description: ''
                        - value: payout
                          name: ''
                          description: ''
                  x-apifox-orders:
                    - type
                  required:
                    - type
                  x-apifox-ignore-properties: []
              x-apifox-orders:
                - from_currencies
                - to_currency
                - usage
              required:
                - from_currencies
                - to_currency
                - usage
              x-apifox-ignore-properties: []
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                x-apifox-refs:
                  01JSE98VS5ZPE2SE2WV3YVZZ8G:
                    $ref: '#/components/schemas/The%20FX%20Quote%20object'
                    x-apifox-overrides:
                      id: null
                      object: null
                x-apifox-orders:
                  - 01JSE98VS5ZPE2SE2WV3YVZZ8G
                properties:
                  rates:
                    type: object
                    properties:
                      <from_currency>.exchange_rate:
                        type: string
                    x-apifox-orders:
                      - <from_currency>.exchange_rate
                    description: Information about the rates.
                    x-apifox-ignore-properties: []
                  to_currency:
                    type: string
                    description: The currency to convert into
                  usage:
                    type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - payin
                          - payout
                        x-apifox-enum:
                          - value: payin
                            name: ''
                            description: ''
                          - value: payout
                            name: ''
                            description: ''
                    x-apifox-orders:
                      - type
                    description: The usage specific information for the quote.
                    required:
                      - type
                    x-apifox-ignore-properties: []
                  created:
                    type: string
                    description: >-
                      Time at which the quote was created, measured in seconds
                      since the Unix epoch.
                x-apifox-ignore-properties:
                  - rates
                  - to_currency
                  - usage
                  - created
          headers: {}
          x-apifox-name: Success
      security:
        - basic: []
      x-apifox-folder: API Reference/FX Quote
      x-apifox-status: developing
      x-run-in-apifox: https://app.apifox.com/web/project/1296482/apis/api-287582426-run
components:
  schemas:
    The FX Quote object:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the object.
        object:
          type: string
          description: >-
            String representing the object’s type. Objects of the same type
            share the same value.
        rates:
          type: object
          properties:
            <from_currency>.exchange_rate:
              type: string
          x-apifox-orders:
            - <from_currency>.exchange_rate
          description: Information about the rates.
          x-apifox-ignore-properties: []
        to_currency:
          type: string
          description: The currency to convert into
        usage:
          type: object
          properties:
            type:
              type: string
              enum:
                - payin
                - payout
              x-apifox-enum:
                - value: payin
                  name: ''
                  description: ''
                - value: payout
                  name: ''
                  description: ''
          x-apifox-orders:
            - type
          description: The usage specific information for the quote.
          required:
            - type
          x-apifox-ignore-properties: []
        created:
          type: string
          description: >-
            Time at which the quote was created, measured in seconds since the
            Unix epoch.
      x-apifox-orders:
        - id
        - object
        - rates
        - to_currency
        - usage
        - created
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
  securitySchemes:
    basic:
      type: http
      scheme: basic
servers:
  - url: https://apitest.wooshpay.com
    description: 官网测试
security:
  - basic: []

```
