{"openapi":"3.1.0","info":{"title":"DocLayer Integration API","version":"1.0.0"},"servers":[{"url":"/"}],"paths":{"/v1/integrations/upload-requests":{"post":{"operationId":"createCollectionRequest","summary":"Create a record-bound collection request; the link is returned once","tags":["Collection requests"],"security":[{"integrationKey":[]}],"parameters":[{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string","minLength":8,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":160},"message":{"default":"","type":"string","maxLength":2000},"recipientEmail":{"type":"string","maxLength":320,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"requestedCategoryIds":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"expiresAt":{"type":"string","format":"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))$"},"expirationWarningHours":{"default":24,"anyOf":[{"type":"integer","minimum":1,"maximum":168},{"type":"null"}]},"maximumFiles":{"type":"integer","minimum":1,"maximum":100},"maximumBytes":{"type":"integer","minimum":1,"maximum":5368709120},"requireEmailOtp":{"default":true,"type":"boolean"},"uploadOnly":{"default":true,"type":"boolean"},"allowViewOwnUploads":{"default":false,"type":"boolean"},"target":{"type":"object","properties":{"installationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"recordType":{"type":"string","maxLength":113},"recordId":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}},"required":["installationId","recordType","recordId"],"additionalProperties":false}},"required":["title","message","recipientEmail","requestedCategoryIds","expiresAt","expirationWarningHours","maximumFiles","maximumBytes","requireEmailOtp","uploadOnly","allowViewOwnUploads","target"],"additionalProperties":false}}}},"responses":{"201":{"description":"Successful response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"token":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"expiresAt":{"type":"string","format":"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))$"},"invitationStatus":{"type":"string","enum":["PENDING","SENT","FAILED"]},"replayed":{"type":"boolean"}},"required":["id","token","url","expiresAt","invitationStatus","replayed"],"additionalProperties":false}}}},"default":{"description":"Stable DocLayer problem response","content":{"application/problem+json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"code":{"type":"string","enum":["VALIDATION_ERROR","IDEMPOTENCY_KEY_REQUIRED","IDEMPOTENCY_KEY_REUSED","UPLOAD_SESSION_EXPIRED","UPLOAD_SIZE_MISMATCH","UPLOAD_ALREADY_COMPLETED","UPLOAD_MODE_INVALID","MULTIPART_STATE_INVALID","DOCUMENT_NOT_AVAILABLE","DOCUMENT_ACCESS_DENIED","PUBLIC_ACCESS_DENIED","RATE_LIMITED","NOTIFICATION_UNAVAILABLE","STORAGE_CONNECTION_UNAVAILABLE","STORAGE_CONNECTION_REQUIRED","PLAN_LIMIT_EXCEEDED","FILE_PROCESSING_LIMIT_EXCEEDED","PROCESSING_RETRY_NOT_ALLOWED","SUBSCRIPTION_READ_ONLY","SUBSCRIPTION_ACCESS_EXPIRED","BILLING_CONFIGURATION_UNAVAILABLE","BILLING_ACTION_INVALID","BILLING_WEBHOOK_SIGNATURE_INVALID","OAUTH_CONFIGURATION_MISSING","OAUTH_STATE_INVALID","OAUTH_CALLBACK_REJECTED","OAUTH_UPSTREAM_ERROR","NETSUITE_CONNECTION_REQUIRED","NETSUITE_SETUP_INCOMPLETE","NETSUITE_LAUNCH_INVALID","NETSUITE_SETUP_ACCESS_DENIED","NETSUITE_SESSION_EXPIRED","NETSUITE_RECORD_UNAVAILABLE","SETUP_TEST_UPLOAD_FAILED","SETUP_TEST_PROCESSING_INCOMPLETE","SETUP_TEST_DOWNLOAD_FAILED","SETUP_TEST_CONTENT_MISMATCH","MIGRATION_ACCESS_DENIED","MIGRATION_STATE_INVALID","MIGRATION_ITEM_CONFLICT","MIGRATION_RATE_LIMITED","MIGRATION_VERIFICATION_INCOMPLETE","INTERNAL_ERROR"]},"detail":{"type":"string"},"requestId":{"type":"string"}},"required":["type","title","status","code","detail","requestId"],"additionalProperties":false}}}}}},"get":{"operationId":"listCollectionRequests","summary":"List requests created by this credential for the exact target record","tags":["Collection requests"],"security":[{"integrationKey":[]}],"parameters":[{"in":"query","name":"installationId","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"in":"query","name":"recordType","required":true,"schema":{"type":"string","maxLength":113}},{"in":"query","name":"recordId","required":true,"schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}},{"in":"query","name":"limit","required":true,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"in":"query","name":"cursor","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requests":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"message":{"type":"string"},"recipientEmail":{"type":"string"},"installationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"recordType":{"type":"string","maxLength":113},"recordId":{"type":"string"},"requestedCategoryIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"maximumFiles":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maximumBytes":{"type":"string"},"reservedFiles":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reservedBytes":{"type":"string"},"requireEmailOtp":{"type":"boolean"},"allowViewOwnUploads":{"type":"boolean"},"expiresAt":{"type":"string","format":"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))$"},"revokedAt":{"anyOf":[{"type":"string","format":"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))$"},{"type":"null"}]},"invitationStatus":{"type":"string","enum":["PENDING","SENT","FAILED"]},"status":{"type":"string","enum":["ACTIVE","EXPIRED","REVOKED","LIMIT_REACHED"]}},"required":["id","title","message","recipientEmail","installationId","recordType","recordId","requestedCategoryIds","maximumFiles","maximumBytes","reservedFiles","reservedBytes","requireEmailOtp","allowViewOwnUploads","expiresAt","revokedAt","invitationStatus","status"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["requests","nextCursor"],"additionalProperties":false}}}},"default":{"description":"Stable DocLayer problem response","content":{"application/problem+json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"code":{"type":"string","enum":["VALIDATION_ERROR","IDEMPOTENCY_KEY_REQUIRED","IDEMPOTENCY_KEY_REUSED","UPLOAD_SESSION_EXPIRED","UPLOAD_SIZE_MISMATCH","UPLOAD_ALREADY_COMPLETED","UPLOAD_MODE_INVALID","MULTIPART_STATE_INVALID","DOCUMENT_NOT_AVAILABLE","DOCUMENT_ACCESS_DENIED","PUBLIC_ACCESS_DENIED","RATE_LIMITED","NOTIFICATION_UNAVAILABLE","STORAGE_CONNECTION_UNAVAILABLE","STORAGE_CONNECTION_REQUIRED","PLAN_LIMIT_EXCEEDED","FILE_PROCESSING_LIMIT_EXCEEDED","PROCESSING_RETRY_NOT_ALLOWED","SUBSCRIPTION_READ_ONLY","SUBSCRIPTION_ACCESS_EXPIRED","BILLING_CONFIGURATION_UNAVAILABLE","BILLING_ACTION_INVALID","BILLING_WEBHOOK_SIGNATURE_INVALID","OAUTH_CONFIGURATION_MISSING","OAUTH_STATE_INVALID","OAUTH_CALLBACK_REJECTED","OAUTH_UPSTREAM_ERROR","NETSUITE_CONNECTION_REQUIRED","NETSUITE_SETUP_INCOMPLETE","NETSUITE_LAUNCH_INVALID","NETSUITE_SETUP_ACCESS_DENIED","NETSUITE_SESSION_EXPIRED","NETSUITE_RECORD_UNAVAILABLE","SETUP_TEST_UPLOAD_FAILED","SETUP_TEST_PROCESSING_INCOMPLETE","SETUP_TEST_DOWNLOAD_FAILED","SETUP_TEST_CONTENT_MISMATCH","MIGRATION_ACCESS_DENIED","MIGRATION_STATE_INVALID","MIGRATION_ITEM_CONFLICT","MIGRATION_RATE_LIMITED","MIGRATION_VERIFICATION_INCOMPLETE","INTERNAL_ERROR"]},"detail":{"type":"string"},"requestId":{"type":"string"}},"required":["type","title","status","code","detail","requestId"],"additionalProperties":false}}}}}}},"/v1/integrations/upload-requests/{id}":{"get":{"operationId":"getCollectionRequest","summary":"Read a collection request and submitted file processing states","tags":["Collection requests"],"security":[{"integrationKey":[]}],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"in":"query","name":"installationId","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"in":"query","name":"recordType","required":true,"schema":{"type":"string","maxLength":113}},{"in":"query","name":"recordId","required":true,"schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"request":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"message":{"type":"string"},"recipientEmail":{"type":"string"},"installationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"recordType":{"type":"string","maxLength":113},"recordId":{"type":"string"},"requestedCategoryIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"maximumFiles":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maximumBytes":{"type":"string"},"reservedFiles":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reservedBytes":{"type":"string"},"requireEmailOtp":{"type":"boolean"},"allowViewOwnUploads":{"type":"boolean"},"expiresAt":{"type":"string","format":"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))$"},"revokedAt":{"anyOf":[{"type":"string","format":"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))$"},{"type":"null"}]},"invitationStatus":{"type":"string","enum":["PENDING","SENT","FAILED"]},"status":{"type":"string","enum":["ACTIVE","EXPIRED","REVOKED","LIMIT_REACHED"]}},"required":["id","title","message","recipientEmail","installationId","recordType","recordId","requestedCategoryIds","maximumFiles","maximumBytes","reservedFiles","reservedBytes","requireEmailOtp","allowViewOwnUploads","expiresAt","revokedAt","invitationStatus","status"],"additionalProperties":false},"files":{"type":"array","items":{"type":"object","properties":{"documentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"documentVersionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"name":{"type":"string"},"status":{"type":"string"}},"required":["documentId","documentVersionId","name","status"],"additionalProperties":false}}},"required":["request","files"],"additionalProperties":false}}}},"default":{"description":"Stable DocLayer problem response","content":{"application/problem+json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"code":{"type":"string","enum":["VALIDATION_ERROR","IDEMPOTENCY_KEY_REQUIRED","IDEMPOTENCY_KEY_REUSED","UPLOAD_SESSION_EXPIRED","UPLOAD_SIZE_MISMATCH","UPLOAD_ALREADY_COMPLETED","UPLOAD_MODE_INVALID","MULTIPART_STATE_INVALID","DOCUMENT_NOT_AVAILABLE","DOCUMENT_ACCESS_DENIED","PUBLIC_ACCESS_DENIED","RATE_LIMITED","NOTIFICATION_UNAVAILABLE","STORAGE_CONNECTION_UNAVAILABLE","STORAGE_CONNECTION_REQUIRED","PLAN_LIMIT_EXCEEDED","FILE_PROCESSING_LIMIT_EXCEEDED","PROCESSING_RETRY_NOT_ALLOWED","SUBSCRIPTION_READ_ONLY","SUBSCRIPTION_ACCESS_EXPIRED","BILLING_CONFIGURATION_UNAVAILABLE","BILLING_ACTION_INVALID","BILLING_WEBHOOK_SIGNATURE_INVALID","OAUTH_CONFIGURATION_MISSING","OAUTH_STATE_INVALID","OAUTH_CALLBACK_REJECTED","OAUTH_UPSTREAM_ERROR","NETSUITE_CONNECTION_REQUIRED","NETSUITE_SETUP_INCOMPLETE","NETSUITE_LAUNCH_INVALID","NETSUITE_SETUP_ACCESS_DENIED","NETSUITE_SESSION_EXPIRED","NETSUITE_RECORD_UNAVAILABLE","SETUP_TEST_UPLOAD_FAILED","SETUP_TEST_PROCESSING_INCOMPLETE","SETUP_TEST_DOWNLOAD_FAILED","SETUP_TEST_CONTENT_MISMATCH","MIGRATION_ACCESS_DENIED","MIGRATION_STATE_INVALID","MIGRATION_ITEM_CONFLICT","MIGRATION_RATE_LIMITED","MIGRATION_VERIFICATION_INCOMPLETE","INTERNAL_ERROR"]},"detail":{"type":"string"},"requestId":{"type":"string"}},"required":["type","title","status","code","detail","requestId"],"additionalProperties":false}}}}}},"delete":{"operationId":"revokeCollectionRequest","summary":"Revoke a request while retaining accepted files and audit history","tags":["Collection requests"],"security":[{"integrationKey":[]}],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"in":"query","name":"installationId","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"in":"query","name":"recordType","required":true,"schema":{"type":"string","maxLength":113}},{"in":"query","name":"recordId","required":true,"schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"type":"string","minLength":1}},"required":["status"],"additionalProperties":false}}}},"default":{"description":"Stable DocLayer problem response","content":{"application/problem+json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"code":{"type":"string","enum":["VALIDATION_ERROR","IDEMPOTENCY_KEY_REQUIRED","IDEMPOTENCY_KEY_REUSED","UPLOAD_SESSION_EXPIRED","UPLOAD_SIZE_MISMATCH","UPLOAD_ALREADY_COMPLETED","UPLOAD_MODE_INVALID","MULTIPART_STATE_INVALID","DOCUMENT_NOT_AVAILABLE","DOCUMENT_ACCESS_DENIED","PUBLIC_ACCESS_DENIED","RATE_LIMITED","NOTIFICATION_UNAVAILABLE","STORAGE_CONNECTION_UNAVAILABLE","STORAGE_CONNECTION_REQUIRED","PLAN_LIMIT_EXCEEDED","FILE_PROCESSING_LIMIT_EXCEEDED","PROCESSING_RETRY_NOT_ALLOWED","SUBSCRIPTION_READ_ONLY","SUBSCRIPTION_ACCESS_EXPIRED","BILLING_CONFIGURATION_UNAVAILABLE","BILLING_ACTION_INVALID","BILLING_WEBHOOK_SIGNATURE_INVALID","OAUTH_CONFIGURATION_MISSING","OAUTH_STATE_INVALID","OAUTH_CALLBACK_REJECTED","OAUTH_UPSTREAM_ERROR","NETSUITE_CONNECTION_REQUIRED","NETSUITE_SETUP_INCOMPLETE","NETSUITE_LAUNCH_INVALID","NETSUITE_SETUP_ACCESS_DENIED","NETSUITE_SESSION_EXPIRED","NETSUITE_RECORD_UNAVAILABLE","SETUP_TEST_UPLOAD_FAILED","SETUP_TEST_PROCESSING_INCOMPLETE","SETUP_TEST_DOWNLOAD_FAILED","SETUP_TEST_CONTENT_MISMATCH","MIGRATION_ACCESS_DENIED","MIGRATION_STATE_INVALID","MIGRATION_ITEM_CONFLICT","MIGRATION_RATE_LIMITED","MIGRATION_VERIFICATION_INCOMPLETE","INTERNAL_ERROR"]},"detail":{"type":"string"},"requestId":{"type":"string"}},"required":["type","title","status","code","detail","requestId"],"additionalProperties":false}}}}}}},"/v1/integrations/upload-requests/{id}/link":{"post":{"operationId":"rotateCollectionRequestLink","summary":"Issue a new link once and invalidate the previous link","tags":["Collection requests"],"security":[{"integrationKey":[]}],"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"in":"query","name":"installationId","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"in":"query","name":"recordType","required":true,"schema":{"type":"string","maxLength":113}},{"in":"query","name":"recordId","required":true,"schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string","minLength":8,"maxLength":128}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"token":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"expiresAt":{"type":"string","format":"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))$"},"invitationStatus":{"type":"string","enum":["PENDING","SENT","FAILED"]},"replayed":{"type":"boolean"}},"required":["id","token","url","expiresAt","invitationStatus","replayed"],"additionalProperties":false}}}},"default":{"description":"Stable DocLayer problem response","content":{"application/problem+json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"code":{"type":"string","enum":["VALIDATION_ERROR","IDEMPOTENCY_KEY_REQUIRED","IDEMPOTENCY_KEY_REUSED","UPLOAD_SESSION_EXPIRED","UPLOAD_SIZE_MISMATCH","UPLOAD_ALREADY_COMPLETED","UPLOAD_MODE_INVALID","MULTIPART_STATE_INVALID","DOCUMENT_NOT_AVAILABLE","DOCUMENT_ACCESS_DENIED","PUBLIC_ACCESS_DENIED","RATE_LIMITED","NOTIFICATION_UNAVAILABLE","STORAGE_CONNECTION_UNAVAILABLE","STORAGE_CONNECTION_REQUIRED","PLAN_LIMIT_EXCEEDED","FILE_PROCESSING_LIMIT_EXCEEDED","PROCESSING_RETRY_NOT_ALLOWED","SUBSCRIPTION_READ_ONLY","SUBSCRIPTION_ACCESS_EXPIRED","BILLING_CONFIGURATION_UNAVAILABLE","BILLING_ACTION_INVALID","BILLING_WEBHOOK_SIGNATURE_INVALID","OAUTH_CONFIGURATION_MISSING","OAUTH_STATE_INVALID","OAUTH_CALLBACK_REJECTED","OAUTH_UPSTREAM_ERROR","NETSUITE_CONNECTION_REQUIRED","NETSUITE_SETUP_INCOMPLETE","NETSUITE_LAUNCH_INVALID","NETSUITE_SETUP_ACCESS_DENIED","NETSUITE_SESSION_EXPIRED","NETSUITE_RECORD_UNAVAILABLE","SETUP_TEST_UPLOAD_FAILED","SETUP_TEST_PROCESSING_INCOMPLETE","SETUP_TEST_DOWNLOAD_FAILED","SETUP_TEST_CONTENT_MISMATCH","MIGRATION_ACCESS_DENIED","MIGRATION_STATE_INVALID","MIGRATION_ITEM_CONFLICT","MIGRATION_RATE_LIMITED","MIGRATION_VERIFICATION_INCOMPLETE","INTERNAL_ERROR"]},"detail":{"type":"string"},"requestId":{"type":"string"}},"required":["type","title","status","code","detail","requestId"],"additionalProperties":false}}}}}}}},"components":{"securitySchemes":{"integrationKey":{"type":"http","scheme":"bearer","bearerFormat":"DocLayer integration key"}}}}