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

Create payment

Endpoint for creating CRYPTO to FIAT payments

Create payment

POST https://papi.swapin.com/api/transactions

For self payment no receiver data is required. Depending account configuration required fields may vary.

Request Body

Name
Type
Description

coin*

String

Coin symbol

sum_currency*

Decimal

Total sum of payment

description

String

Description of the payment (6-17 alphanumeric characters)

currency*

String

FIAT currency (EUR/GBP)

receiver_iban

String

If empty then self payment

receiver_name

String

If empty then self payment

receiver_address_city

String

If empty then self payment

receiver_type

String

individual or business

receiver_address_street

String

Receiver street and house

receiver_address_country

String

Country code in ISO 3166-1 alpha-2

receiver_address_pcode

String

Receiver postal code

receiver_account

String

Receiver UK account number (only GBP payments)

receiver_sort_code

String

Receiver UK sort code (only GBP payments)

receiver_is_self

Boolean

payer_type*

Numeric

1 for individual and 2 for business

payer_name*

String

Payer full name

payer_email*

String

Payer contact email

payer_document_type*

Numeric

1 for ID card, 2 for passport and 3 for driving license

payer_document*

String

Payer document number

payer_birthdate*

Date

Payer date of birth (only for personal). Format YYYY-MM-DD

payer_birth_country*

String

Payer birth country code in ISO 3166 Alpha-2 (only for personal)

payer_address*

String

Payer residency address (Street and house, city, postal code, country)

payer_residency_country*

String

Payer residency country code in ISO 3166 Alpha-2

payer_code*

String

Payer registration number (only for business)

{
    "ok": true,
    "transaction": {
        "transaction_key": "jaly4bbh60u43a4xoe16utoiguvlbyrd",
        "status": "N",
        "status_time": "2018-10-30 17:26:19 +00:00",
        "created_time": "2018-10-30 17:26:19 +00:00",
        "receiver_name": "test",
        "receiver_iban": "EE123",
        "coin": "LTC",
        "sum_eur": 100.1,
        "total_eur": 102.49,
        "fees_eur": 2.14,
        "bank_fees_eur": 0.25,
        "rate": 42.91,
        "description": "Test",
        "reference": null,
        "qrc_image_url": "https://papi.swapin.com/api/qr/jaly4bbh60u43a4xoe16utoiguvlbyrd",
        "payment_url": "litecoin://9XXd98HUpzSq8vu55mXsXSPZtJ8I8dG8?amount=2.3886",
        "total_coin": 2.3886,
        "fees_coin": 0.0499,
        "bank_fees_coin": 0.0059,
        "received_coin": 0,
        "missing_coin": 2.3886,
        "coin_address": "9XXd98HUpzSq8vu55mXsXSPZtJ8I8dG8",
        "user_id": null,
        "indicative_sum_currency": 100.1,
        "is_floating_rate": false,
        "rate_expires": "2018-10-30 17:56:19 +00:00",
        "rate_expires_sec": 1800
    }
}
{
    "message": "The given data was invalid.",
    "errors": {
        "coin": [
            "The coin field is required."
        ],
        "sum_currency": [
            "The sum field is required."
        ],
        "error": [
            "Minimum XTZ amount is: 10.228435"
        ]
    }
}
{
    "message": "No access to make transactions yet"
}
{
    "message": "Please login"
}
PreviousGet coinsNextPayment status

Last updated 2 days ago