Cruthaigh iompórtáil
Ullmhaigh dréacht le 1000 cód nó 100 comhad ar a mhéad. Ní mhéadaíonn an stoc ar díol fós.
POST
/api/v1/inventory/products/{product_id}/digital-importsIarratas cURL
curl --disable --globoff --fail-with-body --silent --show-error \
--proto '=https' --connect-timeout 5 --max-time 30 \
--request POST \
--url https://shop.onshopently.com/api/v1/inventory/products/example/digital-imports \
--header 'Authorization: Bearer EXAMPLE_ACCESS_TOKEN' \
--header 'Idempotency-Key: 220d9f39-b8d9-5f28-9c9c-b85f003679fa' \
--header 'Content-Type: application/json' \
--data-raw '{"count":2,"kind":"code"}'
Freagra
{
"data": {
"deleted": false,
"id": "00000000-0000-4000-8000-000000000001",
"version": 1
},
"meta": {
"request_id": "example-request"
}
}
Ceadanna riachtanacha
- Fíordheimhniú
- Comhartha rochtana
- Ar fáil ó
- STANDARD
- Cead na heochrach
- Athraigh cóid agus comhaid atá ar fáil
inventory.digital_unit:write