Manage orders with the REST Admin API
Last updated
{
"orders":[
{
"id": 5549662,
"currency":"USD",
"customer":{
"accepts_marketing":false,
"average_spent":0,
"default_address":null,
"email":" ",
"first_name":"",
"id":49231780,
"last_name":"",
"last_order_at":0,
"last_order_id":0,
"last_order_name":"",
"note":"",
"orders_count":0,
"phone":"",
"state":"disabled",
"tags":"",
"tax_exempt":false,
"total_spent":0,
"updated_at":"2020-12-15T05:09:48+00:00",
"verified_email":false
},
"customer_locale":"",
"discount_applications":null,
"discount_code":null,
"draft_order_number":0,
"email":" ",
"financial_status":"pending",
"fulfillment_status":"",
...
}
]
}let response = pm.response.json()
pm.globals.set("order_id", response.order.id){
"transactions":[
{
"kind":"authorization",
"status":"success",
"amount":200
}
]
}{
"transactions":[
{
"amount":0,
"application_fee":0,
"authorization":"",
"conversion_rate":0,
"created_at":"2020-12-16T10:45:05+00:00",
"currency":"USD",
"currency_exchange_adjustment":null,
"device_id":0,
"error_code":"",
"gateway":"",
"id":10624938,
"kind":"",
"location_id":0,
"message":"",
"order_id":5557905,
"origin_error_code":"",
"parent_id":0,
"payment_details":null,
"payment_method_id":0,
"processed_at":"",
"receipt":null,
"shop_id":10124799,
"source_name":"",
"staff_id":0,
"status":"",
"test":false,
"transaction_amount":0,
"transaction_currency":"",
"updated_at":"2020-12-16T10:45:05+00:00"
}
]
}