PUT /purchase-items/{id}.json
Path parameters
-
Numeric ID of the instance
Minimum value is
1
.
Body Required
-
bundlePurchaseItemId integer(int32) | null
Bundle purchase item
-
Bundle quantity
Default value is
0
. -
clonePurchaseItemId integer(int32) | null
Clone purchase item
-
Commission refund
Values are
none
orfull
. Default value isnone
. -
Commission retained
Default value is
0
. -
Commission tax rate
Default value is
0
. -
Commission tax retained
Default value is
0
. -
createdAt string(date-time)
Created at
-
dropshipProviderInventoryFeedVariantId integer(int32) | null
Dropship provider inventory feed variant
-
exchangeIso string | null
Exchange iso
-
exchangeRate number(float) | null
Exchange rate
-
id integer(int32)
Id
-
Inventory processed
Default value is
0
. -
Is bundle
Default value is
false
. -
Locked
Default value is
false
. -
Name
-
Prevent duplicates
Default value is
false
. -
Price
Default value is
0
. priceDisplay object | null | array | boolean | integer | number | string
-
priceExtended number | null
Price extended
properties object | null | array | boolean | integer | number | string
-
Purchase
-
purchaseImportExternalId string | null
Purchase import external
-
Quantity
Default value is
1
. -
Quantity cancelled
Default value is
0
. -
Quantity invoiced
Default value is
0
. -
Quantity returned
Default value is
0
. -
saleItemId integer(int32) | null
Sale item
-
Subtotal
Default value is
0
. -
Tax
Default value is
0
. -
taxRate number(float) | null
Tax rate
-
Taxable
Default value is
false
. -
updatedAt string(date-time)
Updated at
-
variantId integer(int32) | null
Variant
curl \
-X PUT http://api.example.com/v1/purchase-items/{id}.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"bundlePurchaseItemId":42,"bundleQuantity":0,"clonePurchaseItemId":42,"commissionRefund":"none","commissionRetained":0,"commissionTaxRate":0,"commissionTaxRetained":0,"createdAt":"2024-05-04T09:42:00+00:00","dropshipProviderInventoryFeedVariantId":42,"exchangeIso":"string","exchangeRate":42.0,"id":42,"inventoryProcessed":0,"isBundle":false,"locked":false,"name":"string","notes":{},"preventDuplicates":false,"price":0,"priceBase":{},"priceDisplay":{},"priceExtended":42.0,"properties":{},"purchaseId":42,"purchaseImportExternalId":"string","quantity":1,"quantityCancelled":0,"quantityInvoiced":0,"quantityReturned":0,"saleItemId":42,"subtotal":0,"tax":0,"taxRate":42.0,"taxable":false,"updatedAt":"2024-05-04T09:42:00+00:00","variantId":42}'
{
"bundlePurchaseItemId": 42,
"bundleQuantity": 0,
"clonePurchaseItemId": 42,
"commissionRefund": "none",
"commissionRetained": 0,
"commissionTaxRate": 0,
"commissionTaxRetained": 0,
"createdAt": "2024-05-04T09:42:00+00:00",
"dropshipProviderInventoryFeedVariantId": 42,
"exchangeIso": "string",
"exchangeRate": 42.0,
"id": 42,
"inventoryProcessed": 0,
"isBundle": false,
"locked": false,
"name": "string",
"notes": {},
"preventDuplicates": false,
"price": 0,
"priceBase": {},
"priceDisplay": {},
"priceExtended": 42.0,
"properties": {},
"purchaseId": 42,
"purchaseImportExternalId": "string",
"quantity": 1,
"quantityCancelled": 0,
"quantityInvoiced": 0,
"quantityReturned": 0,
"saleItemId": 42,
"subtotal": 0,
"tax": 0,
"taxRate": 42.0,
"taxable": false,
"updatedAt": "2024-05-04T09:42:00+00:00",
"variantId": 42
}