Returns
Create return
Changed onCreate a return for a completed order. Whole-order returns only — the order's line items are enumerated for you. The return is submitted for approval and then progresses asynchronously toward the refund; poll the returned return id (or listen for webhooks) to follow its state.
post/api/v1/returns
Request
- Base URLhttps://staging.api.rye.com
- URLhttps://staging.api.rye.com/api/v1/returns
- AuthAPI key in header Authorization
Request body
Response
Created
Example response
{
"refunds": [
{
"shopperRefundTotal": {
"currencyCode": "USD",
"amountSubunits": 1500
}
}
]
}Changes
- info
added the non-success response with the status
- info
- info
the security scope
checkout_intents:writewas added to the endpoint's security schemebearerAuth
- info