API Endpoint: Create Payment

GET /api/payment.php?action=order

This endpoint creates a new payment order, allowing users to purchase reactions, volume boosts, or other services on DexTrend.

Parameters
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
Example Request
curl -X POST "https://dextrend.store/api/payment.php?action=order" -d "service=1" -d "actions=100" -d "data=https://dexscreener.com/solana/xxxxxxxxxxxxxxxxx"
Response

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"
}
          

Other Endpoints

GET /api/payment.php?action=order_status

Check the status of an order by providing the order_id.

Parameters
Parameter Type Description Required
order_id String Unique ID of the order to check status Yes
Example Request
curl -X GET "https://dextrend.store/api/payment.php?action=order_status&order_id=12345"
Response

Returns the status of the order.

{
  "status": 1,
  "status_description": "Success"
}