Core Resources
- Tokens
- Customers
- Offerings
- Offering Purchase Intents
- Transactions
- Holders
- Organizations
- Wallets
- Offers
Offering Purchase Intents
Create an offering purchase intent
Create offering purchase intent
POST
/
offering-purchase-intent
Copy
curl --request POST \
--url https://api.decentri.org/offering-purchase-intent \
--header 'Content-Type: application/json' \
--data '{
"customerId": "cm23H3Rpb24vMTIzNA75",
"walletAddress": "0x49a491f024dc14DA7e57705600182Ff51511B07e",
"offeringId": "cmVhY3Rpb24vMTIzNA75",
"payment": {
"purchaseAmount": 100,
"tokenAmount": 100.1,
"currency": "USD"
}
}'
Copy
{
"offeringPurchaseIntentId": "cmVhY3Rpb24vMTIzNA75",
"offeringId": "cmVhY3Rpb24vMTIzNA75",
"walletAddress": "0x49a491f024dc14DA7e57705600182Ff51511B07e",
"customerId": "cm23H3Rpb24vMTIzNA75",
"payment": {
"purchaseAmount": 100,
"tokenAmount": 100.1,
"purchaseStatus": "COMPLETED",
"currency": "USD"
},
"createdAt": "2025-01-01T00:00:00.000Z",
"updatedAt": "2025-01-01T00:00:00.000Z"
}
Body
application/json
Response
200
application/json
The offering purchase intent has been successfully created
The response is of type object
.
Copy
curl --request POST \
--url https://api.decentri.org/offering-purchase-intent \
--header 'Content-Type: application/json' \
--data '{
"customerId": "cm23H3Rpb24vMTIzNA75",
"walletAddress": "0x49a491f024dc14DA7e57705600182Ff51511B07e",
"offeringId": "cmVhY3Rpb24vMTIzNA75",
"payment": {
"purchaseAmount": 100,
"tokenAmount": 100.1,
"currency": "USD"
}
}'
Copy
{
"offeringPurchaseIntentId": "cmVhY3Rpb24vMTIzNA75",
"offeringId": "cmVhY3Rpb24vMTIzNA75",
"walletAddress": "0x49a491f024dc14DA7e57705600182Ff51511B07e",
"customerId": "cm23H3Rpb24vMTIzNA75",
"payment": {
"purchaseAmount": 100,
"tokenAmount": 100.1,
"purchaseStatus": "COMPLETED",
"currency": "USD"
},
"createdAt": "2025-01-01T00:00:00.000Z",
"updatedAt": "2025-01-01T00:00:00.000Z"
}
Assistant
Responses are generated using AI and may contain mistakes.