Skip to content

Refunds

Return money for specific paid order line items through the customer's original payment method.

Refunds return all or part of a paid order to the customer’s original payment method. Use this API to create a refund, follow its progress, cancel it before processing begins, or browse previous refunds.

For an explanation of refund eligibility, lifecycle, and effects on balances and payouts, read the Refunds product guide. This page is the endpoint reference.

Create new refunds through POST /refunds/create.

The refund object

A refund records the amounts requested against an order’s line items, why they were returned, where the money is settled, and the refund’s current status. Payment-method refunds begin as Inttegro.RefundStatuses.Pending and then become Inttegro.RefundStatuses.Processing, Inttegro.RefundStatuses.Succeeded, or Inttegro.RefundStatuses.Failed. Offline refunds begin as Inttegro.RefundStatuses.Pending and become Inttegro.RefundStatuses.Succeeded only after a trusted operator records the settlement. A refund canceled before processing begins has a Inttegro.RefundStatuses.Canceled status.

Order responses may include the same objects in order.refunds, with the newest refund first. Optional properties and lifecycle timestamps appear when they have a value.

Each refund line includes an immutable lineItems[].orderLineItem snapshot when the originating order can be resolved. Treat it as a union selected by lineItems[].orderLineItem.type: "product", "fee", or "shipping". Match the allocation to the order through order_line_item.id. For product lines, order_line_item.product.id links to the source catalog product; inline products omit that product ID.

Properties

TypeScript SDK responseRefundv15.0.0

Failure reason values

Create a refund POST /refunds/create

Return all or part of one or more paid order line items. Inttegro sends each amount back through the payment method used for the order. Processing happens asynchronously, so every new refund begins in Inttegro.RefundStatuses.Pending status.

Before creating the refund:

  • Read the order to obtain its line-item IDs and current refundable amounts.
  • Include each line item once, using the same currency and no more than its remaining refundable amount.
  • Reuse the same idempotency key and request body if the result of a request is uncertain.

Request attributes

TypeScript SDK requestCreateRefundRequestv15.0.0

Response

Returns the new refund in Inttegro.RefundStatuses.Pending status. Save its id and use Lookup a refund when you need its latest status.

Request

POST/refunds/create
cURLbash
curl --fail-with-body https://api.inttegro.com/refunds/create \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: refund-return-1042" \
-d '{
"custom_data": {
  "warehouse": "accra"
},
"line_items": [
  {
    "order_line_item_id": "oli_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMN",
    "reason": "item_damaged",
    "reason_details": "Packaging was crushed.",
    "refund_amount": {
      "currency": "ghs",
      "value": 2500
    }
  },
  {
    "order_line_item_id": "oli_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmn",
    "refund_amount": {
      "currency": "ghs",
      "value": 1000
    }
  }
],
"order_id": "or_0123456789abcdefghijklmnopqrstuvwxyzABCD",
"reason": "requested_by_customer",
"reason_details": "Customer returned part of the order.",
"reference": "return_1042"
}'
TypeScripttypescript
import { InttegroClient, RefundReasons } from '@inttegro/inttegro-sdk'

const inttegro = new InttegroClient({
  apiKey: process.env.INTTEGRO_API_KEY!,
})

const result = await inttegro.refunds.create({
  customData: {
    warehouse: "accra",
  },
  lineItems: [
    {
      orderLineItemId: "oli_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMN",
      reason: RefundReasons.ItemDamaged,
      reasonDetails: "Packaging was crushed.",
      refundAmount: {
        currency: "ghs",
        value: 2500,
      },
    },
    {
      orderLineItemId: "oli_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmn",
      refundAmount: {
        currency: "ghs",
        value: 1000,
      },
    },
  ],
  orderId: "or_0123456789abcdefghijklmnopqrstuvwxyzABCD",
  reason: RefundReasons.RequestedByCustomer,
  reasonDetails: "Customer returned part of the order.",
  reference: "return_1042",
}, {
  idempotencyKey: "refund-return-1042",
})
Gogo
package main

import (
  "context"
  "log"
  "os"

  inttegro "github.com/inttegro/inttegro-sdk-go/v14"
  "github.com/inttegro/inttegro-sdk-go/v14/customdata"
  "github.com/inttegro/inttegro-sdk-go/v14/money"
  "github.com/inttegro/inttegro-sdk-go/v14/refund"
)

