Download OpenAPI specification:Download
An API to allow users to check items in and out on their own.
username required | string The user's myTurn.com username, or their membership ID with their organization/tool library. |
password required | string The user's myTurn.com password. |
{- "username": "string",
- "password": "string"
}
{- "username": "string",
- "lastName": "string",
- "firstName": "string",
- "displayName": "string",
- "emailAddress": "string",
- "expires_in": 0,
- "token_type": "Bearer",
- "access_token": "string",
- "roles": [
- "string"
], - "isAdmin": true,
- "membership": {
- "name": "string",
- "mayBorrow": true,
- "mayUseKiosk": true,
- "mayBorrowMax": 0,
- "expiration": "string",
- "isExpired": true
}, - "organizations": [
- {
- "id": "string",
- "apiUrl": "string",
- "name": "string",
- "logo": "string",
- "selfServeEnabled": true,
- "membership": {
- "name": "string",
- "mayBorrow": true,
- "mayUseKiosk": true,
- "mayBorrowMax": 0,
- "expiration": "string",
- "isExpired": true
}
}
]
}
Returns information about the organization for which we support self-checkout or self-registration. See also self-checkout API.
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
{- "id": "string",
- "shortName": "string",
- "apiUrl": "string",
- "name": "string",
- "logo": "string",
- "hours": [
- {
- "closed": true,
- "openTime": "10:00:00.000",
- "closeTime": "19:00:00.000"
}
], - "address": {
- "street1": "string",
- "street2": "string",
- "city": "string",
- "principalSubdivision": "VT",
- "country": "CAN",
- "phone": "string"
}, - "playSounds": true,
- "hideMoney": true,
- "enableKioskMode": true,
- "selfServeEnabled": true,
- "allowKioskScanLogin": true,
- "allowKioskFormLogin": true,
- "logoutTimeout": 5,
- "skipKioskCheckinConfirmation": true,
- "skipKioskCheckoutConfirmation": true,
- "skipKioskLogoutConfirmation": true,
- "kioskWelcomeText": "<p>Welcome to our Kiosk. Log in or scan your key fob to get started</p>",
- "kioskHomeText": "string",
- "kioskCheckInText": "string",
- "kioskCheckOutText": "string",
- "kioskPostCheckInText": "<p>Please be sure to lock up when you leave.</p>",
- "kioskPostCheckOutText": "string",
- "kioskScanLoginErrorText": "string",
- "kioskFormLoginErrorText": "If you are having trouble logging in, please call Jane at (888) 555-1212",
- "locale": "fr-CA",
- "currencyCode": "CAD",
- "useTwoPhaseCommitOnKiosk": false,
- "projectsSupported": true,
- "email": "string",
- "renewMembershipUrl": "string"
}
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
[- {
- "code": "fr",
- "name": "French",
- "native": "Français",
- "isDefault": true
}
]
List of statuses available for this organization
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
[- {
- "id": 5,
- "name": "In maintenance"
}
]
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
[- {
- "id": 43,
- "name": "4th Floor",
- "path": [
- "Building B",
- "4th Floor",
- "Room 405"
]
}
]
q | string A word, a few words, or parts of words to search on. |
location | number Id of the location. This will restrict the items returned to the requested location and its sublocations. |
offset | integer >= 0 The number of items to skip before starting to collect the result set. |
limit | integer [ 1 .. 200 ] Default: 20 The numbers of items to return. |
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
[- {
- "id": 999,
- "itemId": "barcode-1234",
- "name": "Hammer",
- "location": "string",
- "locationCode": "string",
- "loanLength": 0,
- "grouping": "string",
- "availableForCheckout": true,
- "maxReturnDate": "string",
- "amountDisplay": "$1.21 per day",
- "amount": 1.21,
- "discountedAmountDisplay": "1.21 per day",
- "discountedAmount": 1.21,
- "amountPeriod": {
- "code": "string",
- "display": "string"
}, - "categories": [
- {
- "id": 0,
- "name": "string",
}
], - "statuses": [
- {
- "id": 5,
- "name": "In maintenance"
}
], - "homeLocation": {
- "id": 43,
- "name": "4th Floor",
- "path": [
- "Building B",
- "4th Floor",
- "Room 405"
]
}, - "currentLocation": {
- "id": 43,
- "name": "4th Floor",
- "path": [
- "Building B",
- "4th Floor",
- "Room 405"
]
}
}
]
id required | number The unique identifier for the item. |
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
[- {
- "id": 444,
- "itemId": "DR002",
- "name": "Hammer",
- "description": "string",
- "manufacturer": "Panasonic",
- "model": "SD-ZB2502",
- "location": "string",
- "loanLength": 0,
- "amountDisplay": "1.21 per day",
- "amount": 1.21,
- "discountedAmountDisplay": "1.21 per day",
- "discountedAmount": 1.21,
- "amountPeriod": {
- "code": "string",
- "display": "string"
}, - "availableForCheckout": true,
- "maxReturnDate": "string",
- "categories": [
- {
- "id": 0,
- "name": "string",
}
], - "statuses": [
- {
- "id": 5,
- "name": "In maintenance"
}
]
}
]
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
[- {
- "id": 0,
- "name": "string",
}
]
id required | number |
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
{- "id": 0,
- "name": "string",
}
id required | number |
offset | integer >= 0 The number of items to skip before starting to collect the result set. |
limit | integer [ 1 .. 200 ] Default: 20 The numbers of items to return. |
q | string A word, a few words, or parts of words to search on. |
location | number Id of the location. This will restrict the items returned to the requested location and its sublocations. |
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
[- {
- "id": 999,
- "itemId": "barcode-1234",
- "name": "Hammer",
- "location": "string",
- "locationCode": "string",
- "loanLength": 0,
- "grouping": "string",
- "availableForCheckout": true,
- "maxReturnDate": "string",
- "amountDisplay": "$1.21 per day",
- "amount": 1.21,
- "discountedAmountDisplay": "1.21 per day",
- "discountedAmount": 1.21,
- "amountPeriod": {
- "code": "string",
- "display": "string"
}, - "categories": [
- {
- "id": 0,
- "name": "string",
}
], - "statuses": [
- {
- "id": 5,
- "name": "In maintenance"
}
], - "homeLocation": {
- "id": 43,
- "name": "4th Floor",
- "path": [
- "Building B",
- "4th Floor",
- "Room 405"
]
}, - "currentLocation": {
- "id": 43,
- "name": "4th Floor",
- "path": [
- "Building B",
- "4th Floor",
- "Room 405"
]
}
}
]
includeFulfilled | string Default: "N" Use "Y" to include fulfilled reservations; anything else is taken to mean "do not include fulfilled". |
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
[- {
- "id": 413,
- "startDate": "string",
- "endDate": "string",
- "itemCount": 0,
- "fulfilled": true
}
]
Get the details of one reservation.
reservation-id required | number |
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
{- "id": 413,
- "startDate": "2018-11-01T00:00:00.000Z",
- "endDate": "2018-11-15T00:00:00.000Z",
- "items": [
- {
- "id": 999,
- "itemId": "barcode-1234",
- "name": "Hammer",
- "location": "string",
- "locationCode": "string",
- "loanLength": 0,
- "grouping": "string",
- "availableForCheckout": true,
- "maxReturnDate": "string",
- "amountDisplay": "$1.21 per day",
- "amount": 1.21,
- "discountedAmountDisplay": "1.21 per day",
- "discountedAmount": 1.21,
- "amountPeriod": {
- "code": "string",
- "display": "string"
}, - "categories": [
- {
- "id": 0,
- "name": "string",
}
], - "statuses": [
- {
- "id": 5,
- "name": "In maintenance"
}
], - "homeLocation": {
- "id": 43,
- "name": "4th Floor",
- "path": [
- "Building B",
- "4th Floor",
- "Room 405"
]
}, - "currentLocation": {
- "id": 43,
- "name": "4th Floor",
- "path": [
- "Building B",
- "4th Floor",
- "Room 405"
]
}
}
]
}
Remove an item from the reservation. This is useful to make sure the reservation will be flagged as complete once a checkout with all the items on the reservation is processed. NOTE that you may not remove the last item on a reservation.
reservation-id required | number |
item-id required | number |
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
{- "id": 413,
- "startDate": "2018-11-01T00:00:00.000Z",
- "endDate": "2018-11-15T00:00:00.000Z",
- "items": [
- {
- "id": 999,
- "itemId": "barcode-1234",
- "name": "Hammer",
- "location": "string",
- "locationCode": "string",
- "loanLength": 0,
- "grouping": "string",
- "availableForCheckout": true,
- "maxReturnDate": "string",
- "amountDisplay": "$1.21 per day",
- "amount": 1.21,
- "discountedAmountDisplay": "1.21 per day",
- "discountedAmount": 1.21,
- "amountPeriod": {
- "code": "string",
- "display": "string"
}, - "categories": [
- {
- "id": 0,
- "name": "string",
}
], - "statuses": [
- {
- "id": 5,
- "name": "In maintenance"
}
], - "homeLocation": {
- "id": 43,
- "name": "4th Floor",
- "path": [
- "Building B",
- "4th Floor",
- "Room 405"
]
}, - "currentLocation": {
- "id": 43,
- "name": "4th Floor",
- "path": [
- "Building B",
- "4th Floor",
- "Room 405"
]
}
}
]
}
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
[- {
- "id": 156,
- "name": "Energy audit at 123 Sesame Street"
}
]
List the carts for a user. In most cases, there is only one cart to return.
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
[
]
Create a new cart for the user.
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
{- "code": "Agreement Signature Required",
- "message": "There are one or more agreements you must sign before you can continue.",
}
Return a single cart by cartId.
cart-id required | number |
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
{- "id": 43,
- "amount": 0,
- "amountPayable": 0,
- "displayAmountPayable": "string",
- "outstandingLoans": [
- {
- "id": 0,
- "returning": true,
- "checkoutDate": "2017-09-01T18:32:43.844Z",
- "dueDate": "2017-09-16T03:59:00.000Z",
- "lateFees": 0,
- "discountedLateFees": 0,
- "lateFeeRate": 0,
- "item": {
- "id": 999,
- "itemId": "barcode-1234",
- "name": "Hammer",
- "location": "string",
- "locationCode": "string",
- "loanLength": 0,
- "grouping": "string",
- "availableForCheckout": true,
- "maxReturnDate": "string",
- "amountDisplay": "$1.21 per day",
- "amount": 1.21,
- "discountedAmountDisplay": "1.21 per day",
- "discountedAmount": 1.21,
- "amountPeriod": {
- "code": "string",
- "display": "string"
}, - "categories": [
- {
- "id": 0,
- "name": "string",
}
], - "statuses": [
- {
- "id": 5,
- "name": "In maintenance"
}
], - "homeLocation": {
- "id": 43,
- "name": "4th Floor",
- "path": [
- "Building B",
- "4th Floor",
- "Room 405"
]
}, - "currentLocation": {
- "id": 43,
- "name": "4th Floor",
- "path": [
- "Building B",
- "4th Floor",
- "Room 405"
]
}
}, - "lateFeeDays": 0,
- "committed": true,
- "newStatus": {
- "id": 5,
- "name": "In maintenance"
}
}
], - "checkouts": [
- {
- "id": 0,
- "item": {
- "id": 999,
- "itemId": "barcode-1234",
- "name": "Hammer",
- "location": "string",
- "locationCode": "string",
- "loanLength": 0,
- "grouping": "string",
- "availableForCheckout": true,
- "maxReturnDate": "string",
- "amountDisplay": "$1.21 per day",
- "amount": 1.21,
- "discountedAmountDisplay": "1.21 per day",
- "discountedAmount": 1.21,
- "amountPeriod": {
- "code": "string",
- "display": "string"
}, - "categories": [
- {
- "id": 0,
- "name": "string",
}
], - "statuses": [
- {
- "id": 5,
- "name": "In maintenance"
}
], - "homeLocation": {
- "id": 43,
- "name": "4th Floor",
- "path": [
- "Building B",
- "4th Floor",
- "Room 405"
]
}, - "currentLocation": {
- "id": 43,
- "name": "4th Floor",
- "path": [
- "Building B",
- "4th Floor",
- "Room 405"
]
}
}, - "availableDueDates": [
- "string"
], - "dueDate": "string",
- "amount": 0,
- "discountedAmount": 0,
- "committed": true
}
], - "membershipChange": { },
- "otherFees": { },
- "payments": [
- { }
], - "discounts": [
- {
- "name": "string",
- "amount": 3,
- "percentage": 0,
- "isLateFee": true,
- "isCheckout": true
}
], - "canCheckoutItems": true,
- "projectRequired": true
}
Start the return process for one loan. This will not be completed until the cart is committed (see /cart/{cart-id}/commit).
cart-id required | number |
loan-id required | number |
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
new-status | number New status to set on the item being returned. Status id must be valid. |
{- "id": 43,
- "amount": 0,
- "amountPayable": 0,
- "displayAmountPayable": "string",
- "outstandingLoans": [
- {
- "id": 0,
- "returning": true,
- "checkoutDate": "2017-09-01T18:32:43.844Z",
- "dueDate": "2017-09-16T03:59:00.000Z",
- "lateFees": 0,
- "discountedLateFees": 0,
- "lateFeeRate": 0,
- "item": {
- "id": 999,
- "itemId": "barcode-1234",
- "name": "Hammer",
- "location": "string",
- "locationCode": "string",
- "loanLength": 0,
- "grouping": "string",
- "availableForCheckout": true,
- "maxReturnDate": "string",
- "amountDisplay": "$1.21 per day",
- "amount": 1.21,
- "discountedAmountDisplay": "1.21 per day",
- "discountedAmount": 1.21,
- "amountPeriod": {
- "code": "string",
- "display": "string"
}, - "categories": [
- {
- "id": 0,
- "name": "string",
}
], - "statuses": [
- {
- "id": 5,
- "name": "In maintenance"
}
], - "homeLocation": {
- "id": 43,
- "name": "4th Floor",
- "path": [
- "Building B",
- "4th Floor",
- "Room 405"
]
}, - "currentLocation": {
- "id": 43,
- "name": "4th Floor",
- "path": [
- "Building B",
- "4th Floor",
- "Room 405"
]
}
}, - "lateFeeDays": 0,
- "committed": true,
- "newStatus": {
- "id": 5,
- "name": "In maintenance"
}
}
], - "checkouts": [
- {
- "id": 0,
- "item": {
- "id": 999,
- "itemId": "barcode-1234",
- "name": "Hammer",
- "location": "string",
- "locationCode": "string",
- "loanLength": 0,
- "grouping": "string",
- "availableForCheckout": true,
- "maxReturnDate": "string",
- "amountDisplay": "$1.21 per day",
- "amount": 1.21,
- "discountedAmountDisplay": "1.21 per day",
- "discountedAmount": 1.21,
- "amountPeriod": {
- "code": "string",
- "display": "string"
}, - "categories": [
- {
- "id": 0,
- "name": "string",
}
], - "statuses": [
- {
- "id": 5,
- "name": "In maintenance"
}
], - "homeLocation": {
- "id": 43,
- "name": "4th Floor",
- "path": [
- "Building B",
- "4th Floor",
- "Room 405"
]
}, - "currentLocation": {
- "id": 43,
- "name": "4th Floor",
- "path": [
- "Building B",
- "4th Floor",
- "Room 405"
]
}
}, - "availableDueDates": [
- "string"
], - "dueDate": "string",
- "amount": 0,
- "discountedAmount": 0,
- "committed": true
}
], - "membershipChange": { },
- "otherFees": { },
- "payments": [
- { }
], - "discounts": [
- {
- "name": "string",
- "amount": 3,
- "percentage": 0,
- "isLateFee": true,
- "isCheckout": true
}
], - "canCheckoutItems": true,
- "projectRequired": true
}
Remove a specific loan previously marked for return.
cart-id required | number |
loan-id required | number |
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
{- "id": 43,
- "amount": 0,
- "amountPayable": 0,
- "displayAmountPayable": "string",
- "outstandingLoans": [
- {
- "id": 0,
- "returning": true,
- "checkoutDate": "2017-09-01T18:32:43.844Z",
- "dueDate": "2017-09-16T03:59:00.000Z",
- "lateFees": 0,
- "discountedLateFees": 0,
- "lateFeeRate": 0,
- "item": {
- "id": 999,
- "itemId": "barcode-1234",
- "name": "Hammer",
- "location": "string",
- "locationCode": "string",
- "loanLength": 0,
- "grouping": "string",
- "availableForCheckout": true,
- "maxReturnDate": "string",
- "amountDisplay": "$1.21 per day",
- "amount": 1.21,
- "discountedAmountDisplay": "1.21 per day",
- "discountedAmount": 1.21,
- "amountPeriod": {
- "code": "string",
- "display": "string"
}, - "categories": [
- {
- "id": 0,
- "name": "string",
}
], - "statuses": [
- {
- "id": 5,
- "name": "In maintenance"
}
], - "homeLocation": {
- "id": 43,
- "name": "4th Floor",
- "path": [
- "Building B",
- "4th Floor",
- "Room 405"
]
}, - "currentLocation": {
- "id": 43,
- "name": "4th Floor",
- "path": [
- "Building B",
- "4th Floor",
- "Room 405"
]
}
}, - "lateFeeDays": 0,
- "committed": true,
- "newStatus": {
- "id": 5,
- "name": "In maintenance"
}
}
], - "checkouts": [
- {
- "id": 0,
- "item": {
- "id": 999,
- "itemId": "barcode-1234",
- "name": "Hammer",
- "location": "string",
- "locationCode": "string",
- "loanLength": 0,
- "grouping": "string",
- "availableForCheckout": true,
- "maxReturnDate": "string",
- "amountDisplay": "$1.21 per day",
- "amount": 1.21,
- "discountedAmountDisplay": "1.21 per day",
- "discountedAmount": 1.21,
- "amountPeriod": {
- "code": "string",
- "display": "string"
}, - "categories": [
- {
- "id": 0,
- "name": "string",
}
], - "statuses": [
- {
- "id": 5,
- "name": "In maintenance"
}
], - "homeLocation": {
- "id": 43,
- "name": "4th Floor",
- "path": [
- "Building B",
- "4th Floor",
- "Room 405"
]
}, - "currentLocation": {
- "id": 43,
- "name": "4th Floor",
- "path": [
- "Building B",
- "4th Floor",
- "Room 405"
]
}
}, - "availableDueDates": [
- "string"
], - "dueDate": "string",
- "amount": 0,
- "discountedAmount": 0,
- "committed": true
}
], - "membershipChange": { },
- "otherFees": { },
- "payments": [
- { }
], - "discounts": [
- {
- "name": "string",
- "amount": 3,
- "percentage": 0,
- "isLateFee": true,
- "isCheckout": true
}
], - "canCheckoutItems": true,
- "projectRequired": true
}
The item has been returned, and should the cart be interrupted, this SHOULD be recorded has having been returned anyway.
cart-id required | number |
loan-id required | number |
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
{- "id": 43,
- "amount": 0,
- "amountPayable": 0,
- "displayAmountPayable": "string",
- "outstandingLoans": [
- {
- "id": 0,
- "returning": true,
- "checkoutDate": "2017-09-01T18:32:43.844Z",
- "dueDate": "2017-09-16T03:59:00.000Z",
- "lateFees": 0,
- "discountedLateFees": 0,
- "lateFeeRate": 0,
- "item": {
- "id": 999,
- "itemId": "barcode-1234",
- "name": "Hammer",
- "location": "string",
- "locationCode": "string",
- "loanLength": 0,
- "grouping": "string",
- "availableForCheckout": true,
- "maxReturnDate": "string",
- "amountDisplay": "$1.21 per day",
- "amount": 1.21,
- "discountedAmountDisplay": "1.21 per day",
- "discountedAmount": 1.21,
- "amountPeriod": {
- "code": "string",
- "display": "string"
}, - "categories": [
- {
- "id": 0,
- "name": "string",
}
], - "statuses": [
- {
- "id": 5,
- "name": "In maintenance"
}
], - "homeLocation": {
- "id": 43,
- "name": "4th Floor",
- "path": [
- "Building B",
- "4th Floor",
- "Room 405"
]
}, - "currentLocation": {
- "id": 43,
- "name": "4th Floor",
- "path": [
- "Building B",
- "4th Floor",
- "Room 405"
]
}
}, - "lateFeeDays": 0,
- "committed": true,
- "newStatus": {
- "id": 5,
- "name": "In maintenance"
}
}
], - "checkouts": [
- {
- "id": 0,
- "item": {
- "id": 999,
- "itemId": "barcode-1234",
- "name": "Hammer",
- "location": "string",
- "locationCode": "string",
- "loanLength": 0,
- "grouping": "string",
- "availableForCheckout": true,
- "maxReturnDate": "string",
- "amountDisplay": "$1.21 per day",
- "amount": 1.21,
- "discountedAmountDisplay": "1.21 per day",
- "discountedAmount": 1.21,
- "amountPeriod": {
- "code": "string",
- "display": "string"
}, - "categories": [
- {
- "id": 0,
- "name": "string",
}
], - "statuses": [
- {
- "id": 5,
- "name": "In maintenance"
}
], - "homeLocation": {
- "id": 43,
- "name": "4th Floor",
- "path": [
- "Building B",
- "4th Floor",
- "Room 405"
]
}, - "currentLocation": {
- "id": 43,
- "name": "4th Floor",
- "path": [
- "Building B",
- "4th Floor",
- "Room 405"
]
}
}, - "availableDueDates": [
- "string"
], - "dueDate": "string",
- "amount": 0,
- "discountedAmount": 0,
- "committed": true
}
], - "membershipChange": { },
- "otherFees": { },
- "payments": [
- { }
], - "discounts": [
- {
- "name": "string",
- "amount": 3,
- "percentage": 0,
- "isLateFee": true,
- "isCheckout": true
}
], - "canCheckoutItems": true,
- "projectRequired": true
}
Add an item to the cart based on the unique Item ID (barcode/RFID) to mark the user wants to check it out. It will not be checked out to the user until the cart is converted (completed/submitted).
cart-id required | number |
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
item-id required | string |
reservation-id | number The id of a reservation. Normally, this is the reservation from which the item was pulled, but it will take the due date based on the reservation even if the item wasn't on the reservation. If the reservation has passed, it will be ignored. |
due-date | string The due date in ISO format, without time (YYYY-MM-DD). One of due-date or reservation-id must be passed. |
project-id | number The id of the project to associate with this check out. Required to check out if the organization requires projects to check out. Use id 0 to unset the project for this check out. |
{- "id": 43,
- "amount": 0,
- "amountPayable": 0,
- "displayAmountPayable": "string",
- "outstandingLoans": [
- {
- "id": 0,
- "returning": true,
- "checkoutDate": "2017-09-01T18:32:43.844Z",
- "dueDate": "2017-09-16T03:59:00.000Z",
- "lateFees": 0,
- "discountedLateFees": 0,
- "lateFeeRate": 0,
- "item": {
- "id": 999,
- "itemId": "barcode-1234",
- "name": "Hammer",
- "location": "string",
- "locationCode": "string",
- "loanLength": 0,
- "grouping": "string",
- "availableForCheckout": true,
- "maxReturnDate": "string",
- "amountDisplay": "$1.21 per day",
- "amount": 1.21,
- "discountedAmountDisplay": "1.21 per day",
- "discountedAmount": 1.21,
- "amountPeriod": {
- "code": "string",
- "display": "string"
}, - "categories": [
- {
- "id": 0,
- "name": "string",
}
], - "statuses": [
- {
- "id": 5,
- "name": "In maintenance"
}
], - "homeLocation": {
- "id": 43,
- "name": "4th Floor",
- "path": [
- "Building B",
- "4th Floor",
- "Room 405"
]
}, - "currentLocation": {
- "id": 43,
- "name": "4th Floor",
- "path": [
- "Building B",
- "4th Floor",
- "Room 405"
]
}
}, - "lateFeeDays": 0,
- "committed": true,
- "newStatus": {
- "id": 5,
- "name": "In maintenance"
}
}
], - "checkouts": [
- {
- "id": 0,
- "item": {
- "id": 999,
- "itemId": "barcode-1234",
- "name": "Hammer",
- "location": "string",
- "locationCode": "string",
- "loanLength": 0,
- "grouping": "string",
- "availableForCheckout": true,
- "maxReturnDate": "string",
- "amountDisplay": "$1.21 per day",
- "amount": 1.21,
- "discountedAmountDisplay": "1.21 per day",
- "discountedAmount": 1.21,
- "amountPeriod": {
- "code": "string",
- "display": "string"
}, - "categories": [
- {
- "id": 0,
- "name": "string",
}
], - "statuses": [
- {
- "id": 5,
- "name": "In maintenance"
}
], - "homeLocation": {
- "id": 43,
- "name": "4th Floor",
- "path": [
- "Building B",
- "4th Floor",
- "Room 405"
]
}, - "currentLocation": {
- "id": 43,
- "name": "4th Floor",
- "path": [
- "Building B",
- "4th Floor",
- "Room 405"
]
}
}, - "availableDueDates": [
- "string"
], - "dueDate": "string",
- "amount": 0,
- "discountedAmount": 0,
- "committed": true
}
], - "membershipChange": { },
- "otherFees": { },
- "payments": [
- { }
], - "discounts": [
- {
- "name": "string",
- "amount": 3,
- "percentage": 0,
- "isLateFee": true,
- "isCheckout": true
}
], - "canCheckoutItems": true,
- "projectRequired": true
}
After an item is added to a cart for check out you can update information about it. This is currently limited to the due date and project.
cart-id required | number |
checkout-id required | number |
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
due-date | string <ISO date format, without time (YYYY-MM-DD).> |
project-id | number The id of the project to associate with this check out. Required to check out if the organization requires projects to check out. Use id 0 to unset the project for this check out. |
{- "id": 43,
- "amount": 0,
- "amountPayable": 0,
- "displayAmountPayable": "string",
- "outstandingLoans": [
- {
- "id": 0,
- "returning": true,
- "checkoutDate": "2017-09-01T18:32:43.844Z",
- "dueDate": "2017-09-16T03:59:00.000Z",
- "lateFees": 0,
- "discountedLateFees": 0,
- "lateFeeRate": 0,
- "item": {
- "id": 999,
- "itemId": "barcode-1234",
- "name": "Hammer",
- "location": "string",
- "locationCode": "string",
- "loanLength": 0,
- "grouping": "string",
- "availableForCheckout": true,
- "maxReturnDate": "string",
- "amountDisplay": "$1.21 per day",
- "amount": 1.21,
- "discountedAmountDisplay": "1.21 per day",
- "discountedAmount": 1.21,
- "amountPeriod": {
- "code": "string",
- "display": "string"
}, - "categories": [
- {
- "id": 0,
- "name": "string",
}
], - "statuses": [
- {
- "id": 5,
- "name": "In maintenance"
}
], - "homeLocation": {
- "id": 43,
- "name": "4th Floor",
- "path": [
- "Building B",
- "4th Floor",
- "Room 405"
]
}, - "currentLocation": {
- "id": 43,
- "name": "4th Floor",
- "path": [
- "Building B",
- "4th Floor",
- "Room 405"
]
}
}, - "lateFeeDays": 0,
- "committed": true,
- "newStatus": {
- "id": 5,
- "name": "In maintenance"
}
}
], - "checkouts": [
- {
- "id": 0,
- "item": {
- "id": 999,
- "itemId": "barcode-1234",
- "name": "Hammer",
- "location": "string",
- "locationCode": "string",
- "loanLength": 0,
- "grouping": "string",
- "availableForCheckout": true,
- "maxReturnDate": "string",
- "amountDisplay": "$1.21 per day",
- "amount": 1.21,
- "discountedAmountDisplay": "1.21 per day",
- "discountedAmount": 1.21,
- "amountPeriod": {
- "code": "string",
- "display": "string"
}, - "categories": [
- {
- "id": 0,
- "name": "string",
}
], - "statuses": [
- {
- "id": 5,
- "name": "In maintenance"
}
], - "homeLocation": {
- "id": 43,
- "name": "4th Floor",
- "path": [
- "Building B",
- "4th Floor",
- "Room 405"
]
}, - "currentLocation": {
- "id": 43,
- "name": "4th Floor",
- "path": [
- "Building B",
- "4th Floor",
- "Room 405"
]
}
}, - "availableDueDates": [
- "string"
], - "dueDate": "string",
- "amount": 0,
- "discountedAmount": 0,
- "committed": true
}
], - "membershipChange": { },
- "otherFees": { },
- "payments": [
- { }
], - "discounts": [
- {
- "name": "string",
- "amount": 3,
- "percentage": 0,
- "isLateFee": true,
- "isCheckout": true
}
], - "canCheckoutItems": true,
- "projectRequired": true
}
Do not check out an item and remove the item from the cart.
cart-id required | number |
checkout-id required | number |
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
{- "id": 43,
- "amount": 0,
- "amountPayable": 0,
- "displayAmountPayable": "string",
- "outstandingLoans": [
- {
- "id": 0,
- "returning": true,
- "checkoutDate": "2017-09-01T18:32:43.844Z",
- "dueDate": "2017-09-16T03:59:00.000Z",
- "lateFees": 0,
- "discountedLateFees": 0,
- "lateFeeRate": 0,
- "item": {
- "id": 999,
- "itemId": "barcode-1234",
- "name": "Hammer",
- "location": "string",
- "locationCode": "string",
- "loanLength": 0,
- "grouping": "string",
- "availableForCheckout": true,
- "maxReturnDate": "string",
- "amountDisplay": "$1.21 per day",
- "amount": 1.21,
- "discountedAmountDisplay": "1.21 per day",
- "discountedAmount": 1.21,
- "amountPeriod": {
- "code": "string",
- "display": "string"
}, - "categories": [
- {
- "id": 0,
- "name": "string",
}
], - "statuses": [
- {
- "id": 5,
- "name": "In maintenance"
}
], - "homeLocation": {
- "id": 43,
- "name": "4th Floor",
- "path": [
- "Building B",
- "4th Floor",
- "Room 405"
]
}, - "currentLocation": {
- "id": 43,
- "name": "4th Floor",
- "path": [
- "Building B",
- "4th Floor",
- "Room 405"
]
}
}, - "lateFeeDays": 0,
- "committed": true,
- "newStatus": {
- "id": 5,
- "name": "In maintenance"
}
}
], - "checkouts": [
- {
- "id": 0,
- "item": {
- "id": 999,
- "itemId": "barcode-1234",
- "name": "Hammer",
- "location": "string",
- "locationCode": "string",
- "loanLength": 0,
- "grouping": "string",
- "availableForCheckout": true,
- "maxReturnDate": "string",
- "amountDisplay": "$1.21 per day",
- "amount": 1.21,
- "discountedAmountDisplay": "1.21 per day",
- "discountedAmount": 1.21,
- "amountPeriod": {
- "code": "string",
- "display": "string"
}, - "categories": [
- {
- "id": 0,
- "name": "string",
}
], - "statuses": [
- {
- "id": 5,
- "name": "In maintenance"
}
], - "homeLocation": {
- "id": 43,
- "name": "4th Floor",
- "path": [
- "Building B",
- "4th Floor",
- "Room 405"
]
}, - "currentLocation": {
- "id": 43,
- "name": "4th Floor",
- "path": [
- "Building B",
- "4th Floor",
- "Room 405"
]
}
}, - "availableDueDates": [
- "string"
], - "dueDate": "string",
- "amount": 0,
- "discountedAmount": 0,
- "committed": true
}
], - "membershipChange": { },
- "otherFees": { },
- "payments": [
- { }
], - "discounts": [
- {
- "name": "string",
- "amount": 3,
- "percentage": 0,
- "isLateFee": true,
- "isCheckout": true
}
], - "canCheckoutItems": true,
- "projectRequired": true
}
cart-id required | number |
checkout-id required | number |
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
{- "id": 43,
- "amount": 0,
- "amountPayable": 0,
- "displayAmountPayable": "string",
- "outstandingLoans": [
- {
- "id": 0,
- "returning": true,
- "checkoutDate": "2017-09-01T18:32:43.844Z",
- "dueDate": "2017-09-16T03:59:00.000Z",
- "lateFees": 0,
- "discountedLateFees": 0,
- "lateFeeRate": 0,
- "item": {
- "id": 999,
- "itemId": "barcode-1234",
- "name": "Hammer",
- "location": "string",
- "locationCode": "string",
- "loanLength": 0,
- "grouping": "string",
- "availableForCheckout": true,
- "maxReturnDate": "string",
- "amountDisplay": "$1.21 per day",
- "amount": 1.21,
- "discountedAmountDisplay": "1.21 per day",
- "discountedAmount": 1.21,
- "amountPeriod": {
- "code": "string",
- "display": "string"
}, - "categories": [
- {
- "id": 0,
- "name": "string",
}
], - "statuses": [
- {
- "id": 5,
- "name": "In maintenance"
}
], - "homeLocation": {
- "id": 43,
- "name": "4th Floor",
- "path": [
- "Building B",
- "4th Floor",
- "Room 405"
]
}, - "currentLocation": {
- "id": 43,
- "name": "4th Floor",
- "path": [
- "Building B",
- "4th Floor",
- "Room 405"
]
}
}, - "lateFeeDays": 0,
- "committed": true,
- "newStatus": {
- "id": 5,
- "name": "In maintenance"
}
}
], - "checkouts": [
- {
- "id": 0,
- "item": {
- "id": 999,
- "itemId": "barcode-1234",
- "name": "Hammer",
- "location": "string",
- "locationCode": "string",
- "loanLength": 0,
- "grouping": "string",
- "availableForCheckout": true,
- "maxReturnDate": "string",
- "amountDisplay": "$1.21 per day",
- "amount": 1.21,
- "discountedAmountDisplay": "1.21 per day",
- "discountedAmount": 1.21,
- "amountPeriod": {
- "code": "string",
- "display": "string"
}, - "categories": [
- {
- "id": 0,
- "name": "string",
}
], - "statuses": [
- {
- "id": 5,
- "name": "In maintenance"
}
], - "homeLocation": {
- "id": 43,
- "name": "4th Floor",
- "path": [
- "Building B",
- "4th Floor",
- "Room 405"
]
}, - "currentLocation": {
- "id": 43,
- "name": "4th Floor",
- "path": [
- "Building B",
- "4th Floor",
- "Room 405"
]
}
}, - "availableDueDates": [
- "string"
], - "dueDate": "string",
- "amount": 0,
- "discountedAmount": 0,
- "committed": true
}
], - "membershipChange": { },
- "otherFees": { },
- "payments": [
- { }
], - "discounts": [
- {
- "name": "string",
- "amount": 3,
- "percentage": 0,
- "isLateFee": true,
- "isCheckout": true
}
], - "canCheckoutItems": true,
- "projectRequired": true
}
Process the cart and complete all pending transactions.
cart-id required | number |
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
"OK"
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
[- {
- "code": "fr",
- "name": "French",
- "native": "Français",
- "isDefault": true
}
]