Single collection
GET
http://node-staging.billeasy.in/api/v1//customers/collections/{collection_id}
This endpoint allows you to get free cakes.
Path Parameters
Name
Type
Description
collection_id
string
Headers
Name
Type
Description
x-customer-number
string
x-customer-token
string
x-api-secret
string
x-api-access
string
Content-Type
string
{
"success": true,
"msg": "single collection found",
"data": {
"id": 54,
"name": "Test 1",
"created_at": "2020-01-28T07:33:22.085Z",
"bill_ids": [
25780,
25916,
25766,
25963,
25950,
25778,
25779,
25777,
25752
],
"bills": [
{
"id": 25963,
"snippet": "Dahi",
"grand_total": "10.00",
"customer_id": 551,
"meta": {
"date": "06/02/2020",
"type": "expense",
"category_type": "F&B",
"payment_method": "Cash"
},
"client_logo": "",
"client_name": "",
"shared": "false",
"created_at": "2020-02-06T07:45:31.357Z"
},
{
"id": 25950,
"snippet": "Lots Of Birthday Wishes",
"grand_total": "100100.00",
"customer_id": 551,
"meta": {},
"client_logo": "https://billeasy-demo.s3.ap-south-1.amazonaws.com/uploads/client/company_logo/306/main_file.png",
"client_name": "https://billeasy-demo.s3.ap-south-1.amazonaws.com/uploads/client/company_name/306/main_file.png",
"shared": "false",
"created_at": "2020-01-31T07:46:30.575Z"
},
{
"id": 25916,
"snippet": "Wadapav 1",
"grand_total": "10.00",
"customer_id": 551,
"meta": {
"date": "11/01/2020",
"type": "expense",
"category_type": "F&B",
"payment_method": "Cash",
"date_of_expense": "11/01/2020"
},
"client_logo": "",
"client_name": "",
"shared": "false",
"created_at": "2020-01-11T10:10:37.410Z"
},
{
"id": 25780,
"snippet": "Oreo Cookie Cream",
"grand_total": "159.00",
"customer_id": 551,
"meta": {},
"client_logo": "https://billeasy-demo.s3.ap-south-1.amazonaws.com/uploads/client/company_logo/307/main_file.png",
"client_name": "https://billeasy-demo.s3.ap-south-1.amazonaws.com/uploads/client/company_name/307/main_file.png",
"shared": "true",
"created_at": "2019-11-26T10:38:32.339Z"
},
{
"id": 25779,
"snippet": "Maharaja Mc Burger",
"grand_total": "159.00",
"customer_id": 551,
"meta": {},
"client_logo": "https://billeasy-demo.s3.ap-south-1.amazonaws.com/uploads/client/company_logo/8/main_file.png",
"client_name": "https://billeasy-demo.s3.ap-south-1.amazonaws.com/uploads/client/company_name/8/main_file.png",
"shared": "true",
"created_at": "2019-11-26T10:31:01.064Z"
},
{
"id": 25778,
"snippet": "Kurta Short Basic (Cleaning & Ironing 135.00 Rs.) (* .Reserve Stains) (* .Without Guarantee)",
"grand_total": "159.00",
"customer_id": 551,
"meta": {},
"client_logo": "https://billeasy-demo.s3.ap-south-1.amazonaws.com/uploads/client/company_logo/7/main_file.png",
"client_name": "https://billeasy-demo.s3.ap-south-1.amazonaws.com/uploads/client/company_name/7/main_file.png",
"shared": "false",
"created_at": "2019-11-26T09:58:10.397Z"
},
{
"id": 25777,
"snippet": "Kurta Short Basic (Cleaning & Ironing 135.00 Rs.) (* .Reserve Stains) (* .Without Guarantee)",
"grand_total": "159.00",
"customer_id": 551,
"meta": {},
"client_logo": "https://billeasy-demo.s3.ap-south-1.amazonaws.com/uploads/client/company_logo/7/main_file.png",
"client_name": "https://billeasy-demo.s3.ap-south-1.amazonaws.com/uploads/client/company_name/7/main_file.png",
"shared": "false",
"created_at": "2019-11-26T09:24:12.664Z"
},
{
"id": 25766,
"snippet": "Kurta Short Basic (Cleaning & Ironing 135.00 Rs.) (* .Reserve Stains) (* .Without Guarantee)",
"grand_total": "159.00",
"customer_id": 551,
"meta": {},
"client_logo": "https://billeasy-demo.s3.ap-south-1.amazonaws.com/uploads/client/company_logo/7/main_file.png",
"client_name": "https://billeasy-demo.s3.ap-south-1.amazonaws.com/uploads/client/company_name/7/main_file.png",
"shared": "false",
"created_at": "2019-11-25T14:30:57.753Z"
},
{
"id": 25752,
"snippet": "Notepad",
"grand_total": "177.00",
"customer_id": 551,
"meta": {},
"client_logo": "https://billeasy-demo.s3.ap-south-1.amazonaws.com/uploads/client/company_logo/306/main_file.png",
"client_name": "https://billeasy-demo.s3.ap-south-1.amazonaws.com/uploads/client/company_name/306/main_file.png",
"shared": "false",
"created_at": "2019-11-21T12:34:59.513Z"
}
]
}
}
Empty:
{
"success": true,
"msg": "Collection not found.",
"data": {}
}
404:
{
"success": false,
"msg": "Collection not found.",
"data": {}
}
Last updated