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

Request Withdraw

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

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json
amount
string 
required
Valor a ser sacado
userId
string 
optional
Id do usuário
Example
{
    "amount": "string",
    "userId": "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://api.dubpay2.com.br/api/seller/withdraw' \
--header 'Content-Type: application/json' \
--data-raw '{
    "amount": "string",
    "userId": "string"
}'

Responses

🟢200Success
application/json
Body
object {0}
Example
{
    "success": true,
    "data": {
        "user_id": 154,
        "admin_id": null,
        "amount": 10000,
        "status": "pending",
        "type": "withdraw",
        "updated_at": "2025-01-01T22:04:28.000000Z",
        "created_at": "2025-01-01T22:04:28.000000Z",
        "id": 44
    },
    "message": "Withdraw has been successful"
}
🟠400BAD REQUEST
🟠409BAD REQUEST
Modified at 2025-01-28 14:04:30
Previous
Login
Next
Cancel Order
Built with