Você pode seguir integrando diretamente através das nossas APIs.
Tudo o que você precisa fazer é obter a sua Connect Key e passá-la no Authentication header de todas as suas chamadas.
URL: https://ws.pbintegracoes.com/pspro/v7/
Veja abaixo alguns exemplos.
Criação de link de pagamento (checkout)
Endpoint: connect/ws/checkouts
Body:
{
"reference_id": "ca3b01e4-e214-44c8-878b-43845d333cab",
"customer": {
"name": "Teste PagBank",
"email": "cliente@provedor.com",
"tax_id": "01234567890",
"phone": {
"country": 55,
"area": "13",
"number": "31133300",
"type": "MOBILE"
}
},
"items": [
{
"reference_id": "b555fe24-cc84-a60f-28f9-4c7b64824d95",
"name": "TROPICAL TWIST SET Color:Pink | Size:S",
"quantity": 1,
"unit_amount": 12500
},
{
"reference_id": "3631a424-0578-0eba-778a-6a177161e6ce",
"name": "SUNSET VIBES BIKINI Size:M | Color:Orange",
"quantity": 1,
"unit_amount": 12500
}
],
"notification_urls": [
"https://exemplo.pbintegracoes.com/_functions/nt"
],
"shipping": {
"type": "FREE",
"address_modifiable": false,
"address": {
"street": "Rua Ângelo Guerra",
"number": "17",
"locality": "Santos",
"city": "Santos",
"region": "SP",
"region_code": "SP",
"country": "BRA",
"postal_code": "11045510"
}
},
"payment_methods": [
{
"type": "CREDIT_CARD"
},
{
"type": "BOLETO"
}
],
"customer_modifiable": true,
"redirect_url": "https://cashier-services.wix.com/_api/payment-services-web/redirect/success/ca3b01e4-e214-44c8-878b-43845d333cab"
}Retorno:
{
"id": "CHEC_A50090C4-28EF-417D-A142-B2EC80A2710D",
"reference_id": "ca3b01e4-e214-44c8-878b-43845d333cab",
"created_at": "2025-09-25T23:16:55-03:00",
"status": "ACTIVE",
"customer": {
"name": "Teste PagBank",
"email": "cliente@provedor.com",
"tax_id": "01234567890",
"phone": {
"country": "55",
"area": "13",
"number": "31133300"
}
},
"customer_modifiable": true,
"items": [
{
"reference_id": "b555fe24-cc84-a60f-28f9-4c7b64824d95",
"name": "TROPICAL TWIST SET Color:Pink | Size:S",
"quantity": 1,
"unit_amount": 12500
},
{
"reference_id": "3631a424-0578-0eba-778a-6a177161e6ce",
"name": "SUNSET VIBES BIKINI Size:M | Color:Orange",
"quantity": 1,
"unit_amount": 12500
}
],
"additional_amount": 0,
"discount_amount": 0,
"shipping": {
"type": "FREE",
"amount": 0,
"address": {
"country": "BRA",
"region_code": "SP",
"city": "Santos",
"postal_code": "11045510",
"street": "Rua Ângelo Guerra",
"number": "17",
"locality": "Santos"
},
"address_modifiable": false
},
"payment_methods": [
{
"type": "CREDIT_CARD"
},
{
"type": "BOLETO"
}
],
"redirect_url": "https://cashier-services.wix.com/_api/payment-services-web/redirect/success/ca3b01e4-e214-44c8-878b-43845d333cab",
"notification_urls": [
"https://exemplo.pbintegracoes.com/_functions/nt"
],
"payment_notification_urls": [
"https://exemplo.pbintegracoes.com/_functions/nt"
],
"links": [
{
"rel": "SELF",
"href": "https://sandbox.api.pagseguro.com/checkouts/CHEC_A50090C4-28EF-417D-A142-B2EC80A2710D",
"method": "GET"
},
{
"rel": "PAY",
"href": "https://pagamento.sandbox.pagbank.com.br/pagamento?code=a50090c4-28ef-417d-a142-b2ec80a2710d",
"method": "GET"
},
{
"rel": "INACTIVATE",
"href": "https://sandbox.api.pagseguro.com/checkouts/CHEC_A50090C4-28EF-417D-A142-B2EC80A2710D/inactivate",
"method": "POST"
}
],
"origin": "CHECKOUT_WEB"
}Exemplo da chamada em cURL:
curl -L 'https://ws.pbintegracoes.com/pspro/v7/connect/ws/checkouts' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer CONSANDBO*******' \
--data-raw '{
"reference_id": "ca3b01e4-e214-44c8-878b-43845d333cab",
"customer": {
"name": "Teste PagBank",
"email": "cliente@provedor.com",
"tax_id": "01234567890",
"phone": {
"country": 55,
"area": "13",
"number": "31133300",
"type": "MOBILE"
}
},
"items": [
{
"reference_id": "b555fe24-cc84-a60f-28f9-4c7b64824d95",
"name": "TROPICAL TWIST SET Color:Pink | Size:S",
"quantity": 1,
"unit_amount": 12500
},
{
"reference_id": "3631a424-0578-0eba-778a-6a177161e6ce",
"name": "SUNSET VIBES BIKINI Size:M | Color:Orange",
"quantity": 1,
"unit_amount": 12500
}
],
"notification_urls": [
"https://exemplo.pbintegracoes.com/_functions/nt"
],
"shipping": {
"type": "FREE",
"address_modifiable": false,
"address": {
"street": "Rua Ângelo Guerra",
"number": "17",
"locality": "Santos",
"city": "Santos",
"region": "SP",
"region_code": "SP",
"country": "BRA",
"postal_code": "11045510"
}
},
"payment_methods": [
{
"type": "CREDIT_CARD"
},
{
"type": "BOLETO"
}
],
"customer_modifiable": true,
"redirect_url": "https://cashier-services.wix.com/_api/payment-services-web/redirect/success/ca3b01e4-e214-44c8-878b-43845d333cab"
}'Veja também: Documentação completa dos parâmetros enviados e de retorno.
Comentários
0 comentário
Artigo fechado para comentários.