Skip to content

Orders

Reference for creating, paying, updating, and reading Inttegro orders.

Use this reference for exact Orders API request attributes, response envelopes, object shape, and examples. For lifecycle, checkout patterns, ID boundaries, and fulfillment behavior, start with the Orders product guide.

The order object

Every single-order endpoint returns an order envelope. Page returns the same object inside page.orders. Optional fields are omitted until they exist; treat omission as absence, not as an empty value. When an order has refunds, refunds contains every refund in newest-first order and each entry uses the complete shared refund object. Orders without refunds omit the attribute entirely; they do not return an empty or null refunds value.

Properties

TypeScript SDK responseOrderv15.0.0

Create an order POST /orders/create

Create a new order for a first-time or returning customer, and decide whether to charge it now or later. Product line items can be fully inline, or they can reuse products and prices you already keep in your catalog.

Rules

Required attributes

Product line item shapes

Use the shape that matches how you manage your catalog and pricing:

Define the product and its price directly on this order.

new OrderCreateRequest {
  LineItems = new List<LineItemParams> {
    new LineItemParams {
      Type = Inttegro.LineItemType.Product,
      Product = new ProductDetailsParams {
        Name = "Utility Sneakers",
        Type = Inttegro.ProductType.Physical,
        Quantity = 1,
        Price = new Inttegro.PriceParams {
          Currency = Inttegro.Money.Currency.GHS,
          Value = 20000,
        },
      },
    },
  },
}
{
  "line_items": [
    {
      "type": "product",
      "product": {
        "name": "Utility Sneakers",
        "type": "physical",
        "quantity": 1,
        "price": {
          "currency": "ghs",
          "value": 20000
        }
      }
    }
  ]
}
order.CreateParams{
  LineItems: []order.LineItemParams{
    {
      Type: order.LineItemTypeProduct,
      Product: &order.ProductLineItemParams{
        Name: "Utility Sneakers",
        Type: product.TypePhysical,
        Quantity: 1,
        Price: price.InlineParams{
          AmountParams: money.AmountParams{
            Currency: money.GHS,
            Value: 20000,
          },
        },
      },
    },
  },
}
import com.inttegro.orders.OrderCreateParams;
import com.inttegro.orders.OrderLineItemParams;
import com.inttegro.orders.ProductLineItemParams;
import com.inttegro.products.ProductType;
import com.inttegro.prices.PriceParams;
import com.inttegro.money.Currency;

var params = OrderCreateParams.builder()
  .lineItem(OrderLineItemParams.product(ProductLineItemParams.builder()
        .name("Utility Sneakers")
        .type(ProductType.PHYSICAL)
        .quantity(1L)
        .price(PriceParams.of(Currency.GHS, 20000))
        .build()))
  .build();
[
  'line_items' => [
    [
      'type' => \Inttegro\LineItemType::Product,
      'product' => [
        'name' => 'Utility Sneakers',
        'type' => \Inttegro\ProductType::Physical,
        'quantity' => 1,
        'price' => [
          'currency' => 'ghs',
          'value' => 20000,
        ],
      ],
    ],
  ],
]
inttegro.order.CreateNewCustomerInput(
  line_items=[
    inttegro.product.LineItemInput(
      type=inttegro.order.LineItemType.PRODUCT,
      product=inttegro.product.InlineDetailsInput(
        name="Utility Sneakers",
        type=inttegro.product.Type.PHYSICAL,
        quantity=1,
        price=inttegro.price.InlineParams(
          currency=inttegro.money.Currency.GHS,
          value=20000,
        ),
      ),
    ),
  ],
)
{
  line_items: [
    {
      type: Inttegro::LineItemType::PRODUCT,
      product: {
        name: "Utility Sneakers",
        type: Inttegro::ProductType::PHYSICAL,
        quantity: 1,
        price: {
          currency: "ghs",
          value: 20000,
        },
      },
    },
  ],
}
{
  lineItems: [
    {
      type: Inttegro.LineItemTypes.Product,
      product: {
        name: "Utility Sneakers",
        type: Inttegro.ProductTypes.Physical,
        quantity: 1,
        price: {
          currency: "ghs",
          value: 20000,
        },
      },
    },
  ],
}

Reference a catalog product and set its price for this order.

new OrderCreateRequest {
  LineItems = new List<LineItemParams> {
    new LineItemParams {
      Type = Inttegro.LineItemType.Product,
      Product = new ProductDetailsParams {
        ProductId = "prod_abc123xyz",
        Quantity = 2,
        Price = new Inttegro.PriceParams {
          Currency = Inttegro.Money.Currency.USD,
          Value = 4100,
        },
      },
    },
  },
}
{
  "line_items": [
    {
      "type": "product",
      "product": {
        "product_id": "prod_abc123xyz",
        "quantity": 2,
        "price": {
          "currency": "usd",
          "value": 4100
        }
      }
    }
  ]
}
order.CreateParams{
  LineItems: []order.LineItemParams{
    {
      Type: order.LineItemTypeProduct,
      Product: &order.ProductLineItemParams{
        ProductID: "prod_abc123xyz",
        Quantity: 2,
        Price: price.InlineParams{
          AmountParams: money.AmountParams{
            Currency: money.USD,
            Value: 4100,
          },
        },
      },
    },
  },
}
import com.inttegro.orders.OrderCreateParams;
import com.inttegro.orders.OrderLineItemParams;
import com.inttegro.orders.ProductLineItemParams;
import com.inttegro.prices.PriceParams;
import com.inttegro.money.Currency;

var params = OrderCreateParams.builder()
  .lineItem(OrderLineItemParams.product(ProductLineItemParams.builder()
        .productId("prod_abc123xyz")
        .quantity(2L)
        .price(PriceParams.of(Currency.USD, 4100))
        .build()))
  .build();
[
  'line_items' => [
    [
      'type' => \Inttegro\LineItemType::Product,
      'product' => [
        'product_id' => 'prod_abc123xyz',
        'quantity' => 2,
        'price' => [
          'currency' => 'usd',
          'value' => 4100,
        ],
      ],
    ],
  ],
]
inttegro.order.CreateNewCustomerInput(
  line_items=[
    inttegro.product.LineItemInput(
      type=inttegro.order.LineItemType.PRODUCT,
      product=inttegro.product.CatalogWithPriceDataInput(
        product_id="prod_abc123xyz",
        quantity=2,
        price=inttegro.price.InlineParams(
          currency=inttegro.money.Currency.USD,
          value=4100,
        ),
      ),
    ),
  ],
)
{
  line_items: [
    {
      type: Inttegro::LineItemType::PRODUCT,
      product: {
        product_id: "prod_abc123xyz",
        quantity: 2,
        price: {
          currency: "usd",
          value: 4100,
        },
      },
    },
  ],
}
{
  lineItems: [
    {
      type: Inttegro.LineItemTypes.Product,
      product: {
        productId: "prod_abc123xyz",
        quantity: 2,
        price: {
          currency: "usd",
          value: 4100,
        },
      },
    },
  ],
}

Reference a catalog product and one of its saved prices.

new OrderCreateRequest {
  LineItems = new List<LineItemParams> {
    new LineItemParams {
      Type = Inttegro.LineItemType.Product,
      Product = new ProductDetailsParams {
        ProductId = "prod_abc123xyz",
        PriceId = "pr_xyz789",
        Quantity = 2,
      },
    },
  },
}
{
  "line_items": [
    {
      "type": "product",
      "product": {
        "product_id": "prod_abc123xyz",
        "price_id": "pr_xyz789",
        "quantity": 2
      }
    }
  ]
}
order.CreateParams{
  LineItems: []order.LineItemParams{
    {
      Type: order.LineItemTypeProduct,
      Product: &order.ProductLineItemParams{
        ProductID: "prod_abc123xyz",
        PriceID: "pr_xyz789",
        Quantity: 2,
      },
    },
  },
}
import com.inttegro.orders.OrderCreateParams;
import com.inttegro.orders.OrderLineItemParams;
import com.inttegro.orders.ProductLineItemParams;

var params = OrderCreateParams.builder()
  .lineItem(OrderLineItemParams.product(ProductLineItemParams.builder()
        .productId("prod_abc123xyz")
        .priceId("pr_xyz789")
        .quantity(2L)
        .build()))
  .build();
[
  'line_items' => [
    [
      'type' => \Inttegro\LineItemType::Product,
      'product' => [
        'product_id' => 'prod_abc123xyz',
        'price_id' => 'pr_xyz789',
        'quantity' => 2,
      ],
    ],
  ],
]
inttegro.order.CreateNewCustomerInput(
  line_items=[
    inttegro.product.LineItemInput(
      type=inttegro.order.LineItemType.PRODUCT,
      product=inttegro.product.CatalogWithPriceReferenceInput(
        product_id="prod_abc123xyz",
        price_id="pr_xyz789",
        quantity=2,
      ),
    ),
  ],
)
{
  line_items: [
    {
      type: Inttegro::LineItemType::PRODUCT,
      product: {
        product_id: "prod_abc123xyz",
        price_id: "pr_xyz789",
        quantity: 2,
      },
    },
  ],
}
{
  lineItems: [
    {
      type: Inttegro.LineItemTypes.Product,
      product: {
        productId: "prod_abc123xyz",
        priceId: "pr_xyz789",
        quantity: 2,
      },
    },
  ],
}
When you reference lineItems[].product.productId, Inttegro snapshots the product data onto the order at creation time. Later edits to the catalog product or price do not rewrite an order that already exists. You can also mix catalog-backed and inline product line items in the same order, as long as every line item uses the same currency.The complete HTTP examples below use inline product data. If you already keep products and prices in your catalog, replace the lineItems[].product payload with either catalog-backed shape shown above.

Optional attributes

Request

