POST
/
offering-purchase-intent
curl --request POST \
  --url https://api.decentri.org/offering-purchase-intent \
  --header 'Content-Type: application/json' \
  --data '{
  "customerId": "0x49a491f024dc14DA7e53705600182Ff51511H07e",
  "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"
}

Body

application/json
customerId
string
required

The customer ID

Example:

"0x49a491f024dc14DA7e53705600182Ff51511H07e"

walletAddress
string
required

The wallet address

Example:

"0x49a491f024dc14DA7e57705600182Ff51511B07e"

offeringId
string
required

The offering ID

Example:

"cmVhY3Rpb24vMTIzNA75"

payment
object
required

The payment

Response

200
application/json
The offering purchase intent has been successfully created
offeringPurchaseIntentId
string
required

The offering purchase intent ID

Example:

"cmVhY3Rpb24vMTIzNA75"

offeringId
string
required

The offering ID

Example:

"cmVhY3Rpb24vMTIzNA75"

walletAddress
string
required

The wallet address

Example:

"0x49a491f024dc14DA7e57705600182Ff51511B07e"

customerId
string
required

The customer ID

Example:

"cm23H3Rpb24vMTIzNA75"

payment
object
required

The payment

createdAt
string
required

The date the offering purchase intent was created

Example:

"2025-01-01T00:00:00.000Z"

updatedAt
string
required

The date the offering purchase intent was last updated

Example:

"2025-01-01T00:00:00.000Z"