Get user's order
GET/wc/orders/list/:id_user
Get order list in transaction page, by user ID
Request
Path Parameters
id_user integerrequired
user ID
Responses
- 200
- 400
- 401
successful view list order
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
success boolean
data
object[]
order_id integer
title string
product_id string
img_course string
lembaga string
inquiry_amount string
paid_amount string
payment_status string
payment_method_name string
payment_method_title string
created_at string
updated_at string
user_id string
mt_payment_url string
mt_payment_snap_token string
amount_payment string
coin_price string
coupon_price string
normal_price string
expired_date string
{
"success": true,
"data": [
{
"order_id": 0,
"title": "string",
"product_id": "string",
"img_course": "string",
"lembaga": "string",
"inquiry_amount": "string",
"paid_amount": "string",
"payment_status": "string",
"payment_method_name": "string",
"payment_method_title": "string",
"created_at": "string",
"updated_at": "string",
"user_id": "string",
"mt_payment_url": "string",
"mt_payment_snap_token": "string",
"amount_payment": "string",
"coin_price": "string",
"coupon_price": "string",
"normal_price": "string",
"expired_date": "string"
}
]
}
failed get data
- application/json
- Schema
- Example (from schema)
Schema
success boolean
Example:
falsemessage string
{
"success": false,
"message": "string"
}
failed authorization
- application/json
- Schema
- Example (from schema)
Schema
success boolean
Example:
falsemessage string
{
"success": false,
"message": "string"
}