Endpoint for creating CRYPTO to FIAT payments
POST https://papi.swapin.com/api/transactions
POST
https://papi.swapin.com/api/transactions
For self payment no receiver data is required. Depending account configuration required fields may vary.
{ "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 } }
{ "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" }
Last updated 3 months ago
coin*
String
Coin symbol
sum_currency*
Decimal
Total sum of payment
description
Description of the payment (6-17 alphanumeric characters)
currency*
FIAT currency (EUR/GBP)
receiver_iban
If empty then self payment
receiver_name
receiver_address_city
receiver_type
individual or business
receiver_address_street
Receiver street and house
receiver_address_country
Country code in ISO 3166-1 alpha-2
receiver_address_pcode
Receiver postal code
receiver_account
Receiver UK account number (only GBP payments)
receiver_sort_code
Receiver UK sort code (only GBP payments)
receiver_is_self
Boolean
payer_type
Numeric
1 for individual and 2 for business
payer_name
Payer full name
payer_email
Payer contact email
payer_document_type
1 for ID card, 2 for passport and 3 for driving license
payer_document
Payer document number
payer_birthdate
Date
Payer date of birth (only for personal). Format YYYY-MM-DD
payer_birth_country
Payer birth country code in ISO 3166 Alpha-2
payer_address
Payer residency address (Street and house, city, postal code, country)
payer_residency_country
Payer residency country code in ISO 3166 Alpha-2
payer_code
Payer registration number (only for business)