This endpoint creates a new payment order, allowing users to purchase reactions, volume boosts, or other services on DexTrend.
Parameter | Type | Description | Required |
---|---|---|---|
service |
String | ID of the service being purchased (e.g., reactions or volume boost) | Yes |
actions |
Integer | Total number of actions (e.g., number of reactions) | Yes |
data |
String | URL of the Dexscreener token or target item | Yes |
curl -X POST "https://dextrend.store/api/payment.php?action=order" -d "service=1" -d "actions=100" -d "data=https://dexscreener.com/solana/xxxxxxxxxxxxxxxxx"
On success, the response will contain the order ID, payment address, and amount to be paid.
{ "order_id": "12345", "wallet_address": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "amount": "0.3 SOL" }
Check the status of an order by providing the order_id
.
Parameter | Type | Description | Required |
---|---|---|---|
order_id |
String | Unique ID of the order to check status | Yes |
curl -X GET "https://dextrend.store/api/payment.php?action=order_status&order_id=12345"
Returns the status of the order.
{ "status": 1, "status_description": "Success" }