Method for Working with Transactions

To work with transactions, execute requests using the "resources" API method (determine user token before executing the request):

curl '<IP address or DNS server name>/api/v1/resources/<data source resource name>/transactions/' -H "Authorization: Bearer <user token>"

The example of response:

[
  {
    "uuid":"8d26e8b6-91a6-4dc0-a70f-6fdc01b34bb3",
    "create_date":"2021-11-26T16:34:02.032741+03:00",
    "response_status":200,
    "credential":"mobile_data",
    "user":"analyst",
    "device":3,
    "request_headers":"
      {
        'HTTP_X_FORWARDED_HOST': 'fmphost',
        'HTTP_X_FORWARDED_PROTO': 'http',
        'HTTP_REQUEST_ID': '7c99d750536015778038b3a1eb4ceb18',
        'HTTP_HOST': 'hhive',
        'HTTP_CONNECTION': 'close',
        'CONTENT_LENGTH': '41',
        'HTTP_USER_AGENT': 'curl/7.68.0',
        'HTTP_ACCEPT': '*/*',
        'HTTP_AUTHORIZATION': 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwcm9qZWN0X2lkIjoxLCJlbnZpcm9ubWVudCI6ImVudl9kZXYiLCJwcm9qZWN0IjoicHJval9
kZW1vIiwidXNlcm5hbWUiOiJhbmFseXN0IiwiZGV2aWNlX2lkIjoiNjI5ODMwIiwiZXhwIjoxNjM5MTQwODAyLCJpYXQiOjE2Mzc5MzEyMDJ9.Fb
nbxwoqnP27kP9MoAJc2d3scjuOGOYSut0ctjD2DNE',
        'CONTENT_TYPE': 'application/json',
        'HTTP_X_TRANSACTION_ID': '8d26e8b6-91a6-4dc0-a70f-6fdc01b34bb3'
      }"
  },
  {
    "uuid":"8d26e8b6-91a6-4dc0a70f6fdc01b34bb4",
    "create_date":"2021-11-26T16:09:17.064501+03:00",
    "response_status":200,
    "credential":"mobile_data",
    "user":"analyst",
    "device":3,
    "request_headers":"
      {
        'HTTP_X_FORWARDED_HOST': 'fmphost',
        'HTTP_X_FORWARDED_PROTO': 'http',
        'HTTP_REQUEST_ID': 'be50a9654bfee0fd519d29a07c74bd08',
        'HTTP_HOST': 'hhive',
        'HTTP_CONNECTION': 'close',
        'CONTENT_LENGTH': '41',
        'HTTP_USER_AGENT': 'curl/7.68.0',
        'HTTP_ACCEPT': '*/*',
        'HTTP_AUTHORIZATION': 'Bearer
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwcm9qZWN0X2lkIjoxLCJlbnZpcm9ubWVudCI6ImVudl9kZXYiLCJwcm9qZWN0IjoicHJval9
kZW1vIiwidXNlcm5hbWUiOiJhbmFseXN0IiwiZGV2aWNlX2lkIjoiNjI5ODMwIiwiZXhwIjoxNjM5MTQwODAyLCJpYXQiOjE2Mzc5MzEyMDJ9.Fb
nbxwoqnP27kP9MoAJc2d3scjuOGOYSut0ctjD2DNE',
        'CONTENT_TYPE': 'application/json',
        'HTTP_X_TRANSACTION_ID': '8d26e8b6-91a6-4dc0-a70f-6fdc01b34bb4'
      }"
  }
]

curl '<IP address or DNS server name>/api/v1/resources/<data source resource name>/transactions/<UUID>/' -H "Authorization: Bearer <user token>"

The example of response:

[
  {
    "uuid":"8d26e8b6-91a6-4dc0-a70f-6fdc01b34bb3",
    "create_date":"2021-11-26T16:34:02.032741+03:00",
    "response_status":200,
    "credential":"mobile_data",
    "user":"analyst",
    "device":3,
    "request_headers":"
      {
        'HTTP_X_FORWARDED_HOST': 'fmphost',
        'HTTP_X_FORWARDED_PROTO': 'http',
        'HTTP_REQUEST_ID': '7c99d750536015778038b3a1eb4ceb18',
        'HTTP_HOST': 'hhive',
        'HTTP_CONNECTION': 'close',
        'CONTENT_LENGTH': '41',
        'HTTP_USER_AGENT': 'curl/7.68.0',
        'HTTP_ACCEPT': '*/*',
        'HTTP_AUTHORIZATION': 'Bearer
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwcm9qZWN0X2lkIjoxLCJlbnZpcm9ubWVudCI6ImVudl9kZXYiLCJwcm9qZWN0IjoicHJval9
kZW1vIiwidXNlcm5hbWUiOiJhbmFseXN0IiwiZGV2aWNlX2lkIjoiNjI5ODMwIiwiZXhwIjoxNjM5MTQwODAyLCJpYXQiOjE2Mzc5MzEyMDJ9.Fb
nbxwoqnP27kP9MoAJc2d3scjuOGOYSut0ctjD2DNE',
        'CONTENT_TYPE': 'application/json',
        'HTTP_X_TRANSACTION_ID': '8d26e8b6-91a6-4dc0-a70f-6fdc01b34bb3'
      }"
  }
]

curl -v -X DELETE '<IP address or DNS server name>/api/v1/resources/<data source resource name>/transactions/<UUID>/' -H "Authorization: Bearer <user token>"

The example of response:

204 Successful deletion of transaction information

See also:

Server API | Sending Transaction Data