Skip to content

Deal making

Slava Ruckis edited this page Sep 10, 2019 · 1 revision

Public deals

Normally, when creating a deal, you have to specify the other party. Public deals have no such requirement. It means that anyone willing can join in and trade with you. You can share a public deal with others directly (such as by email or text message), on social media, or use the provided link and post it anywhere you like. If you have found a public deal on the web, you can press "I'm interested" – then you will enter into the deal and become a party to it. You will still be able to negotiate the details or cancel the deal before signing it.

You can find all public deals in the Monetha deal listing.

To create a public deal, use:

curl -X POST \
  https://api.monetha.io/mth/v1/deals \
  -H 'Authorization: <TOKEN>' \
  -H 'Content-Type: application/json' \
  -d '{
  "deal_type": "goods",
  "seller_id": "<YOUR_ID>",
  "total": 1.12,
  "currency": "EUR",
  "title": "<TITLE>",
  "description": "<DESCRIPTION>" ,
  "condition": "used",
  "is_defected": false
}'

Private deals

The flow for creating a private deal flow is similar to public deal creation. Only in the last step is the user required to provide the recipient's phone number.

Rest API request:

curl -X POST \
  https://api.monetha.io/mth/v1/deals \
  -H 'Authorization: <TOKEN>' \
  -H 'Content-Type: application/json' \
  -d '{
  "deal_type": "goods",
  "buyer_id": "<BUYER_ID>",
  "seller_id": "<YOUR_ID>",
  "total": 1.12,
  "currency": "EUR",
  "title": "<TITLE>",
  "description": "<DESCRIPTION>" ,
  "condition": "used",
  "is_defected": false
}'

Enabling in-app direct payments

Enable direct payments in the app's Deal settings section.

Clone this wiki locally