Menu
Address
The Address model
Arguments
MerchantNameCode
The merchant name code.
Example : sandbox
URL
HTTP request method : GET
URL :
https://sandbox.digipart.fr/api/customer/address
Fields
Header
A bearer token must be sent.
Body
Exemple of query
Exemple of response
var axios = require('axios');
var config = {
method: 'get',
url: 'https://dev.digipart.fr/api/customer/address',
headers: {
'Authorization': 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJjdXN0b21lcklkIjoiMjU1MCIsImN1c3RvbWVyRW1haWwiOiJnaGlzbGFpbkBkaWdpcGFydC5mciIsImN1c3RvbWVyRmlyc3ROYW1lIjoiR2hpc2xhaW4iLCJjdXN0b21lckxhc3ROYW1lIjoiZCdPcmdldmlsbGUiLCJjdXN0b21lckJpcnRoRGF0ZSI6IjE5NzktMDItMTkiLCJpYXQiOjE2NzM0MzIyNzEsImV4cCI6MTY3MzUxODY3MX0.TCyZRTeZSQ0mMvHQiFjBsuAXaTyVUpYN1HJ-p3wX7m4',
'Cookie': 'PHPSESSID=344452986d40e77be9ad5e5b131ece9b'
}
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
[
{
"IdAddress": "29446",
"Alias": "My address in NY",
"Company": "test",
"Lastname": "test",
"Firstname": "test",
"Address1": "43 W 55th St",
"Address2": "",
"Postcode": "10019",
"City": "New York",
"Country": "États-Unis",
"MobilePhone": "999999999",
"Phone": "0000000"
},
{
"IdAddress": "29445",
"Alias": "Mon adresse en Allemagne",
"Company": "",
"Lastname": "Thomas",
"Firstname": "Muller",
"Address1": "25, Werner-Heisenberg-Allee",
"Address2": "",
"Postcode": "80939",
"City": "München",
"Country": "Allemagne",
"MobilePhone": "0655889988",
"Phone": ""
}
]
Sandbox test code