Update Return
patch
https://api.flxpoint.com/returns/{id}Use this when you want to update returns data through the API.
🔑 X-API-TOKEN⏱ 2 req/sToken: Account · Source · Channel
This page explains the endpoint. To send a live test request, use the interactive tester in Stoplight or your own Postman / HTTP client.
Update a `Return`
Request
Body
application/jsonreturnStatusReturnStatusallowed
openclosedcancelledrefundAdjustmentnumbersyncRefundChangesToOrderbooleanExample request
patch
/returns/{id}curl -X PATCH "https://api.flxpoint.com/returns/{id}" \
-H "Accept: application/json" \
-H "X-API-TOKEN: YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"returnStatus": "open",
"refundAdjustment": 0,
"syncRefundChangesToOrder": true
}'Example body · application/json
{
"returnStatus": "open",
"refundAdjustment": 0,
"syncRefundChangesToOrder": true
}Responses
200OKapplication/json
idintegerorderIdintegerreturnNumberstringaccountIdintegertotalReturnItemsintegertotalRmasintegerchannelIdintegeritemsarray[ReturnItem]idintegerreturnIdintegerorderItemIdintegerskustringreturnQuantityintegerreturnReasonstringreturnConditionstringsalesPricenumbertitlestringrefundedAmountnumberbundleComponentsarray[OrderItemBundleComponent]idintegerorderItemIdintegercomponentVirtualVariantIdintegercomponentQuantityintegerquantityintegerrequiredskustringcostnumbershippedQuantityintegershippedStatusCompletionStatusallowed
Not StartedPartially CompletedCompletedallocatedQuantityintegerallocatedStatusCompletionStatusallowed
Not StartedPartially CompletedCompletedacknowledgedQuantityintegeracknowledgedStatusCompletionStatusallowed
Not StartedPartially CompletedCompletedrmasarray[Rma]idintegerreturnIdintegersourceIdintegerrmaNumberstringaccountIdintegerreturnToAddressobjectidintegernamestringField created real-time by concatenating "firstName" and "lastName"
addressLine1stringaddressLine2stringcitystringstatestringcountrystringstateCodestringcountryCodestringpostalstringPostal / Zip Code of address
emailstringphonestringFree form string field, format isn't enforced
companyNamestringfirstNamestringlastNamestringredactedbooleanRepresents if the address information was related to an Order with a PII (Personably Identifiable Information) retention policy attached. If the Order exceeds the PII retention period, this address will have information redacted.
hashstringRepresents a unique hash of this address.
itemsarray[RmaItem]idintegerreturnItemIdintegerrmaIdintegerskustringtitlestringcostnumberreturnReasonstringreturnConditionstringnotestringquantityintegerapprovedQuantityintegerdeniedQuantityintegercreditedAmountnumberreceivedQuantityintegervoidedQuantityintegerbundleComponentsarray[OrderItemBundleComponent]idintegerorderItemIdintegercomponentVirtualVariantIdintegercomponentQuantityintegerquantityintegerrequiredskustringcostnumbershippedQuantityintegershippedStatusCompletionStatusallowed
Not StartedPartially CompletedCompletedallocatedQuantityintegerallocatedStatusCompletionStatusallowed
Not StartedPartially CompletedCompletedacknowledgedQuantityintegeracknowledgedStatusCompletionStatusallowed
Not StartedPartially CompletedCompletedtotalRmaItemsintegercreatedAtstring (date-time)updatedAtstring (date-time)rmaStatusRmaStatusallowed
WaitingApprovedVoidedDeniedPartially ApprovedCanceledrmaShipmentsarray[RmaShipment]idintegerrmaIdintegeraccountIdintegershipmentobjectidintegernotestringtrackingUrlstringtrackingNumberstringcarrierstringmethodstringshippedAtstring (date-time)insertedAtstring (date-time)shippingCostnumberorderIdintegerpurchaseOrderIdintegerfulfillmentRequestIdintegerrmaIdintegersourceIdintegeraccountIdintegerpartialbooleansuppressedbooleansyncedToChannelbooleansyncErrorstringcrossDockPurchaseOrderIdintegershipmentItemsarray[ShipmentItem]customFieldsarray[ShipmentCustomField]updatedAtstring (date-time)accountingSyncedbooleanshippingAddressobjectidintegernamestringField created real-time by concatenating "firstName" and "lastName"
addressLine1stringaddressLine2stringcitystringstatestringcountrystringstateCodestringcountryCodestringpostalstringPostal / Zip Code of address
emailstringphonestringFree form string field, format isn't enforced
companyNamestringfirstNamestringlastNamestringredactedbooleanRepresents if the address information was related to an Order with a PII (Personably Identifiable Information) retention policy attached. If the Order exceeds the PII retention period, this address will have information redacted.
hashstringRepresents a unique hash of this address.
attachmentsarray[RmaShipmentAttachment]idintegerrmaIdintegerrmaShipmentIdintegerattachmentTypestringattachmentUrlstringcreatedAtstring (date-time)sentAtstring (date-time)rmaShipmentStatusRmaShipmentStatusallowed
Shipment CreatedShipment SentShipment ReceivedShipment Partially ReceivedShipment VoidedcreditSubtotalnumbercreditAdjustmentnumbercreditTotalnumbercreditLastSyncedAtstring (date-time)syncCreditChangesToOrderbooleanshipmentReceivedStatusShipmentReceivedStatusallowed
not_receivedpartially_receivedfully_receivedaccountingSyncedAtstring (date-time)accountingErrorstringreturnTotalnumberstatusReturnStatusallowed
openclosedcancelledupdatedAtstring (date-time)insertedAtstring (date-time)refundAdjustmentnumberrefundSubtotalnumbersum of refunded_amount for all return_items on the return
refundTotalnumberrefundSubtotal + refundAdjustment
refundLastSyncedAtstring (date-time)syncRefundChangesToOrderbooleanshipmentReceivedStatusShipmentReceivedStatusallowed
not_receivedpartially_receivedfully_receivedExample response
{
"id": 0,
"orderId": 0,
"returnNumber": "string",
"accountId": 0,
"totalReturnItems": 0,
"totalRmas": 0,
"channelId": 0,
"items": [
{
"id": 0,
"returnId": 0,
"orderItemId": 0,
"sku": "string",
"returnQuantity": 0,
"returnReason": "string",
"returnCondition": "string",
"salesPrice": 0,
"title": "string",
"refundedAmount": 0,
"bundleComponents": [
{
"id": null,
"orderItemId": null,
"componentVirtualVariantId": null,
"componentQuantity": null,
"quantity": null,
"sku": null,
"cost": null,
"shippedQuantity": null,
"shippedStatus": null,
"allocatedQuantity": null,
"allocatedStatus": null,
"acknowledgedQuantity": null,
"acknowledgedStatus": null
}
]
}
],
"rmas": [
{
"id": 0,
"returnId": 0,
"sourceId": 0,
"rmaNumber": "string",
"accountId": 0,
"returnToAddress": {
"id": 0,
"name": "Joe Smith",
"addressLine1": "120 1st Lane",
"addressLine2": "Suite 123",
"city": "Jacksonville",
"state": "Florida",
"country": "United States",
"stateCode": "FL",
"countryCode": "US",
"postal": "12345",
"email": "person@example.com",
"phone": "1-555-123-4567",
"companyName": "string",
"firstName": "Joe",
"lastName": "Smith",
"redacted": true,
"hash": "string"
},
"items": [
{
"id": null,
"returnItemId": null,
"rmaId": null,
"sku": null,
"title": null,
"cost": null,
"returnReason": null,
"returnCondition": null,
"note": null,
"quantity": null,
"approvedQuantity": null,
"deniedQuantity": null,
"creditedAmount": null,
"receivedQuantity": null,
"voidedQuantity": null,
"bundleComponents": null
}
],
"totalRmaItems": 0,
"createdAt": "2026-04-20T00:00:00Z",
"updatedAt": "2026-04-20T00:00:00Z",
"rmaStatus": "Waiting",
"rmaShipments": [
{
"id": null,
"rmaId": null,
"accountId": null,
"shipment": null,
"shippingAddress": null,
"attachments": null,
"createdAt": null,
"sentAt": null,
"rmaShipmentStatus": null
}
],
"creditSubtotal": 0,
"creditAdjustment": 0,
"creditTotal": 0,
"creditLastSyncedAt": "2026-04-20T00:00:00Z",
"syncCreditChangesToOrder": true,
"shipmentReceivedStatus": "not_received",
"accountingSyncedAt": "2026-04-20T00:00:00Z",
"accountingError": "string"
}
],
"returnTotal": 0,
"status": "open",
"updatedAt": "2026-04-20T00:00:00Z",
"insertedAt": "2026-04-20T00:00:00Z",
"refundAdjustment": 0,
"refundSubtotal": 0,
"refundTotal": 0,
"refundLastSyncedAt": "2026-04-20T00:00:00Z",
"syncRefundChangesToOrder": true,
"shipmentReceivedStatus": "not_received"
}400Bad Request
No schema documented for this status.
401Unauthorized
No schema documented for this status.
403Forbidden
No schema documented for this status.
404Not Found
No schema documented for this status.
OpenAPI fragment
{
"patch": {
"summary": "Update Return",
"description": "Update a `Return`",
"parameters": [],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ReturnUpdateRequest"
},
"examples": {
"Update a Return status to `Open`": {
"value": {
"returnStatus": "open"
}
},
"Update a Return status to `Closed`": {
"value": {
"returnStatus": "closed"
}
},
"Update a Return status to `Cancelled`": {
"value": {
"returnStatus": "cancelled"
}
}
}
}
}
},
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ReturnModel"
},
"examples": {
"example-1": {
"value": {
"id": 0,
"orderId": 0,
"returnNumber": "string",
"accountId": 0,
"totalReturnItems": 0,
"totalRmas": 0,
"channelId": 0,
"items": [
{
"id": 0,
"returnId": 0,
"orderItemId": 0,
"sku": "string",
"returnQuantity": 0,
"returnReason": "string",
"returnCondition": "string",
"salesPrice": 0,
"Title": "string"
}
],
"rmas": [
{
"id": 0,
"returnId": 0,
"sourceId": 0,
"rmaNumber": "string",
"accountId": 0,
"returnToAddress": {
"id": 0,
"name": "Joe Smith",
"addressLine1": "120 1st Lane",
"addressLine2": "Suite 123",
"city": "Jacksonville",
"state": "Florida",
"country": "United States",
"stateCode": "FL",
"countryCode": "US",
"postal": "12345",
"email": "person@example.com",
"phone": "1-555-123-4567",
"companyName": "string",
"firstName": "Joe",
"lastName": "Smith",
"redacted": true,
"hash": "string"
},
"items": [
{
"id": 0,
"returnItemId": 0,
"rmaId": 0,
"sku": "string",
"title": "string",
"salesPrice": 0,
"returnReason": "string",
"returnCondition": "string",
"note": "string",
"quantity": 0
}
],
"totalRmaItems": 0,
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"rmaStatus": "Waiting"
}
],
"returnTotal": 0,
"status": "open"
}
}
}
}
}
},
"400": {
"description": "Bad Request"
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden"
},
"404": {
"description": "Not Found"
}
}
}
}Ready to run it? Send the curl from your terminal or Postman, or use the interactive tester in Stoplight.Open in Stoplight