Run an action on an import of bookings
POST
https://api.nicer.travel/commerce/commission-imports/{importId}/actions
APPLY_MAPPING re-reads the rows with a new mapping (status PARSING, then READY); MAP_ADVISORS (admins and staff) replaces the emails-to-members map and re-reads the rows; SAVE_PRESET keeps the mapping for the company's next files; COMMIT creates one booking made elsewhere with its commission item per valid row, as a resumable job (status COMMITTING, then COMMITTED; duplicates are skipped and counted; a commit that failed stays COMMITTING and resumes when COMMIT is asked again); DISCARD drops a file that was not committed. Each action is audited.
Authorization
Path parameters
Header parameters
Request body JSON required
One of the following:
- object
- object
- object
- object
- object
Returns
200
OK
JSON
- createdAtstringrequiredformat: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
- updatedAtstringrequiredformat: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$