1.1 KiB
1.1 KiB
name, description, metadata
| name | description | metadata | ||||||
|---|---|---|---|---|---|---|---|---|
| feedback_syncro_line_items | Correct Syncro API endpoint for adding labor/product line items to tickets |
|
Use POST /api/v1/tickets/{internal_ticket_id}/add_line_item to add line items to tickets. Both name and description fields are required (422 if either missing). Never use timers.
Why: /line_item, /line_items, and PUT line_items_attributes all 404. The correct endpoint was found via Syncro Swagger spec at api-docs.syncromsp.com. Mike has explicitly said never use timers.
How to apply:
- Path uses internal ticket ID (e.g., 111387456), not ticket number (32339)
- Required fields:
name,description,quantity,price,taxable(andproduct_idif catalog item) - Response is a flat object — parse
.iddirectly (not.line_item.id) - For testing/practice, use internal ACG account only (customer ID 15353550)
Example:
POST /api/v1/tickets/111387456/add_line_item
{"product_id":1049360,"name":"Labor- Warranty work","description":"...","quantity":1,"price":0.0,"taxable":false}