DogPay FX API

The FX API from DogPay — 3 operation(s) for fx.

GitHub OpenAPI

Operations 3

POST /v2/openapi/openapi/fx/quote Request foreign exchange quote #
POST /v2/openapi/openapi/fx/trade/order Create foreign exchange trade order #
GET /v2/openapi/openapi/fx/trade/order/detail Get foreign exchange trade order details #

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/dogpay-com:dogpay-com-fx-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

dogpay-com-fx-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Baas FX API
  description: ''
  version: 1.0.0
  contact: {}
servers:
- url: https://sandbox-api-v2.dogpay.com
  description: Sandbox
security:
- bearer: []
tags:
- name: FX
paths:
  /v2/openapi/openapi/fx/quote:
    post:
      description: Requests a real-time foreign exchange quote. Either sellAmount or buyAmount must be provided. **Currently only T0 tenor is supported**.
      tags:
      - FX
      summary: Request foreign exchange quote
      parameters:
      - name: dgp-entity-id
        in: header
        description: The unique identifier of the target entity. Mandatory for white-label customers to define the sub-entity context.
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Quote successful
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/response.Response'
                - type: object
                  properties:
                    data:
                      type: object
                      allOf:
                      - $ref: '#/components/schemas/openapi.QuoteResponse'
                  required:
                  - data
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/response.Response'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/response.Response'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/openapi.QuoteRequest'
      operationId: postV2OpenapiOpenapiFxQuote
      x-operation-id-source: derived
  /v2/openapi/openapi/fx/trade/order:
    post:
      description: Executes a foreign exchange trade based on a valid quote ID. This action settles funds between the specified accounts.
      tags:
      - FX
      summary: Create foreign exchange trade order
      parameters:
      - name: dgp-entity-id
        in: header
        description: The unique identifier of the target entity. Mandatory for white-label customers to define the sub-entity context.
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Order created successfully
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/response.Response'
                - type: object
                  properties:
                    data:
                      type: object
                      allOf:
                      - $ref: '#/components/schemas/openapi.TradeOrderResponse'
                  required:
                  - data
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/response.Response'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/response.Response'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/openapi.TradeOrderRequest'
      operationId: postV2OpenapiOpenapiFxTradeOrder
      x-operation-id-source: derived
  /v2/openapi/openapi/fx/trade/order/detail:
    get:
      description: Retrieves details of FX trade order using either orderNo or externalOrderNo. One identifier is required, but they cannot be provided simultaneously.
      tags:
      - FX
      summary: Get foreign exchange trade order details
      parameters:
      - name: orderNo
        in: query
        description: The unique system-generated order number assigned to the FX trade record.
        schema:
          type: string
      - name: externalOrderNo
        in: query
        description: A unique reference number provided by the client to track the FX order within their own system.
        schema:
          type: string
      - name: dgp-entity-id
        in: header
        description: The unique identifier of the target entity. Mandatory for white-label customers to define the sub-entity context.
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Query successful
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/response.Response'
                - type: object
                  properties:
                    data:
                      type: object
                      allOf:
                      - $ref: '#/components/schemas/openapi.TradeOrderResponse'
                  required:
                  - data
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/response.Response'
        '404':
          description: Order not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/response.Response'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/response.Response'
      operationId: getV2OpenapiOpenapiFxTradeOrderDetail
      x-operation-id-source: derived
