List Orders

Get a list of orders for the authenticated user.

Endpoint

GET ${baseUrl}/orders

Response

interface OrderListResponse {
  success: boolean
  data: {
    orderId: number
    fileId: string
    status: string
    orderType: string
    createdAt: string
    deliveryTime: string
    instructions: string
  }[]
}

Example Request

const response = await fetch('${baseUrl}/orders', {
  headers: {
    Authorization: 'Basic YOUR_API_KEY',
  },
})
 
const data = await response.json()

Error Codes

Status CodeDescription
200Success
401Unauthorized
500Server Error