Config

Process CDR import

Import CDR data.Process new CDR import.

post/admin/config/cdr-import

Request

  • Base URL: https://demo.splynx.com/api/2.0
  • URL: https://demo.splynx.com/api/2.0/admin/config/cdr-import
  • Auth: HTTP basic

Request body

columnsstring[] required

Names of columns in order, mapping to fields of CDR Import Base (source, datetime, duration, sell_price_with_vat, comment, category, destination, etc.).

paramsobject required

Additional import params shared across all rows (type, provider_id, etc.).

Example request

{
  "data": [
    [
      987946521,
      "2017-10-09 15:11:00",
      30,
      29.99,
      "My comment",
      "Interprovincial",
      "65421324"
    ],
    [
      541984435,
      "2017-10-10 16:55:00",
      40,
      19.99,
      "Second comment",
      "Interprovincial",
      "8798324"
    ],
    [
      842198756,
      "2017-10-11 05:11:00",
      12,
      9.99,
      "",
      "Interprovincial",
      "98795465"
    ]
  ],
  "columns": [
    "source",
    "datetime",
    "duration",
    "sell_price_with_vat",
    "comment",
    "category",
    "destination"
  ],
  "params": {
    "type": "call",
    "provider_id": "1"
  }
}

Response

idnumber

CDR import ID

Example response

{
  "id": 1
}

Changes

No recorded changes to this operation across all 1 revision of this API.