Skip to main content

rmas

Creates, updates, deletes, gets or lists a rmas resource.

Overview​

Namermas
TypeResource
Idovh.xdsl.rmas

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idstringReturn merchandise authorisation identifier
cancellablebooleanIs the RMA cancellable?
creation_datetimestring (date-time)Creation datetime of the return merchandise authorisation ticket (wire: creationDatetime)
equipment_referencestringMerchandise reference (wire: equipmentReference)
new_merchandisestringNew merchandise brand in case of exchange (wire: newMerchandise)
offer_type_newstringOffer type of the new merchandise in case of exchange (deposit, loan, purchase) (wire: offerTypeNew)
offer_type_oldstringOffer type of the return merchandise (deposit, loan, purchase) (wire: offerTypeOld)
processstringReturn merchandise authorisation type (changePhone, phoneRestitution, undefined)
reception_datetimestring (date-time)Reception datetime of the return merchandise authorisation ticket (wire: receptionDatetime)
shipping_contactobjectContact information structure (wire: shippingContact)
statusstringReturn merchandise authorisation step (closed, open, received)
stepsarrayIndicates the current status of the RMA with a list of steps
termination_datetimestring (date-time)Termination datetime of the return merchandise authorisation ticket (wire: terminationDatetime)
typestringTypology process of merchandise return (after sale equipment service exchange, after sale phone service exchange, equipment restitution, fast exchange, old merchandise reception before exchange, phone restitution, resends due to shipping lost by the carrier, resends due to shipping not withdraw, specific return merchandise authorisation, termination, unknown)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectid, service_nameReturns a return merchandise authorization with its type, process, status and steps, the returned and new equipment, the shipping contact and its dates.
listselectservice_namex_pagination_modeReturns the IDs of the return merchandise authorizations of the access.
updateupdateid, service_nameChanges the process or the shipping contact of a return merchandise authorization.
deletedeleteid, service_nameCancels the return merchandise authorization, when it is still cancellable.
change_typeexecid, serviceName, typeChanges a return merchandise authorization to a resiliation or to a SIP switch.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
idstringId
serviceNamestringService name
service_namestringService name (wire: serviceName)
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

Returns a return merchandise authorization with its type, process, status and steps, the returned and new equipment, the shipping contact and its dates.

SELECT
id,
cancellable,
creation_datetime,
equipment_reference,
new_merchandise,
offer_type_new,
offer_type_old,
process,
reception_datetime,
shipping_contact,
status,
steps,
termination_datetime,
type
FROM ovh.xdsl.rmas
WHERE id = '{{ id }}' -- required
AND service_name = '{{ service_name }}' -- required
;

UPDATE examples​

Changes the process or the shipping contact of a return merchandise authorization.

UPDATE ovh.xdsl.rmas
SET
process = '{{ process }}',
shipping_contact = '{{ shipping_contact }}'
WHERE
id = '{{ id }}' --required
AND service_name = '{{ service_name }}' --required;

DELETE examples​

Cancels the return merchandise authorization, when it is still cancellable.

DELETE FROM ovh.xdsl.rmas
WHERE id = '{{ id }}' --required
AND service_name = '{{ service_name }}' --required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Changes a return merchandise authorization to a resiliation or to a SIP switch.

EXEC ovh.xdsl.rmas.change_type
@id='{{ id }}' --required,
@serviceName='{{ serviceName }}' --required
@@json=
'{
"type": "{{ type }}"
}'
;