post https://api.dreamship.com/v1/orders//line-items//create_ticket/
This endpoint is disabled by default for each business. Reach out to [email protected] to activate this endpoint.
Tickets can be created manually on the Dreamship Order Page, but businesses integrating Dreamship into their own platform can create tickets for line items through the API.
A successful ticket create will return the normal Order Data response which contains the line_item_ticket
data. If you want to receive webhooks whenever a a ticket is opened and closed you can subscribe to the line-ticket-opened
and line-ticket-closed
webhook subscriptions.
This endpoint will not allow you to create a ticket unless the following conditions are met.
- Order status is in
['partially_fulfilled', 'fulfilled', 'cancelled']
. - Line item does not already have a ticket.
- If
reason
is in['wrong_item', 'damaged_item', 'missing_item', 'quality_issue', 'warranty']
there must be attachment files. - If
reason
iswarranty
therequested_action
must berefund
. - If
reason
is in['warranty', 'missing_item', 'other']
thesecondary_reason
must beother
. - If
reason
isquality_issue
thesecondary_reason
must be in['faded_colors', 'ink_issue', 'print_came_off_after_wash', 'print_misalignment', 'scratched_print', 'other']
. - If
reason
iswrong_item
thesecondary_reason
must be in['wrong_color', 'wrong_size', 'wrong_style', 'other']
. - If
reason
isdamaged_item
thesecondary_reason
must be in['broken_item', 'scratched_print', 'hole_in_item', 'print_came_off_after_wash', 'other']
- If
reason
isdelivery_issue
thesecondary_reason
must be in['outdated_tracking', 'lost_in_transit', 'returned_to_sender', 'international_customs_issue', 'late_express_delivery', 'other']
.