Skip to content
extensions / Commerce extension
PUT/api/projects/{project_id}/sales/rma/settings

Update RMA Setting

Updates a project's returns (RMA) configuration, including the return window, approval behavior, allowed statuses, and default return address.

GETPUT

Authentication

Requirement
Required
Credential type
Bearer API key
Scopes
Not specified

Permissions

  • Requests are scoped to the target project_id. API-key requests must use a key with an active connection to that project.

Headers

NameRequiredTypeDetails
AuthorizationYesNot specified
Description: Bearer credential used to authenticate the request.

Path Parameters

NameRequiredTypeDetails
project_idYesNot specified
Description: Target project identifier.

Query Parameters

Request Body

Schema: RmaSettingsPayload

FieldRequiredTypeDetails
enabledNoboolean
Description: Boolean flag.
return_window_daysNointeger
Description: Integer value.
require_approvalNoboolean
Description: Boolean flag.
allow_more_infoNoboolean
Description: Boolean flag.
auto_approveNoboolean
Description: Boolean flag.
allowed_statusesNoarray<string>
Description: Array value.
Items: string
default_return_address_idNointeger
Description: Identifier for default return address.

Response Body

Example 200 response

json
{
  "success": []
}

Errors

500 internal_error

Availability

Available in
v0.1.0
Available since
v0.1.0
Implementation
Available
Deprecation
Not specified
Rate limits
Not specified