DELETE
/Investment/Price
Usage Notes
When
- Remove pricing data for test investments before production
- Delete records after discovering systematic bulk upload errors
- Prepare for investment deletion (requires no price records)
Requirements
- No transactions can reference this investment's pricing
- No distribution records can reference this pricing
Notes
- Deletes ALL price records for the investment (not individual dates)
- Deletion is permanent with no recovery mechanism
- Contact support for individual date corrections
Description
Permanently deletes investment price records from the 7G platform. This operation has strict business rules to prevent deletion of pricing data that has been used for transaction processing or regulatory reporting.
Required Headers - See Authentication
| Header | Value | Description |
|---|---|---|
| Authorization | {accessToken} | Bearer token for API access |
| Version | 2.0 | API version identifier |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
ProductID |
integer | Native product identifier for product ownership validation (verifies investment belongs to product before deleting ALL price records). | |
ExternalProductId |
string | External product identifier for cross-system integration (alternative to ProductID, resolves to native ProductID for validation). | |
InvestmentID |
integer | Native investment identifier specifying which investment's ALL price records will be permanently deleted (validates no transaction dependencies or distribution references). | |
ExternalInvestmentId |
string | External investment identifier for cross-system price deletion (must be combined with ProductID or ExternalProductId for scoping). |
ProductID
Native product identifier for product ownership validation (verifies investment belongs to product before deleting ALL price records).
ExternalProductId
External product identifier for cross-system integration (alternative to ProductID, resolves to native ProductID for validation).
InvestmentID
Native investment identifier specifying which investment's ALL price records will be permanently deleted (validates no transaction dependencies or distribution references).
ExternalInvestmentId
External investment identifier for cross-system price deletion (must be combined with ProductID or ExternalProductId for scoping).
Parameter Combinations
Investment identification (choose one):
- Option 1: InvestmentID + ProductID
- Option 2: ExternalInvestmentId + ProductID
- Option 3: ExternalInvestmentId + ExternalProductId
Note: The system will delete ALL price records for the specified investment. To delete a specific price date, contact support for data correction procedures.
Example Requests
bash
# Delete all prices for an investment using native IDs
curl -X DELETE 'https://api.7g.com.au/Investment/Price?ProductID=100&InvestmentID=12345' \
-H 'Authorization: {accessToken}' \
-H 'Version: 2.0'
# Delete using external IDs
curl -X DELETE 'https://api.7g.com.au/Investment/Price?ExternalProductId=FUND-001&ExternalInvestmentId=INV-001' \
-H 'Authorization: {accessToken}' \
-H 'Version: 2.0'
# Delete using mixed ID types
curl -X DELETE 'https://api.7g.com.au/Investment/Price?ProductID=100&ExternalInvestmentId=INV-001' \
-H 'Authorization: {accessToken}' \
-H 'Version: 2.0'Response Examples
json
{
"result": true,
"message": "Investment price deleted successfully",
"recordCount": 0,
"data": null
}