...
Code Block | ||||
---|---|---|---|---|
| ||||
"customer": { "id": "123456", "consents": [ { "consentId": "9876", "trackId": "1000", "consentTechName": "NewsEmail", "customerConsentCreatedAt": "2018-06-11 13:03:05", "customerConsentStatus": "accepted" }, { "consentId": "9875", "trackId": "1001", "consentTechName": "NewsSMS", "customerConsentCreatedAt": "2018-06-11 13:03:38", "customerConsentStatus": "refused" }, { "consentId": "9874", "trackId": "1002", "consentTechName": "J'accepte d'être contacté occasionnellement par téphonetéléphone", "customerConsentCreatedAt": "2018-06-11 13:03:44", "customerConsentStatus": "unknowunknown" } ] } |
Sinon affichage d'un message d'erreur
...
Code Block | ||||
---|---|---|---|---|
| ||||
"consent": { "id": "9874", "consentTechName": "J'accepte d'être contacté occasionnellement par téphone", "customers": [ { "id": "123456", "trackId": "1002", "customerConsentCreatedAt": "2018-04-06 09:36:56", "customerConsentStatus": "unknowunknown" }, { "id": "123457", "trackId": "1003", "customerConsentCreatedAt": "2018-04-09 09:06:25", "customerConsentStatus": "refused" }, { "id": "123458", "trackId": "1004", "customerConsentCreatedAt": "2018-04-09 09:50:33", "customerConsentStatus": "toBeConfirmed" } ] }, "count": 4, "nextPageUrl": "http:social-sb.com/api/v2/customers-consents?consentId=9874&startAt=4" |
...