{"id":21177579,"url":"https://github.com/grjan7/ecommerce-store","last_synced_at":"2026-05-10T02:04:53.373Z","repository":{"id":119280285,"uuid":"585843753","full_name":"grjan7/ecommerce-store","owner":"grjan7","description":"Square Shift Ecommerce Node API","archived":false,"fork":false,"pushed_at":"2023-01-07T08:34:08.000Z","size":71,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-14T08:46:01.527Z","etag":null,"topics":["api","api-consumer","api-rest","backend","backend-api","curl","demo-app","ecommerce","javascript","nodejs","shift","shipping-rates","square"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/grjan7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-06T08:23:23.000Z","updated_at":"2024-04-14T08:46:01.528Z","dependencies_parsed_at":"2023-07-02T10:31:32.057Z","dependency_job_id":null,"html_url":"https://github.com/grjan7/ecommerce-store","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/grjan7/ecommerce-store","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grjan7%2Fecommerce-store","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grjan7%2Fecommerce-store/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grjan7%2Fecommerce-store/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grjan7%2Fecommerce-store/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grjan7","download_url":"https://codeload.github.com/grjan7/ecommerce-store/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grjan7%2Fecommerce-store/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261255849,"owners_count":23131474,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","api-consumer","api-rest","backend","backend-api","curl","demo-app","ecommerce","javascript","nodejs","shift","shipping-rates","square"],"created_at":"2024-11-20T17:16:30.659Z","updated_at":"2026-05-10T02:04:53.309Z","avatar_url":"https://github.com/grjan7.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ecommerce-store\n\nSquare Shift Ecommerce Node API\n\n## API Usage\n\n### POST /cart/item\n\n```ssh\ncurl -X GET \"https://ecom-store-node-api.onrender.com/cart/item?customerID=1\u0026productID=101\" -H 'accept:*/*'\n```\n\n#### Request Parameters\n\n##### in query\n  - customerID | number\n  - productID | number | range: 101-119\n\n#### Response\n\n```JSON\n{\"statusCode\":200,\"status\":\"Item is successfully added to your cart.\"}\n```\n\n### GET /cart/items\n\n```ssh\ncurl -X GET \"https://ecom-store-node-api.onrender.com/cart/items?customerID=1\" -H 'accept:*/*'\n```\n\n#### Request Parameters\n\n##### in query\n  - customerID | number\n\n#### Response\n\n```JSON\n[\n  {\n    \"_id\":\"63b7d246bb871b9034632bf7\",\n    \"customerID\":\"1\",\n    \"product\":{\n      \"category\":\"electronics\",\n      \"description\":\"USB 3.0 and USB 2.0 Compatibility Fast data transfers Improve PC Performance High Capacity; Compatibility Formatted NTFS for Windows 10, Windows 8.1, Windows 7; Reformatting may be required for other operating systems; Compatibility may vary depending on user’s hardware configuration and operating system\",\n      \"discount_percentage\":9,\n      \"id\":109,\n      \"image\":\"https://fakestoreapi.com/img/61IBBVJvSDL._AC_SY879_.jpg\",\n      \"price\":64,\n      \"rating\":{\"count\":203,\"rate\":3.3},\n      \"title\":\"WD 2TB Elements Portable External Hard Drive - USB 3.0 \",\n      \"weight_in_grams\":2050}\n      },\n  {\n    \"_id\":\"63b7d24ebb871b9034632bf8\",\n    \"customerID\":\"1\",\n    \"product\":{\n      \"category\":\"jewelery\",\n      \"description\":\"Satisfaction Guaranteed. Return or exchange any order within 30 days.Designed and sold by Hafeez Center in the United States. Satisfaction Guaranteed. Return or exchange any order within 30 days.\",\n      \"discount_percentage\":9.2,\n      \"id\":106,\n      \"image\":\"https://fakestoreapi.com/img/61sbMiUnoGL._AC_UL640_QL65_ML3_.jpg\",\n      \"price\":168,\n      \"rating\":{\"count\":70,\"rate\":3.9},\n      \"title\":\"Solid Gold Petite Micropave \",\n      \"weight_in_grams\":650}\n  }]\n```\n### GET /cart/checkout-value\n\n```ssh\ncurl -X GET \"https://ecom-store-node-api.onrender.com/cart/checkout-value/465536?customerID=1\" -H 'accept:*/*'\n```\n\n#### Request Parameters\n\n##### in path\n  - shippingPostalCode | number | range: 465535 - 465545\n\n##### in query\n  - customerID | number\n\n#### Response\n\n```JSON\n{\n  \"customerID\": \"1\",\n  \"postalCode\": \"465536\",\n  \"distance\": 220,  \n  \"totalItems\": 3,\n  \"totalWeightInKg\": 1.16,\n  \"actualPrice\": 148.24,\n  \"discountedPrice\": 139.6,\n  \"shippingCost\": 50, \n  \"checkOutValue\": 189.6\n  }\n```\n\n\n### DELETE /cart\n\n```ssh\ncurl -X DELETE \"https://ecom-store-node-api.onrender.com/cart?customerID=1\" -H 'accept:*/*'\n```\n\n#### Request Parameters\n\n##### in query\n  - customerID | number\n\n#### Response\n\n```JSON\n{\"status\":\"Cart items for this customerID 1 are successfully deleted.\"}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrjan7%2Fecommerce-store","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrjan7%2Fecommerce-store","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrjan7%2Fecommerce-store/lists"}