{"id":15296200,"url":"https://github.com/onecodegr/shopflix-connector-library","last_synced_at":"2025-10-07T08:31:00.200Z","repository":{"id":57031474,"uuid":"447992951","full_name":"OnecodeGr/shopflix-connector-library","owner":"OnecodeGr","description":"Official SHOPFLIX connector library for php projects by Onecode","archived":true,"fork":false,"pushed_at":"2022-11-21T13:14:44.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-18T09:52:31.755Z","etag":null,"topics":["php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OnecodeGr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-14T14:19:58.000Z","updated_at":"2024-06-27T20:22:49.000Z","dependencies_parsed_at":"2022-08-23T18:50:42.844Z","dependency_job_id":null,"html_url":"https://github.com/OnecodeGr/shopflix-connector-library","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OnecodeGr%2Fshopflix-connector-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OnecodeGr%2Fshopflix-connector-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OnecodeGr%2Fshopflix-connector-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OnecodeGr%2Fshopflix-connector-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OnecodeGr","download_url":"https://codeload.github.com/OnecodeGr/shopflix-connector-library/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235607123,"owners_count":19017298,"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":["php"],"created_at":"2024-09-30T18:09:43.834Z","updated_at":"2025-10-07T08:30:54.846Z","avatar_url":"https://github.com/OnecodeGr.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# onecode/shopflix_connector_library\r\n\r\n[![GitHub version](https://badge.fury.io/gh/OnecodeGr%2Fshopflix-connector-library.svg)](https://badge.fury.io/gh/OnecodeGr%2Fshopflix-connector-library)\r\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE.md)\r\n[![PHP Version Require](http://poser.pugx.org/onecode/shopflix-connector-library/require/php)](https://packagist.org/packages/onecode/shopflix-connector-library)\r\n\r\nLibrary to connect with Shopflix (https://shopflix.gr) for vendors\r\n\r\nFor \u003e= Php7.1 \u003c= Php7.2 use the php71_php72 branch. Via composer\r\n\r\n``composer require onecode/shopflix-connector-library:0.0.1``\r\n\r\nFor \u003e= php7.3 use the main branch. Via composer\r\n\r\n``composer require onecode/shopflix-connector-library``\r\n\r\n# Usage\r\n\r\n```php\r\nuse \\Onecode\\ShopFlixConnector\\Library\\Connector;\r\n$connector = new Connector(\"username\", \"appi_key\", \"api_url\");\r\n```\r\n\r\nGet new orders\r\n\r\n```php\r\n$newOrders = $connector-\u003egetNewOrders();\r\n```\r\n\r\nGet canceled orders\r\n\r\n```php\r\n$canceledOrders = $connector-\u003egetCancelOrders();\r\n```\r\n\r\nGet partial shipped orders\r\n\r\n```php\r\n$partialShipped = $connector-\u003egetPartialShipped();\r\n```\r\n\r\nGet shipped order\r\n\r\n```php\r\n$shipped = $connector-\u003egetShipped();\r\n```\r\n\r\nUpdate order to shopflix set status to picking mode use on acceptance.\r\n\r\n```php\r\n $order = 123;#Shopflix Order id\r\n $connector-\u003epicking($orderId);\r\n```\r\n\r\nReject order\r\n\r\n```php\r\n $order = 123;#Shopflix Order id\r\n $connector-\u003ereject($orderId, \"The product has been removed\");\r\n```\r\n\r\nGet shipment for specific order\r\n\r\n```php\r\n $order = 123;#Shopflix Order id\r\n $shipments =  $connector-\u003egetShipment($orderId);\r\n```\r\n\r\nCreate tracking voucher\r\n\r\n```php\r\n $shipmentId = 123;#Shopflix Shipment id\r\n $voucher = $connector-\u003ecreateVoucher($shipmentId);\r\n```\r\n\r\nPrint tracking voucher number\r\n\r\n```php\r\n $trackingVoucher = \"tracking_voucher\";\r\n $voucher = $connector-\u003eprintVoucher($trackingVoucher); \r\n```\r\n\r\nMass print tracking voucher.Max 20 vouchers\r\n\r\n```php\r\n $trackingVouchers = [\r\n     \"tracking_voucher1\",\r\n     \"tracking_voucher2\",\r\n     \"tracking_voucher3\",\r\n     ...\r\n     \"tracking_voucher19\",\r\n ];\r\n $voucher = $connector-\u003eprintVouchers($trackingVoucher); \r\n```\r\n\r\nGet tracking voucher number from specific shipment\r\n\r\n```php\r\n $shipmentId = 123;#Shopflix Shipment id\r\n $voucher = $connector-\u003egetVoucher($shipmentId); \r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonecodegr%2Fshopflix-connector-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonecodegr%2Fshopflix-connector-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonecodegr%2Fshopflix-connector-library/lists"}