curl --request POST \
--url https://api.letsdothis.com/v0/credits/import \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"credits": [
{
"externalCreditId": "<string>",
"emailAddress": "<string>",
"creditValue": 2,
"expiresAt": "2026-05-08T11:30:00.000Z",
"eventId": "<string>",
"eventOccurrenceId": "<string>"
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
credits: [
{
externalCreditId: '<string>',
emailAddress: '<string>',
creditValue: 2,
expiresAt: '2026-05-08T11:30:00.000Z',
eventId: '<string>',
eventOccurrenceId: '<string>'
}
]
})
};
fetch('https://api.letsdothis.com/v0/credits/import', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.letsdothis.com/v0/credits/import"
payload = { "credits": [
{
"externalCreditId": "<string>",
"emailAddress": "<string>",
"creditValue": 2,
"expiresAt": "2026-05-08T11:30:00.000Z",
"eventId": "<string>",
"eventOccurrenceId": "<string>"
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"jobId": "6628293a4b5c6d7e8f901a2b",
"status": "queued"
}{
"statusCode": 400,
"error": "<string>",
"message": "<string>"
}{
"statusCode": 409,
"error": "<string>",
"message": "<string>"
}{
"statusCode": 413,
"error": "<string>",
"message": "<string>"
}{
"error": "validation_failed",
"message": "<string>",
"totalRows": 123,
"rowsWithErrors": 123,
"errorCount": 123,
"summary": [
{
"code": "<string>",
"count": 123,
"message": "<string>",
"examples": [
{
"rowIndex": 123,
"externalCreditId": "<string>",
"value": "<string>"
}
],
"fieldId": "<string>"
}
],
"errors": [
{
"rowIndex": 123,
"errors": [
{
"code": "<string>",
"message": "<string>",
"fieldId": "<string>"
}
],
"externalCreditId": "<string>"
}
],
"truncated": true
}{
"statusCode": 429,
"error": "<string>",
"message": "<string>"
}Import credits
Asynchronously imports a batch of participant credits. The whole batch is validated synchronously — either every row is accepted (202 with a job to poll) or nothing is (422 with every problem, aggregated by error class). Execution is per-row from there: one row failing never rejects the others.
Imports are create-once per externalCreditId: re-importing the same id returns the originally imported credit untouched, reported as alreadyImported.
Send an Idempotency-Key header to make the submission replayable: retrying the same key and body returns the original job; reusing a key with a different body is rejected (409).
curl --request POST \
--url https://api.letsdothis.com/v0/credits/import \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"credits": [
{
"externalCreditId": "<string>",
"emailAddress": "<string>",
"creditValue": 2,
"expiresAt": "2026-05-08T11:30:00.000Z",
"eventId": "<string>",
"eventOccurrenceId": "<string>"
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
credits: [
{
externalCreditId: '<string>',
emailAddress: '<string>',
creditValue: 2,
expiresAt: '2026-05-08T11:30:00.000Z',
eventId: '<string>',
eventOccurrenceId: '<string>'
}
]
})
};
fetch('https://api.letsdothis.com/v0/credits/import', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.letsdothis.com/v0/credits/import"
payload = { "credits": [
{
"externalCreditId": "<string>",
"emailAddress": "<string>",
"creditValue": 2,
"expiresAt": "2026-05-08T11:30:00.000Z",
"eventId": "<string>",
"eventOccurrenceId": "<string>"
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"jobId": "6628293a4b5c6d7e8f901a2b",
"status": "queued"
}{
"statusCode": 400,
"error": "<string>",
"message": "<string>"
}{
"statusCode": 409,
"error": "<string>",
"message": "<string>"
}{
"statusCode": 413,
"error": "<string>",
"message": "<string>"
}{
"error": "validation_failed",
"message": "<string>",
"totalRows": 123,
"rowsWithErrors": 123,
"errorCount": 123,
"summary": [
{
"code": "<string>",
"count": 123,
"message": "<string>",
"examples": [
{
"rowIndex": 123,
"externalCreditId": "<string>",
"value": "<string>"
}
],
"fieldId": "<string>"
}
],
"errors": [
{
"rowIndex": 123,
"errors": [
{
"code": "<string>",
"message": "<string>",
"fieldId": "<string>"
}
],
"externalCreditId": "<string>"
}
],
"truncated": true
}{
"statusCode": 429,
"error": "<string>",
"message": "<string>"
}403. Contact your Let’s Do This representative if you’d like access.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
An asynchronous credit import request: the whole batch is accepted or none of it.
The credits to import.
1 - 1000 elementsShow child attributes
Show child attributes
Was this page helpful?

