Delete Portfolio Asset
Products | D&B Direct 2.0, D&B Direct Onboard |
Product Code(s) | Not Applicable |
Options(s) | None |
Monitoring Available | No |
Interface | REST |
Method | DELETE |
Format(s) | JSON |
Service | Portfolio |
{version} | 2.0 |
Initial Release | October 3, 2013 |
Allows a customer to manually remove a previously ordered product from the Portfolio; however, items are automatically removed when they expire.
Update History
No modifications have been made to this data layer since the initial release.
What to do First
Before you can retrieve or delete an asset(s), you need to perform the following operation to obtain the asset ID value(s).
Feature Request
IMPORTANT: Please see the new Online Services Security Enhancement Release, effective November 09, 2020.
Overview
D&B Direct customers are assigned a temporary storage area where copies of the data and report products requested via the API can be retained for 120 days (extendable up to 365 days or remaining length of the current contract, whichever is less). This portfolio feature provides a convenient way to retrieve previously accessed information for comparison or recovery purposes.
When the archiving option is selected, a portfolio asset ID is returned by requests for a D&B Direct data or report product. This asset ID can be used to retrieve the copied information from the portfolio. Alternatively, a separate service exists that can be used to obtain a list of the portfolio contents.
Three operations (List, Retrieve and Delete) are provided to access and manage the information contained in the Product Request Archive.
Data Layer Entitlement
For customers in U.S. and Canadian markets, the API is provisioned for specific collections of products, reports, and/or features (collectively referred to as data layers) for production and trial usage. Entitlement is not required for testing in the sandbox environment.
- This particular feature does not require entitlement for production and trial usage for D&B Direct 2.0 customers.
For customers in the UK, Ireland, Belgium, Netherlands and Luxembourg markets, the API is provisioned as a specific set of data layers for production, trial, and sandbox usage.
- This particular data layer is included in the D&B Direct Onboard 2.0 suite.
Specification
Restriction: The sequence of Request Parameters submitted to POST/PUT operations currently MUST follow the order presented in this section. This applies to REST calls only.
Restriction: An XML namespace statement MUST be included as the first statement within the primary Aggregate of the request. Please refer to the Sample Request for an example. This applies to REST calls only.
POST http://services-ext-stg.dnb.com/V2/assets HTTP/1.1 Content-Type: application/json Authorization: <MyToken> { "por:ArchivePortfolioAssetRequest": { "@xmlns$por":"http://services.dnb.com/PortfolioServiceV2.0", "ArchivePortfolioAssetRequestDetail": { "SubjectDetail": { "DUNSNumber": "799901301" }, "Product": { "DNBProductID": "BIR" }, "ProductSpecificDetail": { "AdditionalParameter": { "ParameterDescription": "FirstName", "ParameterValue": "John" }, "AdditionalParameter": { "ParameterDescription": "LastName", "ParameterValue": "Doe" }, "AdditionalParameter": { "ParameterDescription": "Organization", "ParameterValue": "Gorman Manufacturing" }, }, "InquiryReferenceDetail": { "CustomerReferenceText": "Archive Portfolio", "CustomerBillingEndorsementText": "Archive Portfolio" } } } }
Name | Characteristics |
---|---|
ApplicationTransactionID | string up to 64 chars., Optional |
TransactionTimestamp | dateTime, Optional |
SubmittingOfficeID | string up to 64 chars., Optional |
{assetID} | PortfolioAssetIDType, Required An identifier which unqiuely identifies a report in the users portfolio. |
Endpoint
Use the following endpoint for requesting this feature. The {version} is dependent on the underlying service delivering the response.
Endpoint (Portfolio) |
---|
DELETE https://direct.dnb.com/V{version}/assets/{assetid} |
Testing
This operation will function the same regardless of the environment. Portfolio operation requests made in the D&B Direct sandbox (test) environment will return results based on any previous product calls performed using sandbox credentials.
Feature Response
NOTE: The D&B Direct REST implementation uses the BadgerFish approach for JSON with some minor variations.
Specification
The following is a list of the possible data fields returned by this operation in the JSON response. Samples are provided for testing successful and failed retrieval, and to demonstrate the basic layout of a response. The data returned in samples may not represent actual values that this feature will deliver.
NOTE: The D-U-N-S Number returned in the response will be a nine-digit zero-padded, numeric value.
{"ArchivePortfolioAssetResponse": { "TransactionDetail": { "ApplicationTransactionID": null, "TransactionTimestamp": "2013-11-06T16:46:52.251-05:00" }, "TransactionResult": { "SeverityText": "Information", "ResultID": "CM000", "ResultText": "Success" }, "ArchivePortfolioAssetResponseDetail": {"PortfolioAssetID": 4814241} }}
Response Codes & Error Handling
Successful service requests will return a CM000 response code in the TransactionResult ResultID field. Otherwise, one of the D&B Direct standard response codes will be returned.
This operation may return the following response codes: CM001, CM004, PT001, and SC001-SC009.
Operation-specific supplemental response code explanations:
PT001 | No Portfolio asset not found for given portfolio asset identifier or investigation tracking ID or asset removed from archive. |
D&B Direct 2.0 API requests are provided on a metered basis; and may require entitlement prior to use in the production environment. In addition, a concurrency limit (QPS) is monitored to ensure that it is not exceeded. An error code will be returned in the event that a transaction is throttled.
While this operation is provided on a metered basis, usage is tracked; however, no billing for successful calls is recorded.
Feature Notes
While the portfolio feature is utilized by other D&B services, only items created by D&B Direct can be managed using this service.
The portfolio feature is also utilized by the D&B Direct Investigation Service.