- Creates a new category
POST {{baseURL}}/pay-int-api/categories
This endpoint creates a new category.
Example request:
POST {{baseURL}}/pay-int-api/categories
Authorization: Bearer {{merchantApiToken}}
Content-Type: application/json
x-api-version: 1.0
{
"name": "Mortgage Services",
"defaultUnitTypeId": 22
}See Also:
To list categories, see GET /pay-int-api/categories.
To update a category, see PUT /pay-int-api/categories/{categoryId}.
To delete a category, see DELETE /pay-int-api/categories/{categoryId}.
Specifies the category creation request.
Specifies the name of the category.
The category name must be unique within the merchant account. The creation fails if a category with that name already exists.
Example: Mortgage Services
Specifies the default unit type identifier for the category.
This sets the default unit of measure, such as each, hour, or pound, that line items assigned to this category will use.
Valid values are:
| ID | Name |
|---|---|
| 1 | Each |
| 2 | Unit |
| 3 | Item |
| 4 | Dozen |
| 5 | Inch |
| 6 | Foot |
| 7 | Yard |
| 8 | Meter |
| 9 | Square foot |
| ID | Name |
|---|---|
| 10 | Fluid ounce |
| 11 | Gallon |
| 12 | Cubic foot |
| 13 | Cubic yard |
| 14 | Cord |
| 15 | Bushel |
| 16 | Board foot |
| 17 | Cubic meter |
| 18 | Pound |
| ID | Name |
|---|---|
| 19 | Ounce |
| 20 | Ton |
| 21 | Kilogram |
| 22 | Hour |
| 23 | Day |
| 24 | Month |
| 25 | Kilometer |
| 26 | Mile |
Example: 22
- Mock serverhttps://developer.flute.com/_mock/api-reference/pay-int-api/categories
- Sandbox environmenthttps://sandbox.api.flute.com/pay-int-api/categories
- Production environmenthttps://api.flute.com/pay-int-api/categories
curl -i -X POST \
https://developer.flute.com/_mock/api-reference/pay-int-api/categories \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-H 'x-api-version: 1.0' \
-d '{
"name": "Mortgage Services",
"defaultUnitTypeId": 22
}'{ "id": "6780a6b7-8c9d-4e0f-1a2b-3c4d5e6f7a03" }