curl --request GET \
--url https://ge-exchange-staging-1.herokuapp.com/v1/orders/{orderId}
{
"status": "success",
"message": "Order gotten successfully",
"data": {
"price": 5,
"amount": 20,
"type": "Buy",
"owner_model": "api_key",
"status": "Active",
"_id": "62436d93dddca3004ba4b1fe",
"user": "62424e97d1e7590032dc7ed0",
"token": "61e82728af0adf0d01ae7237",
"customer": {
"name": "Ruger Client",
"email": "ruger@yopmail.com"
},
"api_customer_email": "ruger@yopmail.com",
"meta": {
"tokens": 2
},
"createdAt": "2022-03-29T20:35:31.490Z",
"updatedAt": "2022-03-29T20:35:31.490Z"
}
}
Gets a single order details by its ID
curl --request GET \
--url https://ge-exchange-staging-1.herokuapp.com/v1/orders/{orderId}
{
"status": "success",
"message": "Order gotten successfully",
"data": {
"price": 5,
"amount": 20,
"type": "Buy",
"owner_model": "api_key",
"status": "Active",
"_id": "62436d93dddca3004ba4b1fe",
"user": "62424e97d1e7590032dc7ed0",
"token": "61e82728af0adf0d01ae7237",
"customer": {
"name": "Ruger Client",
"email": "ruger@yopmail.com"
},
"api_customer_email": "ruger@yopmail.com",
"meta": {
"tokens": 2
},
"createdAt": "2022-03-29T20:35:31.490Z",
"updatedAt": "2022-03-29T20:35:31.490Z"
}
}
{
"status": "success",
"message": "Order gotten successfully",
"data": {
"price": 5,
"amount": 20,
"type": "Buy",
"owner_model": "api_key",
"status": "Active",
"_id": "62436d93dddca3004ba4b1fe",
"user": "62424e97d1e7590032dc7ed0",
"token": "61e82728af0adf0d01ae7237",
"customer": {
"name": "Ruger Client",
"email": "ruger@yopmail.com"
},
"api_customer_email": "ruger@yopmail.com",
"meta": {
"tokens": 2
},
"createdAt": "2022-03-29T20:35:31.490Z",
"updatedAt": "2022-03-29T20:35:31.490Z"
}
}
Was this page helpful?