Path parameters
-
id
integer(int64) Required 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
-
invoiceEligibility
string | null Required Invoice eligibility
Values are
eligible
orfreeShipping
. Default value iseligible
. -
invoiceShipping
boolean | null Required Invoice shipping
Default value is
false
. -
invoiceShippingType
string | null Invoice shipping type
Values are
addition
,deduct
, orcommission
. -
price
number Required Price
-
provider
string | null Provider
-
purchaseId
integer(int32) Required Purchase
-
purchaseInvoiceId
integer(int32) | null Purchase invoice
-
ratePurpose
string | null Required 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
-
shippingCommission
number | null Required 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 \
--request PUT 'http://api.example.com/v1/purchase-shipping-rates/{id}.json' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"createdAt":"2025-05-04T09:42:00Z","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":"2025-05-04T09:42:00Z"}'
Request examples
{
"createdAt": "2025-05-04T09:42:00Z",
"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": "2025-05-04T09:42:00Z"
}