POST/orders/create
cURLbash
curl https://api.inttegro.com/orders/create \
  -H "Authorization: Bearer $INTTEGRO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "request_meta": {
    "idempotency_key": "order_checkout_ORDER-NUMBER-2"
  },
  "number": "ORDER-NUMBER-2",
  "receipt_number": "RCPT-NUMBER-2",
  "statement_descriptor": "STMTDESC",
  "execute_payment": true,
  "finalize": true,
  "checkout_settings": {
    "redirect_url": "https://google.com/thank-you",
    "cancel_url": "https://google.com/order-cancelled"
  },
  "customer_data": {
    "name": "Customer Name",
    "email_address": "customer@example.com",
    "phone_number": "+233242058841"
  },
  "payment_method_data": {
    "type": "mobile_money",
    "mobile_money": {
      "network": "mtn",
      "account_number": "0242057831"
    }
  },
  "line_items": [
    {
      "type": "product",
      "product": {
        "type": "physical",
        "name": "Utility Sneakers",
        "quantity": 1,
        "price": {
          "currency": "ghs",
          "value": 20000
        }
      }
    }
  ],
  "billing_details": {
    "name": "Customer Name",
    "email_address": "customer@example.com",
    "phone_number": "+233242058841",
    "address": {
      "name": "Customer Name",
      "phone_number": "+233242058841",
      "line1": "23 Adenta High Street",
      "town": "Accra",
      "region": "Greater Accra",
      "country": "GH"
    }
  }
}'
TypeScripttypescript
import {
  InttegroClient,
  PaymentMethodTypes,
  MobileMoneyNetworks,
  LineItemTypes,
  ProductTypes,
} from '@inttegro/inttegro-sdk'

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

const result = await inttegro.orders.create({
  requestMeta: {
    idempotencyKey: "order_checkout_ORDER-NUMBER-2",
  },
  number: "ORDER-NUMBER-2",
  receiptNumber: "RCPT-NUMBER-2",
  statementDescriptor: "STMTDESC",
  executePayment: true,
  finalize: true,
  checkoutSettings: {
    redirectUrl: "https://google.com/thank-you",
    cancelUrl: "https://google.com/order-cancelled",
  },
  customerData: {
    name: "Customer Name",
    emailAddress: "customer@example.com",
    phoneNumber: "+233242058841",
  },
  paymentMethodData: {
    type: PaymentMethodTypes.MobileMoney,
    mobileMoney: {
      network: MobileMoneyNetworks.MTN,
      accountNumber: "0242057831",
    },
  },
  lineItems: [
    {
      type: LineItemTypes.Product,
      product: {
        type: ProductTypes.Physical,
        name: "Utility Sneakers",
        quantity: 1,
        price: {
          currency: "ghs",
          value: 20000,
        },
      },
    },
  ],
  billingDetails: {
    name: "Customer Name",
    emailAddress: "customer@example.com",
    phoneNumber: "+233242058841",
    address: {
      name: "Customer Name",
      phoneNumber: "+233242058841",
      line1: "23 Adenta High Street",
      town: "Accra",
      region: "Greater Accra",
      country: "GH",
    },
  },
})
Gogo
package main

import (
  "context"
  "log"
  "os"

  inttegro "github.com/inttegro/inttegro-sdk-go/v14"
  "github.com/inttegro/inttegro-sdk-go/v14/checkout"
  "github.com/inttegro/inttegro-sdk-go/v14/customer"
  "github.com/inttegro/inttegro-sdk-go/v14/money"
  "github.com/inttegro/inttegro-sdk-go/v14/order"
  "github.com/inttegro/inttegro-sdk-go/v14/paymentmethod"
  "github.com/inttegro/inttegro-sdk-go/v14/price"
  "github.com/inttegro/inttegro-sdk-go/v14/product"
  "github.com/inttegro/inttegro-sdk-go/v14/request"
)

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

  params := order.CreateParams{
    RequestMeta: &request.Meta{
      IdempotencyKey: "order_checkout_ORDER-NUMBER-2",
    },
    Number: "ORDER-NUMBER-2",
    StatementDescriptor: "STMTDESC",
    ExecutePayment: inttegro.Bool(true),
    Finalize: inttegro.Bool(true),
    CheckoutSettings: &checkout.Settings{
      RedirectURL: "https://google.com/thank-you",
      CancelURL: "https://google.com/order-cancelled",
    },
    CustomerData: &customer.Data{
      Name: "Customer Name",
      Email: "customer@example.com",
      PhoneNumber: "+233242058841",
    },
    PaymentMethodData: &paymentmethod.Data{
      Type: paymentmethod.TypeMobileMoney,
      MobileMoney: &paymentmethod.MobileMoneyParams{
        Network: paymentmethod.MobileMoneyNetworkMTN,
        AccountNumber: "0242057831",
      },
    },
    LineItems: []order.LineItemParams{
      {
        Type: order.LineItemTypeProduct,
        Product: &order.ProductLineItemParams{
          Type: product.TypePhysical,
          Name: "Utility Sneakers",
          Quantity: 1,
          Price: price.InlineParams{
            AmountParams: money.AmountParams{
              Currency: money.GHS,
              Value: 20000,
            },
          },
        },
      },
    },
    BillingDetails: order.BillingDetails{
      Name: "Customer Name",
      Email: "customer@example.com",
      PhoneNumber: "+233242058841",
      Address: customer.Address{
        Name: "Customer Name",
        PhoneNumber: "+233242058841",
        Line1: "23 Adenta High Street",
        Town: "Accra",
        Region: "Greater Accra",
        Country: "GH",
      },
    },
  }
  result, err := client.Orders.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.orders.create(inttegro.order.CreateNewCustomerInput(
  request_meta=inttegro.order.CreateNewCustomerInputRequestMeta(
    idempotency_key="order_checkout_ORDER-NUMBER-2",
  ),
  number="ORDER-NUMBER-2",
  receipt_number="RCPT-NUMBER-2",
  statement_descriptor="STMTDESC",
  execute_payment=True,
  finalize=True,
  checkout_settings=inttegro.order.CreateNewCustomerInputCheckoutSettings(
    redirect_url="https://google.com/thank-you",
    cancel_url="https://google.com/order-cancelled",
  ),
  customer_data=inttegro.customer.DataInput(
    name="Customer Name",
    email_address="customer@example.com",
    phone_number="+233242058841",
  ),
  payment_method_data=inttegro.payment_method.DataInput(
    type=inttegro.payment_method.Type.MOBILE_MONEY,
    mobile_money=inttegro.payment_method.DataInputMobileMoney(
      network=inttegro.payment_method.MobileMoneyNetwork.MTN,
      account_number="0242057831",
    ),
  ),
  line_items=[
    inttegro.product.LineItemInput(
      type=inttegro.order.LineItemType.PRODUCT,
      product=inttegro.product.InlineDetailsInput(
        type=inttegro.product.Type.PHYSICAL,
        name="Utility Sneakers",
        quantity=1,
        price=inttegro.price.InlineParams(
          currency=inttegro.money.Currency.GHS,
          value=20000,
        ),
      ),
    ),
  ],
  billing_details=inttegro.shared.BillingDetailsInput(
    name="Customer Name",
    email_address="customer@example.com",
    phone_number="+233242058841",
    address=inttegro.shared.AddressInput(
      name="Customer Name",
      phone_number="+233242058841",
      line1="23 Adenta High Street",
      town="Accra",
      region="Greater Accra",
      country="GH",
    ),
  ),
))
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->orders->create([
  'request_meta' => new \Inttegro\Request\Meta(
    idempotencyKey: 'order_checkout_ORDER-NUMBER-2',
  ),
  'number' => 'ORDER-NUMBER-2',
  'receipt_number' => 'RCPT-NUMBER-2',
  'statement_descriptor' => 'STMTDESC',
  'execute_payment' => true,
  'finalize' => true,
  'checkout_settings' => [
    'redirect_url' => 'https://google.com/thank-you',
    'cancel_url' => 'https://google.com/order-cancelled',
  ],
  'customer_data' => [
    'name' => 'Customer Name',
    'email_address' => 'customer@example.com',
    'phone_number' => '+233242058841',
  ],
  'payment_method_data' => [
    'type' => \Inttegro\PaymentMethodType::MobileMoney,
    'mobile_money' => [
      'network' => \Inttegro\MobileMoneyNetwork::MTN,
      'account_number' => '0242057831',
    ],
  ],
  'line_items' => [
    [
      'type' => \Inttegro\LineItemType::Product,
      'product' => [
        'type' => \Inttegro\ProductType::Physical,
        'name' => 'Utility Sneakers',
        'quantity' => 1,
        'price' => [
          'currency' => 'ghs',
          'value' => 20000,
        ],
      ],
    ],
  ],
  'billing_details' => [
    'name' => 'Customer Name',
    'email_address' => 'customer@example.com',
    'phone_number' => '+233242058841',
    'address' => [
      'name' => 'Customer Name',
      'phone_number' => '+233242058841',
      'line1' => '23 Adenta High Street',
      'town' => 'Accra',
      'region' => 'Greater Accra',
      'country' => 'GH',
    ],
  ],
]);
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.orders.create(
  request_meta: Inttegro::Order::CreateNewCustomerRequestMeta.new(
    idempotency_key: "order_checkout_ORDER-NUMBER-2",
  ),
  number: "ORDER-NUMBER-2",
  receipt_number: "RCPT-NUMBER-2",
  statement_descriptor: "STMTDESC",
  execute_payment: true,
  finalize: true,
  checkout_settings: {
    redirect_url: "https://google.com/thank-you",
    cancel_url: "https://google.com/order-cancelled",
  },
  customer_data: {
    name: "Customer Name",
    email_address: "customer@example.com",
    phone_number: "+233242058841",
  },
  payment_method_data: {
    type: Inttegro::PaymentMethodType::MOBILE_MONEY,
    mobile_money: {
      network: Inttegro::MobileMoneyNetwork::MTN,
      account_number: "0242057831",
    },
  },
  line_items: [
    {
      type: Inttegro::LineItemType::PRODUCT,
      product: {
        type: Inttegro::ProductType::PHYSICAL,
        name: "Utility Sneakers",
        quantity: 1,
        price: {
          currency: "ghs",
          value: 20000,
        },
      },
    },
  ],
  billing_details: {
    name: "Customer Name",
    email_address: "customer@example.com",
    phone_number: "+233242058841",
    address: {
      name: "Customer Name",
      phone_number: "+233242058841",
      line1: "23 Adenta High Street",
      town: "Accra",
      region: "Greater Accra",
      country: "GH",
    },
  }
)
Javajava
import com.inttegro.Client;
import com.inttegro.orders.OrderCreateParams;
import com.inttegro.RequestMeta;
import com.inttegro.orders.CheckoutSettings;
import com.inttegro.customers.CustomerData;
import com.inttegro.paymentmethods.PaymentMethodData;
import com.inttegro.paymentmethods.PaymentMethodType;
import com.inttegro.paymentmethods.MobileMoneyParams;
import com.inttegro.paymentmethods.MobileMoneyNetwork;
import com.inttegro.orders.OrderLineItemParams;
import com.inttegro.orders.ProductLineItemParams;
import com.inttegro.products.ProductType;
import com.inttegro.prices.PriceParams;
import com.inttegro.money.Currency;
import com.inttegro.customers.BillingDetails;
import com.inttegro.customers.Address;

