Skip to content

API service to interact with Edenred FTP Server for merchants synchronization

Notifications You must be signed in to change notification settings

coopcycle/edenred-synchronizer

Repository files navigation

Edenred Synchronizer

API service to interact with Edenred FTP Server for merchants synchronization

Start server

This project uses Symfony Docker

docker compose build --no-cache --pull
docker compose up

The uploaded files can be found in var/upload. The files to download can be found in var/download.

Create a new api client

docker compose exec php bin/console synchronizer:client:create "client_name"

This command will give to you an api key that should be used on each call as a query param

api/merchants/{siretId}?api_key=<api_key>

Command to read files from Edenred SFTP

docker compose exec php bin/console edenred:synchronizer:read

API docs

https://localhost/api

Testing

Sending

curl -k -v -X POST -H 'Content-Type: application/json' -d '{"merchants":[{"siret":"123456"}]}' 'https://localhost/api/merchants?api_key=<api_key>'

Connecting to SQLite database

docker compose exec php sqlite3 var/db/data.db

About

API service to interact with Edenred FTP Server for merchants synchronization

Resources

Stars

Watchers

Forks

Releases

No releases published