Definition
https://sandbox.bluesnap.com/services/2/report/dynamic-def/{report ID}
Documentation
This request allows you to update 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
In the request body, send a customReport object, with the following:
id
integer required
title
string required
info
string optional
category
string required
columns
array required
Response Details
If successful, the response HTTP status code is 200 OK.
The response body contains the customReport object.
Examples
Request Examples
curl -v -X PUT https://sandbox.bluesnap.com/services/2/report/dynamic-def/7637 \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
{
"id": 7637,
"category": "TransactionCategory",
"title": "Transaction Report 1",
"info": "My custom transaction report",
"columns": [
{
"name": "Merchant Sales (Auth Currency)"
},
{
"name": "Auth. Currency"
},
{
"name": "Merchant Transaction ID"
},
{
"name": "Transaction Date"
},
{
"name": "Transaction Type"
}
]
}'
Reponse Examples
{
"id": 7637,
"category": "TransactionCategory",
"title": "Transaction Report 1",
"info": "My custom transaction report",
"columns": [
{
"name": "Merchant Sales (Auth Currency)"
},
{
"name": "Auth. Currency"
},
{
"name": "Merchant Transaction ID"
},
{
"name": "Transaction Date"
},
{
"name": "Transaction Type"
}
]
}
Example Description
Update Custom Report
This request shows how to update an existing custom report. Include the report's id
in the request URL, as shown in the example, and include the desired report changes in the body. Please note that if a property is omitted from the request, that property will be removed from the existing report. It is recommended that you first retrieve the report, make any updates, and then send the Update Custom Report request.