Skip to main content

REST API: Transfers

How to list and retrieve transfers

Retrieve transfers between stores, usually of different cost centers, and a summary of the lines transferred in a period.

GET /listTransferPaged
GET /transfer/{idTransfer}
GET /integration/transfer/summary

Before you start

Base URL: https://app.tspoonlab.com/recipes/api

Headers

  • rememberme · required — Session token returned by the login.

  • order · optional — Cost center id (Cost centers). Defaults to the user's active cost center.

Login — Returns the token as plain text.

curl https://app.tspoonlab.com/recipes/api/login \
-d [email protected] \
-d password=XXXXXXX

Permissions — Permission to view transfers. The source and destination stores of each line are only returned with permission to view stores.

Dates — Returned as milliseconds since 1970 (epoch).

Responses may include fields other than the documented ones. Use only the documented fields.


List transfers

Returns the transfers where the active cost center is the source or the destination, newest first.

GET /listTransferPaged

Query parameters

  • start integer · required — Position of the first row, starting at 0.

  • rows integer · required — Number of rows to return.

  • filter string · optional — Text to filter by description or code.

Example

curl "https://app.tspoonlab.com/recipes/api/listTransferPaged?start=0&rows=50" \
-H "rememberme: $TOKEN"

Response

[
{
"id": "3515834441676562996102020301",
"descr": "Transfer to Downtown restaurant",
"codi": "TR-0042",
"date": "Fri 10/30/2026",
"year": 2026,
"month": 10,
"idOrderCenterSrc": "3515834441676562996102020302",
"orderCenterSrc": "Central kitchen",
"idOrderCenterDst": "3515834441676562996102020303",
"orderCenterDst": "Downtown restaurant",
"output": true,
"own": false,
"locked": false
}
]
  • id string — Transfer id.

  • descr string — Description.

  • codi string — Code.

  • date string — Date formatted for display.

  • year, month integer — Year and month (1 to 12).

  • idOrderCenterSrc, orderCenterSrc string — Source cost center.

  • idOrderCenterDst, orderCenterDst string — Destination cost center.

  • output boolean — true if the active cost center is the source (outgoing); false if it is the destination (incoming).

  • own boolean — true if it is a transfer between stores of the active cost center itself.

  • locked boolean — Whether the transfer is locked.


Retrieve a transfer

GET /transfer/{idTransfer}

Path parameters

  • idTransfer string · required — Transfer id.

Example

curl https://app.tspoonlab.com/recipes/api/transfer/3515834441676562996102020301 \
-H "rememberme: $TOKEN"

Response

{
"id": "3515834441676562996102020301",
"descr": "Transfer to Downtown restaurant",
"codi": "TR-0042",
"dateFormatted": "Fri 10/30/2026 10:30",
"comment": null,
"dateGenerated": 1793352600000,
"cost": 48.6,
"currency": "€",
"idOrderCenterSrc": "3515834441676562996102020302",
"orderCenterSrc": "Central kitchen",
"idOrderCenterDst": "3515834441676562996102020303",
"orderCenterDst": "Downtown restaurant",
"output": true,
"own": false,
"locked": false,
"businessLine": null,
"businessLineDst": null,
"listTransferComponents": [
{
"id": "3515834441676562996102020304",
"idTransfer": "3515834441676562996102020301",
"idComponent": "3515834441676562996102020305",
"descr": "Brown stock",
"quantity": 12,
"idUnit": "3515834441676562996102020306",
"unit": "l",
"comment": null,
"cost": 4.05,
"currency": "€",
"idUse": null,
"use": null,
"idStoreSrc": "3515834441676562996102020307",
"storeSrc": "Kitchen cold room",
"idStoreDst": "3515834441676562996102020308",
"storeDst": "Restaurant cold room"
}
]
}

Same fields as the list, plus:

  • dateFormatted string — Date and time formatted for display.

  • comment string — Comment.

  • dateGenerated date — Transfer date.

  • cost number — Total cost: sum of cost × quantity of the lines. null if any line has no cost.

  • currency string — Currency symbol.

  • businessLine, businessLineDst object — Source and destination business line: id and descr string.

  • listTransferComponents array — Transfer lines.

Each line:

  • id string — Line id.

  • idTransfer string — Transfer id.

  • idComponent string — Product, recipe or dish id.

  • descr string — Product, recipe or dish name.

  • quantity number — Quantity.

  • idUnit, unit string — Unit.

  • comment string — Comment.

  • cost number — Unit cost. Multiply it by quantity to get the line cost.

  • currency string — Currency symbol.

  • idUse, use string — Cut or breakdown, if any.

  • idStoreSrc, storeSrc string — Source store.

  • idStoreDst, storeDst string — Destination store.


Retrieve a transfer summary

Returns every line of the transfers in a period where the active cost center is the source or the destination, with the net cost.

GET /integration/transfer/summary

Query parameters

  • startDate string · required — First day of the period, as YYYY-MM-DD. Included.

  • endDate string · required — Last day of the period, as YYYY-MM-DD. Included.

Example

curl "https://app.tspoonlab.com/recipes/api/integration/transfer/summary?startDate=2026-10-01&endDate=2026-10-31" \
-H "rememberme: $TOKEN"

Response

{
"currency": "€",
"cost": -48.6,
"listTransferComponents": [
{
"id": "3515834441676562996102020304",
"descr": "Brown stock",
"idComponent": "3515834441676562996102020305",
"type": 1,
"color": null,
"quantity": -12,
"unit": "l",
"idUnit": "3515834441676562996102020306",
"comment": null,
"idUse": null,
"use": null,
"idComponentType": "3515834441676562996102020309",
"componentType": "Stocks",
"listTypesWithId": [
{ "id": "3515834441676562996102020309", "descr": "Stocks" }
],
"storeSrc": "Kitchen cold room",
"idStoreSrc": "3515834441676562996102020307",
"storeDst": "Restaurant cold room",
"idStoreDst": "3515834441676562996102020308",
"cost": 4.05,
"lastModified": "Wed 10/28/2026 17:40",
"dateGenerated": 1793352600000,
"listLots": [
{ "id": "3515834441676562996102020310", "descr": "L261029-03" }
]
}
]
}
  • currency string — Currency symbol.

  • cost number — Net cost for the period: incoming as positive, outgoing as negative. Transfers between stores of the active cost center itself are not included. null if any line has no cost.

  • listTransferComponents array — One entry per transfer line, not grouped.

Each line:

  • id string — Line id.

  • descr string — Product, recipe or dish name.

  • idComponent string — Product, recipe or dish id.

  • type integer — 0 product · 1 recipe · 2 material · 3 dish.

  • color number — Color of the main category.

  • quantity number — Quantity. Negative if it leaves the active cost center.

  • unit, idUnit string — Unit.

  • comment string — Comment.

  • idUse, use string — Cut or breakdown, if any. Usually null.

  • idComponentType, componentType string — Main category (Categories).

  • listTypesWithId array — Every category of the product, recipe or dish.

  • storeSrc, idStoreSrc string — Source store.

  • storeDst, idStoreDst string — Destination store.

  • cost number — Unit cost.

  • lastModified string — Date of the cost, formatted for display.

  • dateGenerated date — Transfer date.

  • listLots array — Batches: id string and descr string (batch code).

Need help? Message us from the support chat in the bottom-right corner.

Did this answer your question?