API documentation
User
Tenant
Feature
Entitlement
User & permissions
Settings
- Settings
- Media
- Webhook
- Notification
Payment
- Payment Method
- Transaction
- SEPA XML
- Open Banking
- Bank Account Transaction
Customer
- Customer
- Customer Address
- Customer Email
- Customer Settings
- Customer Otp
Billing
- Invoice
- Invoice Position Item
- Billing Run
Dunning
- Dunning Document
- Dunning Rule
Subscription
- Subscription
- Subscription Item
- Subscription Measurement
- Billing Group
Offers
- Offer
- Offer Recipient
- Offer Template
Catalogue
- Unit
- Measurement
- Product
- Product Family
- Price Plan
- Coupon
Checkout
- Checkout Link
- Cart
Accounting
Unit
Create a unit
Create a unit. Units will be used to define the unit of measure for products or invoice positions.
Required permissions:unit:write
POST
/
units
curl -X POST \
/units \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"translations": []
}'
{
"id": {},
"name": "Stück",
"translations": {},
"createdAt": "2021-01-01T00:00:00+00:00",
"updatedAt": "2021-01-01T00:00:00+00:00"
}
Authorizations
Value for the Authorization header parameter.
Body
The new Unit resource
Response
201
application/json
Unit resource created
Was this page helpful?
curl -X POST \
/units \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"translations": []
}'
{
"id": {},
"name": "Stück",
"translations": {},
"createdAt": "2021-01-01T00:00:00+00:00",
"updatedAt": "2021-01-01T00:00:00+00:00"
}
Assistant
Responses are generated using AI and may contain mistakes.