Criar Checkout
Changed onUtilize este endpoint para solicitar a criação de um checkout
post/checkouts/old
Request
- Base URLhttps://sandbox.api.pagseguro.com
- URLhttps://sandbox.api.pagseguro.com/checkouts/old
- Authnone required
Headers
Content-typestring
Authorizationstring
Bearer TOKEN
Request body
Response
200
Example response
{
"id": "CHEC_XXXX",
"reference_id": "REFERÊNCIA DO PRODUTO",
"expiration_date": "2023-08-14T19:09:10-03:00",
"created_at": "2023-06-14T16:34:30-03:00",
"status": "ACTIVE",
"customer": {
"name": "João Teste",
"email": "joao@teste.com",
"tax_id": "00000000000",
"phone": {
"country": "+55",
"area": "27",
"number": "999999999"
}
},
"customer_modifiable": true,
"items": [
{
"reference_id": "ITEM01",
"name": "Nome do Produto",
"quantity": 1,
"unit_amount": 500
}
],
"shipping": {
"type": "FREE",
"address": {
"country": "BRA",
"region_code": "SP",
"city": "São Paulo",
"postal_code": "01452002",
"street": "Faria Lima",
"number": "1384",
"locality": "Pinheiros",
"complement": "5 andar"
},
"address_modifiable": true
},
"payment_methods": [
{
"type": "CREDIT_CARD",
"brands": [
"MASTERCARD"
]
}
],
"payment_methods_configs": [
{
"type": "CREDIT_CARD",
"brands": [
"MASTERCARD"
],
"config_options": [
{
"option": "INSTALLMENTS_LIMIT",
"value": "1"
}
]
}
],
"soft_descriptor": "xxxx",
"redirect_url": "https://pagseguro.uol.com.br",
"return_url": "https://pagseguro.uol.com.br",
"notification_urls": [
"https://pagseguro.uol.com.br"
],
"payment_notification_urls": [
"https://pagseguro.uol.com.br"
],
"links": [
{
"rel": "PAY",
"href": "https://pagamento.pagseguro.uol.com.br/pagamento?code=XXXX",
"method": "GET"
}
]
}Changes
- info
endpoint added
- info