PinkWallet Buy Crypto API

The Buy Crypto API from PinkWallet — 4 operation(s) for buy crypto.

GitHub OpenAPI

Operations 4

GET /buy/assets List supported assets #
POST /buy/quotes Create a buy quote #
POST /buy_orders Create a buy order #
GET /buy_orders/{id} Retrieve a buy order #

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/pinkwallet-com:pinkwallet-com-buy-crypto-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

pinkwallet-com-buy-crypto-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PinkWallet Buy Crypto API
  version: '2026-07-11'
  summary: Payments, multi-currency accounts, and conversion over a clean REST API.
  description: Programmatic access to the same rails that power the PinkWallet app. All amounts are decimal strings; all timestamps are ISO-8601 in UTC. Responses are normalised by the PinkWallet Orchestration Layer and never expose an underlying banking or liquidity provider.
  contact:
    name: PinkWallet Developer Support
    url: https://api.pinkwallet.com
servers:
- url: https://api.pinkwallet.com/v1
  description: Production
- url: https://api.pinkwallet.com/sandbox/v1
  description: Sandbox (pk_test_ keys)
security:
- bearerAuth: []
tags:
- name: Buy Crypto
paths:
  /buy/assets:
    get:
      tags:
      - Buy Crypto
      operationId: listBuyAssets
      summary: List supported assets
      responses:
        '200':
          description: Available fiats and crypto assets.
          content:
            application/json:
              schema:
                type: object
                properties:
                  fiats:
                    type: array
                    items:
                      type: string
                  assets:
                    type: array
                    items:
                      type: string
  /buy/quotes:
    post:
      tags:
      - Buy Crypto
      operationId: createBuyQuote
      summary: Create a buy quote
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BuyQuoteCreate'
      responses:
        '200':
          description: A firm buy quote.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BuyQuote'
  /buy_orders:
    post:
      tags:
      - Buy Crypto
      operationId: createBuyOrder
      summary: Create a buy order
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BuyOrderCreate'
      responses:
        '200':
          description: The buy order.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BuyOrder'
        '402':
          $ref: '#/components/responses/Error'
  /buy_orders/{id}:
    get:
      tags:
      - Buy Crypto
      operationId: retrieveBuyOrder
      summary: Retrieve a buy order
      parameters:
      - $ref: '#/components/parameters/PathId'
      responses:
        '200':
          description: The buy order.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BuyOrder'
webhooks:
  paymentLinkPaid:
    post:
      summary: payment_link.paid
      description: Sent when a payment link receives its funds on-chain. Verify the X-PW-Signature header.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Event'
      responses:
        '200':
          description: Return 2xx within 5s to acknowledge.
      tags:
      - Buy Crypto
components:
  schemas:
    BuyOrder:
      type: object
      properties:
        id:
          type: string
        object:
          type: string
          const: buy_order
        status:
          type: string
          enum:
          - completed
          - pending
          - failed
        fiat:
          type: string
        fiat_amount:
          $ref: '#/components/schemas/Amount'
        asset:
          type: string
        asset_amount:
          $ref: '#/components/schemas/Amount'
        rate:
          type: string
        fee:
          $ref: '#/components/schemas/Amount'
    BuyQuoteCreate:
      type: object
      required:
      - fiat
      - asset
      - fiat_amount
      properties:
        fiat:
          type: string
        asset:
          type: string
        fiat_amount:
          $ref: '#/components/schemas/Amount'
    BuyOrderCreate:
      type: object
      required:
      - fiat
      - asset
      - fiat_amount
      properties:
        fiat:
          type: string
        asset:
          type: string
        fiat_amount:
          $ref: '#/components/schemas/Amount'
        quote_id:
          type: string
    Event:
      type: object
      properties:
        id:
          type: string
        type:
          type: string
          enum:
          - payment_link.paid
          - deposit.credited
          - conversion.filled
          - buy_order.completed
        created_at:
          type: string
          format: date-time
        data:
          type: object
    Amount:
      type: string
      description: A decimal amount as a string, e.g. "250.00".
      example: '250.00'
    BuyQuote:
      type: object
      properties:
        id:
          type: string
        object:
          type: string
          const: buy_quote
        fiat_amount:
          $ref: '#/components/schemas/Amount'
        asset_amount:
          $ref: '#/components/schemas/Amount'
        rate:
          type: string
        fee:
          $ref: '#/components/schemas/Amount'
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
            code:
              type: string
            message:
              type: string
            param:
              type: string
            request_id:
              type: string
  parameters:
    PathId:
      name: id
      in: path
      required: true
      schema:
        type: string
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      schema:
        type: string
      description: A unique key to make this write safely retryable for 24 hours.
  responses:
    Error:
      description: Error response.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: pk_live_ / pk_test_
      description: Pass your secret API key as a bearer token. Write operations are additionally HMAC-signed via X-PW-Signature.