public class Example {
  public static void main(String[] args) throws Exception {
    var client = new Client(System.getenv("INTTEGRO_API_KEY"));
    var params = OrderCreateParams.builder()
      .requestMeta(RequestMeta.builder()
          .idempotencyKey("order_checkout_ORDER-NUMBER-2")
          .build())
      .number("ORDER-NUMBER-2")
      .receiptNumber("RCPT-NUMBER-2")
      .statementDescriptor("STMTDESC")
      .executePayment(true)
      .finalizeOrder(true)
      .checkoutSettings(CheckoutSettings.builder()
          .redirectUrl("https://google.com/thank-you")
          .cancelUrl("https://google.com/order-cancelled")
          .build())
      .customerData(CustomerData.builder()
          .name("Customer Name")
          .email("customer@example.com")
          .phoneNumber("+233242058841")
          .build())
      .paymentMethodData(PaymentMethodData.builder()
          .type(PaymentMethodType.MOBILE_MONEY)
          .mobileMoney(MobileMoneyParams.builder()
              .network(MobileMoneyNetwork.MTN)
              .accountNumber("0242057831")
              .build())
          .build())
      .lineItem(OrderLineItemParams.product(ProductLineItemParams.builder()
            .type(ProductType.PHYSICAL)
            .name("Utility Sneakers")
            .quantity(1L)
            .price(PriceParams.of(Currency.GHS, 20000))
            .build()))
      .billingDetails(BillingDetails.builder()
          .name("Customer Name")
          .email("customer@example.com")
          .phoneNumber("+233242058841")
          .address(Address.builder()
              .name("Customer Name")
              .phoneNumber("+233242058841")
              .line1("23 Adenta High Street")
              .town("Accra")
              .region("Greater Accra")
              .country("GH")
              .build())
          .build())
      .build();
    var result = client.orders().create(params);
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Orders.CreateAsync(new OrderCreateRequest {
  RequestMeta = new RequestMeta {
    IdempotencyKey = "order_checkout_ORDER-NUMBER-2",
  },
  Number = "ORDER-NUMBER-2",
  StatementDescriptor = "STMTDESC",
  ExecutePayment = true,
  Finalize = true,
  CheckoutSettings = new CheckoutSettings {
    RedirectUrl = "https://google.com/thank-you",
    CancelUrl = "https://google.com/order-cancelled",
  },
  CustomerData = new CustomerData {
    Name = "Customer Name",
    EmailAddress = "customer@example.com",
    PhoneNumber = "+233242058841",
  },
  PaymentMethodData = new PaymentMethodData {
    Type = Inttegro.PaymentMethodType.MobileMoney,
    MobileMoney = new MobileMoney {
      Network = Inttegro.MobileMoneyNetwork.MTN,
      AccountNumber = "0242057831",
    },
  },
  LineItems = new List<LineItemParams> {
    new LineItemParams {
      Type = Inttegro.LineItemType.Product,
      Product = new ProductDetailsParams {
        Type = Inttegro.ProductType.Physical,
        Name = "Utility Sneakers",
        Quantity = 1,
        Price = new Inttegro.PriceParams {
          Currency = Inttegro.Money.Currency.GHS,
          Value = 20000,
        },
      },
    },
  },
  BillingDetails = new BillingDetails {
    Name = "Customer Name",
    EmailAddress = "customer@example.com",
    PhoneNumber = "+233242058841",
    Address = new Address {
      Name = "Customer Name",
      PhoneNumber = "+233242058841",
      Line1 = "23 Adenta High Street",
      Town = "Accra",
      Region = "Greater Accra",
      Country = "GH",
    },
  },
});
Responsejson
{
  "order": {
    "id": "or_f8y1p1",
    "number": "ORDER-NUMBER-2",
    "receipt_number": "RCPT-NUMBER-2",
    "status": "requires_payment",
    "initiated_at": "2025-01-13T10:00:00Z",
    "sealed_at": "2025-01-13T10:00:01Z",
    "line_item_group": {
      "line_items": [
        {
          "type": "product",
          "product": {
            "id": "oli_utility",
            "type": "physical",
            "tax_code": "apparel",
            "name": "Utility Sneakers",
            "price": { "currency": "ghs", "value": 20000 },
            "quantity": 1,
            "reference": "utility-sneakers"
          }
        }
      ],
      "total": { "currency": "ghs", "value": 20000 }
    },
    "payment": {
      "id": "py_3deNYy",
      "statement_descriptor": "STMTDESC",
      "payment_method": {
        "id": "pm_wveyHj",
        "customer_id": "cu_a1b2c3",
        "type": "mobile_money",
        "mobile_money": {
          "account_number": "****7831",
          "last4": "7831",
          "network": "mtn"
        },
        "created_at": "2025-01-13T10:00:00Z",
        "verified": false
      },
      "amount": { "currency": "ghs", "value": 20000 },
      "next_action": {
        "type": "confirm_payment",
        "confirm_payment": {
          "confirmed": false,
          "expires_at": "2025-01-13T10:08:00Z",
          "scheme": "inttegro_defined_auth",
          "request": {
            "id": "token_req_1",
            "recipient": "0242057831",
            "sent_via": "sms",
            "token_size": 6,
            "sender_id": "zverify"
          },
          "status": "pending"
        }
      },
      "status": "requires_action",
      "initiated_at": "2025-01-13T10:00:00Z"
    },
    "invoice": {
      "format": {
        "web": { "url": "https://pages.inttegro.com/invoices/or_f8y1p1" },
        "pdf": { "url": "https://pages.inttegro.com/invoices/or_f8y1p1/pdf" }
      }
    },
    "customer": {
      "id": "cu_a1b2c3",
      "email_address": "customer@example.com",
      "phone_number": "+233242058841",
      "guest": false,
      "name": "Customer Name"
    }
  }
}

Search orders POST /orders/search

Search orders by customer, invoice, or other remembered text, and narrow the result set by status. Results are discovery summaries: use the returned order ID with Lookup an order before fulfillment, collection, cancellation, or any other state-dependent action.

Request attributes

TypeScript SDK requestResourceSearchRequestv15.0.0

Response

Returns a typed search page with discovery summaries, requested facet counts, page and total counts, an optional nextCursor, and freshness metadata. Read the canonical order before acting on a result.

Request

POST/orders/search
cURLbash
curl https://api.inttegro.com/orders/search \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "text": "INV-1042" }'
TypeScripttypescript
import { InttegroClient, type ResourceSearchRequest } from '@inttegro/inttegro-sdk'

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

const request: ResourceSearchRequest = {
  text: "INV-1042",
}
const page = await inttegro.orders.search(request)
Gogo
package main

import (
  "context"
  "log"
  "os"

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

func main() {
  client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))
  params := search.Params{
    Text: "INV-1042",
  }
  page, err := client.Orders.Search(context.Background(), params)
  if err != nil {
    log.Fatal(err)
  }
  _ = page
}
Pythonpython
import os

import inttegro
from inttegro import InttegroClient

client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])
request = inttegro.search.Request(
    text="INV-1042",
)
page = client.orders.search(request)
PHPphp
<?php

use Inttegro\Client;
use Inttegro\ResourceSearchRequest;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$request = new ResourceSearchRequest(
    text: 'INV-1042',
);
$page = $client->orders->search($request);
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
request = Inttegro::Search::Request.new(
  text: "INV-1042",
)
page = client.orders.search(request)
Javajava
import com.inttegro.Client;
import com.inttegro.search.ResourceSearchRequest;

public class Example {
  public static void main(String[] args) throws Exception {
    var client = new Client(System.getenv("INTTEGRO_API_KEY"));
    var request = ResourceSearchRequest.builder()
      .text("INV-1042")
      .build();
    var page = client.orders().search(request);
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var request = new ResourceSearchRequest
{
    Text = "INV-1042",
};
var page = await inttegro.Orders.SearchAsync(request);
Response excerptjson
{
  "search": {
    "results": [
      {
        "resource": { "type": "order", "id": "or_48ZW7BGvYUBWc1i6" },
        "title": "INV-1042",
        "summary": "Ama Mensah",
        "status": "paid",
        "amount": { "currency": "ghs", "value": 20000 },
        "updated_at": "2026-09-21T10:30:00Z"
      }
    ]
  }
}

Pay for an order POST /orders/pay

Start or retry payment on an existing order without recreating it. This operation finalizes an open draft before collection. Four ways to use it:

Rules

Required attributes

TypeScript SDK requestPayOrderv15.0.0

Optional attributes

TypeScript SDK requestPayOrderv15.0.0

Request

POST/orders/pay
cURLbash
curl https://api.inttegro.com/orders/pay \
  -H "Authorization: Bearer $INTTEGRO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "order_id": "or_JoPtqOmsjgZKwkPvqTrqGsopu07wfC7ttoWqmfwt",
  "payment_method_data": {
    "type": "mobile_money",
    "mobile_money": {
      "network": "mtn",
      "account_number": "0544998605"
    }
  }
}'
TypeScripttypescript
import { InttegroClient, PaymentMethodTypes, MobileMoneyNetworks } from '@inttegro/inttegro-sdk'

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

const result = await inttegro.orders.pay({
  orderId: "or_JoPtqOmsjgZKwkPvqTrqGsopu07wfC7ttoWqmfwt",
  paymentMethodData: {
    type: PaymentMethodTypes.MobileMoney,
    mobileMoney: {
      network: MobileMoneyNetworks.MTN,
      accountNumber: "0544998605",
    },
  },
})
Gogo
package main

import (
  "context"
  "log"
  "os"

  inttegro "github.com/inttegro/inttegro-sdk-go/v14"
  "github.com/inttegro/inttegro-sdk-go/v14/order"
  "github.com/inttegro/inttegro-sdk-go/v14/paymentmethod"
)

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

