Swapin Partner API
  • What is Swapin?
  • Help & Customer Support
  • General
  • Authentication
  • API Endpoints
    • Get coins
    • Create payment
    • Payment status
    • Settle Payment
    • Payment statuses
    • Create buy order
    • Buy order status
    • Buy order statuses
  • Referral codes
  • Create referral code
  • Referral statistics
  • End customer experience
    • Verification Levels
    • Supported Countries
    • Fees, Supported Currencies and Payment Processing Times
    • Dedicated IBANs
Powered by GitBook
On this page
  1. API Endpoints

Buy order status

Endpoint for checking buy order status by order id

Check buy order status by order id

GET https://papi.swapin.com/api/buy/<ORDER_ID>

Query Parameters

Name
Type
Description

<ORDER_ID>*

String

Id of buy order that was created with create buy order API call

{
  "ok": true,
  "exchange_order": {
    "order_id": "BBHT7HQ-EO-TNRASHV-3WZPETI",
    "account_id": "ABZBLRQ-4L05DEL",
    "user_id": "123",
    "status": "W",
    "status_text": "Waiting funds",
    "deposit_order_id": "BBHT7HQ-DO-5AVBLHZ-28QMPMR",
    "from_coin": "EUR",
    "from_account_id": "ABZBLRQ-4L05DEL",
    "from_amount": 100,
    "from_amount_indicative": 100,
    "to_coin": "BTC",
    "to_coin_address": "1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2",
    "to_amount": null,
    "to_amount_indicative": 0.00295642,
    "rate_target": null,
    "booked_amount": null,
    "fee_amount": 21,
    "fee_coin": "EUR",
    "network_fee_amount": 4.56,
    "network_fee_coin": "EUR",
    "created_time": "2023-06-02 11:22:38 +00:00",
    "created_utime": 1685704958,
    "status_time": "2023-06-02 11:22:38 +00:00",
    "status_utime": 1685704958,
    "trade_time": null,
    "trade_utime": null,
    "completed_time": null,
    "completed_utime": null,
    "cancelled_reason": null
  }
}
{
    "message": "Not found"
}
{
    "message": "Please login"
}
PreviousCreate buy orderNextBuy order statuses

Last updated 1 year ago