{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"optional","settings":"","results":{"codes":[]},"params":[],"examples":{"codes":[]},"method":"delete"},"next":{"description":"","pages":[]},"title":"Delete Custom Report","type":"endpoint","slug":"delete-custom-report","excerpt":"","body":"## Definition\nhttps<span>://sandbox.bluesnap.com/services/2/report/dynamic-def/{report ID}</span>\n\n<hr>\n\n## Documentation\nThis request allows you to delete an existing custom report. \n\n### Request Content\nEnter the report's ID in the request URL, as follows: \n\n`services/2/report/dynamic-def/{report ID}`\n\nFor example: `services/2/report/dynamic-def/12141`\n\nNo content is required in the request body. \n\n### Response Details \nIf successful, the response HTTP status code is 200 OK.\nThe response contains the deleted **[customReport](doc:custom-report-object)** object. \n\n<hr>\n\n## Examples \n### Request Examples \n[block:code]\n{\n \"codes\": [\n {\n \"code\": \"curl -v -X DELETE https://sandbox.bluesnap.com/services/2/report/dynamic-def/7633 \\\\\\n-H 'Content-Type: application/json' \\\\\\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\",\n \"language\": \"curl\",\n \"name\": \"Delete Custom Report\"\n }\n ]\n}\n[/block]\n### Response Examples\n[block:code]\n{\n \"codes\": [\n {\n \"code\": \"{\\n \\\"id\\\": 7633,\\n \\\"category\\\": \\\"TransactionCategory\\\",\\n \\\"title\\\": \\\"myReport\\\",\\n \\\"columns\\\": [\\n {\\n \\\"name\\\": \\\"Invoice ID\\\"\\n },\\n {\\n \\\"name\\\": \\\"Original Invoice ID\\\"\\n },\\n {\\n \\\"name\\\": \\\"Merchant Transaction ID\\\"\\n }\\n ]\\n}\",\n \"language\": \"json\",\n \"name\": \"200 OK\"\n }\n ]\n}\n[/block]","updates":[],"order":5,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"6197defc41c8040154bcbaca","createdAt":"2020-11-03T17:05:27.073Z","user":"5ea72d649148ff00653f6bbc","category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"Custom Reporting API","slug":"dynamic-reporting-api","order":2,"from_sync":false,"reference":false,"_id":"6197defc41c8040154bcba72","createdAt":"2020-11-03T16:46:14.694Z","version":"6197defc41c8040154bcbaea","project":"57336fd5a6a9c40e00e13a0b","__v":0},"version":{"version":"8976-Tools","version_clean":"8976.0.0-Tools","codename":"3.40 Release","is_stable":false,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["6197defc41c8040154bcba61","6197defc41c8040154bcba62","6197defc41c8040154bcba63","6197defc41c8040154bcba64","6197defc41c8040154bcba65","6197defc41c8040154bcba66","6197defc41c8040154bcba67","6197defc41c8040154bcba68","6197defc41c8040154bcba69","6197defc41c8040154bcba6a","6197defc41c8040154bcba6b","6197defc41c8040154bcba6c","5b34c737e0dca2000311de6a","60957f4cce403c0045a031ef","6197defc41c8040154bcba6d","6197defc41c8040154bcba6e","6197defc41c8040154bcba6f","6197defc41c8040154bcba70","6197defc41c8040154bcba71","6197defc41c8040154bcba72"],"_id":"6197defc41c8040154bcbaea","project":"57336fd5a6a9c40e00e13a0b","__v":0,"forked_from":"60957f4cce403c0045a03255","createdAt":"2018-04-23T15:17:35.680Z","releaseDate":"2018-04-23T15:17:35.680Z"},"project":"57336fd5a6a9c40e00e13a0b","__v":0,"parentDoc":null}
deleteDelete Custom Report
Definition
https://sandbox.bluesnap.com/services/2/report/dynamic-def/{report ID}
Documentation
This request allows you to delete an existing custom report.
Request Content
Enter the report's ID in the request URL, as follows:
services/2/report/dynamic-def/{report ID}
For example: services/2/report/dynamic-def/12141
No content is required in the request body.
Response Details
If successful, the response HTTP status code is 200 OK.
The response contains the deleted customReport object.
Examples
Request Examples
curl -v -X DELETE https://sandbox.bluesnap.com/services/2/report/dynamic-def/7633 \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
{
"id": 7633,
"category": "TransactionCategory",
"title": "myReport",
"columns": [
{
"name": "Invoice ID"
},
{
"name": "Original Invoice ID"
},
{
"name": "Merchant Transaction ID"
}
]
}