POST
/
bulletin-board
/
offer
/
{offerId}
/
cancel
Cancel an offer
curl --request POST \
  --url https://api.decentri.org/bulletin-board/offer/{offerId}/cancel \
  --header 'Content-Type: application/json' \
  --data '{
  "customerId": "customer_5cde23a7c1d24b269b843ce195cbd5a8"
}'
{
  "tokenId": "0xabc1234567890def1234567890abcdef12345678",
  "makerWalletAddress": "0x12b5aEDEb98767823Dd473bE7C88A8203FaA7Ee8",
  "takerWalletAddress": "0xA74269C3DE980723A1D49a017cBbD1839C41D4e7",
  "amount": 5,
  "priceInEuro": 250.75,
  "status": "OPEN",
  "intention": "BUY",
  "maker": {
    "id": "customer_c7a968e665d9",
    "object": "customer",
    "name": "John Doe",
    "email": "john.doe@example.com",
    "phone": "+1234567890",
    "metadata": {
      "userId": "2b634b51-7f4a-470b-9bd6-c7a968e665d9"
    },
    "address": {
      "line1": "1234 Main St",
      "line2": "Suite 200",
      "city": "Anytown",
      "state": "CA",
      "postalCode": "12345",
      "countryCode": "US"
    },
    "verificationStatus": "IN_PROGRESS",
    "wallets": [
      {
        "address": "0x1234567890123456789012345678901234567890",
        "object": "wallet",
        "balances": {
          "token": "0x4dad19801eff64eaaa7c78e466ce3678d0b1fd94",
          "total": "1000",
          "available": {
            "amount": "<any>"
          },
          "frozen": {
            "amount": "<any>"
          }
        }
      }
    ],
    "type": "INDIVIDUAL",
    "countryCode": "US"
  },
  "taker": {
    "id": "customer_c7a968e665d9",
    "object": "customer",
    "name": "John Doe",
    "email": "john.doe@example.com",
    "phone": "+1234567890",
    "metadata": {
      "userId": "2b634b51-7f4a-470b-9bd6-c7a968e665d9"
    },
    "address": {
      "line1": "1234 Main St",
      "line2": "Suite 200",
      "city": "Anytown",
      "state": "CA",
      "postalCode": "12345",
      "countryCode": "US"
    },
    "verificationStatus": "IN_PROGRESS",
    "wallets": [
      {
        "address": "0x1234567890123456789012345678901234567890",
        "object": "wallet",
        "balances": {
          "token": "0x4dad19801eff64eaaa7c78e466ce3678d0b1fd94",
          "total": "1000",
          "available": {
            "amount": "<any>"
          },
          "frozen": {
            "amount": "<any>"
          }
        }
      }
    ],
    "type": "INDIVIDUAL",
    "countryCode": "US"
  }
}

Path Parameters

offerId
string
required

Body

application/json
customerId
string
required

The ID of the customer canceling the offer.

Example:

"customer_5cde23a7c1d24b269b843ce195cbd5a8"

Response

Offer cancelled successfully.

tokenId
string
required

The token that is being offered to be traded for.

Example:

"0xabc1234567890def1234567890abcdef12345678"

makerWalletAddress
string
required

The wallet address of the customer who made the offer.

Example:

"0x12b5aEDEb98767823Dd473bE7C88A8203FaA7Ee8"

takerWalletAddress
object | null
required

The wallet address of the customer who accepts the offer (if accepted).

Example:

"0xA74269C3DE980723A1D49a017cBbD1839C41D4e7"

amount
number
required

The quantity of tokens involved in the offer.

Example:

5

priceInEuro
number
required

The total price in euros for the offer.

Example:

250.75

status
enum<string>
required

The current status of the offer.

Available options:
OPEN,
CANCELLED,
FILLED
Example:

"OPEN"

intention
enum<string>
required

The intention of the offer maker.

Available options:
BUY,
SELL
Example:

"BUY"

maker
object
required

The customer who made the offer.

taker
object
required

The customer who accepted the offer (if accepted).