Party API - Apigee (1.0.2)
Download OpenAPI specification:Download
Party API documentation
Authentication & Authorization
You will need to be identified before calling any endpoints.
In order to be recognized and authorized to access our Party API, we put in place 2 mechanisms:
- Authentication mechanism is done with a client id dedicated to you.
Remember that the client id provided should be shared with care.
The client id must be inserted in the header of the request in the appropriate field - Authorization mechanism is done by a well-known authorization flow for REST Web API: Basic auth flow.
Create retail customer.
This endpoint allows to create or update a retail customer.
Authorizations:
Request Body schema: application/json
externalRef required | string <= 255 characters Party reference code of the source |
membership | string <= 255 characters Membership program of the party |
title | string <= 255 characters The title of the contact (e.g., Mr., Mrs., Ms.) |
firstName | string <= 255 characters The first name of the contact |
lastName | string <= 255 characters The last name of the contact |
secondLastName | string <= 255 characters The second last name of the contact |
nationalIdentificationNumber | string <= 255 characters The national identification number of the contact |
string <= 255 characters The email address of the contact | |
phoneNumber | string <= 255 characters The phone number of the contact |
mobilePhoneNumber | string <= 255 characters The mobile phone number of the contact |
birthDate | string <date> The birth date of the contact |
addressLine1 | string <= 255 characters The first line of the site's address |
addressLine2 | string <= 255 characters The second line of the site's address |
addressLine3 | string <= 255 characters The third line of the site's address |
postalCode | string <= 255 characters The postal code of the site's address |
city | string <= 255 characters The city of the site's address |
subdivision | string <= 255 characters The subdivision (e.g., state, province) of the site's address |
countryCode required | string <= 255 characters The country code of the site's address |
object The contact's communication preferences | |
object GDPR consent details. |
Responses
Request samples
- Payload
{- "externalRef": "12345678",
- "membership": "Michelin",
- "title": "M",
- "firstName": "John",
- "lastName": "DOE",
- "secondLastName": null,
- "nationalIdentificationNumber": "12345678E",
- "email": "mail@email.com",
- "phoneNumber": "00 001 1111111",
- "mobilePhoneNumber": null,
- "birthDate": "1990-10-10",
- "addressLine1": "Neumarkter Str.",
- "addressLine2": null,
- "addressLine3": null,
- "postalCode": "44666",
- "city": "City",
- "subdivision": null,
- "countryCode": "DE",
- "communicationChannel": {
- "sms": {
- "authorized": true,
- "marketingConsent": true,
- "consentDate": "2024-09-10"
}, - "email": {
- "authorized": true,
- "marketingConsent": true,
- "consentDate": null
}, - "postal": {
- "authorized": true,
- "marketingConsent": true,
- "consentDate": null
}
}, - "gdpr": {
- "signed": true,
- "signedDate": "2024-12-27"
}
}
Response samples
- 200
- 400
- 401
- 500
{- "code": "10001111"
}
Get parties data
Get parties data filtered by parameters
Authorizations:
query Parameters
pageNumber required | integer <int32> (PageNumberQueryParam) [ 1 .. 1000 ] Example: pageNumber=2 The page number |
pageSize required | integer <int32> (PageSizeQueryParam) [ 1 .. 1000 ] Example: pageSize=2 The page size |
lastModifiedDateFrom | string <date-time> (LastModifiedDateFromQueryParam) Example: lastModifiedDateFrom=2024-05-02T10:00:00 Date from for last update date of data |
lastModifiedDateTo | string <date-time> (LastModifiedDateToQueryParam) Example: lastModifiedDateTo=2024-05-02T10:00:00 Date to for last update date of data |
externalRef | string (ExternalRefQueryParam) <= 255 characters Example: externalRef=1000045 external ref of the party |
source | string (SourceQueryParam) <= 255 characters Example: source=2024-05-02T10:00:00 source of the party |
Responses
Response samples
- 200
- 400
- 401
- 404
- 500
{- "pagination": {
- "next": "/party-erm/v1/parties?page=3&size=50",
- "previous": "/party-erm/v1/parties?page=1&size=50",
- "pageTotal": "3",
- "totalElements": "125"
}, - "parties": [
- {
- "code": "100001",
- "type": "B2C",
- "active": true,
- "membership": "Michelin",
- "sites": [
- {
- "code": "100011",
- "name": "John DOE",
- "addressLine1": "Neumarkter Str.",
- "addressLine2": null,
- "addressLine3": null,
- "postalCode": "44666",
- "city": "City",
- "subdivision": null,
- "countryCode": "DE",
- "contact": [
- {
- "code": "100111",
- "title": "M",
- "firstName": "John",
- "lastName": "DOE",
- "secondLastName": null,
- "nationalIdentificationNumber": "12345678E",
- "email": "mail@email.com",
- "phoneNumber": "00 001 1111111",
- "mobilePhoneNumber": null,
- "birthDate": "1990-10-10",
- "communicationChannel": {
- "sms": {
- "authorized": true,
- "marketingConsent": true,
- "consentDate": "2024-09-10"
}, - "email": {
- "authorized": true,
- "marketingConsent": true,
- "consentDate": "2024-09-11"
}, - "postal": {
- "authorized": true,
- "marketingConsent": true,
- "consentDate": "2024-09-12"
}
}, - "gdpr": {
- "signed": true,
- "signedDate": "2024-12-27"
}
}
]
}
], - "references": [
- {
- "source": "GENES",
- "externalRef": "12345678",
- "countryCode": "ES",
- "lastModifiedDate": "2024-12-27T12:23:23"
}
]
}
]
}