Rating objectの機能と役割を確認します。
Rating objectは、service level別の配送見積もりと、見積もりを構成する追加料金、手数料、交渉済み料金割引の内訳を提供します。
id
ship
currency
currency.id
currency.base
currency.date
YYYY-MM-DDTHH:mm:ss.sssZ
currency.rates
errors
errors.type
fedex_api
ups_api
dhl_api
usps_api
internal_error
zonos_configuration
errors.message
errors.details
errors.details.id
errors.details.service_level
standard
errors.details.display_name
quotes
quotes.id
rtqt
quotes.amount_subtotal
quotes.weight
quotes.weight.billable
quotes.weight.unit
pound
ounce
kilogram
null
quotes.mode
quotes.mode.service_level
ups_express
ups_express_saver
ups_expedited
ups_economy
ups_standard
ups_mail_innovations_economy
ups_mail_innovations_priority
dhl_express
dhl_ecommerce_parcel_direct
fedex_priority
fedex_economy
usps_first_class_mail_international
usps_priority_mail_international
landmark_parcel
apc_parcel
point2point_standard
point2point_direct
point2point_packet
fedex_international_ground
quotes.mode.display_name
quotes.mode.delivery_date_estimate
quotes.mode.transit_business_days
quotes.mode.transit_days
quotes.mode.rates
quotes.mode.rates.amount
quotes.mode.rates.note
quotes.mode.rates.type
retail_shipping
fuel_surcharge
carrier_fee
negotiated_discount
quotes.packages
quotes.packages.id
quotes.packages.weight
quotes.packages.weight.billable
quotes.packages.weight.dimensional
quotes.packages.weight.factor
quotes.packages.weight.weight_unit
{
"id": "ship_5p67angIDnS91CyfpW55YZ",
"currency": {
"id": "curr_1Rp9lhXSRXvEWVs97k2PHE",
"base": "USD",
"date": "2020-02-04T18:47:04.629+0000",
"rates": []
},
"errors": [
"details": {
"id": "rtqt_7cz80Ny8dToSqoWlHTJJnP",
"display_name": "FedEx Express Saver",
"service_level": "FEDEX_EXPRESS_SAVER",
"message": "[868] Service is not allowed. ",
"type": "fedex_api"
}
],
"quotes": [
"id": "rtqt_4BUyxLEUeoU6zDdprCRoUV",
"amount_subtotal": 943.18,
"mode": {
"delivery_date_estimate": null,
"display_name": "UPS Expedited ",
"rates": [
"amount": 848.31,
"note": "UPS api: standard rate",
"type": "retail_shipping"
"amount": 64.4,
"note": "UPS api: fuel surcharge",
"type": "fuel_surcharge"
"amount": 40,
"note": "UPS api: extended area",
"type": "carrier_fee"
"amount": -9.53,
"note": "UPS negotiated discount",
"type": "negotiated_discount"
"service_level": "UPS_WORLDWIDE_EXPEDITED",
"transit_business_days": null,
"transit_days": null
"packages": [
"id": "1",
"weight": {
"billable": 32,
"dimensional": 30.7554,
"factor": 139,
"weight_unit": "pound"
"unit": "pound"
"id": "rtqt_1jyuPdiE5uIBcYzhO54DAb",
"amount_subtotal": 1058.86,
"display_name": "UPS Saver ",
"amount": 957.26,
"amount": 72.3,
"amount": -10.7,
"service_level": "UPS_SAVER",
]
Rating object
Rating object
Rating objectの機能と役割を確認します。
Rating objectは、service level別の配送見積もりと、見積もりを構成する追加料金、手数料、交渉済み料金割引の内訳を提供します。
属性
idSTRINGshipで始まります。currencyHASHcurrency.idSTRINGcurrency.baseSTRINGcurrency.dateTIMESTAMPYYYY-MM-DDTHH:mm:ss.sssZ。currency.ratesHASHerrorsHASHerrors.typeSTRINGfedex_apiups_apidhl_apiusps_apiinternal_errorzonos_configuration。errors.messageSTRINGerrors.detailsHASHerrors.details.idSTRINGerrors.details.service_levelSTRINGstandard。errors.details.display_nameSTRINGquotesLISTquotes.idSTRINGrtqtで始まります。quotes.amount_subtotalDECIMALquotes.weightHASHquotes.weight.billableDECIMALquotes.weight.unitSTRINGpound、ounce、kilogram、null。nullの場合はpoundが使用されます。quotes.modeHASHquotes.mode.service_levelSTRINGstandard。一般的な例:ups_express、ups_express_saver、ups_expedited、ups_economy、ups_standard、ups_mail_innovations_economy、ups_mail_innovations_priority、dhl_express、dhl_ecommerce_parcel_direct、fedex_priority、fedex_economy、usps_first_class_mail_international、usps_priority_mail_international、landmark_parcel、apc_parcel、point2point_standard、point2point_direct、point2point_packet、fedex_international_ground。キャリアドキュメントでキャリア別の利用可能なservice levelの完全なリストを確認してください。quotes.mode.display_nameSTRINGquotes.mode.delivery_date_estimateTIMESTAMPYYYY-MM-DDTHH:mm:ss.sssZ。キャリアAPIから利用可能な場合に返されます。quotes.mode.transit_business_daysINTEGERquotes.mode.transit_daysINTEGERquotes.mode.ratesHASHquotes.mode.rates.amountDECIMALquotes.mode.rates.noteSTRINGquotes.mode.rates.typeSTRINGretail_shippingfuel_surchargecarrier_feenegotiated_discount。quotes.packagesLISTquotes.packages.idSTRINGquotes.packages.weightHASHquotes.packages.weight.billableDEMICALquotes.packages.weight.dimensionalDECIMALquotes.packages.weight.factorINTEGERquotes.packages.weight.weight_unitSTRINGpoundouncekilogramnull。nullの場合はpoundが使用されます。{"id": "ship_5p67angIDnS91CyfpW55YZ","currency": {"id": "curr_1Rp9lhXSRXvEWVs97k2PHE","base": "USD","date": "2020-02-04T18:47:04.629+0000","rates": []},"errors": [{"details": {"id": "rtqt_7cz80Ny8dToSqoWlHTJJnP","display_name": "FedEx Express Saver","service_level": "FEDEX_EXPRESS_SAVER","message": "[868] Service is not allowed. ","type": "fedex_api"}}],"quotes": [{"id": "rtqt_4BUyxLEUeoU6zDdprCRoUV","amount_subtotal": 943.18,"mode": {"delivery_date_estimate": null,"display_name": "UPS Expedited ","rates": [{"amount": 848.31,"note": "UPS api: standard rate","type": "retail_shipping"},{"amount": 64.4,"note": "UPS api: fuel surcharge","type": "fuel_surcharge"},{"amount": 40,"note": "UPS api: extended area","type": "carrier_fee"},{"amount": -9.53,"note": "UPS negotiated discount","type": "negotiated_discount"}],"service_level": "UPS_WORLDWIDE_EXPEDITED","transit_business_days": null,"transit_days": null},"packages": [{"id": "1","weight": {"billable": 32,"dimensional": 30.7554,"factor": 139,"weight_unit": "pound"}}],"weight": {"billable": 32,"unit": "pound"}},{"id": "rtqt_1jyuPdiE5uIBcYzhO54DAb","amount_subtotal": 1058.86,"mode": {"delivery_date_estimate": null,"display_name": "UPS Saver ","rates": [{"amount": 957.26,"note": "UPS api: standard rate","type": "retail_shipping"},{"amount": 72.3,"note": "UPS api: fuel surcharge","type": "fuel_surcharge"},{"amount": 40,"note": "UPS api: extended area","type": "carrier_fee"},{"amount": -10.7,"note": "UPS negotiated discount","type": "negotiated_discount"}],"service_level": "UPS_SAVER","transit_business_days": null,"transit_days": null},"packages": [{"id": "1","weight": {"billable": 32,"dimensional": 30.7554,"factor": 139,"weight_unit": "pound"}}],"weight": {"billable": 32,"unit": "pound"}}]}このページは役に立ちましたか?