Support Tickets
5 API calls in this section.
Create Support Ticket (Customer Portal)
/customer/support/ticketsCreates a customer-portal support ticket and its chat conversation. source defaults to customer_portal. Pass related_delivery_id to link a delivery (optional). A 409 is returned if an open ticket already exists for the same delivery.
1curl --request POST "$ONDI_BASE_URL/customer/support/tickets" \2 --header "Authorization: Bearer {{access_token}}" \3 --header "Content-Type: application/json" \4 --header "Content-Type: application/json" \5 --data '{6 "subject": "Delivery delayed",7 "priority": "medium",8 "source": "customer_portal",9 "related_delivery_id": "uuid",10 "message": "My delivery is delayed, please help"11}'1{2 "subject": "Delivery delayed",3 "priority": "medium",4 "source": "customer_portal",5 "related_delivery_id": "uuid",6 "message": "My delivery is delayed, please help"7}Request body fields
subjectExampleExample field from the request body.
priorityExampleExample field from the request body.
sourceExampleExample field from the request body.
related_delivery_idExampleExample field from the request body.
messageExampleExample field from the request body.
Headers
AuthorizationOptionalBearer {{access_token}}
Content-TypeOptionalapplication/json
Responses
No response example is available for this endpoint yet.
Create Support Ticket (Storefront / Market)
/customer/support/ticketsCreates a storefront-originated support ticket. source MUST be storefront and related_order_id is required. The order is verified to belong to the authenticated buyer and to the same tenant before the ticket is created. The conversation title and first message include the order number.
1curl --request POST "$ONDI_BASE_URL/customer/support/tickets" \2 --header "Authorization: Bearer {{access_token}}" \3 --header "Content-Type: application/json" \4 --header "Content-Type: application/json" \5 --data '{6 "subject": "Wrong item received",7 "priority": "high",8 "source": "storefront",9 "related_order_id": "uuid",10 "message": "My order had the wrong product, please help."11}'1{2 "subject": "Wrong item received",3 "priority": "high",4 "source": "storefront",5 "related_order_id": "uuid",6 "message": "My order had the wrong product, please help."7}Request body fields
subjectExampleExample field from the request body.
priorityExampleExample field from the request body.
sourceExampleExample field from the request body.
related_order_idExampleExample field from the request body.
messageExampleExample field from the request body.
Headers
AuthorizationOptionalBearer {{access_token}}
Content-TypeOptionalapplication/json
Responses
1{2 "success": false,3 "message": "A support ticket is already open for this item",4 "error": "support_ticket_already_open_for_related",5 "data": {6 "existing_ticket_id": "ticket-uuid",7 "existing_conversation_id": "conversation-uuid"8 }9}List Support Tickets
/customer/support/tickets?page=1&limit=20Lists the authenticated user's tickets with conversation summary. Use source to scope a portal-specific view (e.g. only storefront-order tickets).
1curl --request GET "$ONDI_BASE_URL/customer/support/tickets?page=1&limit=20" \2 --header "Authorization: Bearer {{access_token}}"Query parameters
pageOptional1
Page number (>=1)
limitOptional20
Items per page (1-50)
Headers
AuthorizationOptionalBearer {{access_token}}
Responses
No response example is available for this endpoint yet.
Get Support Ticket
/customer/support/tickets/:idGets a single ticket (customer-scoped) with conversation summary, assigned_to_user, linked delivery (when source=customer_portal) or order (when source=storefront).
1curl --request GET "$ONDI_BASE_URL/customer/support/tickets/:id" \2 --header "Authorization: Bearer {{access_token}}"Path parameters
idRequireduuid
Support ticket ID
Headers
AuthorizationOptionalBearer {{access_token}}
Responses
No response example is available for this endpoint yet.
Close Ticket
/customer/support/tickets/:id/closeCloses the support ticket (only if allow_customer_close is enabled in portal settings).
1curl --request POST "$ONDI_BASE_URL/customer/support/tickets/:id/close" \2 --header "Authorization: Bearer {{access_token}}"Path parameters
idRequireduuid
Support ticket ID
Headers
AuthorizationOptionalBearer {{access_token}}
Responses
No response example is available for this endpoint yet.