Requested data
Smake Checkout API — Requested data
Requested object
Sometimes it is necessary to see which data is used to create a new resource. For example, which file was used to create a media or which variant was used to create a new designed variant.
Therefore, a requested attribute is shown for a specific resource.
It's an object with unstructured data containing this information.
This information is for debugging purposes only and may change structurally over time. Do not use this data programmatically.
Requested object on logo
Request
POST logos HTTP/1.1
{
"production_method": {
"handle": "dtg"
},
"media": [
{
"url": "https://smake-public.s3.eu-west-1.amazonaws.com/testfiles/logo.png",
"collection_name": "production-file"
}
]
}Request
POST logos/155 HTTP/1.1
{
"id": 1,
"state": "completed",
"collection_name": "catalogue",
"name": "logo",
"production_method": 4,
"texts": [],
"media": [
{
"id": 1987,
"is_test": 0,
"collection_name": "production-file",
"file_name": "logo.png",
"size": 7502,
"mime_type": "image/png",
"download_url": "https://smake-public.s3.eu-west-1.amazonaws.com/files/f02fbd307ca644838cb22204a83d8535/logo.png?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIATV6IRLEXI2SRHX47%2F20220330%2Feu-west-1%2Fs3%2Faws4_request&X-Amz-Date=20220330T142111Z&X-Amz-SignedHeaders=host&X-Amz-Expires=3600&X-Amz-Signature=a8821c9c306bccd4ac0067238e2832adc6e0c5d62ff9385dea9836fa06698ab8",
"state": "completed",
"requested": {
"url": "https://smake-public.s3.eu-west-1.amazonaws.com/testfiles/logo.png",
"collection_name": "production-file"
},
"failure_message": null,
"created_at": "2022-03-30T14:21:02+00:00",
"updated_at": "2022-03-30T14:21:02+00:00"
}
],
"failure_message": null,
"created_at": "2022-03-30T14:21:01+00:00",
"updated_at": "2022-03-30T14:21:02+00:00"
}
Localization
Smake Checkout API — Localization
List additional instructions GET
The endpoint lists all available additional instructions that can be transferred in the endpoint [variants/{id}/design](/docs/checkout/2022-02-01/endpoints/variants/designVariant). ## List Returns a collection of additional instructions. ### Filtering You can filter your results as follows: ##### List additional instructions for specified id(s) * `/additional-instructions?filter[id]=1` * `/additional-instructions?filter[id]=1,2,3` ##### List additional instructions for specified name * `/additional-instructions?filter[name]=qui` ##### List additional instructions for a specified origin code * `/additional-instructions?filter[collection_name]=product` * `/additional-instructions?filter[collection_name]=shipping` See: [Pagination](/docs/checkout/2022-02-01/basic/pagination), [Filtering](/docs/checkout/2022-02-01/basic/filtering)