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"
}
}'{
"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"
}Create offering purchase intent
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"
}
}'{
"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"
}The offering purchase intent has been successfully created
The response is of type object.