front, back) and attach them to a Primary Customer record.
The request is multipart/form-data and includes:
document.type must be one of the following values:
NATIONAL_IDPASSPORTDRIVING_LICENSEOTHERScustomerId (Primary Customer):
customerId (CRP under a Primary Customer):
front and documentcurl -X POST "{{backend_url}}/api/customer/{customerId}/document" \
-H "Authorization: Bearer <token>" \
-H "X-Domain-ID: 6603" \
-F "front=@front.png;type=image/png" \
-F 'document={"type":"NATIONAL_ID","number":"S1234567A","authenticity":"ORIGINAL","issueDate":"2020-01-01","expiryDate":"2030-01-01","showExpiryNotification":true};type=application/json'
The access token received from the authorization server in the OAuth 2.0 flow.
X-Domain-ID
customerId
Document uploaded successfully