Skip to content
HALOWERK

Text Tools

shop return exchange balance

Exchange balance calculates the additional payment or unused credit on a replacement purchase. Use it when an agent needs comparing an exchange with keeping store credit.

POST https://text.halowerk.com/v1/shop-return-exchange-balance

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
creditintegerYes
replacementintegerYes
exchange_feeintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "credit": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100000000
    },
    "replacement": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100000000
    },
    "exchange_fee": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100000000
    }
  },
  "required": [
    "credit",
    "replacement",
    "exchange_fee"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "credit": 2000,
  "replacement": 8000,
  "exchange_fee": 0
}

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": {
        "pay_extra": {
          "type": "integer"
        },
        "credit_left": {
          "type": "integer"
        }
      },
      "required": [
        "pay_extra",
        "credit_left"
      ]
    },
    "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 →