Certas Mysite API Documentation

Version: 1.4

post /api/customer/create

Request Body Fields


name string required

The company name.


sap_customer_number string required

This is a unique identifier.


parent_customer_number string optional


customer_group string optional


identification_number string

VAT ID or personal identification ID if private client. If not provided an UUID v4 will be generated and used.


street_address string optional


postal_code string optional


postal_area string optional


email string optional


mobile string optional


phone string optional

Request Body Example

{
    "name": "Edge Branding",
    "customer_number": "101498",
    "sap_customer_number": "4300009915",
    "parent_customer_number": "",
    "customer_group": "ZL10",
    "identification_number": "980429849",
    "street_address": "Dokkvegen 11",
    "postal_code": "3920",
    "postal_area": "Porsgrunn",
    "email": "hei@edgebranding.no",
    "mobile": "90099000",
    "phone": "35505000"
}

Success Response (200)

{
  "status": "OK"
}

Response code 409 if the user already exists, and 422 if the request does not validate.

patch /api/customer/update/{customer_number}

Request Parameters


customer_number string required

This field must contain SAP Customer Number.

Request Body Fields


parent_customer_number string optional


customer_group string optional


name string optional

The company name.


identification_number string optional

VAT ID or personal identification ID if private client.


street_address string optional


postal_code string optional


postal_area string optional


email string optional


mobile string optional


phone string optional

Request Body Example

{
    "name": "Edge Branding AS",
    "identification_number": "980429849",
    "street_address": "Dokkvegen 11",
    "postal_code": "3920",
    "postal_area": "Porsgrunn",
    "email": "hei@edgebranding.no",
    "mobile": "90099000",
    "phone": "35505000",
    "parent_customer_number": "4300009915",
    "customer_group": "ZL10"
}

Success Response (200)

{
  "status": "OK"
}

Response code 404 if customer could not be found or 400 if customer number not specified. Response code 422 if the request does not validate.