Criar um pedido
Changed onRequest
- Base URLhttps://sandbox.api.pagseguro.com
- URLhttps://sandbox.api.pagseguro.com/orders
- Authnone required
Headers
Bearer TOKEN
Request body
Response
201
Example response
{
"id": "ORDE_F87334AC-BB8B-42E2-AA85-8579F70AA328",
"reference_id": "ex-00001",
"created_at": "2020-11-21T23:23:22.69-03:00",
"shipping": {
"address": {
"street": "Avenida Brigadeiro Faria Lima",
"number": "1384",
"complement": "apto 12",
"locality": "Pinheiros",
"city": "São Paulo",
"region_code": "SP",
"country": "BRA",
"postal_code": "01452002"
}
},
"items": [
{
"reference_id": "referencia do item",
"name": "nome do item",
"quantity": 1,
"unit_amount": 500
}
],
"customer": {
"name": "Jose da Silva",
"email": "email@test.com",
"tax_id": "12345678909",
"phones": [
{
"country": "55",
"area": "11",
"number": "999999999",
"type": "MOBILE"
}
]
},
"qr_codes": [
{
"id": "QRCO_86FE511B-E945-4FE1-BB5D-297974C0DB74",
"amount": {
"value": 500
},
"text": "00020101021226600016BR.COM.PAGSEGURO013686FE511B-E945-4FE1-BB5D-297974C0DB7452048999530398654045.005802BR5922Rafael Gouveia Firmino6009SAO PAULO63049879",
"links": [
{
"rel": "QRCODE.PNG",
"href": "https://sandbox.api.pagseguro.com/qrcode/QRCO_86FE511B-E945-4FE1-BB5D-297974C0DB74/png",
"media": "image/png",
"type": "GET"
}
]
}
],
"links": [
{
"rel": "SELF",
"href": "https://sandbox.api.pagseguro.com/orders/ORDE_F87334AC-BB8B-42E2-AA85-8579F70AA328",
"media": "application/json",
"type": "GET"
}
]
}Changes
- breaking
the request property
///became required - breaking
the request property
/became required - breaking
the
request property type changed fromarraytoobject - breaking
the response's body type changed from no type to
objectfor status - warning
deleted the
headerrequest parameterx-idempotency-key - info
api operation id
criar-pedidoremoved and replaced withcreate-order2 - info
added the new optional request property
/// - info
added the new optional request property
- info
added the new optional request property
/ - info
added the new optional request property
/ - info
the
headerrequest parameterAuthorizationbecame optional - info
added the new
PIXenum value to the request property/// - info
removed
subschema #1: Criar Pedidosubschema #2: Criar/Pag Cartãosubschema #3: Criar/Pag Token Band VISA/MASTER CREDsubschema #4: Criar/Pag Token Band VISA/MASTER DEBsubschema #5: Criar/Pag Token Band ELO CREDsubschema #6: Criar/Pag Token Band ELO DEBsubschema #7: Criar/Pag Token PagBanksubschema #8: Criar/Pag INITIAL - Indicação de Recorrênciasubschema #9: Criar/Pag SUBSEQUENT - Indicação de Recorrênciasubschema #10: Criar/Pag 3DS - Validação Externa CREDsubschema #11: Criar/Pag 3DS - Validação Externa DEBsubschema #12: Criar/Pag 3DS - Validação Internasubschema #13: Criar Pedido - 3DS Internasubschema #14: Criar/Pag Cartão - PCIsubschema #15: Criar/Pag Pedido - Boletosubschema #16: Criar Pedido - QR Code - PIXsubschema #17: Pedido - Facilitadores de Pagamentofrom the response bodyoneOflist for the response status - info
removed the non-success response with the status
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- breaking