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

Body Params application/json

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 Code 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 'Authorization: Bearer <token>' \
--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

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