Voice

Create a Voice Data

Creates a new Voice Data.

post/admin/voice/data

Request

  • Base URL: https://demo.splynx.com/api/2.0
  • URL: https://demo.splynx.com/api/2.0/admin/voice/data
  • Auth: HTTP basic

Request body

datetimestring required

Date

customer_idnumber required

Customer ID

service_idnumber required

Voice service ID

transaction_idnumber

Transaction ID

categorynumber

Voice category ID. You can find valid values on Dashboard Voice/Categories

sourcestring

Data source phone number

amountnumber

Amount

sell_pricenumber

Sell price

buy_pricenumber

Buy price

rate_buy_pricenumber

Rate buy price

commentstring

Comment

is_price_from_importnumber

Is price from import. Values: 0 or 1

Example request

{
  "datetime": "2018-01-20 12:56:39",
  "customer_id": 19,
  "service_id": 40,
  "transaction_id": 137,
  "category": 3,
  "source": "555-0134",
  "amount": 45797638,
  "comment": "comment"
}

Response

idnumber

Data ID.

Example response

{
  "id": 1
}

Changes

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