1. Orders
Kapitale
  • Integration Guide
    • πŸ“‹ Introduction
    • πŸ” Authentication
    • πŸš€ Integration Flow
    • πŸ”” Webhooks
    • πŸ”„ Integration Flowchart
    • πŸ§ͺ Sandbox Environment
    • πŸ“Š Status Map
    • ⚠️ Error Handling
    • πŸ“ Practical Examples
    • πŸ’³ Receivable Consultation
    • πŸ“ž Support
  • API
    • Retail
      • Fetch retail information by CNPJ
    • Orders
      • Create a new order
        POST
      • List orders
        GET
      • Fetch order by ID
        GET
      • Set payment invoice
        PATCH
      • Cancel order
        PATCH
    • Receivable
      • Fetch receivables by CNPJ
  • Schemas
    • CreateOrderRequest
    • RetailInfo
    • Acquirer
    • CancelOrderRequest
    • PurchaseItem
    • Order
    • FindReceivableResponse
    • OrderStatus
    • PaymentStatus
    • FindByIndustryCnpjResponse
    • OrderStatistics
    • Error
    • ReceivableItem
  1. Orders

Cancel order

Partners Integration - Production
https://partners.kapitale.com.br/v1
Partners Integration - Production
https://partners.kapitale.com.br/v1
PATCH
/order/cancel/{order_id}
Cancels an order specifying the reason. Scope: orders.read

Request

Authorization
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or
Path Params

Body Params application/jsonRequired

Examples

Responses

🟒200
application/json
Order canceled successfully
Body

🟠404
🟠400BadRequest
🟠401Unauthorized
πŸ”΄500InternalServerError
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://partners.kapitale.com.br/v1/order/cancel/550e8400-e29b-41d4-a716-446655440000' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "reason": "Order canceled at customer request"
}'
Response Response Example
200 - Example 1
{
    "message": "Order cancelled successfully"
}
Modified atΒ 2026-03-19 13:59:13
Previous
Set payment invoice
Next
Fetch receivables by CNPJ
Built with