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

Create Order

Develop Env
https://payments.dubpay2.com.br/api
Develop Env
https://payments.dubpay2.com.br/api
POST
https://payments.dubpay2.com.br/api
/orders

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
customer
object 
required
name
string 
required
Nome
email
string 
required
Email
document
string 
required
CPF
birthdate
string 
optional
Data de nascimento
ip
string 
required
IP do comprador
phone
object 
required
Telefone
address
object 
optional
Endereço de entrega
items
array [object {3}] 
required
Lista de produtos
name
string 
required
Nome do produto
quantity
string 
required
Quantidade de produtos
price
string 
required
Valor do produto (em centavos)
payment
object 
required
type
enum<string> 
required
Forma de pagamento
Allowed values:
creditdebitinvoice
installments
string 
required
Número de parcelas em caso de pagamento
no cartão (colocar 1 em outras formas de
pagamento)
credit_card
object 
required
currency
string 
required
Moeda usada na transação
Examples:
USDBRLAUDCHFCADGBPEUR
shipping
object 
required
name
string 
required
Nome do frete
price
string 
required
Valor do frete (em centavos)
discount
string 
required
Valor do desconto (em centavos)
subtotal
string 
required
Valor total dos produtos (em centavos)
total
string 
required
Valor final, somando frete, subtraindo desconto
e somando os juros, no caso de parcelas no
cartão (em centavos)
Example
{
    "customer": {
        "name": "string",
        "email": "string",
        "document": "string",
        "birthdate": "string",
        "ip": "string",
        "phone": {
            "country_code": "string",
            "area_code": "string",
            "number": "string"
        },
        "address": {
            "line_1": "string",
            "line_2": "string",
            "zip_code": "string",
            "city": "string",
            "state": "string",
            "country": "string"
        }
    },
    "items": [
        {
            "name": "string",
            "quantity": "string",
            "price": "string"
        }
    ],
    "payment": {
        "type": "credit",
        "installments": "string",
        "credit_card": {
            "number": "string",
            "holder_name": "string",
            "exp_month": 0,
            "exp_year": 0,
            "cvv": "string"
        },
        "currency": "USD"
    },
    "shipping": {
        "name": "string",
        "price": "string"
    },
    "discount": "string",
    "subtotal": "string",
    "total": "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/orders' \
--header 'store-id: ' \
--header 'Content-Type: application/json' \
--data-raw '{
    "customer": {
        "name": "string",
        "email": "string",
        "document": "string",
        "birthdate": "string",
        "ip": "string",
        "phone": {
            "country_code": "string",
            "area_code": "string",
            "number": "string"
        },
        "address": {
            "line_1": "string",
            "line_2": "string",
            "zip_code": "string",
            "city": "string",
            "state": "string",
            "country": "string"
        }
    },
    "items": [
        {
            "name": "string",
            "quantity": "string",
            "price": "string"
        }
    ],
    "payment": {
        "type": "credit",
        "installments": "string",
        "credit_card": {
            "number": "string",
            "holder_name": "string",
            "exp_month": 0,
            "exp_year": 0,
            "cvv": "string"
        },
        "currency": "USD"
    },
    "shipping": {
        "name": "string",
        "price": "string"
    },
    "discount": "string",
    "subtotal": "string",
    "total": "string"
}'

Responses

🟢200SUCCESS
application/json
Body
message
string 
required
data
object 
required
order_number
string 
required
Númerodo pedido
data
object 
required
Example
{
    "message": "Order created successfully",
    "data": {
        "order_number": "K3EG01Z0Z1",
        "data": {
            "order_id": "or_aa8EWN8U1fexQvbb",
            "success": true,
            "pix": {
                "qr_code": "pix-code"
            }
        },
        "success": true
    }
}
Modified at 2025-03-07 22:13:50
Previous
Request Withdraw
Next
List taxes
Built with