Modify or remove an endpoint
After creation, you can update certain endpoint fields such as the validity period and supported documents. You can't change the address itself.
What you can update
After creation, you can update the following fields through Compliance Network or a PUT request:
-
validityPeriod(start and end dates)Note:In production, the start date must be tomorrow or later. Same-day dates aren't accepted. Annuaire updates process nightly, so changes take effect the next day (J+1). The end date is optional.
-
supportedDocuments -
erpSystemId -
contact (name and email) -
schedulePeppolRegistration. You must sendtruewhen the endpoint has a scheduled or failed PEPPOL registration.
If you change the start date, the new start date must be in the future. You can send the current start date unchanged, even if it has passed. This applies whether or not you use scheduled registration.
Change the start date when PEPPOL registration is scheduled
What happens when you change the start date depends on the endpoint's PEPPOL registration state. What Sovos does depends on the PEPPOL state of the endpoint and on the value of schedulePeppolRegistration. See the tables that follow.
When you send schedulePeppolRegistration as true, Sovos schedules the PEPPOL registration for the start date. The following table shows what Sovos does in each state and the state the endpoint has afterward.
| Current state | What Sovos does | New state |
|---|---|---|
Scheduled |
Cancels the scheduled. Then schedules a new one for the new start date. Sovos keeps any stored migration key. | Scheduled |
Registered |
Removes the PEPPOL registration now. Closes the current Annuaire address lines. Then creates new ones with the new start date. Then schedules a new PEPPOL registration. Sovos sends an asynchronous notification. | Scheduled |
Failed |
Schedules a new PEPPOL registration for the new start date. Sovos uses any stored migration key. | Scheduled |
What happens when you update an endpoint depends on two things: the endpoint's PEPPOL registration state and the value of schedulePeppolRegistration. The following table shows the result for each combination.
| Current state | schedulePeppolRegistration is true |
schedulePeppolRegistration is false or omitted |
|---|---|---|
Registered (live on PEPPOL) |
Schedules the registration for the start date. | Updates the endpoint immediately. |
Scheduled |
Moves the scheduled registration to the new start date. | Sovos refuses the update with 409 PeppolRegistrationScheduleRequired. |
Failed |
Schedules the registration again. This applies to every update, including contact-only changes. | Sovos refuses the update with 409 PeppolRegistrationScheduleRequired. |
NotApplicable (not on PEPPOL) |
Sovos updates the endpoint. Nothing changes on PEPPOL. | Sovos updates the endpoint. Nothing changes on PEPPOL. |
Keep these rules in mind when you update an endpoint that has scheduled PEPPOL registration:
-
A
Failedendpoint needsschedulePeppolRegistrationset totrueon every update, including contact-only changes. Sovos then schedules the registration again. -
If another change is in progress for the same PEPPOL identifier, Sovos returns 409
PeppolActivationInProgress. Try again shortly -
Sovos refuses an update while a PEPPOL activation is
Executingfor the same PEPPOL participant identifier.
When you change the start date of a Registered endpoint, Sovos removes the PEPPOL registration immediately. Until Sovos registers the address again on PEPPOL, issuers can't see or reach it, so you can't get documents at that address.
Sovos returns 409 in two cases. The first is when the endpoint is Scheduled or Failed and you don't send schedulePeppolRegistration as true. The second is when a PEPPOL activation or another change is in progress for any endpoint with the same PEPPOL identifier, including the other direction.
{
"status": 409,
"success": false,
"message": "Conflict",
"errors": [
{
"subCode": "PeppolRegistrationScheduleRequired",
"message": "The endpoint has a scheduled or failed Peppol registration; send schedulePeppolRegistration as true to update it."
}
]
}
What you can't change
You can't change the address (codeComponents) after creation. The API doesn't apply changes to codeComponents. You can change the start date in validityPeriod. The Annuaire doesn't allow start date changes, so Sovos closes the existing address lines. Then Sovos creates new ones for the same address. The new start date must be in the future.
If a customer's address needs to change, follow this process:
-
Remove the existing endpoint.
-
Create a new endpoint with the correct address.
To remove an endpoint through the API, send a DELETE request.
curl --location --request DELETE \
'https://api-test.sovos.com/v2/configurations/organizations/{orgId}/companies/{companyId}/endpoints/{endpointId}' \
--header 'x-correlationId: SET-TO-UNIQUE-VALUE' \
--header 'Authorization: Bearer TOKEN'
The access token (Bearer token) expires after one hour. To avoid authentication errors, request a new token before the current one expires. For details, see API authentication.
A successful removal returns 200 OK. After removal, the company can no longer receive documents through this endpoint.
Removing an endpoint cancels its scheduled PEPPOL activation. Sovos returns 409 if a PEPPOL activation or another change is in progress for any endpoint with the same PEPPOL identifier, including the other direction.
Risk: the transition gap
Between the moment an inbound endpoint is removed and the moment a new one becomes active, the customer's address is either unregistered or pointing to an inactive entry in the Annuaire. Any supplier who looks up the customer during this window and tries to send an invoice may receive a routing error. Coordinate the removal and re-creation closely. Also tell the customer to let key suppliers know about any expected downtime.
Changing the start date of a Registered endpoint carries a similar risk. Sovos removes the PEPPOL registration. Then Sovos registers the address again on the new start date. Until then, issuers can't see or reach the address on PEPPOL, so you can't receive documents at it. Plan the change. Also tell the customer to let key suppliers know about the expected downtime.
