DubPay
  1. DUBPAY API
DubPay
  • DUBPAY API
    • Login
      POST
    • Request Withdraw
      POST
    • Cancel Order
      DELETE
    • Request Anticipation
      POST
  • PAYMENTS
    • Get Balance
    • Get Waiting Funds
    • Get Transactions
    • Request Withdraw
    • Create Order
    • List taxes
    • List Seller Webhooks
    • Create Seller Webhook
    • Update Seller Webhook
    • Delete Seller Webhook
  1. DUBPAY API

Cancel Order

Develop Env
https://api.dubpay2.com.br/api
Develop Env
https://api.dubpay2.com.br/api
DELETE
https://api.dubpay2.com.br/api
/cancel-order/{order_number}
Cancela um pedido realizado em determinada loja

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
order_number
string 
required
Número do pedido
Query Params
payment_type
enum<string> 
required
Método usado para o pagamento do pedido
Allowed values:
pixcreditinvoice
Example:
pix
Header Params
store-id
string 
required
Store-id da loja onde o pedido foi feito.
Example:
3b7e6a0c-2d4f-4829-bc83-71ad65f928ba

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request DELETE 'https://api.dubpay2.com.br/api/cancel-order/?payment_type=pix' \
--header 'store-id: 3b7e6a0c-2d4f-4829-bc83-71ad65f928ba'

Responses

🟢200OK
application/json
Body
message
string 
required
Examples
{"success":false,"message":"No paid transaction found for this order"}
🟠400BAD REQUEST
Modified at 2025-03-07 22:12:33
Previous
Request Withdraw
Next
Request Anticipation
Built with