POST
/
v1
/
reports
curl --request POST \
  --url https://api.malga.io/v1/reports \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --header 'X-Client-Id: <api-key>' \
  --data '{
  "value": {
    "sendTo": "user@example.com",
    "type": "transactions",
    "fields": [
      "transaction__id",
      "transaction__created_at",
      "transaction__status"
    ],
    "filters": {
      "transactionRequestPaymentMethod": [
        "pix"
      ],
      "transactionStatus": [
        "authorized"
      ],
      "transactionCreatedAt": {
        "gte": "2019-08-24T14:15:22Z",
        "lte": "2019-08-24T14:15:22Z"
      },
      "transactionMerchantId": "c5ec17c6-4be7-42ba-8e07-b8b27d992bfd"
    }
  }
}'
{
  "value": {
    "id": "3a4f49ca-f714-4ed5-b415-6556d87645f6",
    "clientId": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "email": "user@example.com",
    "language": "pt",
    "status": "pending",
    "type": "string",
    "pagesCount": null,
    "files": null,
    "fields": [
      "transaction__id",
      "transaction__created_at",
      "transaction__status"
    ],
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z",
    "expiredAt": "2019-08-24T14:15:22Z",
    "timezone": "America/Sao_Paulo",
    "filters": {
      "transactionRequestPaymentMethod": [
        "pix"
      ],
      "transactionStatus": [
        "authorized"
      ],
      "transactionCreatedAt": {
        "gte": "2019-08-24T14:15:22Z",
        "lte": "2019-08-24T14:15:22Z"
      },
      "transactionMerchantId": "c5ec17c6-4be7-42ba-8e07-b8b27d992bfd"
    }
  }
}

Authorizations

X-Client-Id
string
header
required
X-Api-Key
string
header
required

Headers

accept-language
enum<string>
default:en

Idioma da exportação

Available options:
en,
pt
X-User-Timezone
string
default:America/Sao_Paulo

Timezone local do cliente no formato tz database

Body

application/json

Possuí somente o ultimo status de transação

Response

201
application/json

Created

The response is of type object.