StafeBank Gateway
  1. Payment Links
StafeBank Gateway
  • Overview
  • Webhooks
  • Error codes
  • Ambiente de Testes
  • Transactions
    • Criar uma Transação
      POST
    • Criar uma Transação Com 3DS
      POST
    • Criar uma Transação PIX
      POST
    • Estornar uma transação
      POST
    • Capturando uma Transação
      POST
    • Buscar Transação
      GET
    • Listar Transações
      GET
    • Retornar Histórico de uma Transação
      GET
    • Retornar Parcelas de uma transação
      GET
  • Payment Links
    • Criar Link
      POST
    • Atualizar Link
      PUT
    • Buscar Link
      GET
    • Listar Links
      GET
    • Transações de um link
      GET
  • Customer
    • Criar Cliente
      POST
    • Encontrar Cliente
      POST
    • Cartões do Cliente
      POST
    • Atualizar Cliente
      PUT
    • Buscar Cliente
      GET
    • Listar Clientes
      GET
    • Deletar um cliente
      DELETE
  • Cards
    • Criar Cartão
      POST
    • Obter Bandeira
      POST
    • Buscar Cartão
      GET
    • Listar Cartões
      GET
  • Webhook
    • Criar um webhook
    • Atualizar Webhook
    • Retornar Webhooks Cadastrados
    • Retornar um Webhook
    • Remover um Webhook
  • Simulate
    • Tax
  • Recurrence
    • Plans
      • Create Plan
      • Update Plan
      • Get a Plan
      • List Plans
    • Subscription
      • Create Subscription
      • Cancel Subscription
      • GET Subscription
  1. Payment Links

Criar Link

Amb. de prod.
https://onapi.stafebank.com.br
Amb. de prod.
https://onapi.stafebank.com.br
POST
/v1/links

Requisição

Parâmetros Bodyapplication/json

Exemplo
{
    "amount": 100,
    "type": "payment",
    "name": "{{$randomProduct}}",
    "description": "{{$randomLoremSentence}}",
    "redirect_link": "https://www.example.com.br/",
    "notify": "whatsapp",
    "send_to": "5511988556633",
    "metadata": "teste",
    "credit": true,
    "pix": true,
    "boleto": true,
    "expire_in": 2
}

Códigos de solicitação

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://onapi.stafebank.com.br/v1/links' \
--header 'Content-Type: application/json' \
--data-raw '{
    "amount": 100,
    "type": "payment",
    "name": "{{$randomProduct}}",
    "description": "{{$randomLoremSentence}}",
    "redirect_link": "https://www.example.com.br/",
    "notify": "whatsapp",
    "send_to": "5511988556633",
    "metadata": "teste",
    "credit": true,
    "pix": true,
    "boleto": true,
    "expire_in": 2
}'

Respostas

🟢200Success
application/json
Body

Examples
{
  "id": 19,
  "ref_id": "1234ABCD",
  "url": "https://example.com/ecommerce/link/1234ABCD",
  "amount": 100,
  "type": "payment",
  "name": "Shoes",
  "description": "Reprehenderit ut qui nihil sequi qui error saepe commodi.",
  "redirect": "https://www.example.com/",
  "status": 1,
  "expire_date": "2023-12-28",
  "created_at": "2023-12-26T19:11:09.000000Z",
  "updated_at": "2023-12-26T19:11:09.000000Z",
  "metadata": "",
  "notify": "whatsapp",
  "send_to": "5511965250000",
  "notified": false
}
🟠400 Bad Request
Modificado em 2025-09-26 14:19:52
Página anterior
Retornar Parcelas de uma transação
Próxima página
Atualizar Link
Built with