Skip to content

Updates a category by its ID

Request

PUT {{baseURL}}/pay-int-api/categories/{{categoryId}}

This endpoint updates or edits category information.

The category name must be unique in the merchant account.

Security
Bearer
Path
categoryIdstring, (uuid)required

Specifies the identifier of the category to update.

Example:7891b7c8-9d0e-4f1a-2b3c-4d5e6f7a8b14
Headers
x-api-versionstring
Bodyapplication/json

The category update request.

namestring or null

Specifies the new name of the category.

Example: Direct Sales

Example:"Direct Sales"
defaultUnitTypeIdinteger or null, (int32)

Specifies the new default unit type identifier for the category.

Example: 2

Example:2
curl -i -X PUT \
  https://developer.flute.com/_mock/api-reference/pay-int-api/categories/7891b7c8-9d0e-4f1a-2b3c-4d5e6f7a8b14 \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'x-api-version: string' \
  -d '{
    "name": "Direct Sales",
    "defaultUnitTypeId": 2
  }'

Responses

Category updated successfully

Response
No content