Skip to main content
POST
/
services
Create a product or standalone service
curl --request POST \
  --url https://docs.dezerx.com/api/application/services \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "user_id": 123,
  "product_id": 123,
  "service_name": "<string>",
  "category_id": 123,
  "price": 1,
  "billing_cycle": "<string>",
  "due_date": "2023-11-07T05:31:56Z",
  "notes": "<string>"
}
'
{
  "data": {
    "id": 123,
    "status": "<string>",
    "price": 123,
    "name": "<string>",
    "owner": {},
    "product": {},
    "category": {},
    "module": "<string>",
    "billing_cycle": "<string>",
    "due_date": "2023-11-07T05:31:56Z",
    "addons": "<array>"
  },
  "meta": {},
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
user_id
integer
required
service_type
enum<string>
required
Available options:
product,
custom
product_id
integer
service_name
string
category_id
integer
price
number
Required range: x >= 0
billing_cycle
string
due_date
string<date-time>
notes
string

Response

Service response

data
object
required
meta
object
required
message
string