func main() {
  ctx := context.Background()
  client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))

  params := refund.CreateParams{
    CustomData: func() *customdata.Data { value, err := customdata.New(map[string]string{
        "warehouse": "accra",
      }); if err != nil { panic(err) }; return value }(),
    LineItems: []refund.CreateLineItem{
      {
        OrderLineItemID: "oli_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMN",
        Reason: func() *refund.Reason { value := refund.ReasonItemDamaged; return &value }(),
        ReasonDetails: "Packaging was crushed.",
        RefundAmount: money.AmountParams{
          Currency: money.GHS,
          Value: 2500,
        },
      },
      {
        OrderLineItemID: "oli_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmn",
        RefundAmount: money.AmountParams{
          Currency: money.GHS,
          Value: 1000,
        },
      },
    },
    OrderID: "or_0123456789abcdefghijklmnopqrstuvwxyzABCD",
    Reason: refund.ReasonRequestedByCustomer,
    ReasonDetails: "Customer returned part of the order.",
    Reference: "return_1042",
  }
  result, err := client.Refunds.Create(ctx, params)
  if err != nil {
    log.Fatal(err)
  }
  _ = result
}
Pythonpython
import os

import inttegro
from inttegro import InttegroClient

client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])

result = client.refunds.create(inttegro.refund.CreateRequest(
  custom_data=inttegro.CustomData({
    "warehouse": "accra",
  }),
  line_items=[
    inttegro.refund.CreateLineItemInput(
      order_line_item_id="oli_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMN",
      reason=inttegro.refund.Reason.ITEM_DAMAGED,
      reason_details="Packaging was crushed.",
      refund_amount=inttegro.money.AmountParams(
        currency=inttegro.money.Currency.GHS,
        value=2500,
      ),
    ),
    inttegro.refund.CreateLineItemInput(
      order_line_item_id="oli_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmn",
      refund_amount=inttegro.money.AmountParams(
        currency=inttegro.money.Currency.GHS,
        value=1000,
      ),
    ),
  ],
  order_id="or_0123456789abcdefghijklmnopqrstuvwxyzABCD",
  reason=inttegro.refund.Reason.REQUESTED_BY_CUSTOMER,
  reason_details="Customer returned part of the order.",
  reference="return_1042",
),
    idempotency_key="refund-return-1042")
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->refunds->create([
  'custom_data' => [
    'warehouse' => 'accra',
  ],
  'line_items' => [
    [
      'order_line_item_id' => 'oli_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMN',
      'reason' => \Inttegro\RefundReason::ItemDamaged,
      'reason_details' => 'Packaging was crushed.',
      'refund_amount' => [
        'currency' => 'ghs',
        'value' => 2500,
      ],
    ],
    [
      'order_line_item_id' => 'oli_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmn',
      'refund_amount' => [
        'currency' => 'ghs',
        'value' => 1000,
      ],
    ],
  ],
  'order_id' => 'or_0123456789abcdefghijklmnopqrstuvwxyzABCD',
  'reason' => \Inttegro\RefundReason::RequestedByCustomer,
  'reason_details' => 'Customer returned part of the order.',
  'reference' => 'return_1042',
], "refund-return-1042");
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.refunds.create(
  custom_data: {
    warehouse: "accra",
  },
  line_items: [
    {
      order_line_item_id: "oli_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMN",
      reason: Inttegro::RefundReason::ITEM_DAMAGED,
      reason_details: "Packaging was crushed.",
      refund_amount: {
        currency: "ghs",
        value: 2500,
      },
    },
    {
      order_line_item_id: "oli_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmn",
      refund_amount: {
        currency: "ghs",
        value: 1000,
      },
    },
  ],
  order_id: "or_0123456789abcdefghijklmnopqrstuvwxyzABCD",
  reason: Inttegro::RefundReason::REQUESTED_BY_CUSTOMER,
  reason_details: "Customer returned part of the order.",
  reference: "return_1042",
  idempotency_key: "refund-return-1042"
)
Javajava
import com.inttegro.Client;
import com.inttegro.refunds.CreateRefundParams;
import com.inttegro.CustomData;
import com.inttegro.refunds.CreateRefundLineItem;
import com.inttegro.refunds.RefundReason;
import com.inttegro.money.AmountParams;
import com.inttegro.money.Currency;
import com.inttegro.RequestOptions;

