Import line items
curl --request POST \
--url https://api.letsdothis.com/v0/bookings/line-items/import \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'idempotency-key: <idempotency-key>' \
--data '
{
"bookings": [
{
"lineItems": [
{
"amount": {
"value": 5000
},
"externalLineItemId": "<string>",
"name": "<string>",
"transactionDate": "2026-05-08T11:30:00.000Z",
"participantId": "abed704b-76d0-4190-a0e7-95b1ec1e48fd",
"itemId": "<string>",
"itemSelectionId": "<string>",
"externalAddOnId": "<string>",
"externalVariantId": "<string>",
"refunded": true
}
],
"bookingId": "<string>",
"externalBookingId": "<string>"
}
]
}
'const options = {
method: 'POST',
headers: {
'idempotency-key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
bookings: [
{
lineItems: [
{
amount: {value: 5000},
externalLineItemId: '<string>',
name: '<string>',
transactionDate: '2026-05-08T11:30:00.000Z',
participantId: 'abed704b-76d0-4190-a0e7-95b1ec1e48fd',
itemId: '<string>',
itemSelectionId: '<string>',
externalAddOnId: '<string>',
externalVariantId: '<string>',
refunded: true
}
],
bookingId: '<string>',
externalBookingId: '<string>'
}
]
})
};
fetch('https://api.letsdothis.com/v0/bookings/line-items/import', 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"
payload = { "bookings": [
{
"lineItems": [
{
"amount": { "value": 5000 },
"externalLineItemId": "<string>",
"name": "<string>",
"transactionDate": "2026-05-08T11:30:00.000Z",
"participantId": "abed704b-76d0-4190-a0e7-95b1ec1e48fd",
"itemId": "<string>",
"itemSelectionId": "<string>",
"externalAddOnId": "<string>",
"externalVariantId": "<string>",
"refunded": True
}
],
"bookingId": "<string>",
"externalBookingId": "<string>"
}
] }
headers = {
"idempotency-key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"jobId": "65e5f60718293a4b5c6d7e8f",
"status": "queued"
}{
"statusCode": 400,
"error": "<string>",
"message": "<string>"
}{
"statusCode": 404,
"error": "<string>",
"message": "<string>"
}{
"statusCode": 409,
"error": "<string>",
"message": "<string>"
}{
"error": "validation_failed",
"message": "<string>",
"totalRows": 123,
"rowsWithErrors": 123,
"errorCount": 123,
"summary": [
{
"count": 123,
"examples": [
{
"bookingId": "<string>",
"externalBookingId": "<string>",
"groupIndex": 123,
"externalLineItemId": "<string>",
"rowIndex": 123
}
],
"code": "<string>",
"message": "<string>",
"fieldId": "<string>"
}
],
"errors": [
{
"code": "<string>",
"message": "<string>",
"fieldId": "<string>",
"bookingId": "<string>",
"externalBookingId": "<string>",
"groupIndex": 123,
"externalLineItemId": "<string>",
"rowIndex": 123
}
],
"truncated": true
}{
"statusCode": 429,
"error": "<string>",
"message": "<string>"
}Bookings
Import line items
Performs request-local validation, then queues one isolated task per booking. Booking-dependent financial validation runs asynchronously; poll the returned job id for progress, validation failures, and item results.
POST
/
v0
/
bookings
/
line-items
/
import
Import line items
curl --request POST \
--url https://api.letsdothis.com/v0/bookings/line-items/import \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'idempotency-key: <idempotency-key>' \
--data '
{
"bookings": [
{
"lineItems": [
{
"amount": {
"value": 5000
},
"externalLineItemId": "<string>",
"name": "<string>",
"transactionDate": "2026-05-08T11:30:00.000Z",
"participantId": "abed704b-76d0-4190-a0e7-95b1ec1e48fd",
"itemId": "<string>",
"itemSelectionId": "<string>",
"externalAddOnId": "<string>",
"externalVariantId": "<string>",
"refunded": true
}
],
"bookingId": "<string>",
"externalBookingId": "<string>"
}
]
}
'const options = {
method: 'POST',
headers: {
'idempotency-key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
bookings: [
{
lineItems: [
{
amount: {value: 5000},
externalLineItemId: '<string>',
name: '<string>',
transactionDate: '2026-05-08T11:30:00.000Z',
participantId: 'abed704b-76d0-4190-a0e7-95b1ec1e48fd',
itemId: '<string>',
itemSelectionId: '<string>',
externalAddOnId: '<string>',
externalVariantId: '<string>',
refunded: true
}
],
bookingId: '<string>',
externalBookingId: '<string>'
}
]
})
};
fetch('https://api.letsdothis.com/v0/bookings/line-items/import', 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"
payload = { "bookings": [
{
"lineItems": [
{
"amount": { "value": 5000 },
"externalLineItemId": "<string>",
"name": "<string>",
"transactionDate": "2026-05-08T11:30:00.000Z",
"participantId": "abed704b-76d0-4190-a0e7-95b1ec1e48fd",
"itemId": "<string>",
"itemSelectionId": "<string>",
"externalAddOnId": "<string>",
"externalVariantId": "<string>",
"refunded": True
}
],
"bookingId": "<string>",
"externalBookingId": "<string>"
}
] }
headers = {
"idempotency-key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"jobId": "65e5f60718293a4b5c6d7e8f",
"status": "queued"
}{
"statusCode": 400,
"error": "<string>",
"message": "<string>"
}{
"statusCode": 404,
"error": "<string>",
"message": "<string>"
}{
"statusCode": 409,
"error": "<string>",
"message": "<string>"
}{
"error": "validation_failed",
"message": "<string>",
"totalRows": 123,
"rowsWithErrors": 123,
"errorCount": 123,
"summary": [
{
"count": 123,
"examples": [
{
"bookingId": "<string>",
"externalBookingId": "<string>",
"groupIndex": 123,
"externalLineItemId": "<string>",
"rowIndex": 123
}
],
"code": "<string>",
"message": "<string>",
"fieldId": "<string>"
}
],
"errors": [
{
"code": "<string>",
"message": "<string>",
"fieldId": "<string>",
"bookingId": "<string>",
"externalBookingId": "<string>",
"groupIndex": 123,
"externalLineItemId": "<string>",
"rowIndex": 123
}
],
"truncated": true
}{
"statusCode": 429,
"error": "<string>",
"message": "<string>"
}This endpoint is restricted and not generally available: organizations that have not been enabled receive a
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.
Headers
Returns the original job when the same request is retried with the same key.
Required string length:
1 - 255Body
application/json
Bulk create of financial line items grouped by booking.
Required array length:
1 - 1000 elementsShow child attributes
Show child attributes
Represents a date and time in ISO 8601 format as a string.
The string should follow the format YYYY-MM-DDTHH:mm:ss.sssZ, where:
YYYY: Four-digit yearMM: Two-digit month (01-12)DD: Two-digit day of the month (01-31)T: Delimiter indicating the start of the time componentHH: Two-digit hour in 24-hour format (00-23)mm: Two-digit minutes (00-59)ss.sss: Seconds with milliseconds (00.000-59.999)Z: UTC timezone designator
Example: To represent 11:30 AM on May 8th, 2026, the value would be: "2026-05-08T11:30:00.000Z".
Example:
"2026-05-08T11:30:00.000Z"
Was this page helpful?

