Returns

Creates a return line for a specified order line.

post
Body
Responses
200Success
application/json
post
POST /v1/om/returns HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 108

{
  "params": {
    "lineId": "text",
    "orderId": "text",
    "invoiceId": "text",
    "quantity": 1,
    "reasonId": "text",
    "waste": true
  }
}
200Success
{
  "app": "text",
  "service": "text",
  "warnings": [
    {}
  ],
  "instanceId": "text",
  "requestId": "text",
  "data": {
    "uid": "text"
  }
}

Deletes a return line.

delete
Path parameters
idstringRequired
Responses
200Success
application/json
delete
DELETE /v1/om/returns/{id} HTTP/1.1
Host: 
Accept: */*
200Success
{
  "app": "text",
  "service": "text",
  "warnings": [
    {}
  ],
  "instanceId": "text",
  "requestId": "text",
  "data": {
    "succeed": true
  }
}

Updates a return line.

patch
Path parameters
idstringRequired
Body
Responses
200Success
application/json
patch
PATCH /v1/om/returns/{id} HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 69

{
  "params": {
    "uid": "text",
    "waste": true,
    "reasonId": "text",
    "quantity": 1
  }
}
200Success
{
  "app": "text",
  "service": "text",
  "warnings": [
    {}
  ],
  "instanceId": "text",
  "requestId": "text",
  "data": {
    "succeed": true
  }
}

Was this helpful?