Investor
post
Store investor payment
Authorizations
Body
investorAddressstringRequiredExample:
The address of the investor. Required.
0x198ae62CAD1b9ecf58FfFaA36c0c85E6A84748B0Pattern: ^(0x)[0-9a-fA-F]{40}$tokenAddressstringRequiredExample:
The address of the security token. Required.
0xb720f93879de10B7c080834464C4bA289E7Aa35EPattern: ^(0x)[0-9a-fA-F]{40}$hashstringOptionalExample:
Transaction hash. Optional.
0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdefPattern: ^(0x)[0-9a-fA-F]{64}$datestring · date-timeOptionalExample:
Date of the transaction. Optional.
2024-08-20T14:30:00Zstatusstring · enumOptionalExample:
Status of the transaction. Optional.
PAIDPossible values: amountnumberOptionalExample:
Amount of the transaction. Optional.
1000seriestring · enumOptionalExample:
Series type. Optional.
SENIORPossible values: typestring · enumOptionalExample:
Type of the transaction. Optional.
JUROSPossible values: Responses
200
Successful response indicating the result of the operation.
application/json
400
Error
application/json
post
/investorPOST /investor HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 292
{
"investorAddress": "0x198ae62CAD1b9ecf58FfFaA36c0c85E6A84748B0",
"tokenAddress": "0xb720f93879de10B7c080834464C4bA289E7Aa35E",
"hash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"date": "2024-08-20T14:30:00Z",
"status": "PAID",
"amount": 1000,
"serie": "SENIOR",
"type": "JUROS"
}{
"status": "success",
"message": "Investor payment stored successfully."
}get
Get investor payment by token
Authorizations
Path parameters
addressstringRequiredExample:
Investor's wallet address.
0x1234567890abcdef1234567890abcdef12345678Pattern: ^(0x)[0-9a-fA-F]{40}$tokenAddressstringRequiredExample:
Investor's tokenAddress address.
0x1234567890abcdef1234567890abcdef12345678Pattern: ^(0x)[0-9a-fA-F]{40}$Responses
400
Error
application/json
get
/investor/{address}/{tokenAddress}GET /investor/{address}/{tokenAddress} HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
400
Error
{
"statusCode": "text",
"error": "text",
"message": "text"
}put
Update investor payment
Authorizations
Path parameters
addressstringRequiredExample:
Investor's wallet address.
0x1234567890abcdef1234567890abcdef12345678Pattern: ^(0x)[0-9a-fA-F]{40}$idnumberRequired
Body
hashstringRequiredExample:
Transaction hash. Optional.
0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdefPattern: ^(0x)[0-9a-fA-F]{64}$datestring · date-timeRequiredExample:
Date of the transaction. Optional.
2024-08-20T14:30:00Zstatusstring · enumRequiredExample:
Status of the transaction. Optional.
PAIDPossible values: amountnumberRequiredExample:
Amount of the transaction. Optional.
1000Responses
200
Successful operation response.
application/json
400
Error
application/json
put
/investor/{address}/{id}PUT /investor/{address}/{id} HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 137
{
"hash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"date": "2024-08-20T14:30:00Z",
"status": "PAID",
"amount": 1000
}{
"status": "success",
"message": "Investor payment updated successfully."
}Was this helpful?

