curl --request GET \
--url https://api.letsdothis.com/v0/bookings/line-items/import/{jobId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.letsdothis.com/v0/bookings/line-items/import/{jobId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.letsdothis.com/v0/bookings/line-items/import/{jobId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"jobId": "65e5f60718293a4b5c6d7e8f",
"status": "completed",
"counts": {
"pending": 0,
"processing": 0,
"success": 1,
"failure": 0,
"cancelled": 0,
"total": 1
},
"rowCounts": {
"succeeded": 1,
"alreadyImported": 0,
"failed": 1,
"total": 2
},
"results": [
{
"bookingId": "65a1b2c3d4e5f60718293a4b",
"externalLineItemId": "order-1042-tshirt",
"lineItemId": "65b2c3d4e5f60718293a4b5c",
"status": "succeeded",
"outcome": "created",
"errors": [],
"allocationId": "65c3d4e5f60718293a4b5c6d"
},
{
"bookingId": "65a1b2c3d4e5f60718293a4b",
"externalLineItemId": "order-1042-medal",
"status": "failed",
"errors": [
{
"code": "UNKNOWN_BOOKING",
"message": "Booking could not be found for this organiser"
}
]
}
]
}{
"statusCode": 404,
"error": "<string>",
"message": "<string>"
}Get line item import status
Returns the progress of a line item import and the result for each line item imported so far. See reading a job.
Poll until status is completed, then read results. counts tracks bookings rather than line items.
curl --request GET \
--url https://api.letsdothis.com/v0/bookings/line-items/import/{jobId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.letsdothis.com/v0/bookings/line-items/import/{jobId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.letsdothis.com/v0/bookings/line-items/import/{jobId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"jobId": "65e5f60718293a4b5c6d7e8f",
"status": "completed",
"counts": {
"pending": 0,
"processing": 0,
"success": 1,
"failure": 0,
"cancelled": 0,
"total": 1
},
"rowCounts": {
"succeeded": 1,
"alreadyImported": 0,
"failed": 1,
"total": 2
},
"results": [
{
"bookingId": "65a1b2c3d4e5f60718293a4b",
"externalLineItemId": "order-1042-tshirt",
"lineItemId": "65b2c3d4e5f60718293a4b5c",
"status": "succeeded",
"outcome": "created",
"errors": [],
"allocationId": "65c3d4e5f60718293a4b5c6d"
},
{
"bookingId": "65a1b2c3d4e5f60718293a4b",
"externalLineItemId": "order-1042-medal",
"status": "failed",
"errors": [
{
"code": "UNKNOWN_BOOKING",
"message": "Booking could not be found for this organiser"
}
]
}
]
}{
"statusCode": 404,
"error": "<string>",
"message": "<string>"
}403. Contact your Let’s Do This representative if you’d like access.Authorizations
Response
The job's progress so far, and the result for each line item it has finished.
The state of a line item import.
results holds one entry per line item, with its status and errors. It's the only field that says whether a line item was imported, so act on it. It fills up while the job runs, so a processing job shows only the line items finished so far: poll until status is completed.
rowCounts totals results, so a non-zero rowCounts.failed means some line items need attention. status is completed once the job has finished, even if every line item failed. counts tracks the job's background work, not your line items. It counts the bookings you sent.
Outcome totals for an import job, folded from results: one count per reported result, not per submitted row. Most imports report one result per submitted row, but an endpoint can report several — a reserved-entry participant row covering a booking reports one result per participant — so total can legitimately exceed the submitted row count and is not a reconciliation check against it. The totals accumulate the same way results does: a processing job counts the results reported so far. A non-zero failed is the signal to inspect results and act on the failures.
Show child attributes
Show child attributes
Was this page helpful?

