### GET https://ezfp.cn/api.php?act=orders Source: https://ezfp.cn/doc.html Query a list of orders in batches. ```APIDOC ## GET https://ezfp.cn/api.php?act=orders ### Description Retrieve a list of orders with pagination support. ### Method GET ### Endpoint https://ezfp.cn/api.php?act=orders ### Parameters #### Query Parameters - **act** (String) - Required - Fixed value: "orders" - **pid** (Int) - Required - Merchant ID - **key** (String) - Required - Merchant Key - **limit** (Int) - Optional - Number of orders to return (max 50) - **page** (Int) - Optional - Current page number ### Response #### Success Response (200) - **code** (Int) - Status code (1 for success) - **msg** (String) - Response message - **data** (Array) - List of orders ``` -------------------------------- ### GET https://ezfp.cn/api.php?act=query Source: https://ezfp.cn/doc.html Queries merchant account information including balance and order statistics. ```APIDOC ## GET https://ezfp.cn/api.php?act=query ### Description Retrieves detailed information about the merchant account. ### Method GET ### Endpoint https://ezfp.cn/api.php ### Parameters #### Query Parameters - **act** (String) - Required - Fixed value: 'query' - **pid** (Int) - Required - Merchant ID - **key** (String) - Required - Merchant secret key ### Response #### Success Response (200) - **code** (Int) - Status code - **money** (String) - Merchant balance - **orders** (Int) - Total order count ``` -------------------------------- ### GET https://ezfp.cn/api.php?act=order Source: https://ezfp.cn/doc.html Query the details of a single order using either the system order number or the merchant order number. ```APIDOC ## GET https://ezfp.cn/api.php?act=order ### Description Query the details of a single order. System order number (trade_no) and merchant order number (out_trade_no) are optional but at least one must be provided; if both are provided, the system order number takes precedence. ### Method GET ### Endpoint https://ezfp.cn/api.php?act=order ### Parameters #### Query Parameters - **act** (String) - Required - Fixed value: "order" - **pid** (Int) - Required - Merchant ID - **key** (String) - Required - Merchant Key - **trade_no** (String) - Optional - System order number - **out_trade_no** (String) - Optional - Merchant order number ### Response #### Success Response (200) - **code** (Int) - Status code (1 for success) - **msg** (String) - Response message - **trade_no** (String) - Ezfp order number - **out_trade_no** (String) - Merchant order number - **api_trade_no** (String) - Third-party order number - **type** (String) - Payment method - **pid** (Int) - Merchant ID - **addtime** (String) - Order creation time - **endtime** (String) - Transaction completion time - **name** (String) - Product name - **money** (String) - Product amount - **status** (Int) - Payment status (1 for success, 0 for unpaid) - **param** (String) - Extended parameters - **buyer** (String) - Payer account ``` -------------------------------- ### POST https://ezfp.cn/mapi.php Source: https://ezfp.cn/doc.html Initiates a payment from the backend and returns a payment URL, QR code, or mini-program scheme. ```APIDOC ## POST https://ezfp.cn/mapi.php ### Description This interface is used for backend-to-backend payment requests, returning a payment URL or QR code link. ### Method POST ### Endpoint https://ezfp.cn/mapi.php ### Parameters #### Request Body - **pid** (Int) - Required - Merchant ID - **type** (String) - Required - Payment method - **out_trade_no** (String) - Required - Merchant order number - **notify_url** (String) - Required - Asynchronous notification URL - **return_url** (String) - Optional - Return URL - **name** (String) - Required - Product name - **money** (String) - Required - Amount - **clientip** (String) - Required - User IP address - **device** (String) - Optional - Device type (pc, mobile, etc.) - **sign** (String) - Required - MD5 signature ### Response #### Success Response (200) - **code** (Int) - Status code (1 for success) - **trade_no** (String) - Payment order number - **payurl** (String) - Payment redirect URL - **qrcode** (String) - QR code link - **urlscheme** (String) - Mini-program scheme ``` -------------------------------- ### POST https://ezfp.cn/submit.php Source: https://ezfp.cn/doc.html Initiates a payment via page redirection. Users are redirected to the payment gateway or a checkout page. ```APIDOC ## POST https://ezfp.cn/submit.php ### Description This interface allows users to initiate a payment directly from the frontend using a form submission or URL redirect. ### Method POST (Recommended) or GET ### Endpoint https://ezfp.cn/submit.php ### Parameters #### Query/Body Parameters - **pid** (Int) - Required - Merchant ID - **type** (String) - Optional - Payment method (e.g., alipay, wxpay) - **out_trade_no** (String) - Required - Merchant order number - **notify_url** (String) - Required - Server-side asynchronous notification URL - **return_url** (String) - Required - Page redirection notification URL - **name** (String) - Required - Product name - **money** (String) - Required - Product amount (decimal, max 2 places) - **param** (String) - Optional - Business extension parameter - **sign** (String) - Required - MD5 signature string - **sign_type** (String) - Required - Signature type (default: MD5) ``` -------------------------------- ### POST https://ezfp.cn/api.php?act=refund Source: https://ezfp.cn/doc.html Submit a refund request for a specific order. ```APIDOC ## POST https://ezfp.cn/api.php?act=refund ### Description Initiate a refund for an order. Requires the refund API to be enabled in the merchant backend. Either trade_no or out_trade_no must be provided; if both are provided, trade_no takes precedence. ### Method POST ### Endpoint https://ezfp.cn/api.php?act=refund ### Parameters #### Request Body - **pid** (Int) - Required - Merchant ID - **key** (String) - Required - Merchant Key - **trade_no** (String) - Optional - Ezfp order number - **out_trade_no** (String) - Optional - Merchant order number - **money** (String) - Required - Refund amount ### Response #### Success Response (200) - **code** (Int) - Status code (1 for success) - **msg** (String) - Response message ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.