Pular para o conteúdo principal

Woovi (1.0.0)

Download OpenAPI specification:Download

A Woovi é uma Plataforma de Gestão de Pagamentos. Para utilizar nossa API você deve acessar https://api.woovi.com/ e somente o mesmo. A Woovi não aceita subdominios para a API.

Veja como configurar seu acesso a nossa API aqui.

account

Endpoint to manage Accounts

Get an Account

Authorizations:
AppID
path Parameters
accountId
required
string
Example: 6290ccfd42831958a405debc

ID of the Account

Responses

Request samples

const http = require("https");

const options = {
  "method": "GET",
  "hostname": "api.woovi.com",
  "port": null,
  "path": "/api/v1/account/6290ccfd42831958a405debc",
  "headers": {
    "Authorization": "REPLACE_KEY_VALUE"
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();

Response samples

Content type
application/json
{
  • "account": {
    }
}

Get a list of Accounts

Authorizations:
AppID

Responses

Request samples

const http = require("https");

const options = {
  "method": "GET",
  "hostname": "api.woovi.com",
  "port": null,
  "path": "/api/v1/account/",
  "headers": {
    "Authorization": "REPLACE_KEY_VALUE"
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();

Response samples

Content type
application/json
{
  • "accounts": [
    ]
}

Withdraw from an Account

An additional fee may be charged depending on the minimum free withdrawal amount. See more about at https://developers.openpix.com.br/docs/FAQ/faq-virtual-account/#onde-posso-consultar-as-taxas-da-minha-conta-virtual

Authorizations:
AppID
path Parameters
accountId
required
string
Example: 6290ccfd42831958a405debc

ID of the Account

Request Body schema: application/json
value
number

Value in cents

Responses

Request samples

Content type
application/json
{
  • "value": 7000
}

Response samples

Content type
application/json
{
  • "withdraw": {
    }
}

cashback-fidelity

Endpoint to manage exclusive cashbacks

Get the exclusive cashback amount an user still has to receive by taxID.

Authorizations:
AppID
path Parameters
taxID
required
string
Examples:
  • 60151449000182 -

The raw tax ID from the customer you want to get the balance.

Responses

Request samples

const http = require("https");

const options = {
  "method": "GET",
  "hostname": "api.woovi.com",
  "port": null,
  "path": "/api/v1/cashback-fidelity/balance/%7BtaxID%7D",
  "headers": {
    "Authorization": "REPLACE_KEY_VALUE"
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();

Response samples

Content type
application/json
{
  • "balance": 0,
  • "status": "string"
}

Get or create cashback for a customer.

Create a new cashback exclusive for the customer with a given taxID. If the customer already has a pending excluisve cashback, this endpoint will return it instead.

Authorizations:
AppID
Request Body schema: application/json

Customer's taxID and the cash

taxID
string

Customer taxID (CPF or CNPJ)

value
number

Cashback value in centavos

Responses

Request samples

Content type
application/json
{
  • "value": 100,
  • "taxID": 11111111111
}

Response samples

Content type
application/json
{
  • "cashback": {
    },
  • "message": "string"
}

charge

Endpoint to manage Charges

Delete a charge

Authorizations:
AppID
path Parameters
id
required
string
Examples:
  • Q2hhcmdlOjYwM2U3NDlhNDI1NjAyYmJiZjRlN2JlZA== -
  • fe7834b4060c488a9b0f89811be5f5cf -

charge ID or correlation ID. You will need URI encoding if your correlation ID has characters outside the ASCII set or reserved characters (%, #, /).

Responses

Request samples

const http = require("https");

const options = {
  "method": "DELETE",
  "hostname": "api.woovi.com",
  "port": null,
  "path": "/api/v1/charge/%7Bid%7D",
  "headers": {
    "Authorization": "REPLACE_KEY_VALUE"
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();

Response samples

Content type
application/json
{
  • "status": "OK",
  • "id": "fe7834b4060c488a9b0f89811be5f5cf"
}

Get one charge

Authorizations:
AppID
path Parameters
id
required
string
Examples:
  • Q2hhcmdlOjYwM2U3NDlhNDI1NjAyYmJiZjRlN2JlZA== -
  • fe7834b4060c488a9b0f89811be5f5cf -

charge ID or correlation ID. You will need URI encoding if your correlation ID has characters outside the ASCII set or reserved characters (%, #, /).

Responses

Request samples

const http = require("https");

const options = {
  "method": "GET",
  "hostname": "api.woovi.com",
  "port": null,
  "path": "/api/v1/charge/%7Bid%7D",
  "headers": {
    "Authorization": "REPLACE_KEY_VALUE"
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();

Response samples

Content type
application/json
{
  • "charge": {
    }
}

Get a list of charges

Authorizations:
AppID
query Parameters
start
string <date-time> (Start Date)
Example: start=2020-01-01T00:00:00Z

Start date used in the query. Complies with RFC 3339.

end
string <date-time> (End Date)
Example: end=2020-12-01T17:00:00Z

End date used in the query. Complies with RFC 3339.

status
string
Enum: "ACTIVE" "COMPLETED" "EXPIRED"

Responses

Request samples

const http = require("https");

const options = {
  "method": "GET",
  "hostname": "api.woovi.com",
  "port": null,
  "path": "/api/v1/charge?start=2020-01-01T00%3A00%3A00Z&end=2020-12-01T17%3A00%3A00Z&status=SOME_STRING_VALUE",
  "headers": {
    "Authorization": "REPLACE_KEY_VALUE"
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();

Response samples

Content type
application/json
{
  • "pageInfo": {
    },
  • "charges": {
    }
}

Create a new Charge

Endpoint to create a new Charge for a customer

Authorizations:
AppID
query Parameters
return_existing
boolean
Examples:
  • return_existing=true -

Make the endpoint idempotent, will return an existent charge if already has a one with the correlationID

Request Body schema: application/json

Data to create a new charge

correlationID
required
string

Your correlation ID to keep track of this charge

value
required
number

Value in cents of this charge

type
string
Enum: "DYNAMIC" "OVERDUE"

Charge type is used to determine whether a charge will have a deadline, fines and interests

comment
string

Comment to be added in infoPagador

identifier
string

Custom identifier for EMV

expiresIn
number

Expires the charge in seconds (minimum is 15 minutes)

object (CustomerPayload)
daysForDueDate
number

Time in days until the charge hits the deadline so fines and interests start applying. This property is only considered for charges of type OVERDUE

daysAfterDueDate
number

Time in days that a charge is still payable after the deadline. This property is only considered for charges of type OVERDUE

object

Interests configuration. This property is only considered for charges of type OVERDUE

object

Fines configuration. This property is only considered for charges of type OVERDUE

Array of objects

Additional info of the charge

Responses

Request samples

Content type
application/json
Example
{
  • "correlationID": "9134e286-6f71-427a-bf00-241681624587",
  • "value": 100,
  • "comment": "good",
  • "customer": {
    },
  • "additionalInfo": [
    ]
}

Response samples

Content type
application/json
{
  • "charge": {
    }
}

Get an image of Qr Code from a Charge

Authorizations:
AppID
path Parameters
id
required
string
Examples:
  • fe7834b4060c488a9b0f89811be5f5cf -

charge link payment ID

query Parameters
size
string
Examples:
  • size=768 -

Size for the image. This size should be between 600 and 4096. if the size parameter was not passed, the default value will be 1024.

Responses

Request samples

const http = require("https");

const options = {
  "method": "GET",
  "hostname": "api.woovi.com",
  "port": null,
  "path": "/openpix/charge/brcode/image/%7B:id%7D.png?size=1024",
  "headers": {
    "Authorization": "REPLACE_KEY_VALUE"
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();

Response samples

Content type
application/json
{
  • "error": "string"
}

customer

Endpoint to manage Customer

Get one customer

Authorizations:
AppID
path Parameters
id
required
string
Examples:
  • fe7834b4060c488a9b0f89811be5f5cf -

correlation ID

Responses

Request samples

const http = require("https");

const options = {
  "method": "GET",
  "hostname": "api.woovi.com",
  "port": null,
  "path": "/api/v1/customer/%7Bid%7D",
  "headers": {
    "Authorization": "REPLACE_KEY_VALUE"
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();

Response samples

Content type
application/json
{
  • "customer": {
    }
}

Get a list of customers

Authorizations:
AppID

Responses

Request samples

const http = require("https");

const options = {
  "method": "GET",
  "hostname": "api.woovi.com",
  "port": null,
  "path": "/api/v1/customer",
  "headers": {
    "Authorization": "REPLACE_KEY_VALUE"
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();

Response samples

Content type
application/json
{
  • "pageInfo": {
    },
  • "customers": {
    }
}

Create a new Customer

Endpoint to create a new Customer

Authorizations:
AppID
Request Body schema: application/json

Data to create a new customer

name
string
email
string
phone
string
taxID
string
correlationID
string
object

Responses

Request samples

Content type
application/json
{
  • "name": "Dan",
  • "taxID": "31324227036",
  • "email": "[email protected]",
  • "phone": "5511999999999",
  • "correlationID": "9134e286-6f71-427a-bf00-241681624586"
}

Response samples

Content type
application/json
{
  • "customer": {
    }
}

partner (request access)

Partners integrate affiliated companies.
They can register new companies, manage them, and earn money from them.

Create a new application to some of your preregistration's company.

As a partner company, you can create a new application to some of your companies. The application should give access to our API to this companies, so they can use it too.

Authorizations:
AppID
Request Body schema: application/json

The request body to create a pre registration.

object
object (TaxIDObjectPayload)

Responses

Request samples

Content type
application/json
{
  • "application": {
    },
  • "taxID": {
    }
}

Response samples

Content type
application/json
{
  • "application": {
    }
}

Get an specific preregistration via taxID param.

Authorizations:
AppID
path Parameters
taxID
required
string
Examples:
  • 60151449000182 -

The raw tax ID from the preregistration that you want to get.

Responses

Request samples

const http = require("https");

const options = {
  "method": "GET",
  "hostname": "api.woovi.com",
  "port": null,
  "path": "/api/v1/partner/company/%7BtaxID%7D",
  "headers": {
    "Authorization": "REPLACE_KEY_VALUE"
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();

Response samples

Content type
application/json
{
  • "preRegistration": {
    }
}

Get every preregistration that is managed by you.

Authorizations:
AppID

Responses

Request samples

const http = require("https");

const options = {
  "method": "GET",
  "hostname": "api.woovi.com",
  "port": null,
  "path": "/api/v1/partner/company",
  "headers": {
    "Authorization": "REPLACE_KEY_VALUE"
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();

Response samples

Content type
application/json
{
  • "preRegistrations": [
    ],
  • "pageInfo": {
    }
}

Create a pre registration with a partner reference (your company)

As a partner company, you can create a new pre registration referencing your company as a partner.

Authorizations:
AppID
Request Body schema: application/json

The request body to create a pre registration.

object (PreRegistrationObject)
object (PreRegistrationUserObject)

Responses

Request samples

Content type
application/json
{
  • "preRegistration": {
    },
  • "user": {
    }
}

Response samples

Content type
application/json
{
  • "preRegistration": {
    },
  • "user": {
    }
}

payment (request access)

Endpoint to init a payment using a Pix Key.

Get one Payment

Authorizations:
AppID
path Parameters
id
required
string
Examples:
  • Q2hhcmdlOjYwM2U3NDlhNDI1NjAyYmJiZjRlN2JlZA== -
  • fe7834b4060c488a9b0f89811be5f5cf -

payment ID or correlation ID

Responses

Request samples

const http = require("https");

const options = {
  "method": "GET",
  "hostname": "api.woovi.com",
  "port": null,
  "path": "/api/v1/payment/%7Bid%7D",
  "headers": {
    "Authorization": "REPLACE_KEY_VALUE"
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();

Response samples

Content type
application/json
{
  • "payment": {
    },
  • "transaction": {
    }
}

Get a list of payments

Authorizations:
AppID

Responses

Request samples

const http = require("https");

const options = {
  "method": "GET",
  "hostname": "api.woovi.com",
  "port": null,
  "path": "/api/v1/payment",
  "headers": {
    "Authorization": "REPLACE_KEY_VALUE"
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();

Response samples

Content type
application/json
{
  • "pageInfo": {
    },
  • "payments": {
    }
}

Create a Payment Request

Endpoint to request a payment

Authorizations:
AppID
Request Body schema: application/json

Data to create a payment request

value
number

value of the requested payment in cents

destinationAlias
string

the pix key the payment should be sent to

correlationID
string

an unique identifier for your payment

comment
string

the comment that will be send alongisde your payment

sourceAccountId
string

an optional id for the source account of the payment, if not informed will assume the default account

Responses

Request samples

Content type
application/json
{
  • "value": 100,
  • "destinationAlias": "c4249323-b4ca-43f2-8139-8232aab09b93",
  • "comment": "payment comment",
  • "correlationID": "payment1",
  • "sourceAccountId": "my-source-account-id"
}

Response samples

Content type
application/json
{
  • "payment": {
    }
}

pixQrCode

Endpoint to manage static QRCodes

Get one Pix QrCode

Authorizations:
AppID
path Parameters
id
required
string
Examples:
  • Q2hhcmdlOjYwM2U3NDlhNDI1NjAyYmJiZjRlN2JlZA== -
  • fe7834b4060c488a9b0f89811be5f5cf -
  • zr7833b4060c488a9b0f89811 -

pixQrCode ID, correlation ID or emv identifier

Responses

Request samples

const http = require("https");

const options = {
  "method": "GET",
  "hostname": "api.woovi.com",
  "port": null,
  "path": "/api/v1/pixQrCode-static/%7Bid%7D",
  "headers": {
    "Authorization": "REPLACE_KEY_VALUE"
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();

Response samples

Content type
application/json
{}

Get a list of Pix QrCodes

Authorizations:
AppID

Responses

Request samples

const http = require("https");

const options = {
  "method": "GET",
  "hostname": "api.woovi.com",
  "port": null,
  "path": "/api/v1/qrcode-static",
  "headers": {
    "Authorization": "REPLACE_KEY_VALUE"
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();

Response samples

Content type
application/json
{
  • "pageInfo": {
    },
  • "pixQrCodes": {}
}

Create a new Pix QrCode Static

Endpoint to create a new Pix QrCode Static

Authorizations:
AppID
Request Body schema: application/json

Data to create a new Pix QrCode Static

name
required
string

Name of this pix qrcode

correlationID
string

Your correlation ID to keep track of this qrcode

value
number

Value in cents of this qrcode

comment
string

Comment to be added in infoPagador

identifier
required
string

Custom identifier for EMV

Responses

Request samples

Content type
application/json
{
  • "correlationID": "9134e286-6f71-427a-bf00-241681624586",
  • "value": 100,
  • "comment": "good",
  • "identifier": "zr7833b4060c488a9b0f89811"
}

Response samples

Content type
application/json
{}

refund

Endpoint to manage Refunds

Get one refund

Authorizations:
AppID
path Parameters
id
required
string
Examples:
  • Q2hhcmdlOjYwM2U3NDlhNDI1NjAyYmJiZjRlN2JlZA== -
  • fe7834b4060c488a9b0f89811be5f5cf -

refund ID or correlation ID

Responses

Request samples

const http = require("https");

const options = {
  "method": "GET",
  "hostname": "api.woovi.com",
  "port": null,
  "path": "/api/v1/refund/%7Bid%7D",
  "headers": {
    "Authorization": "REPLACE_KEY_VALUE"
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();

Response samples

Content type
application/json
{
  • "refund": {
    }
}

Get a list of refunds

Authorizations:
AppID

Responses

Request samples

const http = require("https");

const options = {
  "method": "GET",
  "hostname": "api.woovi.com",
  "port": null,
  "path": "/api/v1/refund",
  "headers": {
    "Authorization": "REPLACE_KEY_VALUE"
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();

Response samples

Content type
application/json
{
  • "pageInfo": {
    },
  • "refunds": {
    }
}

Create a new refund

Endpoint to create a new refund for a customer

Authorizations:
AppID
Request Body schema: application/json

Data to create a new refund

value
number
transactionEndToEndId
string

Your transaction ID, or endToEnd ID, to keep track of this refund

correlationID
string

Your correlation ID, unique identifier refund

Responses

Request samples

Content type
application/json
{
  • "transactionEndToEndId": "9134e286-6f71-427a-bf00-241681624586",
  • "correlationID": "9134e286-6f71-427a-bf00-241681624586",
  • "value": 100
}

Response samples

Content type
application/json
{
  • "refund": {
    }
}

subscription

Endpoint to manage Subscriptions

Get one subscription

Authorizations:
AppID
path Parameters
id
required
string
Example: UGF5bWVudFN1YnNjcmlwdGlvbjo2M2UzYjJiNzczZDNkOTNiY2RkMzI5OTM=

The globalID of the subscription.

Responses

Request samples

const http = require("https");

const options = {
  "method": "GET",
  "hostname": "api.woovi.com",
  "port": null,
  "path": "/api/v1/subscriptions/UGF5bWVudFN1YnNjcmlwdGlvbjo2M2UzYjJiNzczZDNkOTNiY2RkMzI5OTM=",
  "headers": {
    "Authorization": "REPLACE_KEY_VALUE"
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();

Response samples

Content type
application/json
{
  • "subscription": {
    }
}

Create a new Subscription

Endpoint to create a new Subcription

Authorizations:
AppID
Request Body schema: application/json

Data to create a new Subscription

required
object

Customer of this subscription

value
required
number

Value in cents of this subscription

dayGenerateCharge
number [ 0 .. 27 ]
Default: 5

Day of the month that the charges will be generated. Maximun of 27.

Responses

Request samples

Content type
application/json
{
  • "value": 100,
  • "customer": {
    },
  • "dayGenerateCharge": 15
}

Response samples

Content type
application/json
{
  • "subscription": {
    }
}

transactions

Endpoint to manage Transactions

Get a Transaction

Authorizations:
AppID
path Parameters
id
required
string

you can use the transaction id from openpix or the endToEndId of transaction from bank

Responses

Request samples

const http = require("https");

const options = {
  "method": "GET",
  "hostname": "api.woovi.com",
  "port": null,
  "path": "/api/v1/transaction/%7Bid%7D",
  "headers": {
    "Authorization": "REPLACE_KEY_VALUE"
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();

Response samples

Content type
application/json
{
  • "transaction": {
    }
}

Get a list of transactions

Authorizations:
AppID
query Parameters
start
string <date-time> (Start Date)
Example: start=2020-01-01T00:00:00Z

Start date used in the query. Complies with RFC 3339.

end
string <date-time> (End Date)
Example: end=2020-12-01T17:00:00Z

End date used in the query. Complies with RFC 3339.

charge
string
Example: charge=Q2hhcmdlOjYwM2U3NDlhNDI1NjAyYmJiZjRlN2JlZA

You can use the charge ID or correlation ID or transaction ID of charge to get a list of transactions related of this transaction

pixQrCode
string
Example: pixQrCode=Q2hhcmdlOjYwM2U3NDlhNDI1NjAyYmJiZjRlN2JlZA

You can use the QrCode static ID or correlation ID or identifier field of QrCode static to get a list of QrCode related of this transaction

withdrawal
string
Example: withdrawal=Q2hhcmdlOjYwM2U3NDlhNDI1NjAyYmJiZjRlN2JlZA

You can use the ID or EndToEndId of a withdrawal transaction to get all transactions related to the withdrawal

Responses

Request samples

const http = require("https");

const options = {
  "method": "GET",
  "hostname": "api.woovi.com",
  "port": null,
  "path": "/api/v1/transaction",
  "headers": {
    "Authorization": "REPLACE_KEY_VALUE"
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();

Response samples

Content type
application/json
{
  • "pageInfo": {
    },
  • "transactions": {
    }
}

webhook

Endpoint to manage Webhooks

Delete a Webhook

Endpoint to delete a Webhook

Authorizations:
AppID
path Parameters
id
required
string
Examples:
  • Q2hhcmdlOjYwM2U3NDlhNDI1NjAyYmJiZjRlN2JlZA== -
  • fe7834b4060c488a9b0f89811be5f5cf -

webhook ID

Responses

Request samples

const http = require("https");

const options = {
  "method": "DELETE",
  "hostname": "api.woovi.com",
  "port": null,
  "path": "/api/v1/webhook/%7Bid%7D",
  "headers": {
    "Authorization": "REPLACE_KEY_VALUE"
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();

Response samples

Content type
application/json
{
  • "status": "string"
}

Get a list of webhooks

Authorizations:
AppID
query Parameters
url
string
Example: url=https://mycompany.com.br/webhook

You can use the url to filter all webhooks

Responses

Request samples

const http = require("https");

const options = {
  "method": "GET",
  "hostname": "api.woovi.com",
  "port": null,
  "path": "/api/v1/webhook?url=SOME_STRING_VALUE",
  "headers": {
    "Authorization": "REPLACE_KEY_VALUE"
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();

Response samples

Content type
application/json
{
  • "pageInfo": {
    },
  • "webhooks": [
    ]
}

Create a new Webhook

Endpoint to create a new Webhook

Authorizations:
AppID
Request Body schema: application/json

Data to create a new webhook

object (WebhookPayload)
name
number
event
string (WebhookEventEnum)
Enum: "OPENPIX:CHARGE_CREATED" "OPENPIX:CHARGE_COMPLETED" "OPENPIX:CHARGE_EXPIRED" "OPENPIX:TRANSACTION_RECEIVED" "OPENPIX:TRANSACTION_REFUND_RECEIVED" "OPENPIX:MOVEMENT_CONFIRMED"

Available events to register a webhook to listen to. If no one selected anyone the default event will be OPENPIX:TRANSACTION_RECEIVED.

  • OPENPIX:CHARGE_CREATED - New charge created
  • OPENPIX:CHARGE_COMPLETED - Charge completed is when a charge is fully paid
  • OPENPIX:CHARGE_EXPIRED - Charge expired is when a charge is not fully paid and expired
  • OPENPIX:TRANSACTION_RECEIVED - New PIX transaction received
  • OPENPIX:TRANSACTION_REFUND_RECEIVED - New PIX transaction refund received or refunded
  • OPENPIX:MOVEMENT_CONFIRMED - Payment confirmed is when the pix transaction related to the payment gets confirmed
url
string
authorization
string
isActive
boolean

Responses

Callbacks

Request samples

Content type
application/json
{}

Response samples

Content type
application/json
{
  • "webhook": {
    }
}

Callback payload samples

Callback
Content type
application/json
{
  • "charge": {
    },
  • "pix": {
    },
  • "pixQrCode": null
}