Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pierreco/colissimo-generate-label
Generate label (PDF link) with Colissimo Webservices (SOAP)
https://github.com/pierreco/colissimo-generate-label
colissimo colissimo-webservices webservice
Last synced: 25 days ago
JSON representation
Generate label (PDF link) with Colissimo Webservices (SOAP)
- Host: GitHub
- URL: https://github.com/pierreco/colissimo-generate-label
- Owner: pierreco
- Created: 2017-01-26T12:39:27.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-27T10:18:29.000Z (almost 8 years ago)
- Last Synced: 2024-11-19T09:17:37.396Z (about 1 month ago)
- Topics: colissimo, colissimo-webservices, webservice
- Language: JavaScript
- Size: 2.93 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
colissimo-label-generate
==============NodeJS module for generate return label PDF with colissimo webservices.
If success the webservice returns a url
Documentation: https://www.coliposte.fr/pro/docs/docutheque/divers/socolissimo/integrationwsshipping.pdf
## Installation
`npm install colissimo-generate-label`
## How it works
You can use `contractNumber/password` what you usually use to connect to https://www.colissimo.entreprise.laposte.fr/
## Example
```javascript
var moment = require('moment');
var colgl = require('colissimo-label-generate')({ contractNumber: 'YOUR_CONTRACT_NUMBER', password: 'YOUR_PASSWORD' });var data = {
orderNumber: 'LEX0010001',
returnNumber: 'RET-123331',
returnDate: new moment().format('YYYY-MM-DD'),
sender: {
lastName : 'Doe',
firstName : 'John',
adresse1: '1 rue de la liberté',
adresse2: 'ss',
countryCode: 'FR',
city: 'Paris',
zipCode: '75001',
mobileNumber: '0160601212',
email: '[email protected]',
},
receiver: {
companyName: 'Company Name',
lastName : 'Receiver LastName',
firstName : 'Receiver FirstName',
adresse1: 'Receiver addrese',
adresse2: 'ss',
countryCode: 'FR',
city: 'Paris',
zipCode: '75001',
mobileNumber: '0160601212',
email: '[email protected]',
language: 'FR'
}
};colgl.generateReturnRequest(data, function(err, data){
if(err){
console.log('err',err);
}else{
console.log('success url',data);
}
});
```