Diagon Alley: Decentralised Market-Stalls

Each Stall has its own keys!

  1. Create Shipping Zones you're willing to ship to
  2. Create a Stall to list yiur products on
  3. Create products to put on the Stall
  4. List stalls on a simple frontend shop page, or point at Nostr shop client key
Make a list of products to sell, point your list of products at a public relay. Buyers browse your products on the relay, and pay you directly. Ratings are managed by the relay. Your stall can be listed in multiple relays, even over TOR, if you wish to be anonymous.
More information on the Diagon Alley Protocol
Created by, Ben Arc

GET /diagonalley/api/v1/stall/products/<relay_id>
Body (application/json)
Returns 201 CREATED (application/json)
Product JSON list
Curl example
curl -X GET {{ request.url_root }}api/v1/stall/products/<relay_id>
POST /diagonalley/api/v1/stall/order/<relay_id>
Body (application/json)
{"id": <string>, "address": <string>, "shippingzone": <integer>, "email": <string>, "quantity": <integer>}
Returns 201 CREATED (application/json)
{"checking_id": <string>,"payment_request": <string>}
Curl example
curl -X POST {{ request.url_root }}api/v1/stall/order/<relay_id> -d '{"id": <product_id&>, "email": <customer_email>, "address": <customer_address>, "quantity": 2, "shippingzone": 1}' -H "Content-type: application/json"
GET /diagonalley/api/v1/stall/checkshipped/<checking_id>
Headers
Returns 200 OK (application/json)
{"shipped": <boolean>}
Curl example
curl -X GET {{ request.url_root }}api/v1/stall/checkshipped/<checking_id> -H "Content-type: application/json"