Get validation status for a supplier
Retrieve the status of the most recent validation request for a supplier site, using the same identifier query parameters as GET /public/v2/suppliers/sites/find-by-identifier.
Resolution:
- At least one of supplierId, customerId, ownId, or prewaveId must be provided.
- Exactly one supplier must match (same rules as DELETE /public/v2/suppliers/sites and POST /public/v2/suppliers/sites/validation). If multiple suppliers match, 400 is returned.
- The response reflects the latest validation request you created for that target.
Status values:
- PENDING: The validation request has been submitted and is being processed.
- COMPLETED: The validation was successful. The outcomeTargetId field contains the Prewave target ID of the validated site (may differ from the original if a master record was identified).
- REJECTED: The validation could not be completed. The rejectionReason and rejectionReasonNotes fields provide details.
Example:
GET /public/v2/suppliers/sites/validation?prewaveId=102006215
Required Permission: ACCESS_PUBLIC_VALIDATION_REQUEST
Query parameters
Supplier ID to search for. Can be combined with customerId, ownId, and/or prewaveId.
Customer ID to search for. Can be combined with supplierId, ownId, and/or prewaveId.
Own site ID to search for. Can be combined with supplierId, customerId, and/or prewaveId.
Prewave ID to search for. Can be combined with supplierId, customerId, and/or ownId.
Optional source system to filter by. If not provided, matches IDs with any source or without a source. Applies to all provided ID parameters.
Response
Validation status returned
Example response
{
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"status": "PENDING",
"prewaveTargetId": 102006215,
"outcomeTargetId": 102006220,
"rejectionReason": "Address could not be validated",
"rejectionReasonNotes": "The provided address does not match any known location"
}