---
title: "Edit Service"
method: POST
path: "/api/v1/Services/edit"
tags: ["Services"]
---

# Edit Service

`POST /api/v1/Services/edit`

## Headers

- `Time-Stamp` string, required
- `Time-Signature` string, required
- `User-Token` string, required
- `Client-Token` string, required

## Request body

- PeakAPIsLibraryModelRequestProductsServicesServicesServicesEditModel
  - `peakServices` PeakAPIsLibraryModelRequestProductsServicesServicesServicesEditModelPeakServicesModel
    - `id` string
    - `code` string
    - `services` PeakAPIsLibraryModelRequestProductsServicesProductsServices
      - `id` string — The Unique Identifier generated by PEAK to identify data
      - `name` string — Product/Service name
      - `type` integer — Numeric code indicate whether it is a product or a service
      - `code` string — The code displayed in the PEAK
      - `purchaseValue` number, double — Purchase price per unit
      - `purchaseVatType` integer — Purchase tax rate
      - `purchaseAccount` string — Account used to record purchase transactions
      - `sellValue` number, double — Selling price per unit
      - `sellVatType` integer — Selling tax rate
      - `sellAccount` string — Account used to record selling transactions
      - `description` string — Additional description of the product/service
      - `carryingBalanceValue` number, double
      - `carryingBalanceAmount` number, double
      - `unit` PeakAPIsLibraryModelEcoSystemResponseProductAPIUnitModel
        - `id` string
        - `code` string
        - `nameTh` string
        - `nameEn` string

## Response `200`

Success

- PeakWCFModelsAPIResponseResponseServiceModel
  - `peakServices` PeakWCFModelsAPIBodyAPIBodyService
    - `services` PeakWCFModelsAPIAPIProductsServicesAPIProductsServicesModel[]
      - `resCode` string
      - `resDesc` string
      - `id` string
      - `name` string
      - `code` string
      - `type` integer
      - `purchaseValue` number, double
      - `purchaseVatType` integer
      - `purchaseAccount` string
      - `sellValue` number, double
      - `sellVatType` integer
      - `sellAccount` string
      - `description` string
      - `carryingBalanceValue` number, double
      - `carryingBalanceAmount` number, double
      - `remainingBalanceAmount` number, double
      - `unit` PeakWCFModelsAPIAPIProductsServicesAPIUnitModel
        - `id` string
        - `nameTh` string
        - `nameEn` string
        - `code` string
    - `totalService` integer
    - `resDesc` string
    - `resCode` string
  - `eventType` string
  - `apiType` string

---

[API](https://skmtc.net/peakaccount/apis/peakapis-core.md) · [All operations](https://skmtc.net/peakaccount/apis/peakapis-core/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/peakaccount/peakapis-core/versions/516e79534d77/schema)
