Garment.id
🇮🇩 Indonesian
  • 🇮🇩 Indonesian
  • 🇺🇸 English
HomeCore APITenant API
Support CenterChangelog
HomeCore APITenant API
Support CenterChangelog
Github
Instagram
|
🇮🇩 Indonesian
  • 🇮🇩 Indonesian
  • 🇺🇸 English
🇮🇩 Indonesian
  • 🇮🇩 Indonesian
  • 🇺🇸 English
  1. Master Data
  • Authentication
    • Google OAuth Redirect
      GET
    • Google OAuth Callback
      GET
    • Register
      POST
    • Login
      POST
    • Refresh Token
      POST
    • Login with Google
      POST
    • Two Factor Challenge
      POST
    • Request Password Reset
      POST
    • Reset Password
      POST
    • Verify Email
      GET
    • Resend Verification Email
      POST
    • Select Tenant
      POST
    • Tenant Onboarding
      POST
    • Logout
      POST
    • Logout All
      POST
    • Me
      GET
  • Auth Activity
    • Auth Activities
    • Suspicious Activities
    • Tenant Auth Activities
    • User Security Activities
  • Billing
    • Subscription
    • Subscription Entitlements
    • Change Subscription Plan
    • Cancel Subscription
    • Invoices
    • Invoice Detail
    • Billing Timeline
    • Subscription Addons
    • Create Subscription Addon
    • Deactivate Subscription Addon
    • Pause Subscription Addon
    • Resume Subscription Addon
    • Schedule Subscription Addon Cancel
  • Tenant Authz
    • Tenant Permissions
    • Tenant Roles
    • Create Tenant Role
    • Update Tenant Role
    • Delete Tenant Role
  • Integrations
    • Integration Health Check
    • Integration Create Order
    • Integration Invite User
  • Tenant User
    • Tenant Users
    • Create Tenant User
    • Update Tenant User
  • Master Data
    • Customer
      • Customers
      • Create Customer
      • Customer Detail
      • Update Customer
      • Delete Customer
    • Taxonomies
      GET
    • Create Taxonomy
      POST
    • Taxonomy Detail
      GET
    • Update Taxonomy
      PUT
    • Delete Taxonomy
      DELETE
    • Suppliers
      GET
    • Create Supplier
      POST
    • Supplier Detail
      GET
    • Update Supplier
      PUT
    • Delete Supplier
      DELETE
    • Materials
      GET
    • Create Material
      POST
    • Material Detail
      GET
    • Update Material
      PUT
    • Delete Material
      DELETE
HomeCore APITenant API
Support CenterChangelog
HomeCore APITenant API
Support CenterChangelog
Github
Instagram
|
🇮🇩 Indonesian
  • 🇮🇩 Indonesian
  • 🇺🇸 English
🇮🇩 Indonesian
  • 🇮🇩 Indonesian
  • 🇺🇸 English
  1. Master Data

Create Material

POST
http://localhost/api/v1/tenant/master-data/materials
Master Data
Terakhir diubah:2026-03-04 16:50:37
OperationId:tenant.materials.store
Create material with material variants in one transaction.

Request

Otorisasi
Berikan token Bearer anda pada header
Authorization
ketika melakukan request ke resource yang dilindungi.
Contoh:
Authorization: Bearer ********************
Body Parameterapplication/jsonWajib

Contoh

Response

🟢200
application/json
Body

🟠401
🟠422
request Contoh Request
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost/api/v1/tenant/master-data/materials' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "code": "string",
    "name": "string",
    "category_id": "8de4c9fd-61a4-4c0b-bf88-0ed3a0fe3fa2",
    "base_unit_id": "6f587bc1-802b-4a25-9aed-dcb1bcf5aa12",
    "description": "string",
    "metadata": [
        "string"
    ],
    "is_active": true,
    "variants": [
        {
            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
            "color_id": "3333830f-d3ea-47f8-a24d-3e8d3a1050d5",
            "sku": "string",
            "standard_cost": 0,
            "metadata": [
                "string"
            ],
            "is_active": true
        }
    ]
}'
response Contoh Response
200 - Contoh 1
{
    "success": true,
    "code": "string",
    "message": "string",
    "request_id": "string",
    "timestamp": "2019-08-24T14:15:22.123Z",
    "api_version": "string",
    "data": "string"
}
Diubah pada 2026-03-04 16:50:37
Sebelumnya
Materials
Berikutnya
Material Detail
Built with