Crypto payment

Creating a payment from FormData

post

Create a payment page
This endpoint allows you to create a new payment page

Body
AmountstringOptionalExample: 0
AmountFiatstringOptionalExample: 999
BillingIdstringOptionalExample: 8e8d68ae-a6c6-4962-972d-42218726d737
CheckBillingstringOptionalExample: true
ClientIdstringOptionalExample: 201
CurrencystringOptionalExample: USDT
EmailstringOptionalExample: mail@hotmail.com
FiatCurrencystringOptionalExample: USD
LastnamestringOptionalExample: Ronaldo
NamestringOptionalExample: Cristiano
ShopIdstringOptionalExample: HeWmt2ZVmD
Responses
200
Creating a payment from a payment form
text/plain
post
POST /api/v1/payment/pages/ HTTP/1.1
Host: dashboard.cryptadium.com
Content-Type: multipart/form-data
Accept: */*
Content-Length: 251

{
  "Amount": "0",
  "AmountFiat": "999",
  "BillingId": "8e8d68ae-a6c6-4962-972d-42218726d737",
  "CheckBilling": "true",
  "ClientId": "201",
  "Currency": "USDT",
  "Email": "mail@hotmail.com",
  "FiatCurrency": "USD",
  "Lastname": "Ronaldo",
  "Name": "Cristiano",
  "ShopId": "HeWmt2ZVmD"
}
200

Creating a payment from a payment form

<!DOCTYPE html>
<html lang="ru">
    <head>
        <title>Cryptadium</title>
    </head>
    <body></body>
</html>

Creating a payment from the request body

post

Create a payment
This enpoint allows you to make a POST request to create a payment, in response to this request the payment information will be sent in JSON format

Body
AmountnumberOptionalExample: 0
AmountFiatnumberOptionalExample: 999
BillingIdstringOptional
CheckBillingbooleanOptionalExample: true
ClientIdstringOptional
CurrencystringOptionalExample: USDT
EmailstringOptional
FiatCurrencystringOptionalExample: USD
LastnamestringOptional
NamestringOptional
ShopIdstringOptional
Responses
200
Creating a payment from the request body
application/json
post
POST /api/v1/payment/ HTTP/1.1
Host: dashboard.cryptadium.com
Content-Type: application/json
Accept: */*
Content-Length: 245

{
  "Amount": 0,
  "AmountFiat": 999,
  "BillingId": "1cfca8f4-2370-4a58-a3e3-9cd22b9b31f8",
  "CheckBilling": true,
  "ClientId": "201",
  "Currency": "USDT",
  "Email": "mail@hotmail.com",
  "FiatCurrency": "USD",
  "Lastname": "Ronaldo",
  "Name": "Cristiano",
  "ShopId": "HeWmt2ZVmD"
}
{
  "exceptions": [],
  "isSuccessful": true,
  "message": {
    "amount": 1000.43,
    "amountFiat": 999,
    "cancelDate": "2024-08-14T09:53:40.7071243Z",
    "creationDate": "2024-08-14T09:23:40.7071243Z",
    "currency": "USDT",
    "destinationTag": null,
    "fiatCurrency": "USD",
    "id": 1799,
    "paymentLink": "https://dashboard.cryptadium.dev/Payment/Details/8d20f753-0dd5-4d27-9859-ec882fbb7975",
    "public": "0x6eCB2278CA08d27dE4B714613f41A59a94301BC6"
  }
}

CheckBilling - check that allows you to check billingId. If true, the check will be performed. 400 error will mean that such billingId exists. If false, the check will be ignored.

Last updated