Skip to content
HALOWERK

Text Tools

shop return mixed tender

Mixed tender refund returns the cash and store-credit portions under the supplied refund order. Use it when an agent needs checking a refund split across two payment types.

POST https://text.halowerk.com/v1/shop-return-mixed-tender

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
refundintegerYes
cash_paidintegerYes
credit_paidintegerYes
firstSee schemaYes
Show full input schema
{
  "type": "object",
  "properties": {
    "refund": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100000000
    },
    "cash_paid": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100000000
    },
    "credit_paid": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100000000
    },
    "first": {
      "enum": [
        "cash",
        "credit"
      ]
    }
  },
  "required": [
    "refund",
    "cash_paid",
    "credit_paid",
    "first"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "refund": 2000,
  "cash_paid": 2000,
  "credit_paid": 1250,
  "first": "credit"
}

Result & documentation

Show published result schema
{
  "type": "object",
  "required": [
    "measured_at",
    "source",
    "data",
    "limitations"
  ],
  "properties": {
    "measured_at": {
      "type": "string"
    },
    "source": {
      "type": "object",
      "required": [
        "reference",
        "retrieved_at"
      ],
      "properties": {
        "reference": {
          "type": "string"
        },
        "retrieved_at": {
          "type": "string"
        }
      }
    },
    "data": {
      "type": "object",
      "properties": {
        "cash_refund": {
          "type": "integer"
        },
        "credit_refund": {
          "type": "integer"
        }
      },
      "required": [
        "cash_refund",
        "credit_refund"
      ]
    },
    "limitations": {
      "type": "string"
    }
  }
}

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.

More endpoints in this hub

All endpoints in this hub →