Gofive OpenAPI
empeoVenioeTaxGo
empeoVenioeTaxGo
  1. Product
  • Introduction
  • Activity
    • Activities Enquiry
      POST
    • Get a Activity By Id
      GET
    • Get a Activity By No
      GET
    • Get Key Activities
      GET
    • Create or Update Activity
      POST
  • Authentication API
    • Authorization
      POST
  • Customer
    • Create or Update customer
      POST
    • Get a Customer By CustomerCode
      GET
    • Customers Enquiry
      POST
    • Get a Customer By CustomerName
      GET
    • Create Customer Satisfaction
      POST
    • Add Customer Event
      POST
    • Get Customer Events by Customer Code
      GET
    • Edit Customer Event
      PUT
    • Delete Customer Event
      DELETE
    • Get Customer Event Types
      GET
    • Get file categories
      GET
    • Attach files category
      POST
  • Case
    • Add Case
    • Edit Case by CaseNo
    • Get Case by CaseNo
    • Get Case Categories
  • Contract
    • Get Contract By No
    • Get Contract Types
    • Get Contract Templates
    • Create or Update Contract
    • Create or Update Contract Service Agreement
    • Send Contract Document
  • Deal
    • Create Deal
    • Update Deal
    • Deal Enquiry
    • Get Deal
    • Get Deal Board
    • Get Deal Stage
    • Get Deal Interest
    • Get DealLabel
    • Get Deal Missed Reason Categories
  • Employee
    • Employees Enquiry
    • Get a Employee
  • Expense
    • Create Expense
    • Update Expense
    • Expense Enquiry
    • Get a Expense
  • Product
    • Create Or Update Products
      POST
    • Get a Product Ticket
      GET
    • Get Products With Take & Status
      POST
    • Get a Product by ProductCode
      GET
    • Get Product Groups
      GET
    • Get Product Properties
      GET
    • Get Products By Filter
      POST
    • Verify Serial Number
      POST
    • /v3/Products/serials/status
      GET
    • Create or Update Codeguard Products
      POST
    • Update Product Stock
      PUT
    • /v1/products/units
      GET
    • /v1/products/units Copy
      GET
  • Quotation
    • Create Update Quotation
    • Convert Quotation To SalesOrder
    • Quotation Enquiry
    • Get a Quotation By QuotationNo
    • Cancel Quotation
  • SalesOrder
    • Create Or Update SalesOrder
    • Get a SalesOrders By Id
    • Get a SalesOrder By SalesOrderNo
    • Get Sale Order Attachment
    • Reject SaleOrder
    • Approve Sale Order
    • Update SalesOrder Payment
    • Update SalesOrder Tracking Number
  • Webhooks
    • Webhook Payload
  • Task
    • CreateTask
  • Setting
    • Get HeaderTemplate
  • Chat
    • Post Send message
  • Storage
    • Upload files attachments
    • Get file attachments
    • Delete file attachments
  1. Product

Create Or Update Products

POST
https://api.gofive.co.th/v3/Products
สร้างและ แก้ไขสินค้า

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params

Body Params application/json

Example
{
    "products": [
        {
            "productCode": "<string>", // Required if no product sku
            "productBarcode": "<string>",
            "productName": "<string>", // Required
            "productDescription": "<string>",
            "category": "<string>", // Required
            "subCategory": "<string>",
            "sub_SubCategory": "<string>",
            "cost": 0.0, // Required
            "prices": [
                {
                    "priceTierName": "<string>", // Required
                    "regularPrice": 0.0, // Required
                    "salePrice": 0.0,
                    "vatValue": 0.0, 
                    "useDefaultVat" : true
                }
            ], // Required
            "productUnitName": "<string>", // Required
            "productWeight": 0.0,
            "productWeightUnit": "<string>",
            "productTag": ["string"],
            "productImage": [
                "<string>"
            ],
            "trackInventory": true, // Required
            "qty": 0,
            "lowStockAlert": 0,
            "useWarranty": false, // Required
            "timeWarrantyValue": 0,
            "timeWarrantyUnit": "<string>", // [y = year ,m = month ,d = day]
            "warrantyNote": "<string>",
            "visibility": true, // Required
            "active": true, // Required
            "brandName": "<string>",
            "productVariant": [
                {
                    "productCode": "<string>", // Required
                    "productName": "<string>", // Required
                    "productBarcode": "<string>",
                    "productDescription": "<string>",
                    "cost": 0.0,
                    "prices": [
                        {
                            "priceTierName": "<string>",
                            "regularPrice": 0.0,
                            "salePrice": 0.0,
                            "vat": 0.0
                        }
                    ], // Required
                    "productImage": [
                        "<string>"
                    ],
                    "qty": 0,
                    "lowStockAlert": 0,
                    "active": "<boolean>", // Required
                    "attribute": [
                        {
                            "attributeName": "<string>", // Required
                            "attributeValueName": "<string>" // Required
                        }
                    ] // Required
                }
            ]
        }
    ]
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.gofive.co.th/v3/Products' \
--header 'Ocp-Apim-Subscription-Key: <Your Subscription-Key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "products": [
        {
            "productCode": "<string>", // Required if no product sku
            "productBarcode": "<string>",
            "productName": "<string>", // Required
            "productDescription": "<string>",
            "category": "<string>", // Required
            "subCategory": "<string>",
            "sub_SubCategory": "<string>",
            "cost": 0.0, // Required
            "prices": [
                {
                    "priceTierName": "<string>", // Required
                    "regularPrice": 0.0, // Required
                    "salePrice": 0.0,
                    "vatValue": 0.0, 
                    "useDefaultVat" : true
                }
            ], // Required
            "productUnitName": "<string>", // Required
            "productWeight": 0.0,
            "productWeightUnit": "<string>",
            "productTag": ["string"],
            "productImage": [
                "<string>"
            ],
            "trackInventory": true, // Required
            "qty": 0,
            "lowStockAlert": 0,
            "useWarranty": false, // Required
            "timeWarrantyValue": 0,
            "timeWarrantyUnit": "<string>", // [y = year ,m = month ,d = day]
            "warrantyNote": "<string>",
            "visibility": true, // Required
            "active": true, // Required
            "brandName": "<string>",
            "productVariant": [
                {
                    "productCode": "<string>", // Required
                    "productName": "<string>", // Required
                    "productBarcode": "<string>",
                    "productDescription": "<string>",
                    "cost": 0.0,
                    "prices": [
                        {
                            "priceTierName": "<string>",
                            "regularPrice": 0.0,
                            "salePrice": 0.0,
                            "vat": 0.0
                        }
                    ], // Required
                    "productImage": [
                        "<string>"
                    ],
                    "qty": 0,
                    "lowStockAlert": 0,
                    "active": "<boolean>", // Required
                    "attribute": [
                        {
                            "attributeName": "<string>", // Required
                            "attributeValueName": "<string>" // Required
                        }
                    ] // Required
                }
            ]
        }
    ]
}'

Responses

🟢200Success
application/json
Body

Example
{
    "status": {
        "code": "1000",
        "description": "Success"
    },
    "data": {
        "ticketId": 284
    }
}
🟠401Unauthorized
🟠400Bad Request
🔴500Server Error
🟠401User authentication required V2.
Modified at 2024-01-09 09:12:20
Previous
Get a Expense
Next
Get a Product Ticket
Built with