Create a framework agreement and signing link
Changed onCreate a framework agreement and a signing link, for the given worker. Once the agreement is signed, the FrameworkAgreementSignedEvent webhook is executed.
This endpoint is idempotent for retries: if an unsigned, non-expired framework agreement already exists for the worker and the requested isPayrollTaxReduction matches the worker's stored setting, the existing agreement and its signing link are returned instead of creating a new one. If the requested isPayrollTaxReduction differs (the worker changes their setting), the pending agreement - including its Stiply signing request - is cancelled and a new agreement reflecting the new setting is generated. A new agreement is likewise created when there is no pending agreement (e.g. the previous one expired or was already signed); any obsolete unsigned agreement is then replaced.
Request
- Base URLhttps://api.maqqie.app (the document declares no server; this is the origin it was published from)
- AuthOAuth 2Client credentialsToken URLhttps://maqqie.app/auth/realms/maqqie/protocol/openid-connect/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Successfully created the agreement
Changes
- breaking
added the new required request property
- breaking
added the new required request property
- breaking
the request's body type changed from no type to
object - breaking
the response's body type changed from no type to
objectfor status - breaking
the response's body type changed from no type to
stringfor status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking
- breaking
the request's body type changed from
objectto no type - breaking
the response's body type changed from
objectto no type for status - breaking
the response's body type changed from
stringto no type for status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - warning
removed the request property
- warning
removed the request property
- info
response schema
application/jsonenum value removedSIGNED_FRAMEWORK_AGREEMENT_ALREADY_EXISTS - info
response schema
application/jsonenum value removedWORKER_IDENTITY_DATA_INCOMPLETE
- breaking