Here's a cURL example with just the REQUIRED properties to create an inventory item:
curl -X POST --location 'http://api-sandbox.deliverback.com/partners/inventory' \
--header 'Authorization: Bearer _YOUR_API_KEY_' \
--data '{
"item_description": "iPhone 15",
"location_id": "_YOUR_LOCATION_ID_"
}'
All possible values you can provide for an inventory are listed below:
{
"item_description": "iPhone 15",
"location_id": "_YOUR_LOCATION_ID_",
"found_location": "swimming pool",
"guest_name": "John Doe",
"guest_email": "[email protected]",
"guest_phone": "+306900000000",
"reservation_name": "John Doe or 123TravelAgency",
"room_number": "38F or Room 101 or Agamemnon",
"checkout_date": "2024-01-10",
"internal_notes": "Any notes that should be visible ONLY to hotel employees (not visible to the guest)"
}