Create Company
관리자나 판매자가 업체를 등록하기 위한 API
Create Company
POST
/api/companies
Access Permissions
Role
Description
ADMIN
관리자
SELLER
판매자
Request Headers
Name
Value
Content-Type
application/json
Authorization
Bearer <token>
Request Body
Name
Type
Description
Required
userId
Long
Owner ID
true
companyName
String
Name of the company
true
description
String
Description of the company
true
address
String
Address of the company
true
Response
{
"status": 200,
"data": {
"companyId": 1,
"userId": 1,
"companyName": "업체1",
"description": "판매업체입니다.",
"address": "경기도 성남시 중원구 1234"
},
"error": null,
"timeStamp": "2024-09-27 12:00:00"
}
Last updated