PUT /purchase-shipping-rates/{id}.json
Path parameters
-
Numeric ID of the instance
Minimum value is
1
.
Body Required
-
createdAt string(date-time) | null
Created at
-
days integer(int32) | null
Days
-
dropshipmentId integer(int32) | null
Dropshipment
-
durationTerms string | null
Duration terms
-
fullPrice number | null
Full price
-
id integer(int32)
Id
-
Invoice eligibility
Values are
eligible
orfreeShipping
. Default value iseligible
. -
Invoice shipping
Default value is
false
. -
invoiceShippingType string | null
Invoice shipping type
Values are
addition
,deduct
, orcommission
. -
Price
-
provider string | null
Provider
-
Purchase
-
purchaseInvoiceId integer(int32) | null
Purchase invoice
-
Rate purpose
Values are
none
,label
, orinvoice
. Default value islabel
. -
serviceCode string | null
Service code
-
serviceLevel string | null
Service level
-
serviceLevelTerms string | null
Service level terms
-
serviceLevelToken string | null
Service level token
-
Shipping commission
Default value is
0
. -
shippingRateId integer(int32) | null
Shipping rate
-
targetPrice number | null
Target price
-
tax number | null
Tax
-
updatedAt string(date-time) | null
Updated at
PUT
/purchase-shipping-rates/{id}.json
curl \
-X PUT http://api.example.com/v1/purchase-shipping-rates/{id}.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"createdAt":"2024-05-04T09:42:00+00:00","days":42,"dropshipmentId":42,"durationTerms":"string","fullPrice":42.0,"id":42,"invoiceEligibility":"eligible","invoiceShipping":false,"invoiceShippingType":"addition","price":42.0,"provider":"string","purchaseId":42,"purchaseInvoiceId":42,"ratePurpose":"label","serviceCode":"string","serviceLevel":"string","serviceLevelTerms":"string","serviceLevelToken":"string","shippingCommission":0,"shippingRateId":42,"targetPrice":42.0,"tax":42.0,"updatedAt":"2024-05-04T09:42:00+00:00"}'
Request example
{
"createdAt": "2024-05-04T09:42:00+00:00",
"days": 42,
"dropshipmentId": 42,
"durationTerms": "string",
"fullPrice": 42.0,
"id": 42,
"invoiceEligibility": "eligible",
"invoiceShipping": false,
"invoiceShippingType": "addition",
"price": 42.0,
"provider": "string",
"purchaseId": 42,
"purchaseInvoiceId": 42,
"ratePurpose": "label",
"serviceCode": "string",
"serviceLevel": "string",
"serviceLevelTerms": "string",
"serviceLevelToken": "string",
"shippingCommission": 0,
"shippingRateId": 42,
"targetPrice": 42.0,
"tax": 42.0,
"updatedAt": "2024-05-04T09:42:00+00:00"
}