put https://api.zenoti.com/v1/classes//registrations//cancel
Purpose: The purpose of this API is to cancel the registration of a user to a class.
You must provide a unique identifier for the class_id
as well as for the registration_id
. The API then cancels the registration of a user to the class.
error Object
Message | Code | Description |
---|---|---|
Something went wrong. Message: The invoice for the registration is closed. Please reopen the invoice and try again. | 1035 | This error message appears when you are trying to cancel the guest's registration on a class for which the invoice is already closed. |
Invalid registration | 1004 | This message appears when the registration_id is invalid. |
Class not found | 1001 | This message appears when the class_id is invalid. |
Passed class is not associated with passed registratio | 1004 | This message appears when the class_id and the registration_id are not associated with each other. |