Sitecore API catalog/OrderCloud//
- Approve an order return
List order returns
Create an order return
Retrieve an order return
Create or update an order return
Delete an order return
Partially update an order return
List order return approvals
Cancel an order return
Complete an order return
Decline an order return
List order return eligible approvers
Delete an order return item
Submit an order return
Approve an order return
Security
OAuth2(Required scopes: FullAccessOrderAdmin)
- Production sever for Ordercloudhttps://api.ordercloud.io/v1/orderreturns/{returnID}/approve
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://api.ordercloud.io/v1/orderreturns/{returnID}/approve' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Comments": ""
}'Enum:"Unsubmitted""AwaitingApproval""Declined""Open""Completed""Canceled"
Example:"Unsubmitted"
Will be null until the order return passes from the buyer to the seller, including when Status is PendingApproval.
Example:"2018-01-01T00:00:00-06:00"
Populated when payment to customer has been completed.
Example:"2018-01-01T00:00:00-06:00"
Sum of all RefundAmounts for items. This value can be overridden by a user with the OrderAdmin role. To remove the override set the value to null.
Example:0
Example:
[ { "LineItemID": "", "Quantity": 0, "RefundAmount": 0, "Comments": "" } ]
Response
{ "ID": "", "OrderID": "", "PaymentIDs": [ "" ], "Status": "Unsubmitted", "DateCreated": "2018-01-01T00:00:00-06:00", "DateSubmitted": "2018-01-01T00:00:00-06:00", "DateApproved": "2018-01-01T00:00:00-06:00", "DateDeclined": "2018-01-01T00:00:00-06:00", "DateCanceled": "2018-01-01T00:00:00-06:00", "DateCompleted": "2018-01-01T00:00:00-06:00", "LastUpdated": "2018-01-01T00:00:00-06:00", "RefundAmount": 0, "Comments": "", "ItemsToReturn": [ { … } ], "xp": {} }