Home

Awesome

Quick E-cash

Build Status Coverage Status Releases Downloads Releases Releases Downloads

API Reference

Common Paragrams

Paragrams

nametypeoptional
timestampintfalse
noncestringfalse
signstringfalse
timestamp

Unix timestamp

sign

RSA SHA256 signature

  1. Sort all the parameters (exclude text and array paragrams) with keys and turn it into http_query string (no url-encoding).
  2. Sign the string with private key by SHA256.
  3. Encode the signature by BASE64.

POST /api/orders

Submit an order

Paragrams

nametypeoptional
merchandiser_idintfalse
trade_nostringfalse
subjectstringfalse
amountfloatfalse
itemsarraytrue
returnUrlstringfalse
notifyUrlstringfalse

Return

Order object or error info

Redirect /orders/:order_id

Process an order

GET /api/orders/:order_id

Query an order

Paragrams

none

Return

Order object or error info

PUT /api/orders/:order_id

PATCH /api/orders/:order_id

Modify an order

Paragrams

nametypeoptional
subjectstringtrue
amountfloattrue
itemsarraytrue

Return

Order object or error info

POST /api/orders/:order_id

Complete an order

Paragrams

nametypeoptional
trade_nostringfalse

Return

Order object or error info

DELETE /api/orders/:order_id

Delete an order

Paragrams

nametypeoptional
trade_nostringfalse

Return

Null or error info

TODO

License

The MIT License (MIT)

More info see LICENSE