Update Fulfillment
PUThttps://embedded.runalloy.com/2024-03/one/commerce/orders/:orderId/fulfillments/:fulfillmentId
Update a fulfillment for an order for a specified user
Request
Path Parameters
orderId stringrequired
The order ID of the fulfillment
fulfillmentId stringrequired
The fulfillment ID
Query Parameters
credentialId stringrequired
The ID of the credential.
Header Parameters
Authorization stringrequired
Default value: bearer YOUR_API_KEY
- application/json
Body
carrier string
Carrier company, ex "USPS", "Fedex", "UPS", "Canada Post", etc. Can be any string.
service string
The type of service used for shipping.
trackingUrls string[]
An array of tracking URLs associated with the fulfillment.
trackingNumbers string[]
An array of tracking numbers associated with the fulfillment.
lineItems
object[]
remoteFields json
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
- Result
Schema
any
{
"fulfillment": [
{
"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",
"orderId": "0acf204e-62cc-4840-9f0a-b227f97e5613",
"trackingNumbers": [],
"trackingUrls": [],
"lineItems": [
{
"quantity": 1,
"productId": "7892548747520",
"lineItemId": "12561932648704",
"price": "2.00",
"variantId": "43101260415232",
"title": "Dev Hoodie",
"sku": ""
}
],
"id": "00000000-0000-0000-0000-000000000000"
}
}
400
- application/json
- Schema
- Example (from schema)
- Result
Schema
object
{}
{}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X PUT 'https://embedded.runalloy.com/2024-03/one/commerce/orders/:orderId/fulfillments/:fulfillmentId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"carrier": "string",
"service": "string",
"trackingUrls": [
"string"
],
"trackingNumbers": [
"string"
],
"lineItems": [
{
"quantity": 0,
"lineItemId": "string",
"price": 0,
"title": "string",
"sku": "string",
"productId": "string",
"variantId": "string"
}
],
"remoteFields": "string"
}'
ResponseClear