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

Request Withdraw

Develop Env
https://payments.dubpay2.com.br/api
Develop Env
https://payments.dubpay2.com.br/api
POST
https://payments.dubpay2.com.br/api
/withdraw
Solicita o saque do saldo disponível.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params
store-id
string 
required
UUID da loja
Example:
{{STORE_ID}}
Body Params application/json
amount
string 
required
Saldo a ser sacado (Deve ser inferior ou igual ao saldo disponível)
Example
{
    "amount": "string"
}

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 POST 'https://payments.dubpay2.com.br/api/withdraw' \
--header 'store-id: ' \
--header 'Content-Type: application/json' \
--data-raw '{
    "amount": "string"
}'

Responses

🟢200SUCCESS
application/json
Body
success
boolean 
required
data
object 
required
id
integer 
required
user_id
integer 
required
amount
integer 
required
status
string 
required
type
string 
required
admin_id
null 
required
created_at
string 
required
updated_at
string 
required
message
string 
required
Example
{"success":true,"data":{"id":47,"user_id":154,"amount":9000,"status":"pending","type":"withdraw","admin_id":null,"created_at":"2025-01-02T22:48:02.000000Z","updated_at":"2025-01-02T22:48:02.000000Z"},"message":"Withdraw has been successful"}
🟠400BAD REQUEST
Modified at 2025-03-07 22:13:39
Previous
Get Transactions
Next
Create Order
Built with