POST /sale-shipping-rates.json
Body Required
-
basePrice number | null
Base price
-
days integer(int32) | null
Days
-
dropshipProviderId integer(int32) | null
Dropship provider
-
durationTerms string | null
Duration terms
-
fullPrice number | null
Full price
-
Price
-
provider string | null
Provider
-
Sale
-
saleInvoiceId integer(int32) | null
Sale invoice
-
saleItemId integer(int32) | null
Sale item
-
serviceCode string | null
Service code
-
serviceLevel string | null
Service level
-
serviceLevelTerms string | null
Service level terms
-
serviceLevelToken string | null
Service level token
-
shippingRateCacheId integer(int32) | null
Shipping rate cache
-
shippingRateId integer(int32) | null
Shipping rate
-
source string | null
Source
-
tax number | null
Tax
POST
/sale-shipping-rates.json
curl \
-X POST http://api.example.com/v1/sale-shipping-rates.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"basePrice":42.0,"days":42,"dropshipProviderId":42,"durationTerms":"string","fullPrice":42.0,"price":42.0,"provider":"string","quoteId":{},"saleId":42,"saleInvoiceId":42,"saleItemId":42,"serviceCode":"string","serviceLevel":"string","serviceLevelTerms":"string","serviceLevelToken":"string","shippingRateCacheId":42,"shippingRateId":42,"source":"string","tax":42.0}'
Request example
{
"basePrice": 42.0,
"days": 42,
"dropshipProviderId": 42,
"durationTerms": "string",
"fullPrice": 42.0,
"price": 42.0,
"provider": "string",
"quoteId": {},
"saleId": 42,
"saleInvoiceId": 42,
"saleItemId": 42,
"serviceCode": "string",
"serviceLevel": "string",
"serviceLevelTerms": "string",
"serviceLevelToken": "string",
"shippingRateCacheId": 42,
"shippingRateId": 42,
"source": "string",
"tax": 42.0
}
Response examples (200)
{
"basePrice": 42.0,
"createdAt": "2024-05-04T09:42:00+00:00",
"days": 42,
"dropshipProviderId": 42,
"durationTerms": "string",
"fullPrice": 42.0,
"id": 42,
"price": 42.0,
"provider": "string",
"quoteId": {},
"saleId": 42,
"saleInvoiceId": 42,
"saleItemId": 42,
"serviceCode": "string",
"serviceLevel": "string",
"serviceLevelTerms": "string",
"serviceLevelToken": "string",
"shippingRateCacheId": 42,
"shippingRateId": 42,
"source": "string",
"tax": 42.0,
"updatedAt": "2024-05-04T09:42:00+00:00"
}