public class Example {
  public static void main(String[] args) throws Exception {
    var client = new Client(System.getenv("INTTEGRO_API_KEY"));
    var params = CreateRefundParams.builder()
      .customData(new CustomData()
          .set("warehouse", "accra"))
      .lineItem(CreateRefundLineItem.builder()
          .orderLineItemId("oli_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMN")
          .reason(RefundReason.ITEM_DAMAGED)
          .reasonDetails("Packaging was crushed.")
          .refundAmount(AmountParams.of(Currency.GHS, 2500))
          .build())
      .lineItem(CreateRefundLineItem.builder()
          .orderLineItemId("oli_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmn")
          .refundAmount(AmountParams.of(Currency.GHS, 1000))
          .build())
      .orderId("or_0123456789abcdefghijklmnopqrstuvwxyzABCD")
      .reason(RefundReason.REQUESTED_BY_CUSTOMER)
      .reasonDetails("Customer returned part of the order.")
      .reference("return_1042")
      .build();
    var result = client.refunds().create(params, RequestOptions.withIdempotencyKey("refund-return-1042"));
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Refunds.CreateAsync(new Inttegro.CreateRefundRequest {
  CustomData = new Inttegro.CustomData()
    .Set("warehouse", "accra"),
  LineItems = new List<Inttegro.CreateRefundLineItem> {
    new Inttegro.CreateRefundLineItem {
      OrderLineItemId = "oli_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMN",
      Reason = Inttegro.RefundReason.ItemDamaged,
      ReasonDetails = "Packaging was crushed.",
      RefundAmount = new Inttegro.Money.AmountParams {
        Currency = Inttegro.Money.Currency.GHS,
        Value = 2500,
      },
    },
    new Inttegro.CreateRefundLineItem {
      OrderLineItemId = "oli_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmn",
      RefundAmount = new Inttegro.Money.AmountParams {
        Currency = Inttegro.Money.Currency.GHS,
        Value = 1000,
      },
    },
  },
  OrderId = "or_0123456789abcdefghijklmnopqrstuvwxyzABCD",
  Reason = Inttegro.RefundReason.RequestedByCustomer,
  ReasonDetails = "Customer returned part of the order.",
  Reference = "return_1042",
}, "refund-return-1042");
Response excerptjson
{
  "refund": {
    "created_at": "2026-08-30T12:00:00Z",
    "custom_data": {
      "warehouse": "accra"
    },
    "id": "rf_1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcd",
    "line_items": [
      {
        "id": "rli_zyxwvutsrqponmlkjihgfedcbaABCDEFGHIJKLMN",
        "order_line_item": {
          "id": "oli_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMN",
          "product": {
            "id": "prod_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMN",
            "name": "Canvas backpack"
          },
          "quantity": 1,
          "type": "product"
        },
        "original_amount_paid": {
          "currency": "ghs",
          "value": 10000
        },
        "reason": "item_damaged",
        "reason_details": "Packaging was crushed.",
        "refund_amount": {
          "currency": "ghs",
          "value": 2500
        }
      },
      {
        "id": "rli_ZYXWVUTSRQPONMLKJIHGFEDCBAabcdefghijklmn",
        "order_line_item": {
          "fee": {
            "description": "Gift wrapping service.",
            "label": "Gift wrapping"
          },
          "id": "oli_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmn",
          "type": "fee"
        },
        "original_amount_paid": {
          "currency": "ghs",
          "value": 5000
        },
        "refund_amount": {
          "currency": "ghs",
          "value": 1000
        }
      }
    ],
    "order_id": "or_0123456789abcdefghijklmnopqrstuvwxyzABCD",
    "reason": "requested_by_customer",
    "reason_details": "Customer returned part of the order.",
    "reference": "return_1042",
    "settlement": {
      "payment_method": {
        "id": "pm_xyz789",
        "mobile_money": {
          "account_number": "****7831",
          "last4": "7831",
          "network": "mtn"
        },
        "type": "mobile_money"
      },
      "type": "payment_method"
    },
    "total": {
      "currency": "ghs",
      "value": 3500
    },
    "status": "pending"
  }
}

Cancel a refund POST /refunds/cancel

Cancel a refund while its status is Inttegro.RefundStatuses.Pending, before Inttegro begins processing it. Cancellation releases the balance reserved for the refund and restores the affected order lines’ refundable amounts.A refund cannot be canceled once it is Inttegro.RefundStatuses.Processing, Inttegro.RefundStatuses.Succeeded, or Inttegro.RefundStatuses.Failed. Repeating this operation for an already canceled refund returns the same refund, making retries safe when you reuse the same idempotency key and request body.

Request attributes

TypeScript SDK requestCancelRefundRequestv15.0.0

Response

Returns the refund in Inttegro.RefundStatuses.Canceled status. When a reason was supplied, the response includes cancelReason; the selected SDK view shows its native property name.

Request

POST/refunds/cancel
cURLbash
curl --fail-with-body https://api.inttegro.com/refunds/cancel \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: cancel-refund-return-1042" \
-d '{"reason":"Customer asked us to stop the return.","refund_id":"rf_1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcd"}'
TypeScripttypescript
import { InttegroClient } from '@inttegro/inttegro-sdk'

const inttegro = new InttegroClient({
  apiKey: process.env.INTTEGRO_API_KEY!,
})

const result = await inttegro.refunds.cancel({
  reason: "Customer asked us to stop the return.",
  refundId: "rf_1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcd",
}, {
  idempotencyKey: "cancel-refund-return-1042",
})
Gogo
package main

import (
  "context"
  "log"
  "os"

  inttegro "github.com/inttegro/inttegro-sdk-go/v14"
  "github.com/inttegro/inttegro-sdk-go/v14/refund"
)

func main() {
  ctx := context.Background()
  client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))

