- Updates a line item
PUT {{baseURL}}/pay-int-api/line-items/{{lineItemId}}
This endpoint updates the specified line item.
The following is an example request.
PUT {{baseURL}}/pay-int-api/line-items/{{lineItemId}} HTTP/1.1
Authorization: Bearer {{accessToken}}
x-api-version: 1.0
Content-Type: application/json
{
"productName": "Wireless Mouse", // Changed from 'USB Mouse'
"unitPrice": 18.99,
"unitTypeId": 1
}The update replaces the entire settings record, so all fields must be included, even ones that aren't changing. Any field left out is not preserved from the previous version.
See Also:
To list line items, see GET /pay-int-api/line-items.
To create a line item, see POST /pay-int-api/line-items.
To retrieve line item unit types, see GET /pay-int-api/line-items/unit-types.
To delete a line item, see DELETE /pay-int-api/line-items/{lineItemId}.
The line item update request.
Indicates the name of the item.
Example: RollerMouse Wireless Mouse
Indicates a description of the item.
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
Indicates the identifier of the item category.
Example: a2d1c4b5-6e7f-4890-9abc-1d2e3f4a5b67
- Mock serverhttps://developer.flute.com/_mock/api-reference/pay-int-api/line-items/{lineItemId}
- Sandbox environmenthttps://sandbox.api.flute.com/pay-int-api/line-items/{lineItemId}
- Production environmenthttps://api.flute.com/pay-int-api/line-items/{lineItemId}
curl -i -X PUT \
'https://developer.flute.com/_mock/api-reference/pay-int-api/line-items/{lineItemId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-H 'x-api-version: 1.0' \
-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-1d2e3f4a5b67",
"taxRate": 3.25
}'