Skip to main content

returnMerchandiseAuthorization

The returnMerchandiseAuthorization resource is used to manage the process of returning products from a client perspective by registering the intent to return goods. This enables clients to keep track of returns announced by consumers and the actual returns processed by Paxon.

idinteger
Example: 13500
typestringrequired
Constant value: returnMerchandiseAuthorization
attributes object

Holds the attributes related to the returnMerchandiseAuthorization that are read-only, however the most interesting part is in the items.

commentsstring

Allows for arbitrary comments to be added to the returnMerchandiseAuthorization.

createdOnstring<date>

Date the returnMerchandiseAuthorization was created.

externalReferenceexternalReturnMerchandiseAuthorizationReference

Optional external reference for this returnMerchandiseAuthorization. Note that the value is considered to be unique, but not verified or enforced to be unique in any way.

Example: RMA-1656-07-15
metadata object

Allows the specification of arbitrary name-value pairs.

property name*string
modifiedOnstring<date>

Date the returnMerchandiseAuthorization was last modified.

statusreturnMerchandiseAuthorizationStatus

The returnMerchandiseAuthorizationStatus provides insight into the step in the process of fulfilling a shipment within a warehouse.

statusDescription
PENDINGThe returnMerchandiseAuthorization has been registered, but no corresponding return has been received/processed yet
PROCESSEDA return has been processed and linked to the returnMerchandiseAuthorization marking it as PROCESSED

Possible values: [PENDING, PROCESSED]

relationships object
returnMerchandiseAuthorizationItems object

Represents a relationship to multiple returnMerchandiseAuthorizationItem resources.

data object[]
  • Array [
  • idinteger
    Example: 13501
    typestringrequired
    Constant value: returnMerchandiseAuthorizationItem
    links object
    selfstring<uri>
    Example: https://shopapi.activeants.nl/v3/returnMerchandiseAuthorizationItems/13501
  • ]
  • shipment object

    Represents a relationship to a shipment resource.

    data object

    Represents a self-link of a shipment resource.

    idinteger
    Example: 68076953
    typestringrequired
    Constant value: shipment
    links object
    selfstring<uri>
    Example: https://shopapi.activeants.nl/v3/shipments/68076953
    included object[]
  • Array [
  • anyOf

    Defines the relationships of the returnMerchandiseAuthorizationItem resource.

    idinteger
    Example: 13501
    typestringrequired
    Constant value: returnMerchandiseAuthorizationItem
    attributes object
    externalReferenceexternalReturnMerchandiseAuthorizationItemReference

    An optional external reference to the returnMerchandiseAuthorizationItem.

    metadata object

    Allows the specification of arbitrary name-value pairs.

    property name*string
    quantityinteger

    The number of items being returned.

    Possible values: > 0

    reasonCodestring

    Customer provided reason for returning the item

    Possible values: > 0

    skuproductSku

    SKU (stock keeping unit) of a product used to identify products.

    Possible values: >= 2 characters and <= 80 characters, Value must match regular expression ^[\x21-\x7E][\x20-\x7E]*[\x21-\x7E]$

    Examples:
    Example: VDB-400
    relationships object
    product object

    Refers to the product being returned

    data object

    Represents a self-link of a product resource.

    idinteger

    The id is an internally assigned id of a product.

    Example: 540935
    typestringrequired
    Constant value: product
    links object
    selfstring<uri>
    Example: https://shopapi.activeants.nl/v3/products/540935
    returnItem object

    When the status is PROCESSED the returnMerchandiseAuthorizationItem has been received and its return information can be found on the returnItem resource.

    data object

    Represents a self-link of a returnItem resource.

    idinteger
    Example: 5432554
    typestringrequired
    Constant value: returnItem
    links object
    selfstring<uri>
    Example: https://shopapi.activeants.nl/v3/returnItems/5432554
    returnReason object

    Encodes the (consumer) reason for making the return.

    data object

    Represents a self-link of a returnReason resource.

    idinteger
    Example: 16
    typestringrequired
    Constant value: returnReason
    links object
    selfstring<uri>
    Example: https://shopapi.activeants.nl/v3/returnReasons/16
    shipmentItem object

    Refers to the original shipment item that shipped out the product to the consumer

    data object

    Represents a self-link of a shipmentItem resource.

    idinteger
    Example: 15368865
    typestringrequired
    Constant value: shipmentItem
    links object
    selfstring<uri>
    Example: https://shopapi.activeants.nl/v3/shipmentItems/15368865
  • ]
  • links object
    selfstring<uri>
    Example: https://shopapi.activeants.nl/v3/returnMerchandiseAuthorizations/13500
    returnMerchandiseAuthorization
    {
    "id": 13500,
    "type": "returnMerchandiseAuthorization",
    "attributes": {
    "externalReference": "RMA-1656-07-15",
    "comments": "string",
    "metadata": {
    "customerId": "#31334-42"
    },
    "status": "PENDING",
    "createdOn": "2024-07-29",
    "modifiedOn": "2024-07-29"
    },
    "relationships": {
    "shipment": {
    "data": {
    "id": 68076953,
    "type": "shipment",
    "links": {
    "self": "https://shopapi.activeants.nl/v3/shipments/68076953"
    }
    }
    },
    "returnMerchandiseAuthorizationItems": {
    "data": [
    {
    "id": 13501,
    "type": "returnMerchandiseAuthorizationItem",
    "links": {
    "self": "https://shopapi.activeants.nl/v3/returnMerchandiseAuthorizationItems/13501"
    }
    }
    ]
    }
    },
    "included": [
    {
    "id": 13501,
    "type": "returnMerchandiseAuthorizationItem",
    "attributes": {
    "externalReference": "string",
    "sku": "VDB-400",
    "quantity": 0,
    "reasonCode": "string",
    "metadata": {
    "customer_note": "want replacement"
    }
    },
    "relationships": {
    "shipmentItem": {
    "data": {
    "id": 15368865,
    "type": "shipmentItem",
    "links": {
    "self": "https://shopapi.activeants.nl/v3/shipmentItems/15368865"
    }
    }
    },
    "product": {
    "data": {
    "id": 540935,
    "type": "product",
    "links": {
    "self": "https://shopapi.activeants.nl/v3/products/540935"
    }
    }
    },
    "returnReason": {
    "data": {
    "id": 16,
    "type": "returnReason",
    "links": {
    "self": "https://shopapi.activeants.nl/v3/returnReasons/16"
    }
    }
    },
    "returnItem": {
    "data": {
    "id": 5432554,
    "type": "returnItem",
    "links": {
    "self": "https://shopapi.activeants.nl/v3/returnItems/5432554"
    }
    }
    }
    }
    }
    ],
    "links": {
    "self": "https://shopapi.activeants.nl/v3/returnMerchandiseAuthorizations/13500"
    }
    }