Katana SalesReturnsController API

The SalesReturnsController API from Katana — 3 operation(s) for salesreturnscontroller.

Operations 6

GET /sales_returns/return_reasons #
PATCH /sales_returns/{id} #
GET /sales_returns/{id} #
DELETE /sales_returns/{id} #
POST /sales_returns #
GET /sales_returns #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/katana-salesreturnscontroller-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

katana-salesreturnscontroller-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: katana-api-gateway AdditionalCostController Sales Returns Controller API
  version: 0.0.1
  description: public api
  contact: {}
servers:
- url: https://api.katanamrp.com/v1
tags:
- name: SalesReturnsController
paths:
  /sales_returns/return_reasons:
    get:
      x-controller-name: SalesReturnsController
      x-operation-name: getReturnReasons
      tags:
      - SalesReturnsController
      responses:
        '200':
          description: Return value of SalesReturnsController.getReturnReasons
      operationId: SalesReturnsController.getReturnReasons
  /sales_returns/{id}:
    patch:
      x-controller-name: SalesReturnsController
      x-operation-name: updateById
      tags:
      - SalesReturnsController
      responses:
        '200':
          description: Return value of SalesReturnsController.updateById
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SalesReturnPatchDto'
        required: true
        x-parameter-index: 1
      operationId: SalesReturnsController.updateById
      parameters:
      - name: id
        in: path
        schema:
          type: integer
          format: int32
        required: true
    get:
      x-controller-name: SalesReturnsController
      x-operation-name: findById
      tags:
      - SalesReturnsController
      responses:
        '200':
          description: Return value of SalesReturnsController.findById
      operationId: SalesReturnsController.findById
      parameters:
      - name: id
        in: path
        schema:
          type: number
        required: true
    delete:
      x-controller-name: SalesReturnsController
      x-operation-name: deleteById
      tags:
      - SalesReturnsController
      responses:
        '200':
          description: Return value of SalesReturnsController.deleteById
      operationId: SalesReturnsController.deleteById
      parameters:
      - name: id
        in: path
        schema:
          type: number
        required: true
  /sales_returns:
    post:
      x-controller-name: SalesReturnsController
      x-operation-name: create
      tags:
      - SalesReturnsController
      responses:
        '200':
          description: Return value of SalesReturnsController.create
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateSalesReturnDto'
        description: Data to create Sales return
      operationId: SalesReturnsController.create
    get:
      x-controller-name: SalesReturnsController
      x-operation-name: findAndPaginate
      tags:
      - SalesReturnsController
      responses:
        '200':
          description: Return value of SalesReturnsController.findAndPaginate
      operationId: SalesReturnsController.findAndPaginate
      parameters:
      - name: pagination
        in: query
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      - name: dateFilter
        in: query
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      - name: ids
        in: query
        schema:
          type: array
          items:
            type: integer
      - name: return_location_id
        in: query
        schema:
          type: integer
          format: int32
      - name: order_no
        in: query
        schema:
          type: string
      - name: sales_order_no
        in: query
        schema:
          type: string
      - name: status
        in: query
        schema:
          enum:
          - NOT_RETURNED
          - RETURNED_ALL
          - RESTOCKED_ALL
          type: string
      - name: refund_status
        in: query
        schema:
          enum:
          - NOT_REFUNDED
          - REFUNDED
          - PARTIALLY_REFUNDED
          type: string
      - name: order_created_date_min
        in: query
        schema:
          type: string
      - name: order_created_date_max
        in: query
        schema:
          type: string
      - name: order_return_date_min
        in: query
        schema:
          type: string
      - name: order_return_date_max
        in: query
        schema:
          type: string
components:
  schemas:
    SalesReturnPatchDto:
      title: SalesReturnPatchDto
      type: object
      properties:
        order_no:
          type: string
          minLength: 1
        order_created_date:
          type: string
          format: date
        return_location_id:
          type: number
          minimum: 0
          maximum: 2147483647
        additional_info:
          type:
          - string
          - 'null'
          maxLength: 255
        return_date:
          type: string
          format: date
        status:
          type: string
          enum:
          - NOT_RETURNED
          - RETURNED_ALL
          - RESTOCKED_ALL
        tracking_number:
          type:
          - string
          - 'null'
          minLength: 1
          maxLength: 256
        tracking_number_url:
          type:
          - string
          - 'null'
          minLength: 1
          maxLength: 2048
        tracking_carrier:
          type:
          - string
          - 'null'
          minLength: 1
          maxLength: 256
        tracking_method:
          type:
          - string
          - 'null'
          minLength: 1
          maxLength: 256
      additionalProperties: false
    CreateSalesReturnDto:
      title: CreateSalesReturnDto
      type: object
      properties:
        sales_order_id:
          type: integer
          minimum: 0
          maximum: 2147483647
        order_created_date:
          type: string
          format: date
        return_location_id:
          type: integer
          minimum: 0
          maximum: 2147483647
        order_no:
          type: string
          minLength: 1
        additional_info:
          type: string
          maxLength: 255
        tracking_number:
          type:
          - string
          - 'null'
          minLength: 1
          maxLength: 256
        tracking_number_url:
          type:
          - string
          - 'null'
          minLength: 1
          maxLength: 2048
        tracking_carrier:
          type:
          - string
          - 'null'
          minLength: 1
          maxLength: 256
        tracking_method:
          type:
          - string
          - 'null'
          minLength: 1
          maxLength: 256
      required:
      - sales_order_id
      - return_location_id
      additionalProperties: false