  params := refund.CancelParams{
    Reason: "Customer asked us to stop the return.",
    RefundID: "rf_1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcd",
  }
  result, err := client.Refunds.Cancel(ctx, params)
  if err != nil {
    log.Fatal(err)
  }
  _ = result
}
Pythonpython
import os

from inttegro import InttegroClient

client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])

result = client.refunds.cancel(
    "rf_1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcd",
    idempotency_key="cancel-refund-return-1042",
    reason="Customer asked us to stop the return."
)
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->refunds->cancel(
    "rf_1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcd",
    "cancel-refund-return-1042",
    "Customer asked us to stop the return."
);
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.refunds.cancel(
  reason: "Customer asked us to stop the return.",
  refund_id: "rf_1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcd"
)
Javajava
import com.inttegro.Client;
import com.inttegro.refunds.CancelRefundParams;
import com.inttegro.RequestOptions;

public class Example {
  public static void main(String[] args) throws Exception {
    var client = new Client(System.getenv("INTTEGRO_API_KEY"));
    var params = CancelRefundParams.builder()
      .reason("Customer asked us to stop the return.")
      .refundId("rf_1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcd")
      .build();
    var result = client.refunds().cancel(params, RequestOptions.withIdempotencyKey("cancel-refund-return-1042"));
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Refunds.CancelAsync(new Inttegro.CancelRefundRequest {
  Reason = "Customer asked us to stop the return.",
  RefundId = "rf_1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcd",
}, "cancel-refund-return-1042");

Lookup a refund POST /refunds/lookup

Retrieve a refund’s current status and line-item amounts. Use this after creating or canceling a refund, or when helping a customer with a return.

Request attributes

TypeScript SDK requestLookupRefundRequestv15.0.0

Response

Returns the requested refund.

Request

POST/refunds/lookup
cURLbash
: "${INTTEGRO_API_KEY:?INTTEGRO_API_KEY is required}"
: "${INTTEGRO_REFUND_ID:?INTTEGRO_REFUND_ID is required}"

curl --fail-with-body https://api.inttegro.com/refunds/lookup \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-d "{\"refund_id\":\"$INTTEGRO_REFUND_ID\"}"
TypeScripttypescript
import { InttegroClient } from '@inttegro/inttegro-sdk'

const inttegro = new InttegroClient({
  apiKey: process.env.INTTEGRO_API_KEY!,
})

const result = await inttegro.refunds.lookup({
  refundId: "$INTTEGRO_REFUND_ID",
})
Gogo
package main

import (
  "context"
  "log"
  "os"

  inttegro "github.com/inttegro/inttegro-sdk-go/v14"
  "github.com/inttegro/inttegro-sdk-go/v14/refund"
)

func main() {
  ctx := context.Background()
  client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))

  params := refund.LookupParams{
    RefundID: "$INTTEGRO_REFUND_ID",
  }
  result, err := client.Refunds.Lookup(ctx, params)
  if err != nil {
    log.Fatal(err)
  }
  _ = result
}
Pythonpython
import os

from inttegro import InttegroClient

client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])

