Admin API
Conditions
TimelineComments
Items
Create an item
Create a new item against a product that has already been imported into Supercycle.
POST
/
items
Copy
curl --request POST \
--url https://app.supercycle.com/api/v1/items \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"shopifyVariantId": 123,
"quantity": 99,
"serials": [
"<string>"
],
"visibility": "available",
"conditionId": null,
"location_shopify_id": null
}'
Copy
[
{
"id": 123,
"createdAt": "2023-11-07T05:31:56Z",
"activeRentalId": null,
"condition": null,
"conditionId": null,
"imageUrl": null,
"location_shopify_id": null,
"productTitle": "<string>",
"serial": null,
"sequentialId": 123,
"shopifyProductId": null,
"shopifyVariantId": null,
"status": "processed",
"tags": [
"<string>"
],
"variantTitle": null,
"visibility": "available",
"timeline_events": [
{
"id": 123,
"eventableId": 123,
"eventableType": "<string>",
"eventType": "<string>",
"metadata": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"author": "<string>"
}
]
}
]
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
200
application/json
Expected response to a valid request
The response is of type object[]
.
Was this page helpful?
Copy
curl --request POST \
--url https://app.supercycle.com/api/v1/items \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"shopifyVariantId": 123,
"quantity": 99,
"serials": [
"<string>"
],
"visibility": "available",
"conditionId": null,
"location_shopify_id": null
}'
Copy
[
{
"id": 123,
"createdAt": "2023-11-07T05:31:56Z",
"activeRentalId": null,
"condition": null,
"conditionId": null,
"imageUrl": null,
"location_shopify_id": null,
"productTitle": "<string>",
"serial": null,
"sequentialId": 123,
"shopifyProductId": null,
"shopifyVariantId": null,
"status": "processed",
"tags": [
"<string>"
],
"variantTitle": null,
"visibility": "available",
"timeline_events": [
{
"id": 123,
"eventableId": 123,
"eventableType": "<string>",
"eventType": "<string>",
"metadata": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"author": "<string>"
}
]
}
]
Assistant
Responses are generated using AI and may contain mistakes.