LNbits Market (Nostr support coming soon)
- Create Shipping Zones you're willing to ship to
- Create a Stall to list yiur products on
- Create products to put on the Stall
- Take orders
- Includes chat support!
The first LNbits market idea 'Diagon Alley' helped create Nostr, and soon
this market extension will have the option to work on Nostr 'Diagon Alley'
mode, by the merchant, market, and buyer all having keys, and data being
routed through Nostr relays.
Created by,
Tal Vasconcelos,
Ben Arc
GET
/market/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
/market/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
/market/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"