Create a task submission
curl --request POST \
--url https://platform.swipelux.com/v3/customers/{customerId}/tasks/{taskId}/submissions \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--header 'X-API-Key: <api-key>' \
--data '
{
"taskRevision": 3,
"answers": [
{
"requirementId": "req_01JSOURCE",
"answer": {
"type": "profile",
"value": "Revenue from annual software subscriptions."
}
},
{
"requirementId": "req_01JIDENTITY",
"alternativeKey": "passport",
"answer": {
"type": "document",
"documentIds": [
"doc_01JPASS"
]
}
}
]
}
'import requests
url = "https://platform.swipelux.com/v3/customers/{customerId}/tasks/{taskId}/submissions"
payload = {
"taskRevision": 3,
"answers": [
{
"requirementId": "req_01JSOURCE",
"answer": {
"type": "profile",
"value": "Revenue from annual software subscriptions."
}
},
{
"requirementId": "req_01JIDENTITY",
"alternativeKey": "passport",
"answer": {
"type": "document",
"documentIds": ["doc_01JPASS"]
}
}
]
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
'X-API-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
taskRevision: 3,
answers: [
{
requirementId: 'req_01JSOURCE',
answer: {type: 'profile', value: 'Revenue from annual software subscriptions.'}
},
{
requirementId: 'req_01JIDENTITY',
alternativeKey: 'passport',
answer: {type: 'document', documentIds: ['doc_01JPASS']}
}
]
})
};
fetch('https://platform.swipelux.com/v3/customers/{customerId}/tasks/{taskId}/submissions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://platform.swipelux.com/v3/customers/{customerId}/tasks/{taskId}/submissions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'taskRevision' => 3,
'answers' => [
[
'requirementId' => 'req_01JSOURCE',
'answer' => [
'type' => 'profile',
'value' => 'Revenue from annual software subscriptions.'
]
],
[
'requirementId' => 'req_01JIDENTITY',
'alternativeKey' => 'passport',
'answer' => [
'type' => 'document',
'documentIds' => [
'doc_01JPASS'
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://platform.swipelux.com/v3/customers/{customerId}/tasks/{taskId}/submissions"
payload := strings.NewReader("{\n \"taskRevision\": 3,\n \"answers\": [\n {\n \"requirementId\": \"req_01JSOURCE\",\n \"answer\": {\n \"type\": \"profile\",\n \"value\": \"Revenue from annual software subscriptions.\"\n }\n },\n {\n \"requirementId\": \"req_01JIDENTITY\",\n \"alternativeKey\": \"passport\",\n \"answer\": {\n \"type\": \"document\",\n \"documentIds\": [\n \"doc_01JPASS\"\n ]\n }\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://platform.swipelux.com/v3/customers/{customerId}/tasks/{taskId}/submissions")
.header("Idempotency-Key", "<idempotency-key>")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"taskRevision\": 3,\n \"answers\": [\n {\n \"requirementId\": \"req_01JSOURCE\",\n \"answer\": {\n \"type\": \"profile\",\n \"value\": \"Revenue from annual software subscriptions.\"\n }\n },\n {\n \"requirementId\": \"req_01JIDENTITY\",\n \"alternativeKey\": \"passport\",\n \"answer\": {\n \"type\": \"document\",\n \"documentIds\": [\n \"doc_01JPASS\"\n ]\n }\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://platform.swipelux.com/v3/customers/{customerId}/tasks/{taskId}/submissions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"taskRevision\": 3,\n \"answers\": [\n {\n \"requirementId\": \"req_01JSOURCE\",\n \"answer\": {\n \"type\": \"profile\",\n \"value\": \"Revenue from annual software subscriptions.\"\n }\n },\n {\n \"requirementId\": \"req_01JIDENTITY\",\n \"alternativeKey\": \"passport\",\n \"answer\": {\n \"type\": \"document\",\n \"documentIds\": [\n \"doc_01JPASS\"\n ]\n }\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"taskId": "<string>",
"customerId": "<string>",
"remediationRound": 1,
"taskRevision": 2,
"answers": [
{
"requirementId": "<string>",
"answer": {
"type": "profile",
"value": "<string>"
},
"alternativeKey": "<string>"
}
],
"submittedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"reviewFeedback": {
"code": "<string>",
"message": "<string>"
}
}
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"correlationId": "<string>",
"retryable": false,
"transferId": "<string>",
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"statusReason": {
"code": "sanctions_screening_failed",
"message": "<string>",
"retryable": true
},
"reviewAnswer": "<string>",
"capabilities": [
"<string>"
],
"blockingResources": [
{
"id": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "unauthorized",
"detail": "<string>",
"correlationId": "<string>",
"retryable": false,
"transferId": "<string>",
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"statusReason": {
"code": "sanctions_screening_failed",
"message": "<string>",
"retryable": true
},
"reviewAnswer": "<string>",
"capabilities": [
"<string>"
],
"blockingResources": [
{
"id": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "forbidden",
"detail": "<string>",
"correlationId": "<string>",
"retryable": false,
"transferId": "<string>",
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"statusReason": {
"code": "sanctions_screening_failed",
"message": "<string>",
"retryable": true
},
"reviewAnswer": "<string>",
"capabilities": [
"<string>"
],
"blockingResources": [
{
"id": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "task_not_found",
"detail": "<string>",
"correlationId": "<string>",
"retryable": false,
"transferId": "<string>",
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"statusReason": {
"code": "sanctions_screening_failed",
"message": "<string>",
"retryable": true
},
"reviewAnswer": "<string>",
"capabilities": [
"<string>"
],
"blockingResources": [
{
"id": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "task_changed",
"detail": "<string>",
"correlationId": "<string>",
"retryable": false,
"currentRevision": 2,
"taskId": "<string>",
"taskUrl": "/v3/customers/cus_01JABC/tasks/tsk_01JXYZ",
"transferId": "<string>",
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"statusReason": {
"code": "sanctions_screening_failed",
"message": "<string>",
"retryable": true
},
"reviewAnswer": "<string>",
"capabilities": [
"<string>"
],
"blockingResources": [
{
"id": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "request_body_too_large",
"detail": "<string>",
"correlationId": "<string>",
"retryable": false,
"transferId": "<string>",
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"statusReason": {
"code": "sanctions_screening_failed",
"message": "<string>",
"retryable": true
},
"reviewAnswer": "<string>",
"capabilities": [
"<string>"
],
"blockingResources": [
{
"id": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "task_submission_incomplete",
"detail": "<string>",
"correlationId": "<string>",
"retryable": false,
"missingRequirementIds": [
"<string>"
],
"transferId": "<string>",
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"statusReason": {
"code": "sanctions_screening_failed",
"message": "<string>",
"retryable": true
},
"reviewAnswer": "<string>",
"capabilities": [
"<string>"
],
"blockingResources": [
{
"id": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "internal_error",
"detail": "<string>",
"correlationId": "<string>",
"retryable": true,
"transferId": "<string>",
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"statusReason": {
"code": "sanctions_screening_failed",
"message": "<string>",
"retryable": true
},
"reviewAnswer": "<string>",
"capabilities": [
"<string>"
],
"blockingResources": [
{
"id": "<string>"
}
]
}Task submissions
Create a task submission
Creates one complete immutable attempt for the task’s current remediation round.
Create a task submission
curl --request POST \
--url https://platform.swipelux.com/v3/customers/{customerId}/tasks/{taskId}/submissions \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--header 'X-API-Key: <api-key>' \
--data '
{
"taskRevision": 3,
"answers": [
{
"requirementId": "req_01JSOURCE",
"answer": {
"type": "profile",
"value": "Revenue from annual software subscriptions."
}
},
{
"requirementId": "req_01JIDENTITY",
"alternativeKey": "passport",
"answer": {
"type": "document",
"documentIds": [
"doc_01JPASS"
]
}
}
]
}
'import requests
url = "https://platform.swipelux.com/v3/customers/{customerId}/tasks/{taskId}/submissions"
payload = {
"taskRevision": 3,
"answers": [
{
"requirementId": "req_01JSOURCE",
"answer": {
"type": "profile",
"value": "Revenue from annual software subscriptions."
}
},
{
"requirementId": "req_01JIDENTITY",
"alternativeKey": "passport",
"answer": {
"type": "document",
"documentIds": ["doc_01JPASS"]
}
}
]
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
'X-API-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
taskRevision: 3,
answers: [
{
requirementId: 'req_01JSOURCE',
answer: {type: 'profile', value: 'Revenue from annual software subscriptions.'}
},
{
requirementId: 'req_01JIDENTITY',
alternativeKey: 'passport',
answer: {type: 'document', documentIds: ['doc_01JPASS']}
}
]
})
};
fetch('https://platform.swipelux.com/v3/customers/{customerId}/tasks/{taskId}/submissions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://platform.swipelux.com/v3/customers/{customerId}/tasks/{taskId}/submissions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'taskRevision' => 3,
'answers' => [
[
'requirementId' => 'req_01JSOURCE',
'answer' => [
'type' => 'profile',
'value' => 'Revenue from annual software subscriptions.'
]
],
[
'requirementId' => 'req_01JIDENTITY',
'alternativeKey' => 'passport',
'answer' => [
'type' => 'document',
'documentIds' => [
'doc_01JPASS'
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://platform.swipelux.com/v3/customers/{customerId}/tasks/{taskId}/submissions"
payload := strings.NewReader("{\n \"taskRevision\": 3,\n \"answers\": [\n {\n \"requirementId\": \"req_01JSOURCE\",\n \"answer\": {\n \"type\": \"profile\",\n \"value\": \"Revenue from annual software subscriptions.\"\n }\n },\n {\n \"requirementId\": \"req_01JIDENTITY\",\n \"alternativeKey\": \"passport\",\n \"answer\": {\n \"type\": \"document\",\n \"documentIds\": [\n \"doc_01JPASS\"\n ]\n }\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://platform.swipelux.com/v3/customers/{customerId}/tasks/{taskId}/submissions")
.header("Idempotency-Key", "<idempotency-key>")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"taskRevision\": 3,\n \"answers\": [\n {\n \"requirementId\": \"req_01JSOURCE\",\n \"answer\": {\n \"type\": \"profile\",\n \"value\": \"Revenue from annual software subscriptions.\"\n }\n },\n {\n \"requirementId\": \"req_01JIDENTITY\",\n \"alternativeKey\": \"passport\",\n \"answer\": {\n \"type\": \"document\",\n \"documentIds\": [\n \"doc_01JPASS\"\n ]\n }\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://platform.swipelux.com/v3/customers/{customerId}/tasks/{taskId}/submissions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"taskRevision\": 3,\n \"answers\": [\n {\n \"requirementId\": \"req_01JSOURCE\",\n \"answer\": {\n \"type\": \"profile\",\n \"value\": \"Revenue from annual software subscriptions.\"\n }\n },\n {\n \"requirementId\": \"req_01JIDENTITY\",\n \"alternativeKey\": \"passport\",\n \"answer\": {\n \"type\": \"document\",\n \"documentIds\": [\n \"doc_01JPASS\"\n ]\n }\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"taskId": "<string>",
"customerId": "<string>",
"remediationRound": 1,
"taskRevision": 2,
"answers": [
{
"requirementId": "<string>",
"answer": {
"type": "profile",
"value": "<string>"
},
"alternativeKey": "<string>"
}
],
"submittedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"reviewFeedback": {
"code": "<string>",
"message": "<string>"
}
}
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"correlationId": "<string>",
"retryable": false,
"transferId": "<string>",
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"statusReason": {
"code": "sanctions_screening_failed",
"message": "<string>",
"retryable": true
},
"reviewAnswer": "<string>",
"capabilities": [
"<string>"
],
"blockingResources": [
{
"id": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "unauthorized",
"detail": "<string>",
"correlationId": "<string>",
"retryable": false,
"transferId": "<string>",
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"statusReason": {
"code": "sanctions_screening_failed",
"message": "<string>",
"retryable": true
},
"reviewAnswer": "<string>",
"capabilities": [
"<string>"
],
"blockingResources": [
{
"id": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "forbidden",
"detail": "<string>",
"correlationId": "<string>",
"retryable": false,
"transferId": "<string>",
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"statusReason": {
"code": "sanctions_screening_failed",
"message": "<string>",
"retryable": true
},
"reviewAnswer": "<string>",
"capabilities": [
"<string>"
],
"blockingResources": [
{
"id": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "task_not_found",
"detail": "<string>",
"correlationId": "<string>",
"retryable": false,
"transferId": "<string>",
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"statusReason": {
"code": "sanctions_screening_failed",
"message": "<string>",
"retryable": true
},
"reviewAnswer": "<string>",
"capabilities": [
"<string>"
],
"blockingResources": [
{
"id": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "task_changed",
"detail": "<string>",
"correlationId": "<string>",
"retryable": false,
"currentRevision": 2,
"taskId": "<string>",
"taskUrl": "/v3/customers/cus_01JABC/tasks/tsk_01JXYZ",
"transferId": "<string>",
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"statusReason": {
"code": "sanctions_screening_failed",
"message": "<string>",
"retryable": true
},
"reviewAnswer": "<string>",
"capabilities": [
"<string>"
],
"blockingResources": [
{
"id": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "request_body_too_large",
"detail": "<string>",
"correlationId": "<string>",
"retryable": false,
"transferId": "<string>",
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"statusReason": {
"code": "sanctions_screening_failed",
"message": "<string>",
"retryable": true
},
"reviewAnswer": "<string>",
"capabilities": [
"<string>"
],
"blockingResources": [
{
"id": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "task_submission_incomplete",
"detail": "<string>",
"correlationId": "<string>",
"retryable": false,
"missingRequirementIds": [
"<string>"
],
"transferId": "<string>",
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"statusReason": {
"code": "sanctions_screening_failed",
"message": "<string>",
"retryable": true
},
"reviewAnswer": "<string>",
"capabilities": [
"<string>"
],
"blockingResources": [
{
"id": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"code": "internal_error",
"detail": "<string>",
"correlationId": "<string>",
"retryable": true,
"transferId": "<string>",
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"statusReason": {
"code": "sanctions_screening_failed",
"message": "<string>",
"retryable": true
},
"reviewAnswer": "<string>",
"capabilities": [
"<string>"
],
"blockingResources": [
{
"id": "<string>"
}
]
}Authorizations
Your Swipelux API key. Obtain this from the Swipelux Dashboard.
Headers
Required for effectful v3 requests (POST, PATCH, PUT, DELETE). Reuse the same key with the same body to replay the cached response.
Required string length:
1 - 255Path Parameters
Customer identifier.
Minimum string length:
1Task identifier.
Minimum string length:
1Body
application/json
Complete current-round answers and task revision. The entire JSON request body is limited to 524288 bytes.
Response
Current authorized submission detail.
Show child attributes
Show child attributes
Related topics
List task submissionsGet task submission detailReview sandbox task submissionCreate sandbox taskCreate capability⌘I