Purchases

Add

Securitybearer
Request
header Parameters
Accept
required
string
Example: application/json
Request Body schema: application/x-www-form-urlencoded
note
required
string
file
required
string
Responses
200
post/purchase/purchases
Request samples
application/x-www-form-urlencoded
note=%20nothing&file=string

Show

Securitybearer
Request
header Parameters
Accept
required
string
Example: application/json
Responses
200
get/purchase/purchases

User History

Securitybearer
Request
header Parameters
Accept
required
string
Example: application/json
Responses
200
get/purchase/purchase-list

Purchase list admin

Securitybearer
Request
header Parameters
Accept
required
string
Example: application/json
Responses
200
get/purchase/ad-purchase-list

Purchase list department

Securitybearer
Request
header Parameters
Accept
required
string
Example: application/json
Responses
200
get/purchase/dh-purchase-list

Edit

Securitybearer
Request
header Parameters
Accept
required
string
Example: application/json
Request Body schema: application/json
shipping_cost
required
integer <int32>
Responses
200
put/purchase/purchases/1
Request samples
application/json
{
  • "shipping_cost": 150
}

Admin Edit Purchase Product Status

Securitybearer
Request
header Parameters
Accept
required
string
Example: application/json
Request Body schema: application/x-www-form-urlencoded
department_status
required
string
Responses
200
post/purchase/purchaseProducts/change-status/1
Request samples
application/x-www-form-urlencoded
department_status=Pending

Delete

Securitybearer
Request
header Parameters
Accept
required
string
Example: application/json
Responses
200
delete/purchase/purchases/3