- Introduction
- Authentication
- API Rate Limits
- Payment Method and Billing Address
- Getting Started
- Product Configuration
- Webhook
- Order
- Image
- Product
- Store
- Shipment
- Pricing
- Webhook
Shipping cost
Sandbox
Sandbox
POST
https://us.api-sandbox.lumaprints.com/api/v1/pricing/shipping
NOTE
Request
Authorization
Send your HTTP requests with an
Authorization
header that contains the word Basic followed by a space and a base64-encoded string {{Username}}:{{Password}}Example:
Authorization: Basic *****************
Body Params application/json
recipient
object
required
firstName
string
optional
lastName
string
optional
company
string
optional
addressLine1
string
required
addressLine2
string
optional
city
string
required
state
string
required
zipCode
string
required
country
string
required
phone
string
optional
orderItems
array [object {5}]
required
subcategoryId
integer
required
quantity
integer
required
width
integer
required
height
integer
required
orderItemOptions
array[integer]
optional
Example
{
"recipient": {
"firstName": "John",
"lastName": "Smith",
"company": "",
"addressLine1": "955 E Ball Rd",
"addressLine2": "",
"city": "Anaheim",
"state": "CA",
"zipCode": "92805",
"country": "US",
"phone": "8003806038"
},
"orderItems": [
{
"subcategoryId": 101001,
"quantity": 1,
"width": 8,
"height": 10,
"orderItemOptions": [
2
]
}
]
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://us.api-sandbox.lumaprints.com/api/v1/pricing/shipping' \
--header 'Content-Type: application/json' \
--data-raw '{
"recipient": {
"firstName": "John",
"lastName": "Smith",
"company": "",
"addressLine1": "955 E Ball Rd",
"addressLine2": "",
"city": "Anaheim",
"state": "CA",
"zipCode": "92805",
"country": "US",
"phone": "8003806038"
},
"orderItems": [
{
"subcategoryId": 101001,
"quantity": 1,
"width": 8,
"height": 10,
"orderItemOptions": [
2
]
}
]
}'
Responses
🟢200Success
application/json
Body
message
string
required
shippingMethods
array [object {3}]
required
carrier
string
required
method
string
required
cost
number
required
Examples
{
"message": "",
"shippingMethods": [
{
"carrier": "USPS",
"method": "usps_ground_advantage",
"cost": 9.35
},
{
"carrier": "USPS",
"method": "usps_priority_mail",
"cost": 10.75
},
{
"carrier": "FedEx/UPS/GLS",
"method": "ground",
"cost": 11.8
},
{
"carrier": "FedEx/UPS/GLS",
"method": "2_day",
"cost": 25.1
},
{
"carrier": "FedEx/UPS/GLS",
"method": "overnight",
"cost": 32.15
},
{
"carrier": "USPS",
"method": "usps_priority_mail_express",
"cost": 32.55
}
]
}
🟠406No shipping method available
Modified at 2024-10-08 20:42:17