  params := order.PayParams{
    OrderID: "or_JoPtqOmsjgZKwkPvqTrqGsopu07wfC7ttoWqmfwt",
    PaymentMethodData: &paymentmethod.Data{
      Type: paymentmethod.TypeMobileMoney,
      MobileMoney: &paymentmethod.MobileMoneyParams{
        Network: paymentmethod.MobileMoneyNetworkMTN,
        AccountNumber: "0544998605",
      },
    },
  }
  result, err := client.Orders.Pay(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.orders.pay(inttegro.order.PayRequest(
  order_id="or_JoPtqOmsjgZKwkPvqTrqGsopu07wfC7ttoWqmfwt",
  payment_method_data=inttegro.payment_method.DataInput(
    type=inttegro.payment_method.Type.MOBILE_MONEY,
    mobile_money=inttegro.payment_method.DataInputMobileMoney(
      network=inttegro.payment_method.MobileMoneyNetwork.MTN,
      account_number="0544998605",
    ),
  ),
))
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->orders->pay([
  'order_id' => 'or_JoPtqOmsjgZKwkPvqTrqGsopu07wfC7ttoWqmfwt',
  'payment_method_data' => [
    'type' => \Inttegro\PaymentMethodType::MobileMoney,
    'mobile_money' => [
      'network' => \Inttegro\MobileMoneyNetwork::MTN,
      'account_number' => '0544998605',
    ],
  ],
]);
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.orders.pay(
  order_id: "or_JoPtqOmsjgZKwkPvqTrqGsopu07wfC7ttoWqmfwt",
  payment_method_data: {
    type: Inttegro::PaymentMethodType::MOBILE_MONEY,
    mobile_money: {
      network: Inttegro::MobileMoneyNetwork::MTN,
      account_number: "0544998605",
    },
  }
)
Javajava
import com.inttegro.Client;
import com.inttegro.orders.OrderPayParams;
import com.inttegro.paymentmethods.PaymentMethodData;
import com.inttegro.paymentmethods.PaymentMethodType;
import com.inttegro.paymentmethods.MobileMoneyParams;
import com.inttegro.paymentmethods.MobileMoneyNetwork;

public class Example {
  public static void main(String[] args) throws Exception {
    var client = new Client(System.getenv("INTTEGRO_API_KEY"));
    var params = OrderPayParams.builder()
      .orderId("or_JoPtqOmsjgZKwkPvqTrqGsopu07wfC7ttoWqmfwt")
      .paymentMethodData(PaymentMethodData.builder()
          .type(PaymentMethodType.MOBILE_MONEY)
          .mobileMoney(MobileMoneyParams.builder()
              .network(MobileMoneyNetwork.MTN)
              .accountNumber("0544998605")
              .build())
          .build())
      .build();
    var result = client.orders().pay(params);
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Orders.PayAsync(new OrderPayRequest {
  OrderId = "or_JoPtqOmsjgZKwkPvqTrqGsopu07wfC7ttoWqmfwt",
  PaymentMethodData = new PaymentMethodData {
    Type = Inttegro.PaymentMethodType.MobileMoney,
    MobileMoney = new MobileMoney {
      Network = Inttegro.MobileMoneyNetwork.MTN,
      AccountNumber = "0544998605",
    },
  },
});
Responsejson
{
  "order": {
    "id": "or_JoPtqOmsjgZKwkPvqTrqGsopu07wfC7ttoWqmfwt",
    "initiated_at": "2026-08-28T09:30:00Z",
    "status": "requires_payment",
    "customer": {
      "guest": true,
      "id": "cu_4pL8rN",
      "name": "Gloria Kesewaa"
    },
    "payment": {
      "amount": { "currency": "ghs", "value": 20000 },
      "id": "py_3deNYy",
      "initiated_at": "2026-08-28T09:30:01Z",
      "statement_descriptor": "INTTEGRO",
      "status": "requires_action"
    }
  }
}

Confirm a payment POST /orders/confirm_payment

Submit the confirmation token for a specific payment and confirmation request. Read paymentId from order.payment.id and confirmationId from order.payment.nextAction.confirmPayment.request.id in the preceding create, pay, or request-confirmation response. The response always uses the order envelope; an actionable error can include both order and an error object.

Required attributes

TypeScript SDK requestConfirmPaymentRequestv15.0.0

Request

POST/orders/confirm_payment
cURLbash
curl https://api.inttegro.com/orders/confirm_payment \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"confirmation_id": "otc_req_8Ks2Vn",
"order_id": "or_JoPtqOmsjgZKwkPvqTrqGsopu07wfC7ttoWqmfwt",
"payment_id": "py_3deNYy",
"token": "302673"
}'
TypeScripttypescript
import { InttegroClient } from '@inttegro/inttegro-sdk'

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

const result = await inttegro.orders.confirmPayment({
  confirmationId: "otc_req_8Ks2Vn",
  orderId: "or_JoPtqOmsjgZKwkPvqTrqGsopu07wfC7ttoWqmfwt",
  paymentId: "py_3deNYy",
  token: "302673",
})
Gogo
package main

import (
  "context"
  "log"
  "os"

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

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

  params := order.ConfirmParams{
    OrderID: "or_JoPtqOmsjgZKwkPvqTrqGsopu07wfC7ttoWqmfwt",
    Token: "302673",
  }
  result, err := client.Orders.ConfirmPayment(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.orders.confirm_payment(inttegro.payment.ConfirmRequest(
  confirmation_id="otc_req_8Ks2Vn",
  order_id="or_JoPtqOmsjgZKwkPvqTrqGsopu07wfC7ttoWqmfwt",
  payment_id="py_3deNYy",
  token="302673",
))
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->orders->confirmPayment([
  'confirmation_id' => 'otc_req_8Ks2Vn',
  'order_id' => 'or_JoPtqOmsjgZKwkPvqTrqGsopu07wfC7ttoWqmfwt',
  'payment_id' => 'py_3deNYy',
  'token' => '302673',
]);
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.orders.confirm_payment(
  confirmation_id: "otc_req_8Ks2Vn",
  order_id: "or_JoPtqOmsjgZKwkPvqTrqGsopu07wfC7ttoWqmfwt",
  payment_id: "py_3deNYy",
  token: "302673"
)
Javajava
import com.inttegro.Client;
import com.inttegro.orders.OrderConfirmParams;

public class Example {
  public static void main(String[] args) throws Exception {
    var client = new Client(System.getenv("INTTEGRO_API_KEY"));
    var params = OrderConfirmParams.builder()
      .orderId("or_JoPtqOmsjgZKwkPvqTrqGsopu07wfC7ttoWqmfwt")
      .token("302673")
      .build();
    var result = client.orders().confirmPayment(params);
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Orders.ConfirmPaymentAsync(new OrderConfirmPaymentRequest {
  OrderId = "or_JoPtqOmsjgZKwkPvqTrqGsopu07wfC7ttoWqmfwt",
  Token = "302673",
});
Responsejson
{
  "order": {
    "customer": {
      "guest": true,
      "id": "cu_4pL8rN",
      "name": "Gloria Kesewaa"
    },
    "id": "or_JoPtqOmsjgZKwkPvqTrqGsopu07wfC7ttoWqmfwt",
    "initiated_at": "2026-08-28T09:30:00Z",
    "status": "paid"
  }
}

Request confirmation POST /orders/request_confirmation

Some payment methods—especially mobile money—require the customer to confirm with an OTP. Call this to send (or resend) the confirmation token.

Request

POST/orders/request_confirmation
cURLbash
curl https://api.inttegro.com/orders/request_confirmation \
  -H "Authorization: Bearer $INTTEGRO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "order_id": "or_kAVwBsk6EhQVv2YBUhYAqMf0lktEoQ0S7ZR8y2xi"
}'
TypeScripttypescript
import { InttegroClient } from '@inttegro/inttegro-sdk'

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

const result = await inttegro.orders.requestConfirmation({
  orderId: "or_kAVwBsk6EhQVv2YBUhYAqMf0lktEoQ0S7ZR8y2xi",
})
Gogo
package main

import (
  "context"
  "log"
  "os"

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

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

  result, err := client.Orders.RequestConfirmation(ctx, "or_kAVwBsk6EhQVv2YBUhYAqMf0lktEoQ0S7ZR8y2xi")
  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.orders.request_confirmation(
    "or_kAVwBsk6EhQVv2YBUhYAqMf0lktEoQ0S7ZR8y2xi"
)
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->orders->requestConfirmation("or_kAVwBsk6EhQVv2YBUhYAqMf0lktEoQ0S7ZR8y2xi");
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.orders.request_confirmation(
  order_id: "or_kAVwBsk6EhQVv2YBUhYAqMf0lktEoQ0S7ZR8y2xi"
)
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.orders().requestConfirmation("or_kAVwBsk6EhQVv2YBUhYAqMf0lktEoQ0S7ZR8y2xi");
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Orders.RequestConfirmationAsync("or_kAVwBsk6EhQVv2YBUhYAqMf0lktEoQ0S7ZR8y2xi");
Responsejson
{
  "order": {
    "id": "or_kAVwBsk6EhQVv2YBUhYAqMf0lktEoQ0S7ZR8y2xi",
    "status": "requires_payment",
    "line_item_group": {
      "line_items": [
        {
          "type": "product",
          "product": {
            "id": "oli_fNa3i3QPkt4yU5FQHoM042tRFAdthCbcRZJdZnrl",
            "reference": "SKU-GLOVES-001",
            "about": "Tollo victoria advenio crudelis facere crudelis. Aequitas voco correptius suspendo fuga demergo. Angelus texo pecto.",
            "custom_data": {
              "size": "56",
              "color": "blue"
            },
            "tax_code": "gold",
            "name": "Awesome Fresh Gloves",
            "type": "digital",
            "price": {
              "currency": "ghs",
              "value": 20
            },
            "quantity": 1
          }
        },
        {
          "type": "product",
          "product": {
            "id": "oli_deeYHxzydDJWU1w9YCjOvgDirYv37WyYmI9MhdEA",
            "reference": "SKU-TABLE-001",
            "about": "Sunt astrum verecundia cenaculum. Asporto voluptas mollitia voluptate vaco concedo bellum clam aufero taedium. Admiratio cohibeo ullus comis alter.",
            "custom_data": {
              "size": "56",
              "color": "blue"
            },
            "tax_code": "black",
            "name": "Awesome Fresh Table",
            "type": "digital",
            "price": {
              "currency": "ghs",
              "value": 100
            },
            "quantity": 2
          }
        }
      ],
      "total": {
        "currency": "ghs",
        "value": 220
      }
    },
    "initiated_at": "2025-04-09T00:11:47.74569+01:00",
    "sealed_at": "2025-04-09T00:11:48.374979+01:00",
    "payment": {
      "id": "py_8QNM4ujclxXUDZBnL9ujyPfMG4Bk6ZRMBeRtc99l",
      "statement_descriptor": "STATEMENT",
      "payment_method": {
        "id": "pm_acA9cJRhjZHw1Gs4p39fKTbp1AgsFjhBk1AwIuVf",
        "customer_id": "cu_N4IX542ZKixJJhIbc4bQBntdPrRb0DQ7KqEYSyqc",
        "type": "mobile_money",
        "mobile_money": {
          "network": "mtn",
          "account_number": "****7831",
          "last4": "7831"
        },
        "created_at": "2025-04-09T00:11:47.873476+01:00",
        "verified": false
      },
      "amount": {
        "currency": "ghs",
        "value": 220
      },
      "next_action": {
        "type": "confirm_payment",
        "confirm_payment": {
          "expires_at": "0001-01-01T00:00:00Z",
          "scheme": "inttegro_defined_auth",
          "request": {
            "id": "Jmjup0uRSVI2LvllHfdJ",
            "recipient": "0242057831",
            "sent_via": "sms",
            "token_size": 6,
            "sender_id": "zverify"
          },
          "confirmed": false,
          "status": "pending_verification"
        }
      },
      "status": "requires_action",
      "initiated_at": "2025-04-09T00:11:47.995076+01:00"
    },
    "customer": {
      "id": "cu_N4IX542ZKixJJhIbc4bQBntdPrRb0DQ7KqEYSyqc",
      "guest": false,
      "email_address": "gloria@kesewaa.co",
      "phone_number": "+233544998605",
      "name": "Gloria Kesewaa"
    }
  }
}

Update an order POST /orders/update

Update mutable fields on an existing order and get back the same response shape as Lookup an order. Use this endpoint for three distinct cases: revising an open draft, reopening a sealed order so it becomes editable again, or applying changes and resealing in the same request.

What you can change

Rules

Required attributes

TypeScript SDK requestUpdateOrderRequestv15.0.0

Optional attributes

TypeScript SDK requestUpdateOrderRequestv15.0.0

Response shape

Request

POST/orders/update
cURLbash
curl https://api.inttegro.com/orders/update \
  -H "Authorization: Bearer $INTTEGRO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "order_id": "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt",
  "receipt_number": "RCPT-2025-041-REV1",
  "line_items": [
    {
      "type": "product",
      "product": {
        "name": "Quarterly support retainer",
        "type": "digital",
        "price": {
          "currency": "ghs",
          "value": 15000
        },
        "quantity": 1
      }
    },
    {
      "type": "fee",
      "fee": {
        "label": "Service fee",
        "amount": {
          "currency": "ghs",
          "value": 500
        }
      }
    }
  ],
  "statement_descriptor": "ORDER REVISION",
  "custom_data": {
    "channel": "dashboard",
    "edited_by": "ops"
  },
  "finalize": true
}'
TypeScripttypescript
import { InttegroClient, LineItemTypes, ProductTypes } from '@inttegro/inttegro-sdk'

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

const result = await inttegro.orders.update({
  orderId: "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt",
  receiptNumber: "RCPT-2025-041-REV1",
  lineItems: [
    {
      type: LineItemTypes.Product,
      product: {
        name: "Quarterly support retainer",
        type: ProductTypes.Digital,
        price: {
          currency: "ghs",
          value: 15000,
        },
        quantity: 1,
      },
    },
    {
      type: LineItemTypes.Fee,
      fee: {
        label: "Service fee",
        amount: {
          currency: "ghs",
          value: 500,
        },
      },
    },
  ],
  statementDescriptor: "ORDER REVISION",
  customData: {
    channel: "dashboard",
    edited_by: "ops",
  },
  finalize: true,
})
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/order"
  "github.com/inttegro/inttegro-sdk-go/v14/price"
  "github.com/inttegro/inttegro-sdk-go/v14/product"
)

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

  params := order.UpdateParams{
    OrderID: "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt",
    ReceiptNumber: "RCPT-2025-041-REV1",
    LineItems: []order.LineItemParams{
      {
        Type: order.LineItemTypeProduct,
        Product: &order.ProductLineItemParams{
          Name: "Quarterly support retainer",
          Type: product.TypeDigital,
          Price: price.InlineParams{
            AmountParams: money.AmountParams{
              Currency: money.GHS,
              Value: 15000,
            },
          },
          Quantity: 1,
        },
      },
      {
        Type: order.LineItemTypeFee,
        Fee: &order.FeeLineItemParams{
          Label: "Service fee",
          Amount: money.AmountParams{
            Currency: money.GHS,
            Value: 500,
          },
        },
      },
    },
    StatementDescriptor: "ORDER REVISION",
    CustomData: func() *customdata.Data { value, err := customdata.New(map[string]string{
        "channel": "dashboard",
        "edited_by": "ops",
      }); if err != nil { panic(err) }; return value }(),
    Finalize: inttegro.Bool(true),
  }
  result, err := client.Orders.Update(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.orders.update(inttegro.order.UpdateRequest(
  order_id="or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt",
  receipt_number="RCPT-2025-041-REV1",
  line_items=[
    inttegro.product.LineItemInput(
      type=inttegro.order.LineItemType.PRODUCT,
      product=inttegro.product.InlineDetailsInput(
        name="Quarterly support retainer",
        type=inttegro.product.Type.DIGITAL,
        price=inttegro.price.InlineParams(
          currency=inttegro.money.Currency.GHS,
          value=15000,
        ),
        quantity=1,
      ),
    ),
    inttegro.shared.FeeLineItemInput(
      type=inttegro.order.LineItemType.FEE,
      fee=inttegro.shared.FeeDetailsInput(
        label="Service fee",
        amount=inttegro.price.InlineParams(
          currency=inttegro.money.Currency.GHS,
          value=500,
        ),
      ),
    ),
  ],
  statement_descriptor="ORDER REVISION",
  custom_data=inttegro.CustomData({
    "channel": "dashboard",
    "edited_by": "ops",
  }),
  finalize=True,
))
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->orders->update([
  'order_id' => 'or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt',
  'receipt_number' => 'RCPT-2025-041-REV1',
  'line_items' => [
    [
      'type' => \Inttegro\LineItemType::Product,
      'product' => [
        'name' => 'Quarterly support retainer',
        'type' => \Inttegro\ProductType::Digital,
        'price' => [
          'currency' => 'ghs',
          'value' => 15000,
        ],
        'quantity' => 1,
      ],
    ],
    [
      'type' => \Inttegro\LineItemType::Fee,
      'fee' => [
        'label' => 'Service fee',
        'amount' => [
          'currency' => 'ghs',
          'value' => 500,
        ],
      ],
    ],
  ],
  'statement_descriptor' => 'ORDER REVISION',
  'custom_data' => [
    'channel' => 'dashboard',
    'edited_by' => 'ops',
  ],
  'finalize' => true,
]);
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.orders.update(
  order_id: "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt",
  receipt_number: "RCPT-2025-041-REV1",
  line_items: [
    {
      type: Inttegro::LineItemType::PRODUCT,
      product: {
        name: "Quarterly support retainer",
        type: Inttegro::ProductType::DIGITAL,
        price: {
          currency: "ghs",
          value: 15000,
        },
        quantity: 1,
      },
    },
    {
      type: Inttegro::LineItemType::FEE,
      fee: {
        label: "Service fee",
        amount: {
          currency: "ghs",
          value: 500,
        },
      },
    },
  ],
  statement_descriptor: "ORDER REVISION",
  custom_data: {
    channel: "dashboard",
    edited_by: "ops",
  },
  finalize: true
)
Javajava
import com.inttegro.Client;
import com.inttegro.orders.OrderUpdateParams;
import java.util.List;
import com.inttegro.orders.OrderLineItemParams;
import com.inttegro.orders.ProductLineItemParams;
import com.inttegro.products.ProductType;
import com.inttegro.prices.PriceParams;
import com.inttegro.money.Currency;
import com.inttegro.orders.FeeLineItemParams;
import com.inttegro.money.AmountParams;
import com.inttegro.CustomData;

public class Example {
  public static void main(String[] args) throws Exception {
    var client = new Client(System.getenv("INTTEGRO_API_KEY"));
    var params = OrderUpdateParams.builder()
      .orderId("or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt")
      .receiptNumber("RCPT-2025-041-REV1")
      .lineItems(List.of(
          OrderLineItemParams.product(ProductLineItemParams.builder()
              .name("Quarterly support retainer")
              .type(ProductType.DIGITAL)
              .price(PriceParams.of(Currency.GHS, 15000))
              .quantity(1L)
              .build()),
          OrderLineItemParams.fee(FeeLineItemParams.builder()
              .label("Service fee")
              .amount(AmountParams.of(Currency.GHS, 500))
              .build())
        ))
      .statementDescriptor("ORDER REVISION")
      .customData(new CustomData()
          .set("channel", "dashboard")
          .set("edited_by", "ops"))
      .finalizeOrder(true)
      .build();
    var result = client.orders().update(params);
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Orders.UpdateAsync(new OrderUpdateRequest {
  OrderId = "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt",
  ReceiptNumber = "RCPT-2025-041-REV1",
  LineItems = new List<LineItemParams> {
    new LineItemParams {
      Type = Inttegro.LineItemType.Product,
      Product = new ProductDetailsParams {
        Name = "Quarterly support retainer",
        Type = Inttegro.ProductType.Digital,
        Price = new Inttegro.PriceParams {
          Currency = Inttegro.Money.Currency.GHS,
          Value = 15000,
        },
        Quantity = 1,
      },
    },
    new LineItemParams {
      Type = Inttegro.LineItemType.Fee,
      Fee = new FeeDetailsParams {
        Label = "Service fee",
        Amount = new AmountParams {
          Currency = Inttegro.Money.Currency.GHS,
          Value = 500,
        },
      },
    },
  },
  StatementDescriptor = "ORDER REVISION",
  CustomData = new Inttegro.CustomData()
    .Set("channel", "dashboard")
    .Set("edited_by", "ops"),
  Finalize = true,
});
Responsejson
{
  "order": {
    "id": "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt",
    "number": "ORDER-2025-REV2",
    "receipt_number": "RCPT-2025-041-REV1",
    "status": "requires_payment",
    "initiated_at": "2025-05-01T10:00:00Z",
    "sealed_at": "2025-05-01T10:04:00Z",
    "line_item_group": {
      "line_items": [
        {
          "type": "product",
          "product": {
            "id": "oli_VNojv2eX7F9H3mQ5pZr2Ld8",
            "name": "Quarterly support retainer",
            "type": "digital",
            "price": {
              "currency": "ghs",
              "value": 15000
            },
            "quantity": 1
          }
        },
        {
          "type": "fee",
          "fee": {
            "id": "oli_7Nf0wP4sT8kJ2qM6xCz9Rb1",
            "label": "Service fee",
            "amount": {
              "currency": "ghs",
              "value": 500
            }
          }
        }
      ],
      "total": {
        "currency": "ghs",
        "value": 15500
      }
    },
    "payment": {
      "id": "py_3PjQ7mVn2cX5kL8rT1sW4yH6uB9dF0gN",
      "statement_descriptor": "ORDER REVISION",
      "payment_method": {
        "id": "pm_hg7D2A5qT6g6mVDSJu6zweKXwsiiNWf3Q85book6",
        "customer_id": "cu_ewoa27qe7aO4GZouasUSmVXILsmxjR0Hc6lCMBkn",
        "type": "mobile_money",
        "mobile_money": {
          "network": "mtn",
          "account_number": "****0087",
          "last4": "0087"
        },
        "created_at": "2025-05-01T10:00:00Z",
        "verified": true,
        "verified_at": "2025-05-01T10:00:15Z"
      },
      "amount": {
        "currency": "ghs",
        "value": 15500
      },
      "status": "requires_action",
      "initiated_at": "2025-05-01T10:00:00Z"
    },
    "invoice": {
      "format": {
        "web": {
          "url": "https://pages.inttegro.com/invoices/or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt"
        },
        "pdf": {
          "url": "https://pages.inttegro.com/invoices/or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt/pdf"
        }
      }
    },
    "customer": {
      "id": "cu_ewoa27qe7aO4GZouasUSmVXILsmxjR0Hc6lCMBkn",
      "guest": false,
      "email_address": "ops@example.com",
      "phone_number": "+233559714200",
      "name": "Anita Segnom"
    },
    "custom_data": {
      "channel": "dashboard",
      "edited_by": "ops"
    }
  }
}

Finalize an order POST /orders/finalize

Finalize a draft to seal its line items and total for payment. The response exposes the hosted invoice URLs you can share with the customer.

What finalization means

Finalizing an order is the transition from Inttegro.OrderStatuses.Preparing to Inttegro.OrderStatuses.RequiresPayment. Before finalization, you can replace line items and change supported order or payment settings. After finalization:
  • Line items freeze: No additions, removals, or quantity changes unless you later reopen the order with Update an order
  • Totals lock: The amount due becomes fixed until the order is reopened
  • Invoice generates: A viewable invoice with web and PDF formats
  • Checkout activates: The hosted payment page becomes accessible
  • Payment readiness: The order can accept payment attempts
Use this endpoint when you’ve finished building the cart and want to present it to the customer for payment. The response includes invoice URLs and the sealedAt timestamp marking when the order was finalized. Finalizing an already sealed order is safe and leaves the existing state unchanged.

Required attributes

TypeScript SDK requestFinalizeOrderRequestv15.0.0

Request

POST/orders/finalize
cURLbash
curl https://api.inttegro.com/orders/finalize \
  -H "Authorization: Bearer $INTTEGRO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "order_id": "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt"
}'
TypeScripttypescript
import { InttegroClient } from '@inttegro/inttegro-sdk'

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

const result = await inttegro.orders.finalize({
  orderId: "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt",
})
Gogo
package main

import (
  "context"
  "log"
  "os"

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

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

  result, err := client.Orders.Finalize(ctx, "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt")
  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.orders.finalize(
    "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt"
)
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->orders->finalize("or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt");
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.orders.finalize(
  order_id: "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt"
)
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.orders().finalizeOrder("or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt");
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Orders.FinalizeAsync("or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt");
Responsejson
{
  "order": {
    "id": "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt",
    "number": "ORDER-12345",
    "status": "requires_payment",
    "sealed_at": "2025-01-25T10:30:00Z",
    "initiated_at": "2025-01-25T10:25:00Z",
    "expires_at": "2025-02-01T10:25:00Z",
    "customer": {
      "id": "cu_abc123def456",
      "guest": false,
      "name": "Akua Mensah"
    },
    "line_item_group": {
      "line_items": [
        {
          "type": "product",
          "product": {
            "id": "oli_123",
            "name": "Premium Widget",
            "quantity": 2,
            "price": {
              "currency": "ghs",
              "value": 5000
            }
          }
        }
      ],
      "total": {
        "currency": "ghs",
        "value": 10000
      }
    },
    "invoice": {
      "number": "ORDER-12345",
      "format": {
        "web": {
          "url": "https://pages.inttegro.com/invoices/or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt"
        },
        "pdf": {
          "url": "https://pages.inttegro.com/invoices/or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt/pdf"
        }
      }
    }
  }
}

Send an invoice POST /orders/send_invoice

Send an order’s hosted invoice link to its customer. Inttegro uses the contact details saved for that customer: when both a phone number and email address are available, it sends the link by SMS and email; otherwise it uses the available channel.

The order must be finalized and its invoice must be ready to send. For a draft order, first use Finalize an order.

Request body

TypeScript SDK requestOrderDocumentDeliveryRequestv15.0.0

Response

Returns the current order plus a delivery object. If one channel succeeds and another fails, the endpoint may return HTTP 207 with both delivery.sentChannels and delivery.failedChannels.
TypeScript SDK responseOrderDocumentDeliveryResultv15.0.0

Invoice delivery can return draft_mode_order_has_no_invoice, order_delivery_auth_failed, order_delivery_contact_missing, order_delivery_failed, or order_not_found.

Request

POST/orders/send_invoice
cURLbash
curl https://api.inttegro.com/orders/send_invoice \
  -H "Authorization: Bearer $INTTEGRO_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: send-invoice-or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt" \
  -d '{
  "order_id": "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt"
}'
TypeScripttypescript
import { InttegroClient } from '@inttegro/inttegro-sdk'

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

const result = await inttegro.orders.sendInvoice({
  orderId: "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt",
})
Gogo
package main

import (
  "context"
  "log"
  "os"

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

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

  params := order.SendInvoiceParams{
    OrderID: "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt",
  }
  result, err := client.Orders.SendInvoice(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.orders.send_invoice(inttegro.order.DocumentDeliveryRequest(
  order_id="or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt",
))
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->orders->sendInvoice("or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt");
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.orders.send_invoice(order_id: "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt")
Javajava
import com.inttegro.Client;
import com.inttegro.orders.OrderSendInvoiceParams;

public class Example {
  public static void main(String[] args) throws Exception {
    var client = new Client(System.getenv("INTTEGRO_API_KEY"));
    var params = OrderSendInvoiceParams.builder()
      .orderId("or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt")
      .build();
    var result = client.orders().sendInvoice(params);
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Orders.SendInvoiceAsync("or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt");
Responsejson
{
  "order": {
    "id": "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt",
    "status": "requires_payment",
    "initiated_at": "2025-05-01T10:00:00Z",
    "customer": {
      "id": "cu_ewoa27qe7aO4GZouasUSmVXILsmxjR0Hc6lCMBkn",
      "guest": false,
      "name": "Anita Segnom"
    }
  },
  "delivery": {
    "document_kind": "invoice",
    "document_url": "https://pages.inttegro.com/invoices/or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt",
    "sent_channels": ["sms", "email"],
    "deliveries": [
      {
        "channel": "sms",
        "chime_id": "chm_sms_123"
      },
      {
        "channel": "email",
        "chime_id": "chm_email_456"
      }
    ]
  }
}

Send a receipt POST /orders/send_receipt

Send the hosted receipt link for an existing paid order. Inttegro uses the same fan-out rules as invoice delivery: SMS and email when both customer contacts exist, otherwise whichever contact method is available.

Receipt delivery is available only after the order is paid. The link points to the hosted receipt path, such as /invoices/{order_id}/receipt; do not use the invoice PDF path for receipt delivery.

Request body

TypeScript SDK requestOrderDocumentDeliveryRequestv15.0.0

Response

Returns the current order plus a delivery object. If one channel succeeds and another fails, the endpoint may return HTTP 207 with both delivery.sentChannels and delivery.failedChannels.
TypeScript SDK responseOrderDocumentDeliveryResultv15.0.0

Receipt delivery can return order_delivery_auth_failed, order_delivery_contact_missing, order_delivery_failed, order_not_found, or order_receipt_missing.

Request

POST/orders/send_receipt
cURLbash
curl https://api.inttegro.com/orders/send_receipt \
  -H "Authorization: Bearer $INTTEGRO_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: send-receipt-or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt" \
  -d '{
  "order_id": "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt"
}'
TypeScripttypescript
import { InttegroClient } from '@inttegro/inttegro-sdk'

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

const result = await inttegro.orders.sendReceipt({
  orderId: "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt",
})
Gogo
package main

import (
  "context"
  "log"
  "os"

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

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

  params := order.SendReceiptParams{
    OrderID: "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt",
  }
  result, err := client.Orders.SendReceipt(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.orders.send_receipt(inttegro.order.DocumentDeliveryRequest(
  order_id="or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt",
))
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->orders->sendReceipt("or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt");
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.orders.send_receipt(order_id: "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt")
Javajava
import com.inttegro.Client;
import com.inttegro.orders.OrderSendReceiptParams;

public class Example {
  public static void main(String[] args) throws Exception {
    var client = new Client(System.getenv("INTTEGRO_API_KEY"));
    var params = OrderSendReceiptParams.builder()
      .orderId("or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt")
      .build();
    var result = client.orders().sendReceipt(params);
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Orders.SendReceiptAsync("or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt");
Responsejson
{
  "order": {
    "id": "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt",
    "status": "paid",
    "initiated_at": "2025-05-01T10:00:00Z",
    "customer": {
      "id": "cu_ewoa27qe7aO4GZouasUSmVXILsmxjR0Hc6lCMBkn",
      "guest": false,
      "name": "Anita Segnom"
    }
  },
  "delivery": {
    "document_kind": "receipt",
    "document_url": "https://pages.inttegro.com/invoices/or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt/receipt",
    "sent_channels": ["sms"],
    "deliveries": [
      {
        "channel": "sms",
        "chime_id": "chm_sms_789"
      }
    ]
  }
}

Complete an order POST /orders/complete

Mark an order as completed when the customer has received their items or you’ve fulfilled the service. This transitions the order to the Inttegro.OrderStatuses.Completed state, indicating the transaction is fully satisfied.

When to complete orders

Complete an order when:

  • Physical goods: Items have been delivered or picked up
  • Digital products: Files have been downloaded or access granted
  • Services: Work has been performed and accepted
  • Out-of-band payments: Cash, check, or bank transfer received offline

The order must have a successful payment before completion, unless you’re marking an offline payment by setting paidOutOfBand to true.

Out-of-band payments

If the customer paid outside Inttegro (cash, bank transfer, check), set paidOutOfBand to true. This marks both the payment and order as complete in a single operation. The payment gets marked as paid offline before the order is completed.

Use this for:

  • Cash on delivery scenarios
  • Bank transfer confirmations
  • Check payments that cleared
  • Any payment method outside the Inttegro platform

Required attributes

TypeScript SDK requestCompleteOrderRequestv15.0.0

Optional attributes

TypeScript SDK requestCompleteOrderRequestv15.0.0

Request

POST/orders/complete
cURLbash
curl https://api.inttegro.com/orders/complete \
  -H "Authorization: Bearer $INTTEGRO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "order_id": "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt"
}'
TypeScripttypescript
import { InttegroClient } from '@inttegro/inttegro-sdk'

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

const result = await inttegro.orders.complete({
  orderId: "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt",
})
Gogo
package main

import (
  "context"
  "log"
  "os"

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

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

  params := order.CompleteParams{
    OrderID: "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt",
  }
  result, err := client.Orders.Complete(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.orders.complete(inttegro.order.CompleteRequest(
  order_id="or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt",
))
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->orders->complete([
  'order_id' => 'or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt',
]);
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.orders.complete(
  order_id: "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt"
)
Javajava
import com.inttegro.Client;
import com.inttegro.orders.OrderCompleteParams;

public class Example {
  public static void main(String[] args) throws Exception {
    var client = new Client(System.getenv("INTTEGRO_API_KEY"));
    var params = OrderCompleteParams.builder()
      .orderId("or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt")
      .build();
    var result = client.orders().complete(params);
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Orders.CompleteAsync(new OrderCompleteRequest {
  OrderId = "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt",
});
Responsejson
{
  "order": {
    "id": "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt",
    "number": "ORDER-12345",
    "status": "completed",
    "completed_at": "2025-01-27T11:00:00Z",
    "sealed_at": "2025-01-25T10:30:00Z",
    "initiated_at": "2025-01-25T10:25:00Z",
    "expires_at": "2025-02-01T10:25:00Z",
    "customer": {
      "id": "cu_abc123def456",
      "guest": false,
      "name": "Akua Mensah"
    },
    "line_item_group": {
      "line_items": [
        {
          "type": "product",
          "product": {
            "id": "oli_123",
            "name": "Premium Widget",
            "quantity": 2,
            "price": {
              "currency": "ghs",
              "value": 5000
            }
          }
        }
      ],
      "total": {
        "currency": "ghs",
        "value": 10000
      }
    }
  }
}

Lookup an order POST /orders/lookup

Fetch the current order and nested payment state by ID. A missing or inaccessible order returns HTTP 400 with error code order_not_found; use the error object rather than checking for 404.

Required attributes

TypeScript SDK requestLookupOrderRequestv15.0.0
  • #orderIdstring

    Order ID from the creation response.

Request

POST/orders/lookup
cURLbash
curl https://api.inttegro.com/orders/lookup \
  -H "Authorization: Bearer $INTTEGRO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "order_id": "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt"
}'
TypeScripttypescript
import { InttegroClient } from '@inttegro/inttegro-sdk'

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

const result = await inttegro.orders.lookup({
  orderId: "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt",
})
Gogo
package main

import (
  "context"
  "log"
  "os"

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

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

  result, err := client.Orders.Lookup(ctx, "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt")
  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.orders.lookup("or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt")
PHPphp
<?php

use Inttegro\Client;

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

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.orders.lookup(order_id: "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt")
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.orders().lookup("or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt");
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Orders.LookupAsync("or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt");
Response excerptjson
{
  "order": {
    "line_item_group": {
      "line_items": [
        {
          "product": {
            "id": "oli_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMN",
            "about": "Accedo turba doloremque brevis. Despecto administratio vorax verus odit vinculum. Advoco conforto spiritus debeo careo.",
            "custom_data": {
              "size": "56",
              "some": "custom_data"
            },
            "tax_code": "pink",
            "name": "Gorgeous Granite Salad",
            "type": "physical",
            "price": {
              "currency": "ghs",
              "value": 100
            },
            "quantity": 1
          },
          "type": "product"
        }
      ],
      "total": {
        "currency": "ghs",
        "value": 200
      }
    },
    "initiated_at": "2025-09-14T16:24:41.137708909Z",
    "completed_at": "2025-09-14T16:29:45Z",
    "sealed_at": "2025-09-14T16:24:41.312701813Z",
    "payment": {
      "id": "py_OHFv6I3OZBvB1R46TQQGNxPPtgbPR6CXpQ8En9wl",
      "statement_descriptor": "STATEMENT",
      "payment_method": {
        "id": "pm_hg7D2A5qT6g6mVDSJu6zweKXwsiiNWf3Q85book6",
        "customer_id": "cu_ewoa27qe7aO4GZouasUSmVXILsmxjR0Hc6lCMBkn",
        "type": "mobile_money",
        "mobile_money": {
          "network": "mtn",
          "account_number": "****0087",
          "last4": "0087"
        },
        "created_at": "2025-09-14T16:24:41.171905592Z",
        "verified": true,
        "verified_at": "2025-09-14T16:24:51.171905592Z"
      },
      "latest_attempt": {
        "payment_method_type": "mobile_money",
        "payment_method_id": "pm_hg7D2A5qT6g6mVDSJu6zweKXwsiiNWf3Q85book6",
        "reference": "68c6ecbc3bf0a6548973b598",
        "status": "succeeded",
        "initiated_at": "2025-09-14T16:26:36.627271781Z",
        "succeeded_at": "2025-09-14T16:29:45Z"
      },
      "amount": {
        "currency": "ghs",
        "value": 200
      },
      "status": "paid",
      "initiated_at": "2025-09-14T16:24:41.240462376Z",
      "executed_at": "2025-09-14T16:26:36.626961042Z",
      "paid_at": "2025-09-14T16:29:45Z",
      "balance_transaction": {
        "amount": {
          "currency": "ghs",
          "value": 200
        },
        "created_at": "2025-09-14T16:29:45Z",
        "id": "bt_zyxwvutsrqponmlkjihgfedcbaABCDEFGHIJKLMN",
        "order_id": "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt",
        "paid_at": "2025-09-15T08:00:00Z",
        "payment_id": "py_OHFv6I3OZBvB1R46TQQGNxPPtgbPR6CXpQ8En9wl",
        "payout_id": "po_zyxwvutsrqponmlkjihgfedcbaABCDEFGHIJKLMN",
        "type": "payment"
      }
    },
    "invoice": {
      "format": {
        "web": {
          "url": "https://pages.inttegro.com/invoices/or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt"
        },
        "pdf": {
          "url": "https://pages.inttegro.com/invoices/or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt/pdf"
        }
      }
    },
    "refunds": [
        {
            "id": "rf_1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcd",
            "order_id": "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt",
            "status": "succeeded",
            "total": { "currency": "ghs", "value": 100 },
            "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": 200 },
                    "refund_amount": { "currency": "ghs", "value": 100 },
                    "reason": "item_returned"
                }
            ],
            "settlement": {
                "payment_method": {
                    "id": "pm_xyz789",
                    "mobile_money": {
                        "account_number": "****7831",
                        "last4": "7831",
                        "network": "mtn"
                    },
                    "type": "mobile_money"
                },
                "type": "payment_method"
            },
            "reason": "item_returned",
            "created_at": "2025-09-15T09:00:00Z",
            "processing_at": "2025-09-15T09:00:01Z",
            "succeeded_at": "2025-09-15T09:00:03Z"
        }
    ],
    "customer": {
      "id": "cu_ewoa27qe7aO4GZouasUSmVXILsmxjR0Hc6lCMBkn",
      "guest": false,
      "email_address": "yaw@konadu.ie",
      "phone_number": "+233559714200",
      "name": "Anita Segnom"
    },
    "status": "completed",
    "id": "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt"
  }
}

Cancel an order POST /orders/cancel

Cancel an unpaid, unfulfilled order. Cancellation moves the order to Inttegro.OrderStatuses.Canceled and records the time of the transition. The reason and executeRefund inputs are retained as cancellation evidence; they are not returned as order fields.

Paid, completed, expired, and already canceled orders cannot be canceled. Cancellation does not currently void, reverse, or refund an attached payment. If money moved, use the refund flow separately and verify its result before treating funds as returned.

Request attributes

TypeScript SDK requestCancelOrderRequestv15.0.0
  • #executeRefundboolean

    Records that refund execution was requested as part of the cancellation. It defaults to false and does not currently move funds; use the refund flow separately.

  • #orderIdstring

    The typed ID of the order to cancel (e.g. or_abc123).

  • #reasonstring

    Optional free-text explanation for the cancellation. Recorded on the order for audit purposes. Defaults to “unknown” if not provided. Common values: “customer_request”, “fraud”, “inventory_unavailable”, “duplicate”.

Request

POST/orders/cancel
cURLbash
curl https://api.inttegro.com/orders/cancel \
  -H "Authorization: Bearer $INTTEGRO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "order_id": "or_kAVwBsk6EhQVv2YBUhYAqMf0lktEoQ0S7ZR8y2xi",
  "reason": "customer_request",
  "execute_refund": false
}'
TypeScripttypescript
import { InttegroClient } from '@inttegro/inttegro-sdk'

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

const result = await inttegro.orders.cancel({
  orderId: "or_kAVwBsk6EhQVv2YBUhYAqMf0lktEoQ0S7ZR8y2xi",
  reason: "customer_request",
  executeRefund: false,
})
Gogo
package main

import (
  "context"
  "log"
  "os"

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

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

  result, err := client.Orders.Cancel(ctx, "or_kAVwBsk6EhQVv2YBUhYAqMf0lktEoQ0S7ZR8y2xi")
  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.orders.cancel(
    "or_kAVwBsk6EhQVv2YBUhYAqMf0lktEoQ0S7ZR8y2xi"
)
PHPphp
<?php

use Inttegro\Client;

$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->orders->cancel("or_kAVwBsk6EhQVv2YBUhYAqMf0lktEoQ0S7ZR8y2xi");
Rubyruby
require "inttegro"

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.orders.cancel(
  order_id: "or_kAVwBsk6EhQVv2YBUhYAqMf0lktEoQ0S7ZR8y2xi"
)
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.orders().cancel("or_kAVwBsk6EhQVv2YBUhYAqMf0lktEoQ0S7ZR8y2xi");
  }
}
C#csharp
using Inttegro;

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Orders.CancelAsync("or_kAVwBsk6EhQVv2YBUhYAqMf0lktEoQ0S7ZR8y2xi");
Responsejson
{
  "order": {
    "id": "or_kAVwBsk6EhQVv2YBUhYAqMf0lktEoQ0S7ZR8y2xi",
    "status": "canceled",
    "initiated_at": "2025-04-09T00:11:47.74569+01:00",
    "line_item_group": {
      "line_items": [
        {
          "type": "product",
          "product": {
            "id": "oli_ZLxM9pQ4wRsN7jKv2cY1tD8hBgFnAo3i",
            "name": "Tailoring Service",
            "price": {
              "currency": "ghs",
              "value": 200
            },
            "quantity": 1
          }
        }
      ],
      "total": {
        "currency": "ghs",
        "value": 200
      }
    },
    "payment": {
      "id": "py_N4IX542ZKixJJhIbc4bQBntdPrRb0DQ7KqEYSyqc",
      "statement_descriptor": "TAILORING",
      "status": "initiated",
      "amount": {
        "currency": "ghs",
        "value": 200
      },
      "initiated_at": "2025-04-09T00:11:48Z"
    },
    "customer": {
      "id": "cu_N4IX542ZKixJJhIbc4bQBntdPrRb0DQ7KqEYSyqc",
      "guest": false,
      "name": "Gloria Kesewaa"
    }
  }
}

Page through orders POST /orders/page

Retrieve a paginated list of your most recent orders. Orders are sorted by orders[].initiatedAt in descending order, so page 0 contains the freshest activity and subsequent pages step back in time.Provide customerId to scope the page to a single customer. Omit customerId to browse all recent orders.pageSize is required. pageNumber is zero-based, defaults to 0, and accepts values from 0 through 10. An unknown or inaccessible customer filter returns HTTP 400; a temporary page lookup failure returns 503 and can be retried unchanged.

Required attributes

TypeScript SDK requestPageOrdersRequestv15.0.0

Optional attributes

TypeScript SDK requestPageOrdersRequestv15.0.0

Response shape

Request

POST/orders/page
cURLbash
curl https://api.inttegro.com/orders/page \
  -H "Authorization: Bearer $INTTEGRO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "page_number": 0,
  "page_size": 25
}'
TypeScripttypescript
import { InttegroClient } from '@inttegro/inttegro-sdk'

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

const result = await inttegro.orders.page({
  pageNumber: 0,
  pageSize: 25,
})
Gogo
package main

import (
  "context"
  "log"
  "os"

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

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

  params := order.PageParams{
    PageNumber: 0,
    PageSize: 25,
  }
  result, err := client.Orders.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.orders.page(inttegro.order.PageRequest(
  page_number=0,
  page_size=25,
))
PHPphp
<?php

use Inttegro\Client;

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

client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.orders.page(
  page_number: 0,
  page_size: 25
)
Javajava
import com.inttegro.Client;
import com.inttegro.orders.OrderPageParams;

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

using var inttegro = new InttegroClient(
    Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Orders.PageAsync(new ResourceSearchRequest {
  PageSize = 25,
});
Response excerptjson
{
  "page": {
    "number": 0,
    "size": 2,
    "orders": [
      {
        "id": "or_kAVwBsk6EhQVv2YBUhYAqMf0lktEoQ0S7ZR8y2xi",
        "line_item_group": {
          "line_items": [],
          "total": {
            "currency": "ghs",
            "value": 220
          }
        },
        "initiated_at": "2025-04-09T00:11:47.74569+01:00",
        "sealed_at": "2025-04-09T00:11:48.374979+01:00",
        "status": "requires_payment",
        "customer": {
          "id": "cu_N4IX542ZKixJJhIbc4bQBntdPrRb0DQ7KqEYSyqc",
          "guest": false,
          "name": "Gloria Kesewaa",
          "email_address": "gloria@kesewaa.co",
          "phone_number": "+233544998605"
        },
        "payment": {
          "id": "py_hg7D2A5qT6g6mVDSJu6zweKXwsiiNWf3Q85book6",
          "amount": { "currency": "ghs", "value": 220 },
          "initiated_at": "2025-04-09T00:11:47.842341+01:00",
          "statement_descriptor": "INTTEGRO",
          "status": "requires_action",
          "payment_method": {
            "id": "pm_hg7D2A5qT6g6mVDSJu6zweKXwsiiNWf3Q85book6",
            "customer_id": "cu_N4IX542ZKixJJhIbc4bQBntdPrRb0DQ7KqEYSyqc",
            "created_at": "2025-04-09T00:11:47.842341+01:00",
            "verified": true,
            "type": "mobile_money",
            "mobile_money": {
              "network": "mtn",
              "account_number": "+233******8605",
              "last4": "8605"
            }
          },
          "latest_attempt": {
            "payment_method_type": "mobile_money",
            "payment_method_id": "pm_hg7D2A5qT6g6mVDSJu6zweKXwsiiNWf3Q85book6",
            "reference": "nsn_57d91e4fd4b8",
            "status": "executed",
            "initiated_at": "2025-04-09T00:11:48.391412+01:00"
          }
        }
      },
      {
        "id": "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt",
        "line_item_group": {
          "line_items": [],
          "total": {
            "currency": "ghs",
            "value": 200
          }
        },
        "initiated_at": "2025-09-14T16:24:41.137708909Z",
        "completed_at": "2025-09-14T16:29:45Z",
        "sealed_at": "2025-09-14T16:24:41.312701813Z",
        "status": "completed",
        "customer": {
          "id": "cu_ewoa27qe7aO4GZouasUSmVXILsmxjR0Hc6lCMBkn",
          "guest": false,
          "name": "Anita Segnom",
          "email_address": "anita@example.com",
          "phone_number": "+233559714200"
        },
        "refunds": [
            {
                "id": "rf_1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcd",
                "order_id": "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt",
                "status": "succeeded",
                "total": { "currency": "ghs", "value": 100 },
                "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": 200 },
                        "refund_amount": { "currency": "ghs", "value": 100 }
                    }
                ],
                "settlement": {
                    "type": "offline"
                },
                "reason": "item_returned",
                "created_at": "2025-09-15T09:00:00Z",
                "succeeded_at": "2025-09-15T09:00:03Z"
            }
        ]
      }
    ]
  }
}

Type to search…

↑↓ navigate↵ selectEsc close