Skip to content

Create new customer

Create a new customer

URL: PUT https://api.scriptix.io/api/v3/reseller/customer/{Id}/

Request headers

The following headers need to be present

Parameter Value Description
content-type application/json
x-zoom-s2t-key Scriptix Reseller API Token API key of type reseller needed for authorization

Request path arguments

Argument Description
Id ID of customer

JSON Body Schema

Key Type Description
name string (Organization) Name of the customer.
email string <email> Email address you and Scriptix can use for technical contact.
phone string (Optional) Customer phone number
is_active boolean Default: true

Indicated whether the customer is activated.

JSON Payload

{
   "name": "Acme Inc.",
   "email": "[email protected]",
   "phone": "+31 012 345678",
}

Responses

Status code Description
201 Customer updated
400 Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
500 Server Error

HTTP 201 Created

Content-type: application/json

Response: APIResultResponse<ResellerCustomer>

JSON Response

{
    "result": {
        "id": 1,
        "name": "Acme Inc.",
        "email": "[email protected]",
        "phone": "+31 012 345678",
        "is_active": true,
        "registration_date": "2021-01-25T10:31:46.960411+00:00",
        "last_modified": "2021-01-25T10:31:46.960411+00:00"
    },
    "count": 1,
    "total_results": 1
}