Core Resources
- Tokens
- Customers
- Offerings
- Offering Purchase Intents
- Transactions
- Holders
- Organizations
- Wallets
- Offers
Offers
Accept an offer
Accept an available offer. Once accepted, the trade is executed and the offer is marked as completed.
POST
/
bulletin-board
/
offer
/
{offerId}
/
accept
Copy
curl --request POST \
--url https://api.decentri.org/bulletin-board/offer/{offerId}/accept \
--header 'Content-Type: application/json' \
--data '{
"customerId": "customer_c194be5e3c3e49a3a8d6d6be6320b14f",
"takerWalletAddress": "0xBa34C2E7aF3Df37842B1A6B382A8c7Dd5c6D2e47"
}'
Copy
{
"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": "0"
},
"frozen": {
"amount": "1000"
}
}
}
],
"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": "0"
},
"frozen": {
"amount": "1000"
}
}
}
],
"type": "INDIVIDUAL",
"countryCode": "US"
}
}
Path Parameters
Body
application/json
Response
200
application/json
Offer accepted successfully.
The response is of type object
.
Copy
curl --request POST \
--url https://api.decentri.org/bulletin-board/offer/{offerId}/accept \
--header 'Content-Type: application/json' \
--data '{
"customerId": "customer_c194be5e3c3e49a3a8d6d6be6320b14f",
"takerWalletAddress": "0xBa34C2E7aF3Df37842B1A6B382A8c7Dd5c6D2e47"
}'
Copy
{
"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": "0"
},
"frozen": {
"amount": "1000"
}
}
}
],
"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": "0"
},
"frozen": {
"amount": "1000"
}
}
}
],
"type": "INDIVIDUAL",
"countryCode": "US"
}
}
Assistant
Responses are generated using AI and may contain mistakes.