Skip to main content
PUT
/
rentals
/
{rentalId}
Update a rental
curl --request PUT \
  --url https://app.supercycle.com/api/v1/rentals/{rentalId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "fulfillAt": "2023-11-07T05:31:56Z",
  "fulfilledAt": "<unknown>",
  "itemId": 123,
  "minimumRentalEnd": "2023-11-07T05:31:56Z",
  "packingStatus": "pending",
  "receiveAt": "2023-11-07T05:31:56Z",
  "receivedAt": "<unknown>",
  "rentalEnd": {
    "before": "2023-11-07T05:31:56Z",
    "after": "2023-11-07T05:31:56Z"
  },
  "rentalStart": {
    "before": "2023-11-07T05:31:56Z",
    "after": "2023-11-07T05:31:56Z"
  },
  "tagsAttributes": [
    {
      "title": "<string>",
      "id": 123,
      "_destroy": true
    }
  ]
}
'
{
  "id": 123,
  "createdAt": "2023-11-07T05:31:56Z",
  "customer": {
    "id": 123,
    "createdAt": "2023-11-07T05:31:56Z",
    "shopifyId": 123,
    "defaultAddress": "<unknown>",
    "email": "<unknown>",
    "firstName": "<unknown>",
    "lastName": "<unknown>"
  },
  "itemId": 123,
  "packingStatus": "pending",
  "shopifyOrderId": 123,
  "shopifyOrderLineId": 123,
  "item": {
    "id": 123,
    "createdAt": "2023-11-07T05:31:56Z",
    "activeRentalId": "<unknown>",
    "productTitle": "<string>",
    "serial": "<unknown>",
    "sequentialId": 123,
    "shopifyVariantId": "<unknown>",
    "status": "processed",
    "tags": [
      "<string>"
    ],
    "variantTitle": "<unknown>",
    "visibility": "available",
    "activeReturnId": "<unknown>",
    "condition": "<unknown>",
    "conditionId": "<unknown>",
    "imageUrl": "<unknown>",
    "location": "<unknown>",
    "pickLocation": "<unknown>",
    "shopifyProductId": "<unknown>",
    "timelineEvents": [
      {
        "id": 123,
        "eventableId": 123,
        "eventableType": "<string>",
        "eventType": "<string>",
        "metadata": {},
        "createdAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z",
        "author": "<string>"
      }
    ]
  },
  "fulfillAt": "<unknown>",
  "fulfilledAt": "<unknown>",
  "minimumRentalEnd": "<unknown>",
  "originRentalIntentToken": "<unknown>",
  "receiveAt": "<unknown>",
  "receivedAt": "<unknown>",
  "rentalStart": "<unknown>",
  "rentalEnd": "<unknown>",
  "restockBy": "<unknown>",
  "restockedAt": "<unknown>",
  "sequentialId": "<unknown>",
  "shopifyOrderName": "<string>",
  "status": "scheduled",
  "returnOrderId": "<unknown>",
  "timelineEvents": [
    {
      "id": 123,
      "eventableId": 123,
      "eventableType": "<string>",
      "eventType": "<string>",
      "metadata": {},
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "author": "<string>"
    }
  ],
  "tags": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

rentalId
integer
required

Numeric ID of the rental to retrieve.

Body

application/json
fulfillAt
string<date-time>
fulfilledAt
null | string<date-time>
itemId
integer<int64>
minimumRentalEnd
string<date-time>
packingStatus
enum<string>

Status of the packing process.

Available options:
pending,
printed,
packed
receiveAt
string<date-time>
receivedAt
null | string<date-time>
rentalEnd
object
rentalStart
object
tagsAttributes
object[]

Response

Expected response to a valid request

id
integer<int64>
required

Numeric ID of the rental.

createdAt
string<date-time>
required
customer
object
required
itemId
integer<int64>
required
packingStatus
enum<string>
required

Status of the packing process.

Available options:
pending,
printed,
packed
shopifyOrderId
integer<int64>
required
shopifyOrderLineId
integer<int64>
required
item
object
fulfillAt
null | string<date-time>

Date and time the rental is due to be dispatched to the customer.

fulfilledAt
null | string<date-time>

Date and time the rental was dispatched to the customer.

minimumRentalEnd
null | string<date-time>
originRentalIntentToken
null | string
receiveAt
null | string<date-time>

Date and time the rental is due to be received back from the customer.

receivedAt
null | string<date-time>

Date and time the rental was received back from the customer.

rentalStart
null | string<date-time>

Date and time the item was received by the customer and the rental period started.

rentalEnd
null | string<date-time>

Date and time the rental period is due to end.

restockBy
null | string<date-time>

Date and time the item is due to be restocked.

restockedAt
null | string<date-time>

Date and time the item was restocked.

sequentialId
null | integer<int32>

Sequential ID of the rental.

shopifyOrderName
string
status
enum<string>

Status of the rental.

Available options:
scheduled,
unfulfilled,
fulfilled,
unreceived,
received,
cancelled
returnOrderId
null | integer<int64>

ID of the return order associated with this rental.

timelineEvents
object[]

Timeline events for this rental

tags
string[]