result = client.refunds.lookup("$INTTEGRO_REFUND_ID")
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->refunds->lookup("$INTTEGRO_REFUND_ID");
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.refunds.lookup(refund_id: "$INTTEGRO_REFUND_ID")
Javajava
import com.inttegro.Client;

public class Example {
  public static void main(String[] args) throws Exception {
    var client = new Client(System.getenv("INTTEGRO_API_KEY"));
    var result = client.refunds().lookup("$INTTEGRO_REFUND_ID");
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Refunds.LookupAsync("$INTTEGRO_REFUND_ID");

List refunds POST /refunds/page

Browse refunds from newest to oldest. Use this endpoint to build refund history, customer-service, and reconciliation views.

Pages are one-based. pageSize defaults to 256, and the response’s page.size is the number of refunds actually returned. An empty page is successful and contains page.size set to 0 and an empty page.refunds collection.

Request attributes

TypeScript SDK requestPageRefundsRequestv15.0.0

Response

Returns the page number, number of results, and a refunds array. An empty page returns an empty refunds collection and size set to 0.

Request

POST/refunds/page
cURLbash
: "${INTTEGRO_API_KEY:?INTTEGRO_API_KEY is required}"

curl --fail-with-body https://api.inttegro.com/refunds/page \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"page_number":1,"page_size":20}'
TypeScripttypescript
import { InttegroClient } from '@inttegro/inttegro-sdk'

const inttegro = new InttegroClient({
  apiKey: process.env.INTTEGRO_API_KEY!,
})

const result = await inttegro.refunds.page({
  pageNumber: 1,
  pageSize: 20,
})
Gogo
package main

import (
  "context"
  "log"
  "os"

  inttegro "github.com/inttegro/inttegro-sdk-go/v14"
  "github.com/inttegro/inttegro-sdk-go/v14/refund"
)

func main() {
  ctx := context.Background()
  client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))

  params := refund.PageParams{
    PageNumber: 1,
    PageSize: 20,
  }
  result, err := client.Refunds.Page(ctx, params)
  if err != nil {
    log.Fatal(err)
  }
  _ = result
}
Pythonpython
import os

import inttegro
from inttegro import InttegroClient

client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])

result = client.refunds.page(inttegro.refund.PageRequest(
  page_number=1,
  page_size=20,
))
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->refunds->page([
  'page_number' => 1,
  'page_size' => 20,
]);
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.refunds.page(
  page_number: 1,
  page_size: 20
)
Javajava
import com.inttegro.Client;
import com.inttegro.refunds.RefundPageParams;

public class Example {
  public static void main(String[] args) throws Exception {
    var client = new Client(System.getenv("INTTEGRO_API_KEY"));
    var params = RefundPageParams.builder()
      .pageNumber(1)
      .pageSize(20)
      .build();
    var result = client.refunds().page(params);
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Refunds.PageAsync(new Inttegro.PageRefundsRequest {
  PageNumber = 1,
  PageSize = 20,
});
Response excerptjson
{
  "page": {
    "number": 1,
    "refunds": [
      {
        "created_at": "2026-08-30T12:00:00Z",
        "id": "rf_1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcd",
        "line_items": [
          {
            "id": "rli_zyxwvutsrqponmlkjihgfedcbaABCDEFGHIJKLMN",
            "order_line_item": {
              "id": "oli_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMN",
              "product": {
                "name": "Custom tailoring"
              },
              "quantity": 1,
              "type": "product"
            },
            "original_amount_paid": {
              "currency": "ghs",
              "value": 10000
            },
            "refund_amount": {
              "currency": "ghs",
              "value": 2500
            }
          }
        ],
        "order_id": "or_0123456789abcdefghijklmnopqrstuvwxyzABCD",
        "reason": "item_returned",
        "settlement": {
          "type": "offline"
        },
        "total": {
          "currency": "ghs",
          "value": 2500
        },
        "status": "pending"
      }
    ],
    "size": 1
  }
}

Handling refund failures

Request errors and terminal refund failures are different. A request rejected before a refund is created uses the standard error envelope. An accepted refund that later reaches Inttegro.RefundStatuses.Failed includes failure.

Use the reason to choose the next step:

  • Refunds product guide — Understand eligibility, lifecycle, balances, and payouts.
  • Lookup an order — Read the paid order and its line-item IDs before creating a refund.
  • Errors — Handle Inttegro API errors consistently.

Type to search…

↑↓ navigate↵ selectEsc close