Update Order
PUThttps://embedded.runalloy.com/2024-03/one/commerce/orders/:orderId
Update order for a specified connection
Request
Path Parameters
The order ID of the order item
Query Parameters
The ID of the credential.
Header Parameters
Default value: bearer YOUR_API_KEY
- application/json
Body
A string used to retrieve orders with a specific order number.
A string used to retrieve orders with a specific order status.
A string used to retrieve orders with a specific fulfillment status.
A specific value used to retrieve orders with a matching shipping total.
A specific value used to retrieve orders with a matching discount total.
A specific value used to retrieve orders with a matching tax total.
A specific value used to retrieve orders with a matching total price.
A string used to retrieve orders with a specific currency.
lineItems
object[]
A string used to retrieve orders with a specific payment status.
billingAddress
object
shippingAddress
object
customer
object
An object containing remote fields that are not supported by the common model. The keys are the names of the fields of the corresponding resource in the remote app, and the values can be strings, numbers, arrays or objects.
Responses
- 200
- 400
200
- application/json
- Schema
- Example (from schema)
- Result
Schema
order
object
{
"order": {
"id": "00000000-0000-0000-0000-000000000000",
"remoteId": "2191357149242",
"orderStatus": "Active",
"lineItems": [
{
"quantity": 1,
"productId": "4463254208570",
"price": "1000.00",
"unitCost": "",
"currency": "USD",
"variantId": "31586061353018",
"title": "T-Shirt",
"sku": "shirt-01"
}
],
"orderNumber": "1001",
"paymentStatus": "Paid",
"customer": {
"customerId": "3046096732218",
"firstName": "Chase",
"lastName": "Red",
"phone": "",
"email": "chasered@runalloy.com"
},
"currency": "USD",
"totalPrice": "1000.00",
"totalDiscount": "0.00",
"totalShipping": "0.00",
"totalTax": "0.00",
"fulfillmentStatus": "unfulfilled",
"remoteCreatedAt": "2023-11-19T17:00:17.000Z",
"remoteUpdatedAt": "2023-11-19T17:00:17.000Z",
"remoteDeleted": false,
"createdAt": "2024-02-22T11:17:53.264Z",
"updatedAt": "2024-02-22T13:54:03.445Z"
}
}
{
"order": {
"id": "00000000-0000-0000-0000-000000000000",
"remoteId": "2191357149242",
"orderStatus": "Active",
"lineItems": [
{
"quantity": 1,
"productId": "4463254208570",
"price": "1000.00",
"unitCost": "",
"currency": "USD",
"variantId": "31586061353018",
"title": "T-Shirt",
"sku": "shirt-01"
}
],
"orderNumber": "1001",
"paymentStatus": "Paid",
"customer": {
"customerId": "3046096732218",
"firstName": "Chase",
"lastName": "Red",
"phone": "",
"email": "chasered@runalloy.com"
},
"currency": "USD",
"totalPrice": "1000.00",
"totalDiscount": "0.00",
"totalShipping": "0.00",
"totalTax": "0.00",
"fulfillmentStatus": "unfulfilled",
"remoteCreatedAt": "2023-11-19T17:00:17.000Z",
"remoteUpdatedAt": "2023-11-19T17:00:17.000Z",
"remoteDeleted": false,
"createdAt": "2024-02-22T11:17:53.264Z",
"updatedAt": "2024-02-22T13:54:03.445Z"
}
}
400
- application/json
- Schema
- Example (from schema)
- Result
Schema
{}
{}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X PUT 'https://embedded.runalloy.com/2024-03/one/commerce/orders/:orderId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"orderNumber": "string",
"orderStatus": "string",
"fulfillmentStatus": "string",
"totalShipping": 0,
"totalDiscount": 0,
"totalTax": 0,
"totalPrice": 0,
"currency": "string",
"lineItems": [
{
"productId": "string",
"variantId": "string",
"title": "string",
"price": 0,
"unitCost": "string",
"currency": "string",
"sku": "string",
"quantity": 0
}
],
"paymentStatus": "string",
"billingAddress": {
"address1": "string",
"address2": "string",
"city": "string",
"countryCode": "string",
"firstName": "string",
"lastName": "string",
"phone": "string",
"region": "string",
"postalCode": "string"
},
"shippingAddress": {
"address1": "string",
"address2": "string",
"city": "string",
"countryCode": "string",
"firstName": "string",
"lastName": "string",
"phone": "string",
"region": "string",
"postalCode": "string"
},
"customer": {
"customerId": "string",
"firstName": "string",
"lastName": "string",
"email": "string",
"phone": "string"
},
"remoteFields": "string"
}'