/
Creates a line item
POST {{baseURL}}/pay-int-api/line-items
Security
Bearer
The line item creation request.
Indicates the name of the item.
Example: RollerMouse Wireless Mouse
Example:"RollerMouse Wireless Mouse"
Indicates a description of the item.
Example: RollerMouse Design Collection, Limited Edition Wireless Mouse
Example:"RollerMouse Design Collection, Limited Edition Wireless Mouse"
Indicates the identifier of the unit type.
This is a numeric identifier represents the unit of measure for the item. Each supplier provides their own lookup value. That value maps to a predefined unit type in their system.
Example: 1
Example:1
Indicates the identifier of the item category.
Example: a2d1c4b5-6e7f-4890-9abc-1d2e3f4a5b68
Example:"a2d1c4b5-6e7f-4890-9abc-1d2e3f4a5b68"
- Mock serverhttps://developer.flute.com/_mock/api-reference/pay-int-api/line-items
- Sandbox environmenthttps://sandbox.api.flute.com/pay-int-api/line-items
- Production environmenthttps://api.flute.com/pay-int-api/line-items
curl -i -X POST \
https://developer.flute.com/_mock/api-reference/pay-int-api/line-items \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-H 'x-api-version: string' \
-d '{
"productName": "RollerMouse Wireless Mouse",
"description": "RollerMouse Design Collection, Limited Edition Wireless Mouse",
"sku": "24474771",
"unitPrice": 18.99,
"unitTypeId": 1,
"categoryId": "a2d1c4b5-6e7f-4890-9abc-1d2e3f4a5b68",
"taxRate": 3.25
}'Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }