Orders

Get all orders of a user

GET https://yourwebsite.com/api/users/<user>/orders

Path Parameters

NameTypeDescription

user*

[
    {
        "id": "2",
        "accountID": "2",
        "coupon": "test",
        "total": "100.00",
        "discount": "0.00",
        "subtotal": "100.00",
        "earnings": "100.00",
        "cashback": "0.00",
        "credit": "0.00",
        "type": "1",
        "status": "1",
        "paymentAPI": "paypal",
        "paymentID": "0",
        "creationDate": "2023-02-15 10:42:48"
    },
    {
        "id": "3",
        "accountID": "2",
        "coupon": null,
        "total": "300.00",
        "discount": "0.00",
        "subtotal": "300.00",
        "earnings": "300.00",
        "cashback": "0.00",
        "credit": "0.00",
        "type": "2",
        "status": "1",
        "paymentAPI": "paypal",
        "paymentID": "0",
        "creationDate": "2023-02-15 10:42:48"
    }
]

Last updated