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 OrderorderOrderorderorderorderorderorder envelope. Page returns the same object inside Page.Orderspage.ordersPage.Orderspage.orderspage.orderspage.orderspage.orderspage.orders. Optional fields are omitted until they exist; treat omission as absence, not as an empty value. When an order has refunds, Refundsorder.refundsRefundsrefundsrefundsrefundsrefundsrefunds 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 Refundsorder.refundsRefundsrefundsrefundsrefundsrefundsrefunds value.
Properties
Orderv13.1.0Go SDK responseOrderv14.0.0Java SDK responseOrderv11.1.0PHP SDK responseOrderv15.0.0Python SDK responseOrderv15.0.0Ruby SDK responseOrderv13.0.0TypeScript SDK responseOrderv15.0.0- #
CanceledAtcanceled_atCanceledAtcanceledAtcanceledAtcanceled_atcanceled_atcanceledAtDateTimeOffset?timestamp*TimeOffsetDateTime?DateTimeImmutabledatetime | NoneT.nilable(Time)DateWhen the order was canceled. Omitted until cancellation.
#
CheckoutSettingscheckout_settingsCheckoutSettingscheckoutSettingscheckoutSettingscheckout_settingscheckout_settingscheckoutSettingsCheckoutSettings?object*CheckoutSettingsCheckoutSettings?Order\CheckoutSettingsOrderCheckoutSettings | NoneT.nilable(Order::CheckoutSettings)CheckoutSettingsOptional hosted-checkout redirects. Omitted when not configured.Click or tap to expand- #
CancelUrlcancel_urlCancelURLcancelUrlcancelUrlcancel_urlcancel_urlcancelUrlstring?stringstringString?stringstr | NoneT.nilable(String)stringURL to redirect customers who cancel or abandon payment. Strongly recommended to handle cancellations gracefully. - #
RedirectUrlredirect_urlRedirectURLredirectUrlredirectUrlredirect_urlredirect_urlredirectUrlstring?stringstringString?stringstr | NoneT.nilable(String)stringURL to redirect customers after successful payment. Strongly recommended for a seamless customer experience.
- #
CompletedAtcompleted_atCompletedAtcompletedAtcompletedAtcompleted_atcompleted_atcompletedAtDateTimeOffset?timestamp*TimeOffsetDateTime?DateTimeImmutabledatetime | NoneT.nilable(Time)DateWhen the order was completed. Omitted until completion.
#
CreatedFromcreated_fromCreatedFromcreatedFromcreatedFromcreated_fromcreated_fromcreatedFromOrderCreatedFrom?object*CreatedFromOrderCreatedFrom?Order\CreatedFromOrderCreatedFrom | NoneT.nilable(Order::CreatedFrom)OrderCreatedFromOrigin attribution for an order created from another public resource. Omitted for direct API-created orders.Click or tap to expand- #
ResourceIdresource_idResourceIDresourceIdresourceIdresource_idresource_idresourceIdstring?stringstringString?stringstr | NoneT.nilable(String)stringID of the originating resource, such as a purchase intent. - #
ResourceTyperesource_typeResourceTyperesourceTyperesourceTyperesource_typeresource_typeresourceTypeOrderCreatedFromResourceType?stringCreatedFromResourceTypeOrderCreatedFromResourceType?stringLiteral['purchase_intent'] | NoneT.nilable(Order::CreatedFromResourceType)OrderCreatedFromResourceTypeOriginating resource type. CurrentlyInttegro.OrderCreatedFromResourceType.PurchaseIntent"purchase_intent"order.CreatedFromResourceTypePurchaseIntentOrderCreatedFromResourceType.PURCHASE_INTENT\Inttegro\Order\CreatedFromResourceType::PurchaseIntentinttegro.order.CreatedFromResourceType.PURCHASE_INTENTInttegro::Order::CreatedFromResourceType::PURCHASE_INTENTInttegro.OrderCreatedFromResourceTypes.PurchaseIntentwhen present.
#
CustomDatacustom_dataCustomDatacustomDatacustomDatacustom_datacustom_datacustomDataCustomData?object*DataCustomData?CustomDataCustomData | NoneT.nilable(T::Hash[String, String])CustomData | nullClick or tap to expandYour string key-value data. Omitted when empty.
#
CustomercustomerCustomercustomercustomercustomercustomercustomerOrderCustomerobjectCustomerOrderCustomerOrder\CustomerOrderCustomerOrder::CustomerOrderCustomerCustomer who placed this order.Click or tap to expandView billing_address detailsClick or tap to expand
Customer billing address. Omitted when unavailable.- #
EmailAddressemail_addressEmailAddressemailAddressemailAddressemail_addressemail_addressemailAddressstring?stringstringString?stringstr | NoneT.nilable(String)stringEmail for receipts and updates. - #
PhoneNumberphone_numberPhoneNumberphoneNumberphoneNumberphone_numberphone_numberphoneNumberstring?stringstringString?stringstr | NoneT.nilable(String)stringPhone number for OTP and notifications. View shipping_address detailsClick or tap to expand
Customer shipping address. Omitted when unavailable.
- #
ExpiresAtexpires_atExpiresAtexpiresAtexpiresAtexpires_atexpires_atexpiresAtDateTimeOffset?timestamp*TimeOffsetDateTime?DateTimeImmutabledatetime | NoneT.nilable(Time)DateWhen the order expires. Omitted when no expiry applies.
- #
InitiatedAtinitiated_atInitiatedAtinitiatedAtinitiatedAtinitiated_atinitiated_atinitiatedAtDateTimeOffsettimestampTimeOffsetDateTimeDateTimeImmutabledatetimeTimeDateWhen we started processing this order.
#
InvoiceinvoiceInvoiceinvoiceinvoiceinvoiceinvoiceinvoiceOrderInvoice?object*InvoiceInvoice?Order\InvoiceOrderInvoice | NoneT.nilable(Order::Invoice)InvoiceHosted invoice links. Omitted while the order is a draft.Click or tap to expand- #
FormatformatFormatformatformatformatformatformatOrderInvoiceFormatobjectInvoiceFormatInvoiceFormatOrder\InvoiceFormatOrderInvoiceFormatT::Hash[String, T.untyped]{ … }View format attributesClick or tap to expand
Invoice viewing links.- #
PdfpdfPDFpdfpdfpdfpdfpdfInvoiceUrlobjectDocumentFormatInvoiceLinkOrder\DocumentFormatOrderDocumentFormatT::Hash[String, T.untyped]Record<string, unknown> - #
WebwebWebwebwebwebwebwebInvoiceUrlobjectDocumentFormatInvoiceLinkOrder\DocumentFormatOrderDocumentFormatT::Hash[String, T.untyped]Record<string, unknown>
#
InvoiceSettingsinvoice_settingsInvoiceSettingsinvoiceSettingsinvoiceSettingsinvoice_settingsinvoice_settingsinvoiceSettingsInvoiceSettings?object*InvoiceSettingsInvoiceSettings?Order\InvoiceSettingsInvoiceSettings | NoneT.nilable(Order::InvoiceSettingsResponse)InvoiceSettingsCustomer-facing invoice content. Omitted when not configured.Click or tap to expand- #
CustomDatacustom_dataCustomDatacustomDatacustomDatacustom_datacustom_datacustomDataCustomData?object*DataCustomData?CustomDataCustomData | NoneT.nilable(CustomData)CustomDataView custom_data detailsClick or tap to expand
String key-value data. Omitted when empty.
#
LineItemGroupline_item_groupLineItemGrouplineItemGrouplineItemGroupline_item_groupline_item_grouplineItemGroupOrderLineItemGroup?object*LineItemGroupLineItemGroup?Order\LineItemGroupOrderLineItemGroup | NoneT.nilable(Order::LineItemGroup)LineItemGroupCart contents and totals.Click or tap to expandView line_items attributesClick or tap to expand
Array of products, fees, and shipping charges—each with aOrder.LineItemGroup.LineItems[].Typeorder.line_item_group.line_items[].typeOrder.LineItemGroup.LineItems[].Typeorder.lineItemGroup.lineItems[].typeorder.lineItemGroup.lineItems[].typeorder.line_item_group.line_items[].typeorder.line_item_group.line_items[].typeorder.lineItemGroup.lineItems[].typediscriminator.- #
DiscountdiscountDiscountdiscountdiscountdiscountdiscountdiscountDiscountDetails?object*DiscountLineItemDiscountLineItemarray<string, mixed>dict[str, Any]Order::DiscountDiscountLineItemView discount detailsClick or tap to expand
Discount details whenOrder.LineItemGroup.LineItems[].Typeorder.line_item_group.line_items[].typeOrder.LineItemGroup.LineItems[].Typeorder.lineItemGroup.lineItems[].typeorder.lineItemGroup.lineItems[].typeorder.line_item_group.line_items[].typeorder.line_item_group.line_items[].typeorder.lineItemGroup.lineItems[].typeisdiscount. Reserved for orders that contain a discount line. - #
FeefeeFeefeefeefeefeefeeFeeDetails?object*FeeLineItemFeeLineItemarray<string, mixed>dict[str, Any]Order::FeeLineItemFeeFeeLineItemView fee attributesClick or tap to expand
Fee details whenOrder.LineItemGroup.LineItems[].Typeorder.line_item_group.line_items[].typeOrder.LineItemGroup.LineItems[].Typeorder.lineItemGroup.lineItems[].typeorder.lineItemGroup.lineItems[].typeorder.line_item_group.line_items[].typeorder.line_item_group.line_items[].typeorder.lineItemGroup.lineItems[].typeisInttegro.LineItemType.Fee"fee""fee"LineItemType.FEE'fee''fee''fee'Inttegro.LineItemTypes.Fee—covers service charges, convenience fees, etc.View amount attributesClick or tap to expand
- #
DescriptiondescriptionDescriptiondescriptiondescriptiondescriptiondescriptiondescriptionstring?stringstringStringstringstrT.nilable(String)stringInternal note about what this fee covers.
- #
ProductproductProductproductproductproductproductproductProductDetails?object*ProductLineItemProductLineItemarray<string, mixed>dict[str, Any]Order::ProductLineItemProductProductLineItemView product attributesClick or tap to expand
Product details whenOrder.LineItemGroup.LineItems[].Typeorder.line_item_group.line_items[].typeOrder.LineItemGroup.LineItems[].Typeorder.lineItemGroup.lineItems[].typeorder.lineItemGroup.lineItems[].typeorder.line_item_group.line_items[].typeorder.line_item_group.line_items[].typeorder.lineItemGroup.lineItems[].typeisInttegro.LineItemType.Product"product""product"LineItemType.PRODUCT'product''product''product'Inttegro.LineItemTypes.Product.- #
CustomDatacustom_dataCustomDatacustomDatacustomDatacustom_datacustom_datacustomDataCustomData?object*DataCustomDataarray<string, mixed>dict[str, Any]T.nilable(CustomData)CustomDataView custom_data detailsClick or tap to expand
Your own key-value string pairs—exactly the same shape as theOrder.LineItemGroup.LineItems[].Product.CustomDataorder.line_item_group.line_items[].product.custom_dataOrder.LineItemGroup.LineItems[].Product.CustomDataorder.lineItemGroup.lineItems[].product.customDataorder.lineItemGroup.lineItems[].product.customDataorder.line_item_group.line_items[].product.custom_dataorder.line_item_group.line_items[].product.custom_dataorder.lineItemGroup.lineItems[].product.customDatafield in the API. View price attributesClick or tap to expand
- #
TypetypeTypetypetypetypetypetypeProductTypestringTypeProductTypestringstrT.nilable(String)ProductTypeProduct type:Inttegro.ProductType.Cause"cause"product.TypeCauseProductType.CAUSE\Inttegro\Product\Type::Causeinttegro.product.Type.CAUSEInttegro::Product::Type::CAUSEInttegro.ProductTypes.Cause,Inttegro.ProductType.Custom"custom"product.TypeCustomProductType.CUSTOM\Inttegro\Product\Type::Custominttegro.product.Type.CUSTOMInttegro::Product::Type::CUSTOMInttegro.ProductTypes.Custom,Inttegro.ProductType.Digital"digital"product.TypeDigitalProductType.DIGITAL\Inttegro\Product\Type::Digitalinttegro.product.Type.DIGITALInttegro::Product::Type::DIGITALInttegro.ProductTypes.Digital,Inttegro.ProductType.Physical"physical"product.TypePhysicalProductType.PHYSICAL\Inttegro\Product\Type::Physicalinttegro.product.Type.PHYSICALInttegro::Product::Type::PHYSICALInttegro.ProductTypes.Physical,Inttegro.ProductType.Service"service"product.TypeServiceProductType.SERVICE\Inttegro\Product\Type::Serviceinttegro.product.Type.SERVICEInttegro::Product::Type::SERVICEInttegro.ProductTypes.Service, orInttegro.ProductType.Voucher"voucher"product.TypeVoucherProductType.VOUCHER\Inttegro\Product\Type::Voucherinttegro.product.Type.VOUCHERInttegro::Product::Type::VOUCHERInttegro.ProductTypes.Voucher.
- #
ShippingshippingShippingshippingshippingshippingshippingshippingShippingDetails?object*ShippingLineItemShippingLineItemarray<string, mixed>dict[str, Any]Order::ShippingLineItemShippingShippingLineItemView shipping attributesClick or tap to expand
Shipping details whenOrder.LineItemGroup.LineItems[].Typeorder.line_item_group.line_items[].typeOrder.LineItemGroup.LineItems[].Typeorder.lineItemGroup.lineItems[].typeorder.lineItemGroup.lineItems[].typeorder.line_item_group.line_items[].typeorder.line_item_group.line_items[].typeorder.lineItemGroup.lineItems[].typeisInttegro.LineItemType.Shipping"shipping""shipping"LineItemType.SHIPPING'shipping''shipping''shipping'Inttegro.LineItemTypes.Shipping.View fee attributesClick or tap to expand
- #
TypetypeTypetypetypetypetypetypeLineItemTypestringLineItemTypeLineItemTypestringstrOrder::ProductLineItemType'product' | 'fee' | 'shipping' | 'discount'Line item type:discount,Inttegro.LineItemType.Fee"fee""fee"LineItemType.FEE'fee''fee''fee'Inttegro.LineItemTypes.Fee,Inttegro.LineItemType.Product"product""product"LineItemType.PRODUCT'product''product''product'Inttegro.LineItemTypes.Product, orInttegro.LineItemType.Shipping"shipping""shipping"LineItemType.SHIPPING'shipping''shipping''shipping'Inttegro.LineItemTypes.Shipping.
View total attributesClick or tap to expand
Sum of all line items after any adjustments.- #
CurrencycurrencyCurrencycurrencycurrencycurrencycurrencycurrencyCurrencystringCurrencyCurrencystringCurrencyMoney::CurrencyCurrencyISO currency code. Supported values for order creation are"ghs""ghs"money.GHSCurrency.GHS\Inttegro\Money\Currency::GHSinttegro.money.Currency.GHSInttegro::Money::Currency::GHS"ghs","usd""usd"money.USDCurrency.USD\Inttegro\Money\Currency::USDinttegro.money.Currency.USDInttegro::Money::Currency::USD"usd","gbp""gbp"money.GBPCurrency.GBP\Inttegro\Money\Currency::GBPinttegro.money.Currency.GBPInttegro::Money::Currency::GBP"gbp","eur""eur"money.EURCurrency.EUR\Inttegro\Money\Currency::EURinttegro.money.Currency.EURInttegro::Money::Currency::EUR"eur", and"cny""cny"money.CNYCurrency.CNY\Inttegro\Money\Currency::CNYinttegro.money.Currency.CNYInttegro::Money::Currency::CNY"cny".
#
PaymentpaymentPaymentpaymentpaymentpaymentpaymentpaymentPayment?object*PaymentPayment?Payment\PaymentPayment | NoneT.nilable(Payment)PaymentPayment collection record tied to this order. Its status is independent from fulfillment state.Click or tap to expandView amount attributesClick or tap to expand
Total amount being charged.- #
CurrencycurrencyCurrencycurrencycurrencycurrencycurrencycurrencyCurrencystringCurrencyCurrencystringCurrencyMoney::CurrencyCurrencyCurrency code. Supported values for order creation are"ghs""ghs"money.GHSCurrency.GHS\Inttegro\Money\Currency::GHSinttegro.money.Currency.GHSInttegro::Money::Currency::GHS"ghs","usd""usd"money.USDCurrency.USD\Inttegro\Money\Currency::USDinttegro.money.Currency.USDInttegro::Money::Currency::USD"usd","gbp""gbp"money.GBPCurrency.GBP\Inttegro\Money\Currency::GBPinttegro.money.Currency.GBPInttegro::Money::Currency::GBP"gbp","eur""eur"money.EURCurrency.EUR\Inttegro\Money\Currency::EURinttegro.money.Currency.EURInttegro::Money::Currency::EUR"eur", and"cny""cny"money.CNYCurrency.CNY\Inttegro\Money\Currency::CNYinttegro.money.Currency.CNYInttegro::Money::Currency::CNY"cny".
- #
BalanceTransactionbalance_transactionBalanceTransactionbalanceTransactionbalanceTransactionbalance_transactionbalance_transactionbalanceTransactionBalanceTransaction?object*BalanceTransactionBalanceTransaction?BalanceTransaction\BalanceTransactionBalanceTransaction | NoneT.nilable(BalanceTransaction)BalanceTransaction | nullView balance_transaction attributesClick or tap to expand
Ledger entry available after money movement is recorded. Its type isInttegro.BalanceTransactionType.Payment"payment"balancetransaction.TypePaymentBalanceTransactionType.PAYMENT\Inttegro\BalanceTransaction\Type::Paymentinttegro.balance_transaction.Type.PAYMENTInttegro::BalanceTransaction::Type::PAYMENTInttegro.BalanceTransactionTypes.PaymentorInttegro.BalanceTransactionType.Refund"refund"balancetransaction.TypeRefundBalanceTransactionType.REFUND\Inttegro\BalanceTransaction\Type::Refundinttegro.balance_transaction.Type.REFUNDInttegro::BalanceTransaction::Type::REFUNDInttegro.BalanceTransactionTypes.Refund, with exactly one matching strong reference.View amount attributesClick or tap to expand
Net funds that hit your balance for this payment.- #
CurrencycurrencyCurrencycurrencycurrencycurrencycurrencycurrencyCurrencystringCurrencyCurrencystringstrStringCurrencyCurrency code. Supported values for order creation are"ghs""ghs"money.GHSCurrency.GHS\Inttegro\Money\Currency::GHSinttegro.money.Currency.GHSInttegro::Money::Currency::GHS"ghs","usd""usd"money.USDCurrency.USD\Inttegro\Money\Currency::USDinttegro.money.Currency.USDInttegro::Money::Currency::USD"usd","gbp""gbp"money.GBPCurrency.GBP\Inttegro\Money\Currency::GBPinttegro.money.Currency.GBPInttegro::Money::Currency::GBP"gbp","eur""eur"money.EURCurrency.EUR\Inttegro\Money\Currency::EURinttegro.money.Currency.EURInttegro::Money::Currency::EUR"eur", and"cny""cny"money.CNYCurrency.CNY\Inttegro\Money\Currency::CNYinttegro.money.Currency.CNYInttegro::Money::Currency::CNY"cny".
- #
AvailableAtavailable_atAvailableAtavailableAtavailableAtavailable_atavailable_atavailableAtDateTimeOffset?timestamp*TimeOffsetDateTime?DateTimeImmutabledatetime | NoneT.nilable(Time)DateWhen the funds become available for payout. Omitted until known. - #
ClaimedAtclaimed_atClaimedAtclaimedAtclaimedAtclaimed_atclaimed_atclaimedAtDateTimeOffset?timestamp*TimeOffsetDateTime?DateTimeImmutabledatetime | NoneT.nilable(Time)DateWhen the funds were claimed for payout. Omitted until claimed. - #
CreatedAtcreated_atCreatedAtcreatedAtcreatedAtcreated_atcreated_atcreatedAtDateTimeOffsettimestampTimeOffsetDateTimeDateTimeImmutabledatetimeTimeDateWhen the balance transaction was created. - #
PaymentIdpayment_idPaymentIDpaymentIdpaymentIdpayment_idpayment_idpaymentIdstring?stringstringString?stringstr | NoneT.nilable(String)stringStrong source reference present whenOrder.Payment.BalanceTransaction.Typeorder.payment.balance_transaction.typeOrder.Payment.BalanceTransaction.Typeorder.payment.balanceTransaction.typeorder.payment.balanceTransaction.typeorder.payment.balance_transaction.typeorder.payment.balance_transaction.typeorder.payment.balanceTransaction.typeisInttegro.BalanceTransactionType.Payment"payment"balancetransaction.TypePaymentBalanceTransactionType.PAYMENT\Inttegro\BalanceTransaction\Type::Paymentinttegro.balance_transaction.Type.PAYMENTInttegro::BalanceTransaction::Type::PAYMENTInttegro.BalanceTransactionTypes.Payment. Omitted forInttegro.BalanceTransactionType.Refund"refund"balancetransaction.TypeRefundBalanceTransactionType.REFUND\Inttegro\BalanceTransaction\Type::Refundinttegro.balance_transaction.Type.REFUNDInttegro::BalanceTransaction::Type::REFUNDInttegro.BalanceTransactionTypes.Refund. - #
RefundIdrefund_idRefundIDrefundIdrefundIdrefund_idrefund_idrefundIdstring?stringstringString?stringstr | NoneT.nilable(String)stringStrong source reference present whenOrder.Payment.BalanceTransaction.Typeorder.payment.balance_transaction.typeOrder.Payment.BalanceTransaction.Typeorder.payment.balanceTransaction.typeorder.payment.balanceTransaction.typeorder.payment.balance_transaction.typeorder.payment.balance_transaction.typeorder.payment.balanceTransaction.typeisInttegro.BalanceTransactionType.Refund"refund"balancetransaction.TypeRefundBalanceTransactionType.REFUND\Inttegro\BalanceTransaction\Type::Refundinttegro.balance_transaction.Type.REFUNDInttegro::BalanceTransaction::Type::REFUNDInttegro.BalanceTransactionTypes.Refund. Omitted forInttegro.BalanceTransactionType.Payment"payment"balancetransaction.TypePaymentBalanceTransactionType.PAYMENT\Inttegro\BalanceTransaction\Type::Paymentinttegro.balance_transaction.Type.PAYMENTInttegro::BalanceTransaction::Type::PAYMENTInttegro.BalanceTransactionTypes.Payment. - #
TypetypeTypetypetypetypetypetypeBalanceTransactionTypeenumTypeBalanceTransactionTypestringLiteral['payment', 'refund', 'payout']BalanceTransaction::TypeBalanceTransactionType | 'payment' | BalanceTransactionType | 'refund' | BalanceTransactionType | 'payout'Semantic source of the entry:Inttegro.BalanceTransactionType.Payment"payment"balancetransaction.TypePaymentBalanceTransactionType.PAYMENT\Inttegro\BalanceTransaction\Type::Paymentinttegro.balance_transaction.Type.PAYMENTInttegro::BalanceTransaction::Type::PAYMENTInttegro.BalanceTransactionTypes.PaymentorInttegro.BalanceTransactionType.Refund"refund"balancetransaction.TypeRefundBalanceTransactionType.REFUND\Inttegro\BalanceTransaction\Type::Refundinttegro.balance_transaction.Type.REFUNDInttegro::BalanceTransaction::Type::REFUNDInttegro.BalanceTransactionTypes.Refund. This is a cause, not a direction indicator.
View billing_details detailsClick or tap to expand
Billing owner details associated with the payment method. Omitted when unavailable.- #
CanceledAtcanceled_atCanceledAtcanceledAtcanceledAtcanceled_atcanceled_atcanceledAtDateTimeOffset?timestamp*TimeOffsetDateTime?DateTimeImmutabledatetime | NoneT.nilable(Time)DateWhen payment was canceled. Omitted until canceled. View customer detailsClick or tap to expand
Customer snapshot associated with this payment. Omitted when unavailable.View receipt attributesClick or tap to expand
Receipt issued for this payment. Omitted until the order is paid or completed.- #
FormatformatFormatformatformatformatformatformatOrderReceiptFormatobjectReceiptFormatPaymentReceiptFormatReceiptFormatReceiptFormatT::Hash[String, T.untyped]{ … }View format attributesClick or tap to expand
Hosted receipt representations.- #
WebwebWebwebwebwebwebwebInvoiceUrlobjectReceiptDocumentFormatInvoiceLinkDocumentFormatOrderDocumentFormatT::Hash[String, T.untyped]Record<string, unknown> - #
PdfpdfPDFpdfpdfpdfpdfpdfInvoiceUrlobjectReceiptDocumentFormatInvoiceLinkDocumentFormatOrderDocumentFormatT::Hash[String, T.untyped]Record<string, unknown>
- #
DeliverySummarydelivery_summaryDeliverySummarydeliverySummarydeliverySummarydelivery_summarydelivery_summarydeliverySummaryJsonElement?object*ReceiptDeliverySummaryOrderDocumentDeliverySummaryarray<string, mixed>DocumentDeliverySummary | NoneT.nilable(Order::DocumentDeliverySummary)OrderDocumentDeliverySummaryView delivery_summary detailsClick or tap to expand
Receipt delivery history. Omitted until sent.
- #
ExecutedAtexecuted_atExecutedAtexecutedAtexecutedAtexecuted_atexecuted_atexecutedAtDateTimeOffset?timestamp*TimeOffsetDateTime?DateTimeImmutabledatetime | NoneT.nilable(Time)DateWhen payment execution began. Omitted until execution. - #
ExpiredAtexpired_atExpiredAtexpiredAtexpiredAtexpired_atexpired_atexpiredAtDateTimeOffset?timestamp*TimeOffsetDateTime?DateTimeImmutabledatetime | NoneT.nilable(Time)DateWhen payment expired. Omitted until expired. - #
InitiatedAtinitiated_atInitiatedAtinitiatedAtinitiatedAtinitiated_atinitiated_atinitiatedAtDateTimeOffsettimestampTimeOffsetDateTimeDateTimeImmutabledatetimeTimeDateWhen Inttegro created the payment. View latest_error detailsClick or tap to expand
Structured error for the latest failed payment operation. Omitted when unavailable.View latest_attempt attributesClick or tap to expand
Details about the most recent charge attempt. Omitted before the first attempt.View error detailsClick or tap to expand
Attempt error details. Omitted when no error is available.- #
InitiatedAtinitiated_atInitiatedAtinitiatedAtinitiatedAtinitiated_atinitiated_atinitiatedAtDateTimeOffsettimestampTimeOffsetDateTimeDateTimeImmutabledatetimeTimeDateWhen this attempt started. - #
PaymentMethodIdpayment_method_idPaymentMethodIDpaymentMethodIdpaymentMethodIdpayment_method_idpayment_method_idpaymentMethodIdstring?stringstringString?stringstr | NoneT.nilable(String)stringPayment method that was charged. - #
PaymentMethodTypepayment_method_typePaymentMethodTypepaymentMethodTypepaymentMethodTypepayment_method_typepayment_method_typepaymentMethodTypePaymentMethodType?stringstringString?stringstr | NoneT.nilable(String)PaymentMethodTypePayment rail used for this attempt. - #
StatusstatusStatusstatusstatusstatusstatusstatusPaymentAttemptStatusstringAttemptStatusPaymentAttemptStatusstringLiteral['initiated', 'executed', 'succeeded', 'canceled', 'expired', 'failed', 'unknown']Payment::AttemptStatusPaymentAttemptStatusAttempt status:Inttegro.PaymentAttemptStatus.Initiated"initiated"payment.AttemptStatusInitiatedPaymentAttemptStatus.INITIATED\Inttegro\Payment\AttemptStatus::Initiatedinttegro.payment.AttemptStatus.INITIATEDInttegro::Payment::AttemptStatus::INITIATEDInttegro.PaymentAttemptStatuses.Initiated,Inttegro.PaymentAttemptStatus.Executed"executed"payment.AttemptStatusExecutedPaymentAttemptStatus.EXECUTED\Inttegro\Payment\AttemptStatus::Executedinttegro.payment.AttemptStatus.EXECUTEDInttegro::Payment::AttemptStatus::EXECUTEDInttegro.PaymentAttemptStatuses.Executed,Inttegro.PaymentAttemptStatus.Succeeded"succeeded"payment.AttemptStatusSucceededPaymentAttemptStatus.SUCCEEDED\Inttegro\Payment\AttemptStatus::Succeededinttegro.payment.AttemptStatus.SUCCEEDEDInttegro::Payment::AttemptStatus::SUCCEEDEDInttegro.PaymentAttemptStatuses.Succeeded,Inttegro.PaymentAttemptStatus.Canceled"canceled"payment.AttemptStatusCanceledPaymentAttemptStatus.CANCELED\Inttegro\Payment\AttemptStatus::Canceledinttegro.payment.AttemptStatus.CANCELEDInttegro::Payment::AttemptStatus::CANCELEDInttegro.PaymentAttemptStatuses.Canceled,Inttegro.PaymentAttemptStatus.Expired"expired"payment.AttemptStatusExpiredPaymentAttemptStatus.EXPIRED\Inttegro\Payment\AttemptStatus::Expiredinttegro.payment.AttemptStatus.EXPIREDInttegro::Payment::AttemptStatus::EXPIREDInttegro.PaymentAttemptStatuses.Expired,Inttegro.PaymentAttemptStatus.Failed"failed"payment.AttemptStatusFailedPaymentAttemptStatus.FAILED\Inttegro\Payment\AttemptStatus::Failedinttegro.payment.AttemptStatus.FAILEDInttegro::Payment::AttemptStatus::FAILEDInttegro.PaymentAttemptStatuses.Failed, orInttegro.PaymentAttemptStatus.Unknown"unknown"payment.AttemptStatusUnknownPaymentAttemptStatus.UNKNOWN\Inttegro\Payment\AttemptStatus::Unknowninttegro.payment.AttemptStatus.UNKNOWNInttegro::Payment::AttemptStatus::UNKNOWNInttegro.PaymentAttemptStatuses.Unknown. - #
SucceededAtsucceeded_atSucceededAtsucceededAtsucceededAtsucceeded_atsucceeded_atsucceededAtDateTimeOffset?timestamp*TimeOffsetDateTime?DateTimeImmutabledatetime | NoneT.nilable(Time)DateSet when the attempt succeeds. Omitted otherwise.
View next_action attributesClick or tap to expand
What needs to happen next to complete the payment.View confirm_payment attributesClick or tap to expand
OTP confirmation flow details.- #
ExpiresAtexpires_atExpiresAtexpiresAtexpiresAtexpires_atexpires_atexpiresAtDateTimeOffsettimestampTimeOffsetDateTimeDateTimeImmutabledatetimeTimeDateWhen this OTP token expires. - #
RequestrequestRequestrequestrequestrequestrequestrequestPaymentConfirmationRequest?object*ConfirmationRequestConfirmationRequest?Payment\NextActionConfirmPaymentRequestPaymentNextActionConfirmPaymentRequest | NoneT.nilable(Payment::NextActionConfirmPaymentRequest)Record<string, unknown>View request attributesClick or tap to expand
Details about the OTP we sent.- #
SentViasent_viaSentViasentViasentViasent_viasent_viasentViaPaymentConfirmationChannelstringConfirmationChannelPaymentConfirmationChannelstringLiteral['sms', 'email', 'push']Payment::ConfirmationChannelstringDelivery channel:Inttegro.ChimeTransport.Sms"sms"chime.TransportSMSChimeTransport.SMS\Inttegro\Chime\Transport::Smsinttegro.chime.Transport.SMSInttegro::Chime::Transport::SMSInttegro.ChimeTransports.SmsorInttegro.ChimeTransport.Email"email"chime.TransportEmailChimeTransport.EMAIL\Inttegro\Chime\Transport::Emailinttegro.chime.Transport.EMAILInttegro::Chime::Transport::EMAILInttegro.ChimeTransports.Email. - #
TokenSizetoken_sizeTokenSizetokenSizetokenSizetoken_sizetoken_sizetokenSizeintintegerintintintintIntegernumberLength of the OTP code (usually 6).
- #
TypetypeTypetypetypetypetypetypePaymentNextActionTypestringNextActionTypePaymentNextActionTypestringLiteral['confirm_payment', 'execute', 'redirect', 'authorize_payment', 'request_confirmation']Payment::NextActionTypePaymentNextActionTypeAction required:Inttegro.PaymentNextActionType.ConfirmPayment"confirm_payment"payment.NextActionTypeConfirmPaymentPaymentNextActionType.CONFIRM_PAYMENT\Inttegro\Payment\NextActionType::ConfirmPaymentinttegro.payment.NextActionType.CONFIRM_PAYMENTInttegro::Payment::NextActionType::CONFIRM_PAYMENTInttegro.PaymentNextActionTypes.ConfirmPayment,authorize_payment, etc.
- #
PaidOfflinepaid_offlinePaidOfflinepaidOfflinepaidOfflinepaid_offlinepaid_offlinepaidOfflinebool?boolean*boolBoolean?boolbool | NoneT.nilable(T::Boolean)booleanWhether payment was recorded out of band. Omitted when unavailable. View payment_method attributesClick or tap to expand
The payment method being charged.- #
CreatedAtcreated_atCreatedAtcreatedAtcreatedAtcreated_atcreated_atcreatedAtDateTimeOffsettimestampTimeOffsetDateTimeDateTimeImmutabledatetimeTimeDateWhen this method was added. - #
CustomerIdcustomer_idCustomerIDcustomerIdcustomerIdcustomer_idcustomer_idcustomerIdstringstringstringStringstringstrStringstringWhich customer owns this payment method. - #
MobileMoneymobile_moneyMobileMoneymobileMoneymobileMoneymobile_moneymobile_moneymobileMoneyPaymentMethodSnapshotMobileMoney?object*PaymentMethodMobileMoneyPaymentMethodSnapshotMobileMoney?Payment\PaymentMethodMobileMoneyPaymentMethodSnapshotMobileMoney | NoneT.nilable(Payment::MethodSnapshotMobileMoney){ … }View mobile_money attributesClick or tap to expand
Mobile money details. Present whenOrder.Payment.PaymentMethod.Typeorder.payment.payment_method.typeOrder.Payment.PaymentMethod.Typeorder.payment.paymentMethod.typeorder.payment.paymentMethod.typeorder.payment.payment_method.typeorder.payment.payment_method.typeorder.payment.paymentMethod.typeisInttegro.PaymentMethodType.MobileMoney"mobile_money"paymentmethod.TypeMobileMoneyPaymentMethodType.MOBILE_MONEY\Inttegro\PaymentMethod\Type::MobileMoneyinttegro.payment_method.Type.MOBILE_MONEYInttegro::PaymentMethod::Type::MOBILE_MONEYInttegro.PaymentMethodTypes.MobileMoney.- #
AccountNumberaccount_numberAccountNumberaccountNumberaccountNumberaccount_numberaccount_numberaccountNumberstringstringstringStringstringstrStringstringMasked account number. - #
NetworknetworkNetworknetworknetworknetworknetworknetworkMobileMoneyNetworkstringMobileMoneyNetworkMobileMoneyNetworkstringLiteral['airtel', 'mtn', 'telecel', 'vodafone']Shared::MobileMoneyNetworkstringWallet network:Inttegro.MobileMoneyNetwork.Airtel"airtel"paymentmethod.MobileMoneyNetworkAirtelMobileMoneyNetwork.AIRTEL\Inttegro\PaymentMethod\MobileMoneyNetwork::Airtelinttegro.payment_method.MobileMoneyNetwork.AIRTELInttegro::Shared::MobileMoneyNetwork::AIRTELInttegro.MobileMoneyNetworks.Airtel,Inttegro.MobileMoneyNetwork.MTN"mtn"paymentmethod.MobileMoneyNetworkMTNMobileMoneyNetwork.MTN\Inttegro\PaymentMethod\MobileMoneyNetwork::MTNinttegro.payment_method.MobileMoneyNetwork.MTNInttegro::Shared::MobileMoneyNetwork::MTNInttegro.MobileMoneyNetworks.MTN,Inttegro.MobileMoneyNetwork.Telecel"telecel"paymentmethod.MobileMoneyNetworkTelecelMobileMoneyNetwork.TELECEL\Inttegro\PaymentMethod\MobileMoneyNetwork::Telecelinttegro.payment_method.MobileMoneyNetwork.TELECELInttegro::Shared::MobileMoneyNetwork::TELECELInttegro.MobileMoneyNetworks.Telecel, orInttegro.MobileMoneyNetwork.Vodafone"vodafone"paymentmethod.MobileMoneyNetworkVodafoneMobileMoneyNetwork.VODAFONE\Inttegro\PaymentMethod\MobileMoneyNetwork::Vodafoneinttegro.payment_method.MobileMoneyNetwork.VODAFONEInttegro::Shared::MobileMoneyNetwork::VODAFONEInttegro.MobileMoneyNetworks.Vodafone.
- #
TypetypeTypetypetypetypetypetypePaymentMethodTypestringTypePaymentMethodTypestringLiteral['mobile_money', 'bank_account', 'card', 'motito']PaymentMethod::TypePaymentMethodTypePayment rail:Inttegro.PaymentMethodType.MobileMoney"mobile_money"paymentmethod.TypeMobileMoneyPaymentMethodType.MOBILE_MONEY\Inttegro\PaymentMethod\Type::MobileMoneyinttegro.payment_method.Type.MOBILE_MONEYInttegro::PaymentMethod::Type::MOBILE_MONEYInttegro.PaymentMethodTypes.MobileMoney,Inttegro.PaymentMethodType.Card"card"paymentmethod.TypeCardPaymentMethodType.CARD\Inttegro\PaymentMethod\Type::Cardinttegro.payment_method.Type.CARDInttegro::PaymentMethod::Type::CARDInttegro.PaymentMethodTypes.Card,Inttegro.PaymentMethodType.BankAccount"bank_account"paymentmethod.TypeBankAccountPaymentMethodType.BANK_ACCOUNT\Inttegro\PaymentMethod\Type::BankAccountinttegro.payment_method.Type.BANK_ACCOUNTInttegro::PaymentMethod::Type::BANK_ACCOUNTInttegro.PaymentMethodTypes.BankAccount, etc. - #
VerifiedAtverified_atVerifiedAtverifiedAtverifiedAtverified_atverified_atverifiedAtDateTimeOffset?timestamp*TimeOffsetDateTime?DateTimeImmutabledatetime | NoneT.nilable(Time)DateWhen verification completed. Omitted if not verified.
- #
PaymentMethodTypespayment_method_typesPaymentMethodTypespaymentMethodTypespaymentMethodTypespayment_method_typespayment_method_typespaymentMethodTypesList<string>?array[]stringList<String>?arraylist[str] | NoneT.nilable(T::Array[String])string[]Payment rails allowed for this payment. Omitted when unavailable. - #
PayoutConfigurationpayout_configurationPayoutConfigurationpayoutConfigurationpayoutConfigurationpayout_configurationpayout_configurationpayoutConfigurationPayoutConfiguration?object*ConfigurationPayoutConfiguration?Payment\PayoutConfigurationPaymentPayoutConfiguration | NoneT.nilable(Payment::PayoutConfiguration)PaymentPayoutConfiguration | nullView payout_configuration attributesClick or tap to expand
Payout routing instructions for this payment. Present only when order-levelPayoutSettingspayout_settingsPayoutSettingspayoutSettingspayout_settingspayout_settingspayout_settingspayoutSettingswas specified during order creation.View destination attributesClick or tap to expand
Where funds will be paid out.- #
FinancialAccountIdfinancial_account_idFinancialAccountIDfinancialAccountIdfinancialAccountIdfinancial_account_idfinancial_account_idfinancialAccountIdstringstringstringStringstringstrStringstringFinancial account that will receive the payout.
- #
StatementDescriptorstatement_descriptorStatementDescriptorstatementDescriptorstatementDescriptorstatement_descriptorstatement_descriptorstatementDescriptorstringstringstringStringstringstrStringstringStatement descriptor assigned to the payment. - #
StatusstatusStatusstatusstatusstatusstatusstatusPaymentStatusstringStatusboolean requiresAction() { … }stringLiteral['initiated', 'requires_action', 'overdue', 'executed', 'paid', 'canceled', 'expired', 'failed', 'unknown']Payment::StatusPaymentStatusPayment state:Inttegro.PaymentStatus.Initiated"initiated"payment.StatusInitiatedPaymentStatus.INITIATED\Inttegro\Payment\Status::Initiatedinttegro.payment.Status.INITIATEDInttegro::Payment::Status::INITIATEDInttegro.PaymentStatuses.Initiated,Inttegro.PaymentStatus.Overdue"overdue"payment.StatusOverduePaymentStatus.OVERDUE\Inttegro\Payment\Status::Overdueinttegro.payment.Status.OVERDUEInttegro::Payment::Status::OVERDUEInttegro.PaymentStatuses.Overdue,Inttegro.PaymentStatus.Executed"executed"payment.StatusExecutedPaymentStatus.EXECUTED\Inttegro\Payment\Status::Executedinttegro.payment.Status.EXECUTEDInttegro::Payment::Status::EXECUTEDInttegro.PaymentStatuses.Executed,Inttegro.PaymentStatus.RequiresAction"requires_action"payment.StatusRequiresActionPaymentStatus.REQUIRES_ACTION\Inttegro\Payment\Status::RequiresActioninttegro.payment.Status.REQUIRES_ACTIONInttegro::Payment::Status::REQUIRES_ACTIONInttegro.PaymentStatuses.RequiresAction,Inttegro.PaymentStatus.Paid"paid"payment.StatusPaidPaymentStatus.PAID\Inttegro\Payment\Status::Paidinttegro.payment.Status.PAIDInttegro::Payment::Status::PAIDInttegro.PaymentStatuses.Paid,Inttegro.PaymentStatus.Failed"failed"payment.StatusFailedPaymentStatus.FAILED\Inttegro\Payment\Status::Failedinttegro.payment.Status.FAILEDInttegro::Payment::Status::FAILEDInttegro.PaymentStatuses.Failed,Inttegro.PaymentStatus.Canceled"canceled"payment.StatusCanceledPaymentStatus.CANCELED\Inttegro\Payment\Status::Canceledinttegro.payment.Status.CANCELEDInttegro::Payment::Status::CANCELEDInttegro.PaymentStatuses.Canceled,Inttegro.PaymentStatus.Expired"expired"payment.StatusExpiredPaymentStatus.EXPIRED\Inttegro\Payment\Status::Expiredinttegro.payment.Status.EXPIREDInttegro::Payment::Status::EXPIREDInttegro.PaymentStatuses.Expired, orInttegro.PaymentStatus.Unknown"unknown"payment.StatusUnknownPaymentStatus.UNKNOWN\Inttegro\Payment\Status::Unknowninttegro.payment.Status.UNKNOWNInttegro::Payment::Status::UNKNOWNInttegro.PaymentStatuses.Unknown.
- #
ReceiptNumberreceipt_numberReceiptNumberreceiptNumberreceiptNumberreceipt_numberreceipt_numberreceiptNumberstring?stringstringString?stringstr | NoneT.nilable(String)stringMerchant-supplied receipt reference for reconciliation. Omitted when unset; Inttegro does not enforce uniqueness.
- #
PaymentDueAtpayment_due_atPaymentDueAtpaymentDueAtpaymentDueAtpayment_due_atpayment_due_atpaymentDueAtDateTimeOffset?timestamp*TimeOffsetDateTime?DateTimeImmutabledatetime | NoneT.nilable(Time)DateWhen payment is due. Omitted when no due time was supplied.
#
PayoutSettingspayout_settingsPayoutSettingspayoutSettingspayoutSettingspayout_settingspayout_settingspayoutSettingsDictionary<string, object?>objectmap[string]anyMap<String, Object>array<string, mixed>dict[str, Any]T::Hash[String, T.untyped]Record<string, unknown>Order-specific payout settings. Omitted when not configured.Click or tap to expand#
RefundsrefundsRefundsrefundsrefundsrefundsrefundsrefundsList<Refund>?array[]RefundList<Refund>?arraylist[Refund] | NoneT.nilable(T::Array[Refund])Refund[]Complete refund objects for this order in newest-first order. Omitted when the order has no refunds.Click or tap to expand- #
ItemsitemsItemsitemsitemsitemsitemsitemsDictionary<string, object?>objectmap[string]anyMap<String, Object>array<string, mixed>dict[str, Any]T::Hash[String, T.untyped]Record<string, unknown>View items attributesClick or tap to expand
Each entry is the complete shared refund object. See the Refunds API reference for the canonical object and lifecycle fields.- #
CanceledAtcanceled_atCanceledAtcanceledAtcanceledAtcanceled_atcanceled_atcanceledAtDateTimeOffsettimestampTimeOffsetDateTimeDateTimeImmutabledatetimeTimeDateWhen the refund entered the"canceled""canceled"refund.StatusCanceledRefundStatus.CANCELED\Inttegro\Refund\Status::Canceledinttegro.refund.Status.CANCELEDInttegro::Refund::Status::CANCELEDInttegro.RefundStatuses.Canceledstate. Omitted otherwise. - #
CreatedAtcreated_atCreatedAtcreatedAtcreatedAtcreated_atcreated_atcreatedAtDateTimeOffsettimestampTimeOffsetDateTimeDateTimeImmutabledatetimeTimeDateWhen the refund was created. - #
CustomDatacustom_dataCustomDatacustomDatacustomDatacustom_datacustom_datacustomDataDictionary<string, object?>objectmap[string]anyMap<String, Object>array<string, mixed>dict[str, Any]T::Hash[String, T.untyped]Record<string, unknown>View custom_data detailsClick or tap to expand
Your metadata, returned as string values. Omitted when empty. - #
FailedAtfailed_atFailedAtfailedAtfailedAtfailed_atfailed_atfailedAtDateTimeOffsettimestampTimeOffsetDateTimeDateTimeImmutabledatetimeTimeDateWhen the refund entered the"failed""failed"refund.StatusFailedRefundStatus.FAILED\Inttegro\Refund\Status::Failedinttegro.refund.Status.FAILEDInttegro::Refund::Status::FAILEDInttegro.RefundStatuses.Failedstate. Omitted otherwise. - Unique refund identifier with the
rf_prefix. - #
LineItemsline_itemsLineItemslineItemslineItemsline_itemsline_itemslineItemsList<object?>array[]anyList<Object>list<mixed>list[Any]T::Array[T.untyped]unknown[]View line_items attributesClick or tap to expand
Immutable allocations describing how much is refunded for each order line item.- Server-generated refund line-item ID with the
rli_prefix. - #
OrderLineItemorder_line_itemOrderLineItemorderLineItemorderLineItemorder_line_itemorder_line_itemorderLineItemDictionary<string, object?>objectmap[string]anyMap<String, Object>array<string, mixed>dict[str, Any]T::Hash[String, T.untyped]Record<string, unknown>View order_line_item attributesClick or tap to expand
Immutable snapshot of the original order line. Useorder_line_item.idto match the refund allocation to the order. Discriminate onOrder.Refunds[].LineItems[].OrderLineItem.Typeorder.refunds[].line_items[].order_line_item.typeOrder.Refunds[].LineItems[].OrderLineItem.Typeorder.refunds[].lineItems[].orderLineItem.typeorder.refunds[].lineItems[].orderLineItem.typeorder.refunds[].line_items[].order_line_item.typeorder.refunds[].line_items[].order_line_item.typeorder.refunds[].lineItems[].orderLineItem.typebefore reading the product, fee, or shipping branch. Omitted when the originating order cannot be resolved.- #
FeefeeFeefeefeefeefeefeeDictionary<string, object?>objectmap[string]anyMap<String, Object>array<string, mixed>dict[str, Any]T::Hash[String, T.untyped]Record<string, unknown>View fee attributesClick or tap to expand
Fee details captured on the order. Present only whenOrder.Refunds[].LineItems[].OrderLineItem.Typeorder.refunds[].line_items[].order_line_item.typeOrder.Refunds[].LineItems[].OrderLineItem.Typeorder.refunds[].lineItems[].orderLineItem.typeorder.refunds[].lineItems[].orderLineItem.typeorder.refunds[].line_items[].order_line_item.typeorder.refunds[].line_items[].order_line_item.typeorder.refunds[].lineItems[].orderLineItem.typeis"fee""fee""fee""fee"'fee''fee''fee'"fee".- #
DescriptiondescriptionDescriptiondescriptiondescriptiondescriptiondescriptiondescriptionstringstringstringStringstringstrStringstringFee description captured on the order. - Fee label captured on the order.
- Original order line-item ID with the
oli_prefix. - #
ProductproductProductproductproductproductproductproductDictionary<string, object?>objectmap[string]anyMap<String, Object>array<string, mixed>dict[str, Any]T::Hash[String, T.untyped]Record<string, unknown>View product attributesClick or tap to expand
Product details captured on the order. Present only whenOrder.Refunds[].LineItems[].OrderLineItem.Typeorder.refunds[].line_items[].order_line_item.typeOrder.Refunds[].LineItems[].OrderLineItem.Typeorder.refunds[].lineItems[].orderLineItem.typeorder.refunds[].lineItems[].orderLineItem.typeorder.refunds[].line_items[].order_line_item.typeorder.refunds[].line_items[].order_line_item.typeorder.refunds[].lineItems[].orderLineItem.typeis"product""product""product""product"'product''product''product'"product".- Source catalog product ID with the
prod_prefix. Omitted for inline products. - Product name captured on the order.
- #
QuantityquantityQuantityquantityquantityquantityquantityquantitylongintegerint64LongintintIntegernumberQuantity captured on the order. Present only whenOrder.Refunds[].LineItems[].OrderLineItem.Typeorder.refunds[].line_items[].order_line_item.typeOrder.Refunds[].LineItems[].OrderLineItem.Typeorder.refunds[].lineItems[].orderLineItem.typeorder.refunds[].lineItems[].orderLineItem.typeorder.refunds[].line_items[].order_line_item.typeorder.refunds[].line_items[].order_line_item.typeorder.refunds[].lineItems[].orderLineItem.typeis"product""product""product""product"'product''product''product'"product". - #
ShippingshippingShippingshippingshippingshippingshippingshippingDictionary<string, object?>objectmap[string]anyMap<String, Object>array<string, mixed>dict[str, Any]T::Hash[String, T.untyped]Record<string, unknown>View shipping attributesClick or tap to expand
Shipping details captured on the order. Present only whenOrder.Refunds[].LineItems[].OrderLineItem.Typeorder.refunds[].line_items[].order_line_item.typeOrder.Refunds[].LineItems[].OrderLineItem.Typeorder.refunds[].lineItems[].orderLineItem.typeorder.refunds[].lineItems[].orderLineItem.typeorder.refunds[].line_items[].order_line_item.typeorder.refunds[].line_items[].order_line_item.typeorder.refunds[].lineItems[].orderLineItem.typeis"shipping""shipping""shipping""shipping"'shipping''shipping''shipping'"shipping".- #
DescriptiondescriptionDescriptiondescriptiondescriptiondescriptiondescriptiondescriptionstringstringstringStringstringstrStringstringShipping description captured on the order. - Shipping label captured on the order.
"product""product""product""product"'product''product''product'"product","fee""fee""fee""fee"'fee''fee''fee'"fee", or"shipping""shipping""shipping""shipping"'shipping''shipping''shipping'"shipping".
- #
OriginalAmountPaidoriginal_amount_paidOriginalAmountPaidoriginalAmountPaidoriginalAmountPaidoriginal_amount_paidoriginal_amount_paidoriginalAmountPaidDictionary<string, object?>objectmap[string]anyMap<String, Object>array<string, mixed>dict[str, Any]T::Hash[String, T.untyped]Record<string, unknown>View original_amount_paid attributesClick or tap to expand
Amount originally paid for this order line allocation.- #
CurrencycurrencyCurrencycurrencycurrencycurrencycurrencycurrencystringstringstringStringstringstrStringstringLowercase currency code. - Positive amount in the smallest currency unit.
- #
ReasonreasonReasonreasonreasonreasonreasonreasonenumenumstring enumenumstring enumEnumT::Enumstring unionIndependent reason for refunding this line. Omitted when not provided. - #
ReasonDetailsreason_detailsReasonDetailsreasonDetailsreasonDetailsreason_detailsreason_detailsreasonDetailsstringstringstringStringstringstrStringstringLine-specific explanation. Omitted when not provided. - #
RefundAmountrefund_amountRefundAmountrefundAmountrefundAmountrefund_amountrefund_amountrefundAmountDictionary<string, object?>objectmap[string]anyMap<String, Object>array<string, mixed>dict[str, Any]T::Hash[String, T.untyped]Record<string, unknown>View refund_amount attributesClick or tap to expand
- #
OrderIdorder_idOrderIDorderIdorderIdorder_idorder_idorderIdstringstringstringStringstringstrStringstringPaid order covered by this refund, with theor_prefix. - #
ProcessingAtprocessing_atProcessingAtprocessingAtprocessingAtprocessing_atprocessing_atprocessingAtDateTimeOffsettimestampTimeOffsetDateTimeDateTimeImmutabledatetimeTimeDateWhen refund processing began. Omitted until processing starts. - #
ReasonreasonReasonreasonreasonreasonreasonreasonenumenumstring enumenumstring enumEnumT::Enumstring unionOverall refund reason, such as"item_returned""item_returned"refund.ReasonItemReturnedRefundReason.ITEM_RETURNED\Inttegro\Refund\Reason::ItemReturnedinttegro.refund.Reason.ITEM_RETURNEDInttegro::Refund::Reason::ITEM_RETURNEDInttegro.RefundReasons.ItemReturned,"order_canceled""order_canceled"refund.ReasonOrderCanceledRefundReason.ORDER_CANCELED\Inttegro\Refund\Reason::OrderCanceledinttegro.refund.Reason.ORDER_CANCELEDInttegro::Refund::Reason::ORDER_CANCELEDInttegro.RefundReasons.OrderCanceled, or"requested_by_customer""requested_by_customer"refund.ReasonRequestedByCustomerRefundReason.REQUESTED_BY_CUSTOMER\Inttegro\Refund\Reason::RequestedByCustomerinttegro.refund.Reason.REQUESTED_BY_CUSTOMERInttegro::Refund::Reason::REQUESTED_BY_CUSTOMERInttegro.RefundReasons.RequestedByCustomer. - #
ReasonDetailsreason_detailsReasonDetailsreasonDetailsreasonDetailsreason_detailsreason_detailsreasonDetailsstringstringstringStringstringstrStringstringOverall explanation. Omitted when not provided. - #
ReferencereferenceReferencereferencereferencereferencereferencereferencestringstringstringStringstringstrStringstringYour reconciliation reference. Omitted when not provided. - #
StatusstatusStatusstatusstatusstatusstatusstatusenumenumstring enumenumstring enumEnumT::Enumstring unionCurrent state:"canceled""canceled"refund.StatusCanceledRefundStatus.CANCELED\Inttegro\Refund\Status::Canceledinttegro.refund.Status.CANCELEDInttegro::Refund::Status::CANCELEDInttegro.RefundStatuses.Canceled,"failed""failed"refund.StatusFailedRefundStatus.FAILED\Inttegro\Refund\Status::Failedinttegro.refund.Status.FAILEDInttegro::Refund::Status::FAILEDInttegro.RefundStatuses.Failed,"pending""pending"refund.StatusPendingRefundStatus.PENDING\Inttegro\Refund\Status::Pendinginttegro.refund.Status.PENDINGInttegro::Refund::Status::PENDINGInttegro.RefundStatuses.Pending,"processing""processing"refund.StatusProcessingRefundStatus.PROCESSING\Inttegro\Refund\Status::Processinginttegro.refund.Status.PROCESSINGInttegro::Refund::Status::PROCESSINGInttegro.RefundStatuses.Processing, or"succeeded""succeeded"refund.StatusSucceededRefundStatus.SUCCEEDED\Inttegro\Refund\Status::Succeededinttegro.refund.Status.SUCCEEDEDInttegro::Refund::Status::SUCCEEDEDInttegro.RefundStatuses.Succeeded. - #
SucceededAtsucceeded_atSucceededAtsucceededAtsucceededAtsucceeded_atsucceeded_atsucceededAtDateTimeOffsettimestampTimeOffsetDateTimeDateTimeImmutabledatetimeTimeDateWhen the refund entered the"succeeded""succeeded"refund.StatusSucceededRefundStatus.SUCCEEDED\Inttegro\Refund\Status::Succeededinttegro.refund.Status.SUCCEEDEDInttegro::Refund::Status::SUCCEEDEDInttegro.RefundStatuses.Succeededstate. Omitted otherwise. - #
TotaltotalTotaltotaltotaltotaltotaltotalDictionary<string, object?>objectmap[string]anyMap<String, Object>array<string, mixed>dict[str, Any]T::Hash[String, T.untyped]Record<string, unknown>View total attributesClick or tap to expand
Sum of the requested line-item refund amounts.- #
CurrencycurrencyCurrencycurrencycurrencycurrencycurrencycurrencystringstringstringStringstringstrStringstringLowercase currency code. - Positive amount in the smallest currency unit.
- #
SealedAtsealed_atSealedAtsealedAtsealedAtsealed_atsealed_atsealedAtDateTimeOffset?timestamp*TimeOffsetDateTime?DateTimeImmutabledatetime | NoneT.nilable(Time)DateWhen the order was finalized and its economic fields were sealed for payment. A qualifying update can reopen it before payment activity starts.
#
ShippingshippingShippingshippingshippingshippingshippingshippingDictionary<string, object?>objectmap[string]anyMap<String, Object>array<string, mixed>dict[str, Any]T::Hash[String, T.untyped]Record<string, unknown>Present when shipping details were supplied. The current order response does not expose nested shipping fields.Click or tap to expand- #
StatusstatusStatusstatusstatusstatusstatusstatusOrderStatusstringStatusboolean requiresPayment() { … }stringLiteral['preparing', 'requires_payment', 'paid', 'completed', 'canceled', 'expired', 'unknown']Order::StatusOrderStatusCurrent order state:
Inttegro.OrderStatus.Preparing"preparing"order.StatusPreparingOrderStatus.PREPARING\Inttegro\Order\Status::Preparinginttegro.order.Status.PREPARINGInttegro::Order::Status::PREPARINGInttegro.OrderStatuses.Preparing,Inttegro.OrderStatus.RequiresPayment"requires_payment"order.StatusRequiresPaymentOrderStatus.REQUIRES_PAYMENT\Inttegro\Order\Status::RequiresPaymentinttegro.order.Status.REQUIRES_PAYMENTInttegro::Order::Status::REQUIRES_PAYMENTInttegro.OrderStatuses.RequiresPayment,Inttegro.OrderStatus.Paid"paid"order.StatusPaidOrderStatus.PAID\Inttegro\Order\Status::Paidinttegro.order.Status.PAIDInttegro::Order::Status::PAIDInttegro.OrderStatuses.Paid,Inttegro.OrderStatus.Completed"completed"order.StatusCompletedOrderStatus.COMPLETED\Inttegro\Order\Status::Completedinttegro.order.Status.COMPLETEDInttegro::Order::Status::COMPLETEDInttegro.OrderStatuses.Completed,Inttegro.OrderStatus.Canceled"canceled"order.StatusCanceledOrderStatus.CANCELED\Inttegro\Order\Status::Canceledinttegro.order.Status.CANCELEDInttegro::Order::Status::CANCELEDInttegro.OrderStatuses.Canceled,Inttegro.OrderStatus.Expired"expired"order.StatusExpiredOrderStatus.EXPIRED\Inttegro\Order\Status::Expiredinttegro.order.Status.EXPIREDInttegro::Order::Status::EXPIREDInttegro.OrderStatuses.Expired, orInttegro.OrderStatus.Unknown"unknown"order.StatusUnknownOrderStatus.UNKNOWN\Inttegro\Order\Status::Unknowninttegro.order.Status.UNKNOWNInttegro::Order::Status::UNKNOWNInttegro.OrderStatuses.Unknown.
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
- Exactly one of
CustomerIdcustomer_idCustomerIDcustomerIdcustomer_idcustomer_idcustomer_idcustomerIdorCustomerDatacustomer_dataCustomerDatacustomerDatacustomer_datacustomer_datacustomer_datacustomerDatais required. - Set
ExecutePaymentexecute_paymentExecutePaymentexecutePaymentexecute_paymentexecute_paymentexecute_paymentexecutePaymenttotruetruetruetruetrueTruetruetrueonly when a payment method is attached (PaymentMethodIdpayment_method_idPaymentMethodIDpaymentMethodIdpayment_method_idpayment_method_idpayment_method_idpaymentMethodIdorPaymentMethodDatapayment_method_dataPaymentMethodDatapaymentMethodDatapayment_method_datapayment_method_datapayment_method_datapaymentMethodData). Omit it or passfalsefalsefalsefalsefalseFalsefalsefalseto create the order first and charge it later. - Orders can contain at most 64 line items.
- Every line item in the request must use the same currency.
- Order totals are capped by currency:
"ghs""ghs"money.GHSCurrency.GHS\Inttegro\Money\Currency::GHSinttegro.money.Currency.GHSInttegro::Money::Currency::GHS"ghs"orders can total up to 100,000 in the currency’s smallest unit, and all other supported currencies can total up to 50,000 in the currency’s smallest unit. - If your business needs higher order limits, contact support before sending larger orders.
- Product line items support three valid shapes: inline product data,
LineItems[].Product.ProductIdline_items[].product.product_idLineItems[].Product.ProductIDlineItems[].product.productIdline_items[].product.product_idline_items[].product.product_idline_items[].product.product_idlineItems[].product.productIdplus explicitLineItems[].Product.Priceline_items[].product.priceLineItems[].Product.PricelineItems[].product.priceline_items[].product.priceline_items[].product.priceline_items[].product.pricelineItems[].product.price, orLineItems[].Product.ProductIdline_items[].product.product_idLineItems[].Product.ProductIDlineItems[].product.productIdline_items[].product.product_idline_items[].product.product_idline_items[].product.product_idlineItems[].product.productIdplusLineItems[].Product.PriceIdline_items[].product.price_idLineItems[].Product.PriceIDlineItems[].product.priceIdline_items[].product.price_idline_items[].product.price_idline_items[].product.price_idlineItems[].product.priceId. - When you send
LineItems[].Product.ProductIdline_items[].product.product_idLineItems[].Product.ProductIDlineItems[].product.productIdline_items[].product.product_idline_items[].product.product_idline_items[].product.product_idlineItems[].product.productId, Inttegro snapshots the current catalog product onto the order. Do not combine it with inline product fields such asLineItems[].Product.Nameline_items[].product.nameLineItems[].Product.NamelineItems[].product.nameline_items[].product.nameline_items[].product.nameline_items[].product.namelineItems[].product.name,LineItems[].Product.Typeline_items[].product.typeLineItems[].Product.TypelineItems[].product.typeline_items[].product.typeline_items[].product.typeline_items[].product.typelineItems[].product.type,LineItems[].Product.Aboutline_items[].product.aboutLineItems[].Product.AboutlineItems[].product.aboutline_items[].product.aboutline_items[].product.aboutline_items[].product.aboutlineItems[].product.about,LineItems[].Product.Referenceline_items[].product.referenceLineItems[].Product.ReferencelineItems[].product.referenceline_items[].product.referenceline_items[].product.referenceline_items[].product.referencelineItems[].product.reference,LineItems[].Product.TaxCodeline_items[].product.tax_codeLineItems[].Product.TaxCodelineItems[].product.taxCodeline_items[].product.tax_codeline_items[].product.tax_codeline_items[].product.tax_codelineItems[].product.taxCode, orLineItems[].Product.CustomDataline_items[].product.custom_dataLineItems[].Product.CustomDatalineItems[].product.customDataline_items[].product.custom_dataline_items[].product.custom_dataline_items[].product.custom_datalineItems[].product.customData. - When you send
LineItems[].Product.ProductIdline_items[].product.product_idLineItems[].Product.ProductIDlineItems[].product.productIdline_items[].product.product_idline_items[].product.product_idline_items[].product.product_idlineItems[].product.productId, you must also send eitherLineItems[].Product.Priceline_items[].product.priceLineItems[].Product.PricelineItems[].product.priceline_items[].product.priceline_items[].product.priceline_items[].product.pricelineItems[].product.priceorLineItems[].Product.PriceIdline_items[].product.price_idLineItems[].Product.PriceIDlineItems[].product.priceIdline_items[].product.price_idline_items[].product.price_idline_items[].product.price_idlineItems[].product.priceId. Do not send both. Inttegro does not infer the amount from the product’s default unit price. - Order-line IDs are generated by Inttegro. Do not send a product line’s
id; anyidsupplied inside a fee or shipping input is not preserved in the created order. CheckoutSettings.RedirectUrlcheckout_settings.redirect_urlCheckoutSettings.RedirectURLcheckoutSettings.redirectUrlcheckout_settings.redirect_urlcheckout_settings.redirect_urlcheckout_settings.redirect_urlcheckoutSettings.redirectUrlandCheckoutSettings.CancelUrlcheckout_settings.cancel_urlCheckoutSettings.CancelURLcheckoutSettings.cancelUrlcheckout_settings.cancel_urlcheckout_settings.cancel_urlcheckout_settings.cancel_urlcheckoutSettings.cancelUrlmust be HTTP or HTTPS URLs and must not already contain anorder_idquery parameter. Inttegro appends the created order ID to the final redirect.- When provided,
ReceiptNumberreceipt_numberReceiptNumberreceiptNumberreceipt_numberreceipt_numberreceipt_numberreceiptNumberis trimmed, must satisfy the same configured length limits asNumbernumberNumbernumbernumbernumbernumbernumber, and does not need to be unique.
Required attributes
OrderCreateRequestv13.1.0Go SDK requestCreateParamsv14.0.0Java SDK requestOrderCreateParamsv11.1.0PHP SDK requestv15.0.0Python SDK requestCreateNewCustomerInput or CreateExistingCustomerInputv15.0.0Ruby SDK requestT.any(Order::CreateNewCustomer, Order::CreateExistingCustomer)v13.0.0TypeScript SDK requestCreateOrderRequestv15.0.0#
LineItemsline_itemsLineItemslineItem(…)lineItemsline_itemsline_itemslineItemsList<LineItemParams>?array[]LineItemParamsOrderLineItemlist<mixed>list[LineItemInput | FeeLineItemInput | ShippingLineItemInput]T::Array[T.any(Product::LineItem, Shared::FeeLineItem, Shared::ShippingLineItem)]LineItemParams[]Cart contents. Provide at least one line item per order.Click or tap to expand- #
TypetypeTypetype(…)typetypetypetypeLineItemTypestringLineItemTypeLineItemTypestringLiteral['product', LineItemType.PRODUCT]Product::LineItemType'product' | 'fee' | 'shipping'Discriminator for each entry:Inttegro.LineItemType.Product"product""product"LineItemType.PRODUCT'product''product''product'Inttegro.LineItemTypes.Product,Inttegro.LineItemType.Fee"fee""fee"LineItemType.FEE'fee''fee''fee'Inttegro.LineItemTypes.Fee, orInttegro.LineItemType.Shipping"shipping""shipping"LineItemType.SHIPPING'shipping''shipping''shipping'Inttegro.LineItemTypes.Shipping. Matches the schemas in our OpenAPI spec. - #
ProductproductProductproduct(…)productproductproductproductProductDetailsParams?object*ProductLineItemParamsProductLineItemParamsarray<string, mixed>InlineDetailsInput | CatalogWithPriceDataInput | CatalogWithPriceReferenceInputT.any(Product::InlineDetails, Product::CatalogWithPriceData, Product::CatalogWithPriceReference, Product::CatalogWithCustomerSelectedPrice)ProductDetailsParamsView product attributesClick or tap to expand
Required whenLineItems[].Typeline_items[].typeLineItems[].TypelineItems[].typelineItems[].typeline_items[].typeline_items[].typelineItems[].typeisInttegro.LineItemType.Product"product""product"LineItemType.PRODUCT'product''product''product'Inttegro.LineItemTypes.Product. Use one of three shapes: inline product data,LineItems[].Product.ProductIdline_items[].product.product_idLineItems[].Product.ProductIDlineItems[].product.productIdlineItems[].product.productIdline_items[].product.product_idline_items[].product.product_idlineItems[].product.productIdwith explicitLineItems[].Product.Priceline_items[].product.priceLineItems[].Product.PricelineItems[].product.pricelineItems[].product.priceline_items[].product.priceline_items[].product.pricelineItems[].product.price, orLineItems[].Product.ProductIdline_items[].product.product_idLineItems[].Product.ProductIDlineItems[].product.productIdlineItems[].product.productIdline_items[].product.product_idline_items[].product.product_idlineItems[].product.productIdwithLineItems[].Product.PriceIdline_items[].product.price_idLineItems[].Product.PriceIDlineItems[].product.priceIdlineItems[].product.priceIdline_items[].product.price_idline_items[].product.price_idlineItems[].product.priceId.- #
CustomDatacustom_dataCustomDatacustomData(…)customDatacustom_datacustom_datacustomDataCustomDataInput?object*DataCustomDataarray<string, mixed>CustomDataT.nilable(CustomData)CustomDataView custom_data detailsClick or tap to expand
Key-value strings for your own custom data. Only used for inline product data. - #
PricepricePriceprice(…)pricepricepricepricePriceParams?objectInlineParamsPriceParamsarray<string, mixed>InlineParamsPrice::PriceParamsPriceParamsView price attributesClick or tap to expand
Per-unit price. Use this for inline product data or when overriding the amount for a catalog-backed product line item.- #
CurrencycurrencyCurrencycurrency(…)currencycurrencycurrencycurrencystringstringCurrencyStringstringstrMoney::CurrencyCurrencyLowercase ISO 4217 currency code. Supported values for order creation are"ghs""ghs"money.GHSCurrency.GHS\Inttegro\Money\Currency::GHSinttegro.money.Currency.GHSInttegro::Money::Currency::GHS"ghs","usd""usd"money.USDCurrency.USD\Inttegro\Money\Currency::USDinttegro.money.Currency.USDInttegro::Money::Currency::USD"usd","gbp""gbp"money.GBPCurrency.GBP\Inttegro\Money\Currency::GBPinttegro.money.Currency.GBPInttegro::Money::Currency::GBP"gbp","eur""eur"money.EURCurrency.EUR\Inttegro\Money\Currency::EURinttegro.money.Currency.EURInttegro::Money::Currency::EUR"eur", and"cny""cny"money.CNYCurrency.CNY\Inttegro\Money\Currency::CNYinttegro.money.Currency.CNYInttegro::Money::Currency::CNY"cny".
- #
PriceIdprice_idPriceIDpriceId(…)priceIdprice_idprice_idpriceIdstring?stringstringStringstringstrStringstringExisting catalog price to use for this line item. It must belong to the same product referenced byLineItems[].Product.ProductIdline_items[].product.product_idLineItems[].Product.ProductIDlineItems[].product.productIdlineItems[].product.productIdline_items[].product.product_idline_items[].product.product_idlineItems[].product.productId. Do not combine this withLineItems[].Product.Priceline_items[].product.priceLineItems[].Product.PricelineItems[].product.pricelineItems[].product.priceline_items[].product.priceline_items[].product.pricelineItems[].product.price. - #
ProductIdproduct_idProductIDproductId(…)productIdproduct_idproduct_idproductIdstring?stringstringStringstringstrStringstringExisting catalog product to snapshot onto the order line item. - #
TypetypeTypetype(…)typetypetypetypeProductType?stringTypeProductTypestringLiteral['physical', 'digital', 'service', 'voucher', 'custom', 'cause', ProductType.PHYSICAL, ProductType.DIGITAL, ProductType.SERVICE, ProductType.VOUCHER, ProductType.CUSTOM, ProductType.CAUSE]Product::TypeProductTypeInttegro.ProductType.Cause"cause"product.TypeCauseProductType.CAUSE\Inttegro\Product\Type::Causeinttegro.product.Type.CAUSEInttegro::Product::Type::CAUSEInttegro.ProductTypes.Cause,Inttegro.ProductType.Custom"custom"product.TypeCustomProductType.CUSTOM\Inttegro\Product\Type::Custominttegro.product.Type.CUSTOMInttegro::Product::Type::CUSTOMInttegro.ProductTypes.Custom,Inttegro.ProductType.Digital"digital"product.TypeDigitalProductType.DIGITAL\Inttegro\Product\Type::Digitalinttegro.product.Type.DIGITALInttegro::Product::Type::DIGITALInttegro.ProductTypes.Digital,Inttegro.ProductType.Physical"physical"product.TypePhysicalProductType.PHYSICAL\Inttegro\Product\Type::Physicalinttegro.product.Type.PHYSICALInttegro::Product::Type::PHYSICALInttegro.ProductTypes.Physical,Inttegro.ProductType.Service"service"product.TypeServiceProductType.SERVICE\Inttegro\Product\Type::Serviceinttegro.product.Type.SERVICEInttegro::Product::Type::SERVICEInttegro.ProductTypes.Service, orInttegro.ProductType.Voucher"voucher"product.TypeVoucherProductType.VOUCHER\Inttegro\Product\Type::Voucherinttegro.product.Type.VOUCHERInttegro::Product::Type::VOUCHERInttegro.ProductTypes.Voucher. Only used for inline product data.
- #
FeefeeFeefee(…)feefeefeefeeFeeDetailsParams?object*FeeLineItemParamsFeeLineItemParamsarray<string, mixed>FeeDetailsInputShared::FeeDetailsFeeLineItemParamsView fee attributesClick or tap to expand
Required whenLineItems[].Typeline_items[].typeLineItems[].TypelineItems[].typelineItems[].typeline_items[].typeline_items[].typelineItems[].typeisInttegro.LineItemType.Fee"fee""fee"LineItemType.FEE'fee''fee''fee'Inttegro.LineItemTypes.Fee. Use this for service or technology charges.- #
DescriptiondescriptionDescriptiondescription(…)descriptiondescriptiondescriptiondescriptionstring?stringstringStringstringstrT.nilable(String)stringExplain why the fee is being charged. - #
AmountamountAmountamount(…)amountamountamountamountAmountParams?objectAmountParamsAmountParamsarray<string, mixed>InlineParamsMoney::AmountParamsAmountParamsView amount attributesClick or tap to expand
Fee amount, usingAmountParamsAmountParamsAmountParamsAmountParamsAmountParamsAmountParamsAmountParamsAmountParams.
- #
ShippingshippingShippingshipping(…)shippingshippingshippingshippingShippingDetailsParams?object*ShippingLineItemParamsShippingLineItemParamsarray<string, mixed>ShippingDetailsInputShared::ShippingDetailsShippingLineItemParamsView shipping attributesClick or tap to expand
Required whenLineItems[].Typeline_items[].typeLineItems[].TypelineItems[].typelineItems[].typeline_items[].typeline_items[].typelineItems[].typeisInttegro.LineItemType.Shipping"shipping""shipping"LineItemType.SHIPPING'shipping''shipping''shipping'Inttegro.LineItemTypes.Shipping. Captures fulfillment charges.- #
FeefeeFeefee(…)feefeefeefeeAmountParams?objectAmountParamsAmountParamsarray<string, mixed>InlineParamsMoney::AmountParamsAmountParamsView fee attributesClick or tap to expand
Shipping cost, usingAmountParamsAmountParamsAmountParamsAmountParamsAmountParamsAmountParamsAmountParamsAmountParams.
#
CustomerDatacustomer_dataCustomerDatacustomerData(…)customerDatacustomer_datacustomer_datacustomerDataCustomerData?object*DataCustomerDataarray<string, mixed>DataInputCustomer::DataCustomerDataInline customer profile for first-time buyers. Mutually exclusive withCustomerIdcustomer_idCustomerIDcustomerIdcustomerIdcustomer_idcustomer_idcustomerId.Click or tap to expand- #
EmailAddressemail_addressEmailemail(…)emailAddressemail_addressemail_addressemailAddressstring?stringstringStringstringstrT.nilable(String)stringPrimary email—used for invoices, receipts, and payment notifications. - #
PhoneNumberphone_numberPhoneNumberphoneNumber(…)phoneNumberphone_numberphone_numberphoneNumberstring?stringstringStringstringstrT.nilable(String)stringPhone number in international format so we can deliver OTPs or status updates. - #
CustomDatacustom_dataCustomDatacustomData(…)customDatacustom_datacustom_datacustomDataCustomDataInput?object*InputCustomDataInputarray<string, mixed>CustomDataInputT.nilable(CustomDataInput)CustomDataInputView custom_data detailsClick or tap to expand
Free-form key/value strings for attaching custom attributes (e.g., customer segment).
- #
CustomerIdcustomer_idCustomerIDcustomerId(…)customerIdcustomer_idcustomer_idcustomerIdstring?stringstringStringstringstrStringstringReference an existing customer. Mutually exclusive with
CustomerDatacustomer_dataCustomerDatacustomerDatacustomer_datacustomer_datacustomer_datacustomerData.
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,
},
},
],
}LineItems[].Product.ProductIdline_items[].product.product_idLineItems[].Product.ProductIDlineItems[].product.productIdline_items[].product.product_idline_items[].product.product_idline_items[].product.product_idlineItems[].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[].Productline_items[].productLineItems[].ProductlineItems[].productline_items[].productline_items[].productline_items[].productlineItems[].product payload with either catalog-backed shape shown above.Optional attributes
OrderCreateRequestv13.1.0Go SDK requestCreateParamsv14.0.0Java SDK requestOrderCreateParamsv11.1.0PHP SDK requestv15.0.0Python SDK requestCreateNewCustomerInput or CreateExistingCustomerInputv15.0.0Ruby SDK requestT.any(Order::CreateNewCustomer, Order::CreateExistingCustomer)v13.0.0TypeScript SDK requestCreateOrderRequestv15.0.0#
RequestMetarequest_metaRequestMetarequestMeta(…)requestMetarequest_metarequest_metarequestMetaRequestMeta?object*MetaRequestMetaarray<string, mixed>CreateNewCustomerInputRequestMetaT.nilable(Order::CreateNewCustomerRequestMeta)MetaRequest-specific controls that do not change the order being created.Click or tap to expand- #
IdempotencyKeyidempotency_keyIdempotencyKeyidempotencyKey(…)idempotencyKeyidempotency_keyidempotency_keyidempotencyKeystringstringstringStringstringstrT.nilable(String)stringOptional request key for this logical order creation.
- #
PaymentMethodIdpayment_method_idPaymentMethodIDpaymentMethodId(…)paymentMethodIdpayment_method_idpayment_method_idpaymentMethodIdstring?stringstringStringstringstrT.nilable(String)stringID of a saved payment method to charge. Only works with
CustomerIdcustomer_idCustomerIDcustomerIdcustomer_idcustomer_idcustomer_idcustomerId—the method must belong to that customer. - #
ReceiptNumberreceipt_numberReceiptNumberreceiptNumber(…)receiptNumberreceipt_numberreceipt_numberreceiptNumberstringstringstringStringstringstrT.nilable(String)string - #
StatementDescriptorstatement_descriptorStatementDescriptorstatementDescriptor(…)statementDescriptorstatement_descriptorstatement_descriptorstatementDescriptorstring?stringstringStringstringstrT.nilable(String)stringExact descriptor shown on the customer’s bank or mobile money statement. Mutually exclusive with
StatementDescriptorPrefixstatement_descriptor_prefixStatementDescriptorPrefixstatementDescriptorPrefixstatement_descriptor_prefixstatement_descriptor_prefixstatement_descriptor_prefixstatementDescriptorPrefix. - #
StatementDescriptorPrefixstatement_descriptor_prefixStatementDescriptorPrefixstatementDescriptorPrefix(…)statementDescriptorPrefixstatement_descriptor_prefixstatement_descriptor_prefixstatementDescriptorPrefixstring?stringstringStringstringstrT.nilable(String)stringStatic prefix, between 2 and 10 characters, used to build the descriptor as
prefix*order_id. Inttegro appends enough characters from the generated order ID to fit the final descriptor limit. #
PaymentMethodDatapayment_method_dataPaymentMethodDatapaymentMethodData(…)paymentMethodDatapayment_method_datapayment_method_datapaymentMethodDataPaymentMethodData?object*DataPaymentMethodDataarray<string, mixed>DataInputT.nilable(Order::CreateNewCustomerPaymentMethodData)PaymentMethodDataInline payment details for new payment instruments.Click or tap to expand- #
TypetypeTypetype(…)typetypetypetypePaymentMethodTypeenumTypePaymentMethodTypestring enumLiteral['mobile_money', PaymentMethodType.MOBILE_MONEY]Order::CreateNewCustomerPaymentMethodDataType'mobile_money'Currently onlyInttegro.PaymentMethodType.MobileMoney"mobile_money"paymentmethod.TypeMobileMoneyPaymentMethodType.MOBILE_MONEY\Inttegro\PaymentMethod\Type::MobileMoneyinttegro.payment_method.Type.MOBILE_MONEYInttegro::PaymentMethod::Type::MOBILE_MONEYInttegro.PaymentMethodTypes.MobileMoneyis supported for inline collection. - #
MobileMoneymobile_moneyMobileMoneymobileMoney(…)mobileMoneymobile_moneymobile_moneymobileMoneyMobileMoney?object*MobileMoneyParamsMobileMoneyParamsarray<string, mixed>DataInputMobileMoneyPaymentMethod::MobileMoneyInputMobileMoneyDetailsView mobile_money attributesClick or tap to expand
Required whenPaymentMethodData.Typepayment_method_data.typePaymentMethodData.TypepaymentMethodData.typepaymentMethodData.typepayment_method_data.typepayment_method_data.typepaymentMethodData.typeisInttegro.PaymentMethodType.MobileMoney"mobile_money"paymentmethod.TypeMobileMoneyPaymentMethodType.MOBILE_MONEY\Inttegro\PaymentMethod\Type::MobileMoneyinttegro.payment_method.Type.MOBILE_MONEYInttegro::PaymentMethod::Type::MOBILE_MONEYInttegro.PaymentMethodTypes.MobileMoney. Provides wallet details.- #
NetworknetworkNetworknetwork(…)networknetworknetworknetworkMobileMoneyNetworkenumMobileMoneyNetworkMobileMoneyNetworkstring enumLiteral['airtel', 'mtn', 'telecel', 'vodafone', MobileMoneyNetwork.AIRTEL, MobileMoneyNetwork.MTN, MobileMoneyNetwork.TELECEL, MobileMoneyNetwork.VODAFONE]Shared::MobileMoneyNetworkMobileMoneyNetworkWallet network:Inttegro.MobileMoneyNetwork.Airtel"airtel"paymentmethod.MobileMoneyNetworkAirtelMobileMoneyNetwork.AIRTEL\Inttegro\PaymentMethod\MobileMoneyNetwork::Airtelinttegro.payment_method.MobileMoneyNetwork.AIRTELInttegro::Shared::MobileMoneyNetwork::AIRTELInttegro.MobileMoneyNetworks.Airtel,Inttegro.MobileMoneyNetwork.MTN"mtn"paymentmethod.MobileMoneyNetworkMTNMobileMoneyNetwork.MTN\Inttegro\PaymentMethod\MobileMoneyNetwork::MTNinttegro.payment_method.MobileMoneyNetwork.MTNInttegro::Shared::MobileMoneyNetwork::MTNInttegro.MobileMoneyNetworks.MTN,Inttegro.MobileMoneyNetwork.Telecel"telecel"paymentmethod.MobileMoneyNetworkTelecelMobileMoneyNetwork.TELECEL\Inttegro\PaymentMethod\MobileMoneyNetwork::Telecelinttegro.payment_method.MobileMoneyNetwork.TELECELInttegro::Shared::MobileMoneyNetwork::TELECELInttegro.MobileMoneyNetworks.Telecel, orInttegro.MobileMoneyNetwork.Vodafone"vodafone"paymentmethod.MobileMoneyNetworkVodafoneMobileMoneyNetwork.VODAFONE\Inttegro\PaymentMethod\MobileMoneyNetwork::Vodafoneinttegro.payment_method.MobileMoneyNetwork.VODAFONEInttegro::Shared::MobileMoneyNetwork::VODAFONEInttegro.MobileMoneyNetworks.Vodafone. - #
AccountNumberaccount_numberAccountNumberaccountNumber(…)accountNumberaccount_numberaccount_numberaccountNumberstring?stringstringStringstringstrStringstringSubscriber MSISDN in international format (e.g.,+23354...).
- #
ExecutePaymentexecute_paymentExecutePaymentexecutePayment(…)executePaymentexecute_paymentexecute_paymentexecutePaymentbool?boolean*boolBooleanboolboolT.nilable(T::Boolean)booleanWhether to charge the order immediately. Defaults to
falsefalsefalsefalsefalseFalsefalsefalse—you’ll call/orders/paylater. - #
FinalizefinalizeFinalizefinalizeOrder(…)finalizefinalizefinalizefinalizebool?boolean*boolBooleanboolboolT.nilable(T::Boolean)booleanSet to
truetruetruetruetrueTruetruetrueto seal the order and generate its hosted invoice. When omitted orfalsefalsefalsefalsefalseFalsefalsefalse, an order without executable payment details remains a draft and its response omitsOrder.Invoiceorder.invoiceOrder.Invoiceorder.invoiceorder.invoiceorder.invoiceorder.invoiceorder.invoice. #
InvoiceSettingsinvoice_settingsInvoiceSettingsinvoiceSettingsinvoiceSettingsinvoice_settingsinvoice_settingsinvoiceSettingsDictionary<string, object?>objectmap[string]anyMap<String, Object>array<string, mixed>InvoiceSettingsInputT.nilable(Shared::InvoiceSettings)InvoiceSettingsOptional customer-facing invoice content.Click or tap to expand- #
CustomDatacustom_dataCustomDatacustomDatacustomDatacustom_datacustom_datacustomDataDictionary<string, object?>objectmap[string]anyMap<String, Object>array<string, mixed>CustomDataT.nilable(CustomData)CustomDataView custom_data detailsClick or tap to expand
String key-value data attached to the invoice.
- #
PaymentDueAfterpayment_due_afterPaymentDueAfterpaymentDueAfterpaymentDueAfterpayment_due_afterpayment_due_afterpaymentDueAfterDateTimeOffsettimestampTimeOffsetDateTimeDateTimeImmutabledatetimeT.nilable(Time)DateRFC 3339 timestamp for when payment is due. The order response exposes it as
Order.PaymentDueAtorder.payment_due_atOrder.PaymentDueAtorder.paymentDueAtorder.payment_due_atorder.payment_due_atorder.payment_due_atorder.paymentDueAtwhen set. #
CustomDatacustom_dataCustomDatacustomData(…)customDatacustom_datacustom_datacustomDataCustomData?object*DataCustomDataarray<string, mixed>CustomDataT.nilable(CustomData)CustomDataClick or tap to expandArbitrary string key-value pairs for application-specific needs. Attach internal order IDs, fulfillment workflows, tracking identifiers, or any metadata your system requires. Maximum size when serialized: 25 KB. See the Custom Data guide for best practices.
#
CheckoutSettingscheckout_settingsCheckoutSettingscheckoutSettings(…)checkoutSettingscheckout_settingscheckout_settingscheckoutSettingsCheckoutSettings?object*SettingsCheckoutSettingsarray<string, mixed>CreateNewCustomerInputCheckoutSettingsT.nilable(Order::CreateNewCustomerCheckoutSettings){ … }Checkout configuration for this order. Strongly recommended to provide bothCheckoutSettings.RedirectUrlcheckout_settings.redirect_urlCheckoutSettings.RedirectURLcheckoutSettings.redirectUrlcheckoutSettings.redirectUrlcheckout_settings.redirect_urlcheckout_settings.redirect_urlcheckoutSettings.redirectUrlandCheckoutSettings.CancelUrlcheckout_settings.cancel_urlCheckoutSettings.CancelURLcheckoutSettings.cancelUrlcheckoutSettings.cancelUrlcheckout_settings.cancel_urlcheckout_settings.cancel_urlcheckoutSettings.cancelUrlfor a delightful customer experience.Click or tap to expand- #
RedirectUrlredirect_urlRedirectURLredirectUrl(…)redirectUrlredirect_urlredirect_urlredirectUrlstring?stringstringStringstringstrT.nilable(String)stringURL where customers land after completing payment. Include order tracking parameters to show order status and next steps. - #
CancelUrlcancel_urlCancelURLcancelUrl(…)cancelUrlcancel_urlcancel_urlcancelUrlstring?stringstringStringstringstrT.nilable(String)stringURL where customers land if they abandon checkout without paying. Use this to show incomplete order details or offer alternative payment methods.
#
BillingDetailsbilling_detailsBillingDetailsbillingDetails(…)billingDetailsbilling_detailsbilling_detailsbillingDetailsBillingDetails?objectBillingDetailsBillingDetailsarray<string, mixed>BillingDetailsInputT.nilable(Shared::BillingDetails)BillingDetailsContact info for invoicing and receipt delivery.Click or tap to expand- #
EmailAddressemail_addressEmailemail(…)emailAddressemail_addressemail_addressemailAddressstring?stringstringStringstringstrT.nilable(String)stringBilling email address. - #
PhoneNumberphone_numberPhoneNumberphoneNumber(…)phoneNumberphone_numberphone_numberphoneNumberstring?stringstringStringstringstrT.nilable(String)stringBilling phone number. - #
AddressaddressAddressaddress(…)addressaddressaddressaddressAddress?objectAddressAddressarray<string, mixed>AddressInputT.nilable(Shared::Address)AddressView address attributesClick or tap to expand
Optional postal address for invoices.- #
PhoneNumberphone_numberPhoneNumberphoneNumber(…)phoneNumberphone_numberphone_numberphoneNumberstring?stringstringStringstringstrT.nilable(String)stringContact phone for delivery or verification.
#
ShippingshippingShippingshipping(…)shippingshippingshippingshippingShipping?object*ShippingShippingarray<string, mixed>ShippingInputT.nilable(Shared::Shipping)ShippingOptional shipping destination for physical fulfillment.Click or tap to expand- #
AddressaddressAddressaddress(…)addressaddressaddressaddressAddress?objectAddressAddressarray<string, mixed>AddressInputShared::AddressAddressView address attributesClick or tap to expand
Where the package should go. UsesAddressParamsAddressParamsAddressParamsAddressParamsAddressParamsAddressParamsAddressParamsAddressParams.- #
PhoneNumberphone_numberPhoneNumberphoneNumber(…)phoneNumberphone_numberphone_numberphoneNumberstring?stringstringStringstringstrT.nilable(String)stringPhone number for delivery coordination.
#
PayoutSettingspayout_settingsPayoutSettingspayoutSettings(…)payoutSettingspayout_settingspayout_settingspayoutSettingsOrderPayoutSettings?object*PayoutSettingsOrderPayoutSettingsarray<string, mixed>PayoutSettingsRequestT.nilable(Order::PayoutSettingsRequest)OrderPayoutSettingsOrder-specific payout configuration. Overrides your application-level payout settings for this order—useful for marketplace scenarios where different orders route to different sellers.Click or tap to expandView destination attributesClick or tap to expand
Where funds from this order should be paid out.- #
FinancialAccountIdfinancial_account_idFinancialAccountIDfinancialAccountId(…)financialAccountIdfinancial_account_idfinancial_account_idfinancialAccountIdstring?stringstringStringstringstrStringstringID of an existing financial account to receive the payout. The account must exist and have push capability enabled. Create financial accounts via the dashboard or [Financial Accounts API](/api/financial-accounts).
- #
EnableFxenable_fxEnableFXenableFX(…)enableFxenable_fxenable_fxenableFxbool?boolean*boolBooleanboolLiteral[False]T.nilable(T::Boolean)booleanOptional compatibility flag. Omit it or set it tofalsefalsefalsefalsefalseFalsefalsefalse;truetruetruetruetrueTruetruetrueis rejected because cross-currency payouts are not currently available.
Request
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"
}
}
}'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",
},
},
})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
}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",
),
),
))<?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',
],
],
]);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",
},
}
)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);
}
}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",
},
},
});{
"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
ResourceSearchRequestv13.1.0Go SDK requestParamsv14.0.0Java SDK requestResourceSearchRequestv11.1.0PHP SDK requestResourceSearchRequestv15.0.0Python SDK requestRequestv15.0.0Ruby SDK requestSearch::Requestv13.0.0TypeScript SDK requestResourceSearchRequestv15.0.0Response
Returns a typed search page with discovery summaries, requested facet counts, page and total counts, an optionalNextCursornext_cursorNextCursornextCursornextCursornext_cursornext_cursornextCursor, and FreshnessfreshnessFreshnessfreshnessfreshnessfreshnessfreshnessfreshness metadata. Read the canonical order before acting on a result.Request
curl https://api.inttegro.com/orders/search \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "text": "INV-1042" }'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)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
}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)<?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);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)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);
}
}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);{
"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:
- Already has a payment method: Just send
OrderIdorder_idOrderIDorderIdorder_idorder_idorder_idorderId—we’ll charge the attached method. - Swap to a different saved method: Send
OrderIdorder_idOrderIDorderIdorder_idorder_idorder_idorderIdandPaymentMethodIdpayment_method_idPaymentMethodIDpaymentMethodIdpayment_method_idpayment_method_idpayment_method_idpaymentMethodId. - Use a new payment method once: Send
OrderIdorder_idOrderIDorderIdorder_idorder_idorder_idorderIdandPaymentMethodDatapayment_method_dataPaymentMethodDatapaymentMethodDatapayment_method_datapayment_method_datapayment_method_datapaymentMethodData. - Offline payment: Send
OrderIdorder_idOrderIDorderIdorder_idorder_idorder_idorderIdand setPaidOutOfBandpaid_out_of_bandPaidOutOfBandpaidOutOfBandpaid_out_of_bandpaid_out_of_bandpaid_out_of_bandpaidOutOfBandtotruetruetruetruetrueTruetruetrue—this marks the payment as received outside Inttegro (cash, bank transfer, check). Complete the order separately when fulfillment is done.
Rules
- Pass either
PaymentMethodIdpayment_method_idPaymentMethodIDpaymentMethodIdpayment_method_idpayment_method_idpayment_method_idpaymentMethodId,PaymentMethodDatapayment_method_dataPaymentMethodDatapaymentMethodDatapayment_method_datapayment_method_datapayment_method_datapaymentMethodData, orPaidOutOfBandpaid_out_of_bandPaidOutOfBandpaidOutOfBandpaid_out_of_bandpaid_out_of_bandpaid_out_of_bandpaidOutOfBand, never multiple. PaidOutOfBandpaid_out_of_bandPaidOutOfBandpaidOutOfBandpaid_out_of_bandpaid_out_of_bandpaid_out_of_bandpaidOutOfBandis mutually exclusive with payment method parameters.- Any
PaymentMethodIdpayment_method_idPaymentMethodIDpaymentMethodIdpayment_method_idpayment_method_idpayment_method_idpaymentMethodIdmust belong to the order’s customer. - The order must be
Inttegro.OrderStatus.Preparing"preparing"order.StatusPreparingOrderStatus.PREPARING\Inttegro\Order\Status::Preparinginttegro.order.Status.PREPARINGInttegro::Order::Status::PREPARINGInttegro.OrderStatuses.PreparingorInttegro.OrderStatus.RequiresPayment"requires_payment"order.StatusRequiresPaymentOrderStatus.REQUIRES_PAYMENT\Inttegro\Order\Status::RequiresPaymentinttegro.order.Status.REQUIRES_PAYMENTInttegro::Order::Status::REQUIRES_PAYMENTInttegro.OrderStatuses.RequiresPayment. Paid, completed, canceled, expired, and unknown orders are not payable. - A successful response can still require customer action. Inspect
Order.Payment.Statusorder.payment.statusOrder.Payment.Statusorder.payment.statusorder.payment.statusorder.payment.statusorder.payment.statusorder.payment.statusandOrder.Payment.NextActionorder.payment.next_actionOrder.Payment.NextActionorder.payment.nextActionorder.payment.next_actionorder.payment.next_actionorder.payment.next_actionorder.payment.nextAction; do not infer success from HTTP200alone.
Required attributes
OrderPayRequestv13.1.0Go SDK requestPayParamsv14.0.0Java SDK requestOrderPayParamsv11.1.0PHP SDK requestv15.0.0Python SDK requestPayRequestv15.0.0Ruby SDK requestOrder::PayRequestv13.0.0TypeScript SDK requestPayOrderv15.0.0Optional attributes
OrderPayRequestv13.1.0Go SDK requestPayParamsv14.0.0Java SDK requestOrderPayParamsv11.1.0PHP SDK requestv15.0.0Python SDK requestPayRequestv15.0.0Ruby SDK requestOrder::PayRequestv13.0.0TypeScript SDK requestPayOrderv15.0.0- #
PaymentMethodIdpayment_method_idPaymentMethodIDpaymentMethodId(…)paymentMethodIdpayment_method_idpayment_method_idpaymentMethodIdstring?stringstringStringstringstrT.nilable(String)stringID of a saved payment method belonging to this order’s customer.
#
PaymentMethodDatapayment_method_dataPaymentMethodDatapaymentMethodData(…)paymentMethodDatapayment_method_datapayment_method_datapaymentMethodDataPaymentMethodData?object*DataPaymentMethodDataarray<string, mixed>DataInputT.nilable(Order::PayPaymentMethodData)PaymentMethodDataNew payment method details to charge.Click or tap to expand- #
TypetypeTypetype(…)typetypetypetypePaymentMethodTypeenumTypePaymentMethodTypestring enumLiteral['mobile_money', PaymentMethodType.MOBILE_MONEY]Order::PayPaymentMethodDataType'mobile_money'Currently onlyInttegro.PaymentMethodType.MobileMoney"mobile_money"paymentmethod.TypeMobileMoneyPaymentMethodType.MOBILE_MONEY\Inttegro\PaymentMethod\Type::MobileMoneyinttegro.payment_method.Type.MOBILE_MONEYInttegro::PaymentMethod::Type::MOBILE_MONEYInttegro.PaymentMethodTypes.MobileMoneyis accepted when supplying inline details. - #
MobileMoneymobile_moneyMobileMoneymobileMoney(…)mobileMoneymobile_moneymobile_moneymobileMoneyMobileMoney?object*MobileMoneyParamsMobileMoneyParamsarray<string, mixed>DataInputMobileMoneyPaymentMethod::MobileMoneyInputMobileMoneyDetailsView mobile_money attributesClick or tap to expand
Required whenPaymentMethodData.Typepayment_method_data.typePaymentMethodData.TypepaymentMethodData.typepaymentMethodData.typepayment_method_data.typepayment_method_data.typepaymentMethodData.typeisInttegro.PaymentMethodType.MobileMoney"mobile_money"paymentmethod.TypeMobileMoneyPaymentMethodType.MOBILE_MONEY\Inttegro\PaymentMethod\Type::MobileMoneyinttegro.payment_method.Type.MOBILE_MONEYInttegro::PaymentMethod::Type::MOBILE_MONEYInttegro.PaymentMethodTypes.MobileMoney. UsesMobileMoneyParamsMobileMoneyParamsMobileMoneyParamsMobileMoneyParamsMobileMoneyParamsMobileMoneyParamsMobileMoneyParamsMobileMoneyParams.- #
NetworknetworkNetworknetwork(…)networknetworknetworknetworkMobileMoneyNetworkenumMobileMoneyNetworkMobileMoneyNetworkstring enumLiteral['airtel', 'mtn', 'telecel', 'vodafone', MobileMoneyNetwork.AIRTEL, MobileMoneyNetwork.MTN, MobileMoneyNetwork.TELECEL, MobileMoneyNetwork.VODAFONE]Shared::MobileMoneyNetworkMobileMoneyNetworkWallet network:Inttegro.MobileMoneyNetwork.Airtel"airtel"paymentmethod.MobileMoneyNetworkAirtelMobileMoneyNetwork.AIRTEL\Inttegro\PaymentMethod\MobileMoneyNetwork::Airtelinttegro.payment_method.MobileMoneyNetwork.AIRTELInttegro::Shared::MobileMoneyNetwork::AIRTELInttegro.MobileMoneyNetworks.Airtel,Inttegro.MobileMoneyNetwork.MTN"mtn"paymentmethod.MobileMoneyNetworkMTNMobileMoneyNetwork.MTN\Inttegro\PaymentMethod\MobileMoneyNetwork::MTNinttegro.payment_method.MobileMoneyNetwork.MTNInttegro::Shared::MobileMoneyNetwork::MTNInttegro.MobileMoneyNetworks.MTN,Inttegro.MobileMoneyNetwork.Telecel"telecel"paymentmethod.MobileMoneyNetworkTelecelMobileMoneyNetwork.TELECEL\Inttegro\PaymentMethod\MobileMoneyNetwork::Telecelinttegro.payment_method.MobileMoneyNetwork.TELECELInttegro::Shared::MobileMoneyNetwork::TELECELInttegro.MobileMoneyNetworks.Telecel, orInttegro.MobileMoneyNetwork.Vodafone"vodafone"paymentmethod.MobileMoneyNetworkVodafoneMobileMoneyNetwork.VODAFONE\Inttegro\PaymentMethod\MobileMoneyNetwork::Vodafoneinttegro.payment_method.MobileMoneyNetwork.VODAFONEInttegro::Shared::MobileMoneyNetwork::VODAFONEInttegro.MobileMoneyNetworks.Vodafone. - #
AccountNumberaccount_numberAccountNumberaccountNumber(…)accountNumberaccount_numberaccount_numberaccountNumberstring?stringstringStringstringstrStringstringWallet MSISDN in international or local format (we normalize it).
- #
PaidOutOfBandpaid_out_of_bandPaidOutOfBandpaidOutOfBand(…)paidOutOfBandpaid_out_of_bandpaid_out_of_bandpaidOutOfBandbool?boolean*boolBooleanboolboolT.nilable(T::Boolean)booleanSet to
truetruetruetruetrueTruetruetruewhen payment was received outside Inttegro (cash, bank transfer, check). Marks the payment as paid offline and completes the payment immediately. Mutually exclusive withPaymentMethodIdpayment_method_idPaymentMethodIDpaymentMethodIdpayment_method_idpayment_method_idpayment_method_idpaymentMethodIdandPaymentMethodDatapayment_method_dataPaymentMethodDatapaymentMethodDatapayment_method_datapayment_method_datapayment_method_datapaymentMethodData. Defaults tofalsefalsefalsefalsefalseFalsefalsefalse.
Request
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"
}
}
}'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",
},
},
})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
}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",
),
),
))<?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',
],
],
]);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",
},
}
)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);
}
}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",
},
},
});{
"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
PaymentIdpayment_idPaymentIDpaymentIdpayment_idpayment_idpayment_idpaymentId from Order.Payment.Idorder.payment.idOrder.Payment.IDorder.payment.idorder.payment.idorder.payment.idorder.payment.idorder.payment.id and ConfirmationIdconfirmation_idConfirmationIDconfirmationIdconfirmation_idconfirmation_idconfirmation_idconfirmationId from Order.Payment.NextAction.ConfirmPayment.Request.Idorder.payment.next_action.confirm_payment.request.idOrder.Payment.NextAction.ConfirmPayment.Request.IDorder.payment.nextAction.confirmPayment.request.idorder.payment.next_action.confirm_payment.request.idorder.payment.next_action.confirm_payment.request.idorder.payment.next_action.confirm_payment.request.idorder.payment.nextAction.confirmPayment.request.id in the preceding create, pay, or request-confirmation response. The response always uses the OrderorderOrderorderorderorderorderorder envelope; an actionable error can include both OrderorderOrderorderorderorderorderorder and an error object.Required attributes
OrderConfirmPaymentRequestv13.1.0Go SDK requestConfirmParamsv14.0.0Java SDK requestOrderConfirmParamsv11.1.0PHP SDK requestv15.0.0Python SDK requestConfirmRequestv15.0.0Ruby SDK requestPayment::ConfirmRequestv13.0.0TypeScript SDK requestConfirmPaymentRequestv15.0.0- #
ConfirmationIdconfirmation_idConfirmationIDconfirmationIdconfirmationIdconfirmation_idconfirmation_idconfirmationIdstringstringstringStringstringstrStringstringID of the confirmation request that issued the token.
- #
PaymentIdpayment_idPaymentIDpaymentIdpaymentIdpayment_idpayment_idpaymentIdstringstringstringStringstringstrStringstringID of the payment attached to the order.
Request
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"
}'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",
})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
}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",
))<?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',
]);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"
)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);
}
}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",
});{
"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
curl https://api.inttegro.com/orders/request_confirmation \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"order_id": "or_kAVwBsk6EhQVv2YBUhYAqMf0lktEoQ0S7ZR8y2xi"
}'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",
})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
}import os
from inttegro import InttegroClient
client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])
result = client.orders.request_confirmation(
"or_kAVwBsk6EhQVv2YBUhYAqMf0lktEoQ0S7ZR8y2xi"
)<?php
use Inttegro\Client;
$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->orders->requestConfirmation("or_kAVwBsk6EhQVv2YBUhYAqMf0lktEoQ0S7ZR8y2xi");require "inttegro"
client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.orders.request_confirmation(
order_id: "or_kAVwBsk6EhQVv2YBUhYAqMf0lktEoQ0S7ZR8y2xi"
)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");
}
}using Inttegro;
using var inttegro = new InttegroClient(
Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Orders.RequestConfirmationAsync("or_kAVwBsk6EhQVv2YBUhYAqMf0lktEoQ0S7ZR8y2xi");{
"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
- Replace the full
LineItemsline_itemsLineItemslineItemsline_itemsline_itemsline_itemslineItemscollection - Change the order
NumbernumberNumbernumbernumbernumbernumbernumber - Set or change the order
ReceiptNumberreceipt_numberReceiptNumberreceiptNumberreceipt_numberreceipt_numberreceipt_numberreceiptNumber - Change the payment
StatementDescriptorstatement_descriptorStatementDescriptorstatementDescriptorstatement_descriptorstatement_descriptorstatement_descriptorstatementDescriptor - Attach a different saved
PaymentMethodIdpayment_method_idPaymentMethodIDpaymentMethodIdpayment_method_idpayment_method_idpayment_method_idpaymentMethodId - Tokenize and attach new inline
PaymentMethodDatapayment_method_dataPaymentMethodDatapaymentMethodDatapayment_method_datapayment_method_datapayment_method_datapaymentMethodData - Remove the attached payment method with
ClearPaymentMethodclear_payment_methodClearPaymentMethodclearPaymentMethodclear_payment_methodclear_payment_methodclear_payment_methodclearPaymentMethod - Replace order-level
CustomDatacustom_dataCustomDatacustomDatacustom_datacustom_datacustom_datacustomData - Replace or clear customer-facing
InvoiceSettingsinvoice_settingsInvoiceSettingsinvoiceSettingsinvoice_settingsinvoice_settingsinvoice_settingsinvoiceSettings - Explicitly open, seal, or reseal the order with
FinalizefinalizeFinalizefinalizefinalizefinalizefinalizefinalize
Rules
- Include at least one mutable field besides
OrderIdorder_idOrderIDorderIdorder_idorder_idorder_idorderId. LineItemsline_itemsLineItemslineItemsline_itemsline_itemsline_itemslineItemsis a full replacement field, not a sparse merge, and it cannot be empty when provided.- If you replace
LineItemsline_itemsLineItemslineItemsline_itemsline_itemsline_itemslineItems, the updated order must stay within the current order limits: at most 64 line items, up to 100,000 for"ghs""ghs"money.GHSCurrency.GHS\Inttegro\Money\Currency::GHSinttegro.money.Currency.GHSInttegro::Money::Currency::GHS"ghs", and up to 50,000 for all other supported currencies. Contact support if you need these limits increased. PaymentMethodIdpayment_method_idPaymentMethodIDpaymentMethodIdpayment_method_idpayment_method_idpayment_method_idpaymentMethodId,PaymentMethodDatapayment_method_dataPaymentMethodDatapaymentMethodDatapayment_method_datapayment_method_datapayment_method_datapaymentMethodData, andClearPaymentMethodclear_payment_methodClearPaymentMethodclearPaymentMethodclear_payment_methodclear_payment_methodclear_payment_methodclearPaymentMethodare mutually exclusive.PaymentMethodDatapayment_method_dataPaymentMethodDatapaymentMethodDatapayment_method_datapayment_method_datapayment_method_datapaymentMethodDatacurrently supports onlyInttegro.PaymentMethodType.MobileMoney"mobile_money"paymentmethod.TypeMobileMoneyPaymentMethodType.MOBILE_MONEY\Inttegro\PaymentMethod\Type::MobileMoneyinttegro.payment_method.Type.MOBILE_MONEYInttegro::PaymentMethod::Type::MOBILE_MONEYInttegro.PaymentMethodTypes.MobileMoneyfor order updates.- Completed, paid, canceled, and expired orders cannot be updated.
CustomDatacustom_dataCustomDatacustomDatacustom_datacustom_datacustom_datacustomDatais metadata-only. Updating it does not require reopen / reseal by itself.- Omit
ReceiptNumberreceipt_numberReceiptNumberreceiptNumberreceipt_numberreceipt_numberreceipt_numberreceiptNumberto leave it unchanged. When provided, Inttegro trims it and requires a different non-empty value within the same configured length limits asNumbernumberNumbernumbernumbernumbernumbernumber. It cannot be cleared once set, and receipt numbers are not unique. - If payment confirmation or execution has already started, Inttegro rejects edits that change economics, payment configuration, or require reopening the order.
- When mutating seal-sensitive fields on a sealed order, you must provide
FinalizefinalizeFinalizefinalizefinalizefinalizefinalizefinalizeexplicitly:FinalizefinalizeFinalizefinalizefinalizefinalizefinalizefinalizeset tofalsefalsefalsefalsefalseFalsefalsefalsereopens the order and leaves it editable.FinalizefinalizeFinalizefinalizefinalizefinalizefinalizefinalizeset totruetruetruetruetrueTruetruetrueapplies the changes and seals the order again in the same request.
Required attributes
OrderUpdateRequestv13.1.0Go SDK requestUpdateParamsv14.0.0Java SDK requestOrderUpdateParamsv11.1.0PHP SDK requestv15.0.0Python SDK requestUpdateRequestv15.0.0Ruby SDK requestOrder::UpdateRequestv13.0.0TypeScript SDK requestUpdateOrderRequestv15.0.0Optional attributes
OrderUpdateRequestv13.1.0Go SDK requestUpdateParamsv14.0.0Java SDK requestOrderUpdateParamsv11.1.0PHP SDK requestv15.0.0Python SDK requestUpdateRequestv15.0.0Ruby SDK requestOrder::UpdateRequestv13.0.0TypeScript SDK requestUpdateOrderRequestv15.0.0- #
ClearPaymentMethodclear_payment_methodClearPaymentMethodclearPaymentMethod(…)clearPaymentMethodclear_payment_methodclear_payment_methodclearPaymentMethodbool?boolean*boolBooleanboolboolT.nilable(T::Boolean)booleanClears the currently attached payment method. Mutually exclusive with
PaymentMethodIdpayment_method_idPaymentMethodIDpaymentMethodIdpayment_method_idpayment_method_idpayment_method_idpaymentMethodIdandPaymentMethodDatapayment_method_dataPaymentMethodDatapaymentMethodDatapayment_method_datapayment_method_datapayment_method_datapaymentMethodData. #
CustomDatacustom_dataCustomDatacustomData(…)customDatacustom_datacustom_datacustomDataCustomData?object*DataCustomDataarray<string, mixed>CustomDataT.nilable(CustomData)CustomDataClick or tap to expandReplacement order-level custom data. Provide an empty object to clear the current value.
- #
FinalizefinalizeFinalizefinalizeOrder(…)finalizefinalizefinalizefinalizebool?boolean*boolBooleanboolboolT.nilable(T::Boolean)booleanExplicit seal decision. Use
falsefalsefalsefalsefalseFalsefalsefalseto reopen a sealed order and leave it editable, ortruetruetruetruetrueTruetruetrueto seal or reseal the order after applying the requested changes. #
InvoiceSettingsinvoice_settingsInvoiceSettingsinvoiceSettings(…)invoiceSettingsinvoice_settingsinvoice_settingsinvoiceSettingsInvoiceSettings?object*InvoiceSettingsMap<String, Object>array<string, mixed>InvoiceSettingsInputT.nilable(Shared::InvoiceSettings)InvoiceSettingsFull replacement for customer-facing invoice content. Send an empty object to clear the current settings.Click or tap to expand- #
CustomDatacustom_dataCustomDatacustomDatacustomDatacustom_datacustom_datacustomDataCustomData?object*DataCustomDataarray<string, mixed>CustomDataT.nilable(CustomData)CustomDataView custom_data detailsClick or tap to expand
String key-value data attached to the invoice.
- #
LineItemsline_itemsLineItemslineItems(…)lineItemsline_itemsline_itemslineItemsList<LineItemParams>?array[]LineItemParamsList<OrderLineItem>list<mixed>list[LineItemInput | FeeLineItemInput | ShippingLineItemInput]T.nilable(T::Array[T.any(Product::LineItem, Shared::FeeLineItem, Shared::ShippingLineItem)])LineItemParams[]Full replacement for the order’s current line items. Use the same line-item schema as Create an order.
#
PaymentMethodDatapayment_method_dataPaymentMethodDatapaymentMethodData(…)paymentMethodDatapayment_method_datapayment_method_datapaymentMethodDataPaymentMethodData?object*DataPaymentMethodDataarray<string, mixed>UpdateOrderRequestPaymentMethodDataT.nilable(Order::UpdateRequestPaymentMethodData)PaymentMethodDataNew payment method details to tokenize and attach to the order.Click or tap to expandView mobile_money detailsClick or tap to expand
Required whenPaymentMethodData.Typepayment_method_data.typePaymentMethodData.TypepaymentMethodData.typepaymentMethodData.typepayment_method_data.typepayment_method_data.typepaymentMethodData.typeisInttegro.PaymentMethodType.MobileMoney"mobile_money"paymentmethod.TypeMobileMoneyPaymentMethodType.MOBILE_MONEY\Inttegro\PaymentMethod\Type::MobileMoneyinttegro.payment_method.Type.MOBILE_MONEYInttegro::PaymentMethod::Type::MOBILE_MONEYInttegro.PaymentMethodTypes.MobileMoney. ProvidePaymentMethodData.MobileMoney.Networkpayment_method_data.mobile_money.networkPaymentMethodData.MobileMoney.NetworkpaymentMethodData.mobileMoney.networkpaymentMethodData.mobileMoney.networkpayment_method_data.mobile_money.networkpayment_method_data.mobile_money.networkpaymentMethodData.mobileMoney.networkandPaymentMethodData.MobileMoney.AccountNumberpayment_method_data.mobile_money.account_numberPaymentMethodData.MobileMoney.AccountNumberpaymentMethodData.mobileMoney.accountNumberpaymentMethodData.mobileMoney.accountNumberpayment_method_data.mobile_money.account_numberpayment_method_data.mobile_money.account_numberpaymentMethodData.mobileMoney.accountNumber.- #
TypetypeTypetype(…)typetypetypetypePaymentMethodTypestringTypePaymentMethodTypestringstrOrder::UpdateRequestPaymentMethodDataType'mobile_money'Currently onlyInttegro.PaymentMethodType.MobileMoney"mobile_money"paymentmethod.TypeMobileMoneyPaymentMethodType.MOBILE_MONEY\Inttegro\PaymentMethod\Type::MobileMoneyinttegro.payment_method.Type.MOBILE_MONEYInttegro::PaymentMethod::Type::MOBILE_MONEYInttegro.PaymentMethodTypes.MobileMoneyis supported for order updates.
- #
PaymentMethodIdpayment_method_idPaymentMethodIDpaymentMethodId(…)paymentMethodIdpayment_method_idpayment_method_idpaymentMethodIdstring?stringstringStringstringstrT.nilable(String)stringID of a saved payment method to attach to the order.
- #
ReceiptNumberreceipt_numberReceiptNumberreceiptNumber(…)receiptNumberreceipt_numberreceipt_numberreceiptNumberstring?stringstringStringstringstrT.nilable(String)stringReplacement receipt reference. Must be a different non-empty value when provided.
- #
StatementDescriptorstatement_descriptorStatementDescriptorstatementDescriptor(…)statementDescriptorstatement_descriptorstatement_descriptorstatementDescriptorstring?stringstringStringstringstrT.nilable(String)stringReplacement payment statement descriptor for the order’s payment.
- #
StatementDescriptorPrefixstatement_descriptor_prefixStatementDescriptorPrefixstatementDescriptorPrefix(…)statementDescriptorPrefixstatement_descriptor_prefixstatement_descriptor_prefixstatementDescriptorPrefixstring?stringstringStringstringstrT.nilable(String)stringStatic prefix, between 2 and 10 characters, used to build the replacement descriptor as
prefix*order_id. Mutually exclusive withStatementDescriptorstatement_descriptorStatementDescriptorstatementDescriptorstatement_descriptorstatement_descriptorstatement_descriptorstatementDescriptor.
Response shape
- Returns the same
OrderorderOrderorderorderorderorderorderobject as Lookup an order. - If
FinalizefinalizeFinalizefinalizefinalizefinalizefinalizefinalizeisfalsefalsefalsefalsefalseFalsefalsefalse,SealedAtorder.sealed_atSealedAtsealedAtsealedAtsealed_atsealed_atsealedAtandInvoiceorder.invoiceInvoiceinvoiceinvoiceinvoiceinvoiceinvoiceare cleared until the order is sealed again. - If
FinalizefinalizeFinalizefinalizefinalizefinalizefinalizefinalizeistruetruetruetruetrueTruetruetrue, Inttegro returns the regenerated invoice and the updated payment amount. - The returned order object includes top-level
CustomDataorder.custom_dataCustomDatacustomDatacustomDatacustom_datacustom_datacustomDatawhen present. - The returned order object includes top-level
ReceiptNumberorder.receipt_numberReceiptNumberreceiptNumberreceiptNumberreceipt_numberreceipt_numberreceiptNumberwhen set.
Request
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
}'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,
})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
}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,
))<?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,
]);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
)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);
}
}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,
});{
"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 fromInttegro.OrderStatus.Preparing"preparing"order.StatusPreparingOrderStatus.PREPARING\Inttegro\Order\Status::Preparinginttegro.order.Status.PREPARINGInttegro::Order::Status::PREPARINGInttegro.OrderStatuses.Preparing to Inttegro.OrderStatus.RequiresPayment"requires_payment"order.StatusRequiresPaymentOrderStatus.REQUIRES_PAYMENT\Inttegro\Order\Status::RequiresPaymentinttegro.order.Status.REQUIRES_PAYMENTInttegro::Order::Status::REQUIRES_PAYMENTInttegro.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
SealedAtorder.sealed_atSealedAtsealedAtsealedAtsealed_atsealed_atsealedAt timestamp marking when the order was finalized. Finalizing an already sealed order is safe and leaves the existing state unchanged.Required attributes
OrderFinalizeRequestv13.1.0Go SDK requestFinalizeParamsv14.0.0Java SDK requestOrderFinalizeParamsv11.1.0PHP SDK requestv15.0.0Python SDK requestv15.0.0Ruby SDK requestOrder::FinalizeRequestv13.0.0TypeScript SDK requestFinalizeOrderRequestv15.0.0Request
curl https://api.inttegro.com/orders/finalize \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"order_id": "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt"
}'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",
})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
}import os
from inttegro import InttegroClient
client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])
result = client.orders.finalize(
"or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt"
)<?php
use Inttegro\Client;
$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->orders->finalize("or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt");require "inttegro"
client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.orders.finalize(
order_id: "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt"
)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");
}
}using Inttegro;
using var inttegro = new InttegroClient(
Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Orders.FinalizeAsync("or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt");{
"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
OrderSendInvoiceParamsv13.1.0Go SDK requestSendInvoiceParamsv14.0.0Java SDK requestOrderSendInvoiceParamsv11.1.0PHP SDK requestv15.0.0Python SDK requestDocumentDeliveryRequestv15.0.0Ruby SDK requestOrder::DocumentDeliveryRequestv13.0.0TypeScript SDK requestOrderDocumentDeliveryRequestv15.0.0Response
Returns the currentOrderorderOrderorderorderorderorderorder plus a DeliverydeliveryDeliverydeliverydeliverydeliverydeliverydelivery object. If one channel succeeds and another fails, the endpoint may return HTTP 207 with both Delivery.SentChannelsdelivery.sent_channelsDelivery.SentChannelsdelivery.sentChannelsdelivery.sentChannelsdelivery.sent_channelsdelivery.sent_channelsdelivery.sentChannels and Delivery.FailedChannelsdelivery.failed_channelsDelivery.FailedChannelsdelivery.failedChannelsdelivery.failedChannelsdelivery.failed_channelsdelivery.failed_channelsdelivery.failedChannels.OrderDocumentDeliveryResultv13.1.0Go SDK responseDocumentDeliveryResultv14.0.0Java SDK responseOrderDocumentDeliveryResultv11.1.0PHP SDK responseOrderDocumentDeliveryResultv15.0.0Python SDK responseDocumentDeliveryResultv15.0.0Ruby SDK responseDocumentDeliveryResultv13.0.0TypeScript SDK responseOrderDocumentDeliveryResultv15.0.0#
DeliverydeliveryDeliverydeliverydeliverydeliverydeliverydeliveryOrderDocumentDelivery?objectDeliveryOrderDocumentDeliveryarray<string, mixed>OrderDocumentDelivery | NoneOrder::DocumentDeliveryOrderDocumentDeliveryDelivery result for the hosted invoice link.Click or tap to expand- #
DeliveriesdeliveriesDeliveriesdeliveriesdeliveriesdeliveriesdeliveriesdeliveriesList<OrderDocumentDeliveryAttempt>?array[]DeliveryAttemptList<OrderDocumentDeliveryAttempt>list<mixed>list[OrderDocumentDeliveryAttempt] | NoneT.nilable(T::Array[Order::DocumentDeliveryAttempt])OrderDocumentDeliveryAttempt[]View deliveries attributesClick or tap to expand
Accepted message sends.- #
ChannelchannelChannelchannelchannelchannelchannelchannelstring?stringDeliveryChannelDeliveryChannelstringLiteral['email', 'sms'] | NoneShared::DeliveryChannelstringInttegro.ChimeTransport.Sms"sms"chime.TransportSMSChimeTransport.SMS\Inttegro\Chime\Transport::Smsinttegro.chime.Transport.SMSInttegro::Chime::Transport::SMSInttegro.ChimeTransports.SmsorInttegro.ChimeTransport.Email"email"chime.TransportEmailChimeTransport.EMAIL\Inttegro\Chime\Transport::Emailinttegro.chime.Transport.EMAILInttegro::Chime::Transport::EMAILInttegro.ChimeTransports.Email.
- #
DocumentKinddocument_kindDocumentKinddocumentKinddocumentKinddocument_kinddocument_kinddocumentKindstring?stringDocumentKindOrderDocumentKindstringLiteral['invoice', 'receipt'] | NoneOrder::DocumentKindstring - #
DocumentUrldocument_urlDocumentURLdocumentUrldocumentUrldocument_urldocument_urldocumentUrlstring?stringstringStringstringstr | NoneStringstringHosted invoice URL sent to the customer. - #
FailedChannelsfailed_channelsFailedChannelsfailedChannelsfailedChannelsfailed_channelsfailed_channelsfailedChannelsList<string>?array[]DeliveryChannelList<DeliveryChannel>list<mixed>list[Literal['email', 'sms']] | NoneT.nilable(T::Array[Shared::DeliveryChannel])string[]Channels that failed to send. View failures attributesClick or tap to expand
Failed delivery channels.- #
ChannelchannelChannelchannelchannelchannelchannelchannelstring?stringDeliveryChannelDeliveryChannelstringLiteral['email', 'sms'] | NoneShared::DeliveryChannelstringInttegro.ChimeTransport.Sms"sms"chime.TransportSMSChimeTransport.SMS\Inttegro\Chime\Transport::Smsinttegro.chime.Transport.SMSInttegro::Chime::Transport::SMSInttegro.ChimeTransports.SmsorInttegro.ChimeTransport.Email"email"chime.TransportEmailChimeTransport.EMAIL\Inttegro\Chime\Transport::Emailinttegro.chime.Transport.EMAILInttegro::Chime::Transport::EMAILInttegro.ChimeTransports.Email.
- #
SentChannelssent_channelsSentChannelssentChannelssentChannelssent_channelssent_channelssentChannelsList<string>?array[]DeliveryChannelList<DeliveryChannel>list<mixed>list[Literal['email', 'sms']] | NoneT::Array[Shared::DeliveryChannel]string[]Channels accepted for delivery.
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
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"
}'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",
})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
}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",
))<?php
use Inttegro\Client;
$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->orders->sendInvoice("or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt");require "inttegro"
client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.orders.send_invoice(order_id: "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt")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);
}
}using Inttegro;
using var inttegro = new InttegroClient(
Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Orders.SendInvoiceAsync("or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt");{
"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
OrderSendReceiptParamsv13.1.0Go SDK requestSendReceiptParamsv14.0.0Java SDK requestOrderSendReceiptParamsv11.1.0PHP SDK requestv15.0.0Python SDK requestDocumentDeliveryRequestv15.0.0Ruby SDK requestOrder::DocumentDeliveryRequestv13.0.0TypeScript SDK requestOrderDocumentDeliveryRequestv15.0.0Response
Returns the currentOrderorderOrderorderorderorderorderorder plus a DeliverydeliveryDeliverydeliverydeliverydeliverydeliverydelivery object. If one channel succeeds and another fails, the endpoint may return HTTP 207 with both Delivery.SentChannelsdelivery.sent_channelsDelivery.SentChannelsdelivery.sentChannelsdelivery.sentChannelsdelivery.sent_channelsdelivery.sent_channelsdelivery.sentChannels and Delivery.FailedChannelsdelivery.failed_channelsDelivery.FailedChannelsdelivery.failedChannelsdelivery.failedChannelsdelivery.failed_channelsdelivery.failed_channelsdelivery.failedChannels.OrderDocumentDeliveryResultv13.1.0Go SDK responseDocumentDeliveryResultv14.0.0Java SDK responseOrderDocumentDeliveryResultv11.1.0PHP SDK responseOrderDocumentDeliveryResultv15.0.0Python SDK responseDocumentDeliveryResultv15.0.0Ruby SDK responseDocumentDeliveryResultv13.0.0TypeScript SDK responseOrderDocumentDeliveryResultv15.0.0#
DeliverydeliveryDeliverydeliverydeliverydeliverydeliverydeliveryOrderDocumentDelivery?objectDeliveryOrderDocumentDeliveryarray<string, mixed>OrderDocumentDelivery | NoneOrder::DocumentDeliveryOrderDocumentDeliveryDelivery result for the hosted receipt link.Click or tap to expand- #
DeliveriesdeliveriesDeliveriesdeliveriesdeliveriesdeliveriesdeliveriesdeliveriesList<OrderDocumentDeliveryAttempt>?array[]DeliveryAttemptList<OrderDocumentDeliveryAttempt>list<mixed>list[OrderDocumentDeliveryAttempt] | NoneT.nilable(T::Array[Order::DocumentDeliveryAttempt])OrderDocumentDeliveryAttempt[]View deliveries attributesClick or tap to expand
Accepted message sends.- #
ChannelchannelChannelchannelchannelchannelchannelchannelstring?stringDeliveryChannelDeliveryChannelstringLiteral['email', 'sms'] | NoneShared::DeliveryChannelstringInttegro.ChimeTransport.Sms"sms"chime.TransportSMSChimeTransport.SMS\Inttegro\Chime\Transport::Smsinttegro.chime.Transport.SMSInttegro::Chime::Transport::SMSInttegro.ChimeTransports.SmsorInttegro.ChimeTransport.Email"email"chime.TransportEmailChimeTransport.EMAIL\Inttegro\Chime\Transport::Emailinttegro.chime.Transport.EMAILInttegro::Chime::Transport::EMAILInttegro.ChimeTransports.Email.
- #
DocumentKinddocument_kindDocumentKinddocumentKinddocumentKinddocument_kinddocument_kinddocumentKindstring?stringDocumentKindOrderDocumentKindstringLiteral['invoice', 'receipt'] | NoneOrder::DocumentKindstring - #
DocumentUrldocument_urlDocumentURLdocumentUrldocumentUrldocument_urldocument_urldocumentUrlstring?stringstringStringstringstr | NoneStringstringHosted receipt URL sent to the customer. - #
FailedChannelsfailed_channelsFailedChannelsfailedChannelsfailedChannelsfailed_channelsfailed_channelsfailedChannelsList<string>?array[]DeliveryChannelList<DeliveryChannel>list<mixed>list[Literal['email', 'sms']] | NoneT.nilable(T::Array[Shared::DeliveryChannel])string[]Channels that failed to send. View failures attributesClick or tap to expand
Failed delivery channels.- #
ChannelchannelChannelchannelchannelchannelchannelchannelstring?stringDeliveryChannelDeliveryChannelstringLiteral['email', 'sms'] | NoneShared::DeliveryChannelstringInttegro.ChimeTransport.Sms"sms"chime.TransportSMSChimeTransport.SMS\Inttegro\Chime\Transport::Smsinttegro.chime.Transport.SMSInttegro::Chime::Transport::SMSInttegro.ChimeTransports.SmsorInttegro.ChimeTransport.Email"email"chime.TransportEmailChimeTransport.EMAIL\Inttegro\Chime\Transport::Emailinttegro.chime.Transport.EMAILInttegro::Chime::Transport::EMAILInttegro.ChimeTransports.Email.
- #
SentChannelssent_channelsSentChannelssentChannelssentChannelssent_channelssent_channelssentChannelsList<string>?array[]DeliveryChannelList<DeliveryChannel>list<mixed>list[Literal['email', 'sms']] | NoneT::Array[Shared::DeliveryChannel]string[]Channels accepted for delivery.
Receipt delivery can return order_delivery_auth_failed, order_delivery_contact_missing, order_delivery_failed, order_not_found, or order_receipt_missing.
Request
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"
}'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",
})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
}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",
))<?php
use Inttegro\Client;
$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->orders->sendReceipt("or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt");require "inttegro"
client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.orders.send_receipt(order_id: "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt")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);
}
}using Inttegro;
using var inttegro = new InttegroClient(
Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Orders.SendReceiptAsync("or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt");{
"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
Inttegro.OrderStatus.Completed"completed"order.StatusCompletedOrderStatus.COMPLETED\Inttegro\Order\Status::Completedinttegro.order.Status.COMPLETEDInttegro::Order::Status::COMPLETEDInttegro.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 PaidOutOfBandpaid_out_of_bandPaidOutOfBandpaidOutOfBandpaidOutOfBandpaid_out_of_bandpaid_out_of_bandpaidOutOfBand to truetruetruetruetrueTruetruetrue.
Out-of-band payments
If the customer paid outside Inttegro (cash, bank transfer, check), setPaidOutOfBandpaid_out_of_bandPaidOutOfBandpaidOutOfBandpaid_out_of_bandpaid_out_of_bandpaid_out_of_bandpaidOutOfBand to truetruetruetruetrueTruetruetrue. 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
OrderCompleteRequestv13.1.0Go SDK requestCompleteParamsv14.0.0Java SDK requestOrderCompleteParamsv11.1.0PHP SDK requestv15.0.0Python SDK requestCompleteRequestv15.0.0Ruby SDK requestOrder::CompleteRequestv13.0.0TypeScript SDK requestCompleteOrderRequestv15.0.0Optional attributes
OrderCompleteRequestv13.1.0Go SDK requestCompleteParamsv14.0.0Java SDK requestOrderCompleteParamsv11.1.0PHP SDK requestv15.0.0Python SDK requestCompleteRequestv15.0.0Ruby SDK requestOrder::CompleteRequestv13.0.0TypeScript SDK requestCompleteOrderRequestv15.0.0- #
PaidOutOfBandpaid_out_of_bandPaidOutOfBandpaidOutOfBand(…)paidOutOfBandpaid_out_of_bandpaid_out_of_bandpaidOutOfBandbool?boolean*boolBooleanboolboolT.nilable(T::Boolean)booleanSet to
truetruetruetruetrueTruetruetrueif payment was received outside Inttegro (cash, bank transfer, check). When true, the payment is marked as paid offline before completing the order. Defaults tofalsefalsefalsefalsefalseFalsefalsefalse, which requires the payment to already be inInttegro.PaymentStatus.Paid"paid"payment.StatusPaidPaymentStatus.PAID\Inttegro\Payment\Status::Paidinttegro.payment.Status.PAIDInttegro::Payment::Status::PAIDInttegro.PaymentStatuses.Paidstatus.
Request
curl https://api.inttegro.com/orders/complete \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"order_id": "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt"
}'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",
})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
}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",
))<?php
use Inttegro\Client;
$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->orders->complete([
'order_id' => 'or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt',
]);require "inttegro"
client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.orders.complete(
order_id: "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt"
)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);
}
}using Inttegro;
using var inttegro = new InttegroClient(
Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Orders.CompleteAsync(new OrderCompleteRequest {
OrderId = "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt",
});{
"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
OrderLookupRequestv13.1.0Go SDK requestv14.0.0Java SDK requestv11.1.0PHP SDK requestv15.0.0Python SDK requestv15.0.0Ruby SDK requestOrder::LookupRequestv13.0.0TypeScript SDK requestLookupOrderRequestv15.0.0Request
curl https://api.inttegro.com/orders/lookup \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"order_id": "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt"
}'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",
})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
}import os
from inttegro import InttegroClient
client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])
result = client.orders.lookup("or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt")<?php
use Inttegro\Client;
$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->orders->lookup("or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt");require "inttegro"
client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.orders.lookup(order_id: "or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt")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");
}
}using Inttegro;
using var inttegro = new InttegroClient(
Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Orders.LookupAsync("or_48ZW7BGvYUBWc1i6WBkL2jr0iPQP5jUy76mmmHpt");{
"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
Inttegro.OrderStatus.Canceled"canceled"order.StatusCanceledOrderStatus.CANCELED\Inttegro\Order\Status::Canceledinttegro.order.Status.CANCELEDInttegro::Order::Status::CANCELEDInttegro.OrderStatuses.Canceled and records the time of the transition. The ReasonreasonReasonreasonreasonreasonreasonreason and ExecuteRefundexecute_refundExecuteRefundexecuteRefundexecuteRefundexecute_refundexecute_refundexecuteRefund 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
OrderCancelRequestv13.1.0Go SDK requestCancelParamsv14.0.0Java SDK requestOrderCancelParamsv11.1.0PHP SDK requestv15.0.0Python SDK requestv15.0.0Ruby SDK requestOrder::CancelRequestv13.0.0TypeScript SDK requestCancelOrderRequestv15.0.0- #
ExecuteRefundexecute_refundExecuteRefundexecuteRefundexecuteRefundexecute_refundexecute_refundexecuteRefundboolbooleanboolBooleanboolboolT.nilable(T::Boolean)booleanRecords that refund execution was requested as part of the cancellation. It defaults to
falsefalsefalsefalsefalseFalsefalsefalseand does not currently move funds; use the refund flow separately. - #
ReasonreasonReasonreasonreasonreasonreasonreasonstringstringstringStringstringstrT.nilable(String)stringOptional 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
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
}'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,
})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
}import os
from inttegro import InttegroClient
client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])
result = client.orders.cancel(
"or_kAVwBsk6EhQVv2YBUhYAqMf0lktEoQ0S7ZR8y2xi"
)<?php
use Inttegro\Client;
$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->orders->cancel("or_kAVwBsk6EhQVv2YBUhYAqMf0lktEoQ0S7ZR8y2xi");require "inttegro"
client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.orders.cancel(
order_id: "or_kAVwBsk6EhQVv2YBUhYAqMf0lktEoQ0S7ZR8y2xi"
)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");
}
}using Inttegro;
using var inttegro = new InttegroClient(
Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Orders.CancelAsync("or_kAVwBsk6EhQVv2YBUhYAqMf0lktEoQ0S7ZR8y2xi");{
"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
Orders[].InitiatedAtpage.orders[].initiated_atPage.Orders[].InitiatedAtorders[].initiatedAtorders[].initiatedAtorders[].initiated_atorders[].initiated_atorders[].initiatedAt in descending order, so page 0 contains the freshest activity and subsequent pages step back in time.Provide CustomerIdcustomer_idCustomerIDcustomerIdcustomer_idcustomer_idcustomer_idcustomerId to scope the page to a single customer. Omit CustomerIdcustomer_idCustomerIDcustomerIdcustomer_idcustomer_idcustomer_idcustomerId to browse all recent orders.PageSizepage_sizePageSizepageSizepage_sizepage_sizepage_sizepageSize is required. PageNumberpage_numberPageNumberpageNumberpage_numberpage_numberpage_numberpageNumber is zero-based, defaults to 00000000, 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
ResourceSearchRequestv13.1.0Go SDK requestPageParamsv14.0.0Java SDK requestOrderPageParamsv11.1.0PHP SDK requestv15.0.0Python SDK requestPageRequestv15.0.0Ruby SDK requestOrder::PageRequestv13.0.0TypeScript SDK requestPageOrdersRequestv15.0.0Optional attributes
ResourceSearchRequestv13.1.0Go SDK requestPageParamsv14.0.0Java SDK requestOrderPageParamsv11.1.0PHP SDK requestv15.0.0Python SDK requestPageRequestv15.0.0Ruby SDK requestOrder::PageRequestv13.0.0TypeScript SDK requestPageOrdersRequestv15.0.0- #
CustomerIdcustomer_idCustomerIDcustomerIdcustomerIdcustomer_idcustomer_idcustomerIdstringstringstringStringstringstrT.nilable(String)stringOptional customer ID to scope the page to one buyer’s orders only.
- #
PageNumberpage_numberPageNumberpageNumber(…)pageNumberpage_numberpage_numberpageNumberlongintegerintIntegerintintT.nilable(Integer)numberZero-based page index from 0 through 10. Defaults to 0 when omitted.
Response shape
- Top-level
PagepagePagepagepagepagepagepageobject includesNumberpage.numberPage.Numbernumbernumbernumbernumbernumber,Sizepage.sizePage.Sizesizesizesizesizesize, and anOrderspage.ordersPage.Ordersordersordersordersordersordersarray. - Each array entry uses the complete shared order object, not a condensed summary.
- Orders created through a purchase intent include
Orders[].CreatedFrompage.orders[].created_fromPage.Orders[].CreatedFromorders[].createdFromorders[].createdFromorders[].created_fromorders[].created_fromorders[].createdFromattribution when available. Public API-key requests cannot filter pages by that attribution. - Optional fields are omitted when unavailable. Paid or completed orders can include
payment.receipt; the API does not add aline_item_group.products_countsummary field. - When you filter by
CustomerIdcustomer_idCustomerIDcustomerIdcustomerIdcustomer_idcustomer_idcustomerId, every returned order belongs to that customer.
Request
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
}'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,
})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
}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,
))<?php
use Inttegro\Client;
$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->orders->page([
'page_number' => 0,
'page_size' => 25,
]);require "inttegro"
client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.orders.page(
page_number: 0,
page_size: 25
)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);
}
}using Inttegro;
using var inttegro = new InttegroClient(
Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.Orders.PageAsync(new ResourceSearchRequest {
PageSize = 25,
});{
"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"
}
]
}
]
}
}