Skip to main content

PayIn

The PayIn structure will be received in response to the operations:

  1. Charge.
  2. Checkout.
  3. Invoice.

A callback will be received at the address specified in the operation creation method upon every change in the transaction status.

Description of Input Parameters

The webhook structure for the PayIn operations:

In JSON format

id
required
string <uuid>
type
required
string
required
object
created_at
required
string <date-time>
{
  • "id": "b58850d3-fb4a-468c-a16f-be94962d48ae",
  • "type": "charge:pending",
  • "data": {
    },
  • "created_at": "2023-08-08T10:17:14.815487+03:00"
}

Example request:

{
"id":"5475e3f7-1601-4a03-babb-c530c4b350f8",
"type":"charge:confirmed",
"data":{
"id":"5b243b3b-8b3f-401b-a729-367f2b1432ae",
"name":"Project name",
"description":"Project description",
"pricing_type":"fixed_price",
"external_id":null,
"status":"completed",
"context":null,
"created_at":"2024-04-01T12:03:44Z",
"completes_at":"2024-04-01T12:04:55Z",
"expires_at":"2024-04-01T15:03:44Z",
"timeline":[
{
"time":"2024-04-01T12:03:43Z",
"status":"new",
"context":null
},
{
"time":"2024-04-01T12:04:55Z",
"status":"pending",
"context":null
},
{
"time":"2024-04-01T12:05:58Z",
"status":"completed",
"context":null
}
],
"init_price":{
"network":"fiat",
"symbol":"AMD",
"amount":"100",
"amount_rest":"0",
"amount_paid":"100"
},
"merchant_price":{
"network":"tron",
"symbol":"USDT",
"amount":"0.253625",
"amount_rest":"0.000025",
"amount_paid":"0.2536"
},
"pricing":{
"tron.TRX":{
"network":"tron",
"symbol":"TRX",
"address":"TWFEgoirdyty89MbZnKAUxbxYA3ymJm",
"amount":"3",
"amount_paid":"3",
"amount_rest":"0",
"rate":"0.0845417155497433"
}
},
"payments":[
{
"id":"0wer435ca-6b12-45d0-9a94-arhstri8bca3c0",
"charge_id":"5bray45-8qwe3-401b-a729-36w5fdsfar2ae",
"address":"TWFEgoirdyty89MbZnKAUxbxYA3ymJm",
"tx_id":"f93ea54145wu7ynjzlkdfcnb0a6abb42213315d77b05ea103df224a39357a37",
"network":"tron",
"symbol":"TRX",
"amount":"3",
"status":"confirmed",
"aml_level":"low",
"detected_at":"2024-04-01T12:04:00Z",
"exchange":{
"symbol":"USDT",
"amount":"0.2536",
"rate":"0.0845417155497433",
"status":"success"
}
}
],
"enabled_crypto":[
{
"symbol":"TRX",
"network":"tron"
}
],
"hosted":{
"url":"https://cryptix-payment.net/charge/5b2ah65y3b-8basdf-asdf01b-a729-367fawsadab1432ae",
"theme":"dark",
"return_url":"https://cryptix-dashboard.net/"
}
},
"created_at":"2024-04-01T12:05:58.498074394Z"
}