NullPay
  1. IPN Webhooks
NullPay
  • Private
    • Transaction
      • Transaction History
      • Create Transaction
      • Transaction Detail
    • Merchant
      • Balances
      • Coin Settings
      • Update Coin Settings
    • Withdraw
      • Withdrawal History
      • Withdraw
      • Fiat Withdraw
  • Public
    • Health Check
      GET
    • Get Coins
      GET
    • Get Currencies
      GET
  • IPN Webhooks
    • IPN Handler
      POST
  1. IPN Webhooks

IPN Handler

POST
/{webhook-your-endpoint}
It sends a request to the IPN webhook url set via the panel, as in the example. This method is only for sending requests to your server. You must implement your own logic. The status of the transaction can be: 'created', 'pending', 'partial', 'completed', 'failed', 'cancelled'

Request

Path Params

Body Params application/json

Example
{
    "transactionId": "8b8778ac-be6c-48bb-b9aa-c17731486969",
    "merchantId": "8b8778ac-be6c-48bb-b9aa-c17731486969",
    "productName": "Product Name",
    "productCount": 2,
    "productPrice": 10,
    "productCurrency": "USD",
    "productTotal": 20,
    "totalAmountAsCoin": "0.0002",
    "buyerEmail": "buyer@nullpay.net",
    "paidAmountAsCoin": "0.0001",
    "estimatedPaidAmount": "10",
    "estimatedPaidAmountFiat": "100",
    "orderCreatedAt": "2024-07-09 10:43:20.043550 +00:00",
    "custom": "Custom Data",
    "status": "partial"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.nullpay.net/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "transactionId": "8b8778ac-be6c-48bb-b9aa-c17731486969",
    "merchantId": "8b8778ac-be6c-48bb-b9aa-c17731486969",
    "productName": "Product Name",
    "productCount": 2,
    "productPrice": 10,
    "productCurrency": "USD",
    "productTotal": 20,
    "totalAmountAsCoin": "0.0002",
    "buyerEmail": "buyer@nullpay.net",
    "paidAmountAsCoin": "0.0001",
    "estimatedPaidAmount": "10",
    "estimatedPaidAmountFiat": "100",
    "orderCreatedAt": "2024-07-09 10:43:20.043550 +00:00",
    "custom": "Custom Data",
    "status": "partial"
}'

Responses

🟢201Success
application/json
Body

Example
{}
Modified at 2024-07-19 09:39:03
Previous
IPN Webhooks
Built with