/api/v1. Inputs list query parameters and JSON fields with their types where known. The success column shows status codes and selected top-level fields, including conditional fields. A dash means no inputs are listed here. Browse other modules in the route index.
These routes manage applications and orders inside NodeLoc. For the external protocols, see Open Login for /oauth-provider/* and discovery, or Energy payments for signed merchant requests to /payment/*.
Escrow trades
| Method and path | Access | Inputs | Success |
|---|---|---|---|
GET /posts/{id}/trade | Public | — | 200 trade |
POST /posts/{id}/trade | Session | JSON kind (string), unit_price_cents (integer), quantity (integer), delivery (string), allow_bargain (boolean), seller_pays_fee (boolean) | 201 trade |
DELETE /trade-offers/{id} | Session | — | 204 |
POST /trade-offers/{id}/accept | Session | Required Idempotency-Key header (1–100 bytes) | 201 order |
POST /trade-offers/{id}/reject | Session | — | 204 |
GET /trade-orders | Session | Query before, tab, status, limit | 200 orders, next_before, pay_types (also summary and counts on the first page) |
GET /trade-orders/{id} | Session | — | 200 order |
POST /trade-orders/{id}/cancel | Session | JSON reason (string) | 200 order |
POST /trade-orders/{id}/confirm | Session | — | 200 order |
POST /trade-orders/{id}/dispute | Session | JSON reason (string), image_upload_ids (integer[]) | 200 order |
PUT /trade-orders/{id}/dispute/response | Session | JSON response (string), image_upload_ids (integer[]) | 200 order |
POST /trade-orders/{id}/remind | Session | — | 204 |
POST /trade-orders/{id}/ship | Session | JSON delivery_info (string) | 200 order |
PATCH /trades/{id} | Session | JSON kind (string), unit_price_cents (integer), quantity (integer), delivery (string), allow_bargain (boolean), seller_pays_fee (boolean) | 200 trade |
POST /trades/{id}/close | Session | — | 204 |
POST /trades/{id}/offers | Session | JSON unit_price_cents (integer), quantity (integer), note (string) | 201 offer |
POST /trades/{id}/orders | Session | JSON quantity (integer) · Required Idempotency-Key header (1–100 bytes) | 201 order |
Promotions, orders, and wallets
| Method and path | Access | Inputs | Success |
|---|---|---|---|
POST /points/topups | Session | JSON amount_cents (integer) | 201 order |
GET /promo/ads | Public | Query placement | 200 ads, feed_interval |
PUT /promo/ads/{id} | Session | JSON name (string), excerpt (string), url (string), headlines (string[]), image_upload_ids (integer[]) | 200 ad |
DELETE /promo/ads/{id} | Session | — | 204 |
POST /promo/ads/{id}/click | Public | — | 204 |
POST /promo/ads/{id}/hide | Session | — | 204 |
PUT /promo/ads/{id}/paused | Session | JSON paused (boolean) | 204 |
POST /promo/ads/{id}/report | Session | JSON reason (string) | 204 |
POST /promo/checkout | Session | JSON product_type (string), months (integer), name (string), ad_size (string), excerpt (string), url (string), headlines (string[]), image_upload_ids (integer[]), website_url (string), logo_upload_id (integer), intro (string), cert_node_id (integer), coupon_code (string) | 201 order |
POST /promo/coupons/quote | Session | JSON code (string), product_type (string), ad_size (string), months (integer), purpose (string), target_id (integer) | 200 quote |
POST /promo/impressions | Public | JSON ids (integer[]) | 204 |
PUT /promo/merchant | Session | JSON name (string), website_url (string), intro (string), logo_upload_id (integer), card (object) | 200 merchant |
GET /promo/merchants | Public | — | 200 merchants, categories, glyphs |
GET /promo/my | Session | — | 200 merchant, nodes, ads, orders |
GET /promo/orders/{number} | Session | — | 200 order |
POST /promo/orders/{number}/pay | Session | JSON pay_type (string) · pay_type accepts alipay or usdt | 200 pay_type, pay_info, order_number (the returned pay_type indicates the next action, such as free or jump) |
GET /promo/pricing | Public | — | 200 pricing, capacity, pay_types |
GET /promo/referral | Session | Query page | 200 referral, commissions |
POST /promo/referral/join | Session | — | 204 |
POST /promo/renew | Session | JSON product_type (string), target_id (integer), months (integer), coupon_code (string) | 201 order |
GET /promo/withdrawals | Session | Query source, page | 200 withdrawals |
POST /promo/withdrawals | Session | JSON amount_cents (integer), wallet_address (string) | 201 withdrawal |
GET /wallet | Session | Query page, direction | 200 wallet, entries, withdrawals, per_page |
POST /wallet/withdrawals | Session | JSON amount_cents (integer), wallet_address (string) | 201 withdrawal |
Payment integrations
| Method and path | Access | Inputs | Success |
|---|---|---|---|
GET /pay/apps | Session | — | 200 apps |
POST /pay/apps | Session | JSON name (string), website_url (string), callback_url (string), description (string), merchant_public_key (string), exchange_rate (string), currency (string) | 201 app (save the one-time app.token from the creation response) |
GET /pay/apps/{id} | Session | — | 200 app |
PUT /pay/apps/{id} | Session | JSON name (string), website_url (string), callback_url (string), description (string), merchant_public_key (string), exchange_rate (string), currency (string) | 200 app |
DELETE /pay/apps/{id} | Session | — | 204 |
POST /pay/apps/{id}/keypair | Session | — | 200 private_key, public_key |
POST /pay/apps/{id}/md5-key | Session | — | 200 epay_md5_key |
GET /pay/apps/{id}/orders | Session | Query status | 200 orders, pending_30d, refunded_30d |
POST /pay/apps/{id}/orders/{tx}/refund | Session | — | 200 transaction_id, status |
POST /pay/apps/{id}/token | Session | — | 200 token |
Open Login apps
| Method and path | Access | Inputs | Success |
|---|---|---|---|
GET /oauth/apps | Session | — | 200 apps |
POST /oauth/apps | Session | JSON name (string), description (string), website_url (string), redirect_uris (string[]), scopes (string[]), min_trust_level (integer) | 201 app (save the one-time app.client_secret from the creation response) |
GET /oauth/apps/{id} | Session | — | 200 app |
PUT /oauth/apps/{id} | Session | JSON name (string), description (string), website_url (string), redirect_uris (string[]), scopes (string[]), min_trust_level (integer) | 200 app |
DELETE /oauth/apps/{id} | Session | — | 204 |
POST /oauth/apps/{id}/secret | Session | — | 200 client_secret |
GET /oauth/grants | Session | — | 200 grants |
DELETE /oauth/grants/{id} | Session | — | 204 |
