Update Status
PUT
/v1/orders/{id}/status
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
id
string
required
Header Params
Accept
string
required
Example:
application/json
Body Params application/json
order_status
string
required
Example
{
"order_status": "new_order"
}
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 PUT 'https://api-v2.fastpod.net/v1/orders//status' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"order_status": "new_order"
}'
Responses
🟢200Success
application/json
Body
status
boolean
required
message
string
required
data
object
required
id
string
required
order_type
string
required
reference_id
string
required
order_status
string
required
test_order
boolean
required
item_total
number
required
shipping_total
integer
required
surcharge_total
integer
required
labeling_fee
integer
required
peak_season_surchage
integer
required
order_total
number
required
payment_method
string
required
payment_status
string
required
point_earned
integer
required
point_used
integer
required
quantity_total
integer
required
shipping_method
string
required
rush_production
boolean
required
gift_message
null
required
tax_id
null
required
tax_id_type
null
required
created_at
string
required
updated_at
string
required
rejected_at
null
required
rejected_status
null
required
cancelled_at
null
required
address
object
required
line_items
array [object {14}]
required
shipments
array[string]
required
label_url
string
required
coupon_code
string
required
discount_total
integer
required
discount_labeling_fee
integer
required
Example
{
"status": true,
"message": "Order updated successfully.",
"data": {
"id": "F237-120723-000001",
"reference_id": "string",
"order_status": "new_order",
"test_order": false,
"item_total": 14.4,
"shipping_total": 24,
"surcharge_total": 0,
"order_total": 38.4,
"payment_method": "cash",
"payment_status": "unpaid",
"point_earned": 0,
"point_used": 3840,
"quantity_total": 1,
"shipping_method": "3",
"boost_production": true,
"gift_message": null,
"tax_id": null,
"tax_id_type": null,
"created_at": "2023-12-07T07:54:35.000000Z",
"updated_at": "2023-12-07T07:54:35.000000Z",
"rejected_at": null,
"rejected_status": null,
"cancelled_at": null,
"address": {
"name": "Michael Brown",
"company": "My company",
"email": "michaelbrown@demo.com",
"phone": "(330) 829-0294",
"street1": "3431 Reeves Street",
"street2": null,
"city": "Milwaukee",
"state": "WI",
"country": "US",
"zip": "53202"
},
"line_items": [
{
"id": 100009,
"item_id": "string",
"name": "Line Item 1",
"sku": "UABSTAQUBXL3",
"style": "3001",
"color": "AQUA",
"size": "3XL",
"unit_price": 14.4,
"quantity": 1,
"point_earned": 1440,
"price": 14.4,
"print_areas": {
"front": "url"
},
"preview_areas": {
"front": "url"
},
"shipping_price": 24
}
],
"shipments": []
}
}
Modified at 2024-01-03 16:51:34