components:
  schemas:
    openapi.TradeOrderResponse:
      type: object
      properties:
        buyAmount:
          description: Buy amount
          type: string
        buyCcy:
          description: Buy currency
          type: string
        externalOrderNo:
          description: A unique reference number provided by the client to track the FX order within their own system.
          type: string
        orderNo:
          description: The unique system-generated order number assigned to the FX trade record.
          type: string
        rate:
          description: Exchange rate
          type: string
        sellAmount:
          description: Sell amount
          type: string
        sellCcy:
          description: Sell currency
          type: string
        status:
          description: Order status
          type: string
        tenor:
          description: 'Settlement timing for the trade defines when funds are exchanged (T0: same-day, T1: next business day, T2: two business days after the trade date). Currently, only T0 settlement is supported.'
          type: string
    response.Response:
      type: object
      properties:
        code:
          type: integer
        message:
          type: string
        timestamp:
          type: integer
    openapi.QuoteRequest:
      type: object
      required:
      - buyCcy
      - sellCcy
      - tenor
      properties:
        buyAmount:
          description: Fixed buy amount. Mutually exclusive with sellAmount — specify the exact amount of target currency to buy, and the system calculates the required sell amount.
          type: string
          example: '10000'
        buyCcy:
          description: Buy currency
          type: string
          example: USDT
        sellAmount:
          description: Fixed sell amount. Mutually exclusive with buyAmount — specify the exact amount of base currency to sell, and the system calculates the purchasable target currency amount.
          type: string
          example: '10000'
        sellCcy:
          description: Sell currency
          type: string
          example: USD
        tenor:
          description: "Settlement timing for the trade defines when funds are exchanged (T0: same-day, T1: next business day, T2: two business days after the trade date). \n Currently, only T0 settlement is supported."
          type: string
          enum:
          - T0
          - T1
          - T2
          example: T0
        businessType:
          description: "Business type indicator.\n* **Default:** `04` (if left blank).\n* **For `enterprise` users:** Only `04` is allowed.\n* **For `person` users:** Select based on the business type:\n  * `04`: cw_2_cw\n  * `09`: cw_2_va\n  * `10`: cw_2_budget\n  * `11`: cw_2_card\n  * `12`: va_2_cw\n  * `13`: card_2_cw\n  * `14`: budget_2_cw"
          type: string
          enum:
          - '04'
          - 09
          - '10'
          - '11'
          - '12'
          - '13'
          - '14'
          example: '04'
    openapi.TradeOrderRequest:
      type: object
      required:
      - externalOrderNo
      - quoteId
      properties:
        buyAccount:
          description: The unique `balanceId` of the destination (buy) account or wallet.
          type: string
        externalOrderNo:
          description: A unique reference number provided by the client to track the FX order within their own system.
          type: string
        quoteId:
          description: The unique identifier of the exchange quote generated for the cross-currency payout orders.
          type: string
        sellAccount:
          description: The unique `balanceId` of the source (sell) account or wallet.
          type: string
    openapi.QuoteResponse:
      type: object
      properties:
        buyAmount:
          description: Buy amount
          type: string
        buyCcy:
          description: Buy currency
          type: string
        expireTime:
          description: Expiration time
          type: string
        quoteId:
          description: The unique identifier of the exchange quote generated for the cross-currency payout orders.
          type: string
        rate:
          description: Exchange rate
          type: string
        sellAmount:
          description: Sell amount
          type: string
        sellCcy:
          description: Sell currency
          type: string
        tenor:
          description: 'Settlement timing for the trade defines when funds are exchanged (T0: same-day, T1: next business day, T2: two business days after the trade date). Currently, only T0 settlement is supported.'
          type: string
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
x-provenance:
  method: searched
  source: https://docs.dogpay.com/reference
  harvested: '2026-11-16'
  tool: harvest-readme-openapi.py
  note: Assembled verbatim from the OpenAPI definition ReadMe embeds in each operation page of the provider's developer portal; paths and components merged by API title, nothing authored.
  assembled_from:
  - https://docs.dogpay.com/reference/get_v2-openapi-openapi-balance-list.md
  - https://docs.dogpay.com/reference/get_v2-openapi-openapi-fx-trade-order-detail.md
  - https://docs.dogpay.com/reference/get_v2-openapi-openapi-otc-quota.md
  - https://docs.dogpay.com/reference/openapifilecontroller_uploaddepositattachmentfile.md
  - https://docs.dogpay.com/reference/openapifilecontroller_uploadfile.md
  - https://docs.dogpay.com/reference/openapifilecontroller_uploadpersonfile.md
  - https://docs.dogpay.com/reference/openapipayoutcontroller_createopenapipayout.md
  - https://docs.dogpay.com/reference/openapipayoutcontroller_createpayeev2.md
  - https://docs.dogpay.com/reference/openapipayoutcontroller_downloadreceiptv3.md
  - https://docs.dogpay.com/reference/openapipayoutcontroller_getpayee.md
  - https://docs.dogpay.com/reference/openapipayoutcontroller_getpayeedetail.md
  - https://docs.dogpay.com/reference/openapipayoutcontroller_getpayeeoptions.md
  - https://docs.dogpay.com/reference/openapipayoutcontroller_getpayoutaccounts.md
  - https://docs.dogpay.com/reference/openapipayoutcontroller_getpayoutdetail.md
  - https://docs.dogpay.com/reference/openapipayoutcontroller_softdeletepayee.md
  - https://docs.dogpay.com/reference/openapipayoutcontroller_updatepayeev2.md
  - https://docs.dogpay.com/reference/openapipayoutv2controller_createopenapipayoutv2.md
  - https://docs.dogpay.com/reference/openapivacontroller_createlegalva.md
  - https://docs.dogpay.com/reference/openapivacontroller_createlegalvav2.md
  - https://docs.dogpay.com/reference/openapivacontroller_createpersonva.md
  - https://docs.dogpay.com/reference/openapivacontroller_getbanklist.md
  - https://docs.dogpay.com/reference/openapivacontroller_getbanklistv2.md
  - https://docs.dogpay.com/reference/openapivacontroller_getvadetail.md
  - https://docs.dogpay.com/reference/openapivacontroller_getvalist.md
  - https://docs.dogpay.com/reference/openapivacontroller_getvarejectionrecords.md
  - https://docs.dogpay.com/reference/openapivacontroller_resubmitvaattachment.md
  - https://docs.dogpay.com/reference/openapivatrxcontroller_getvatrxdetail.md
  - https://docs.dogpay.com/reference/openapivatrxcontroller_getvatrxlist.md
  - https://docs.dogpay.com/reference/openapivatrxcontroller_submitbusinessdepositattachment.md
  - https://docs.dogpay.com/reference/openapivatrxcontroller_submitpersondepositattachment.md
  - https://docs.dogpay.com/reference/post_v2-openapi-openapi-fx-quote.md
  - https://docs.dogpay.com/reference/post_v2-openapi-openapi-fx-trade-order.md
  merge:
    pages: 32
    deduped: 111
    conflicts_kept_first: 0