DELETE
/Investment/Price
When to Use
- Remove all pricing data for test investments before production deployment
- Delete all pricing records after discovering systematic errors in bulk uploads
- Prepare for investment deletion (Investment DELETE requires no price records exist)
- Clean up pricing data for cancelled investment products
Prerequisites
- NO transactions can reference this pricing
Considerations
- Endpoint deletes ALL price records for specified investment (not individual dates)
- Cannot delete if ANY transactions processed using this investment's pricing
- Deletion removes historical pricing needed for portfolio valuation history
- Deletion is permanent with no recovery mechanism
- Cannot delete if distribution records reference this pricing
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
}