Update Custom Report

Definition

https://sandbox.bluesnap.com/services/2/report/dynamic-def/{report ID}


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:

Property

Type

Required

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"
    }
  ]
}