Pagar.me v5 · Docs Legacy
Retornando URs de um Recebedor
get
https://api.stone.com.br/core/v5/recipients/{recipient_id}/receivable-units
Query Parameters
start_datestring(date-time)required
Dia inicial da consulta de agenda. Deve ser informado em timestamp
end_datestring(date-time)required
Dia final da consulta de agenda. Dia inicial da consulta de agenda. Deve ser informado em timestamp
Path Parameters
recipient_idstringrequired
Código do recebedor
Response
application/json
Response
application/json
200
get/recipients/{recipient_id}/receivable-units
Authentication
Path Parameters
Query Parameters
application/json
Enviar webhook
post
https://api.stone.com.br/core/v5/hooks/{hook_id}/retry
Path Parameters
hook_idstringrequired
Código do webhook.
Response
application/json
Response
application/json
200
object
post/hooks/{hook_id}/retry
Authentication
Path Parameters
application/json
Obter webhook
get
https://api.stone.com.br/core/v5/hooks/{hook_id}
Path Parameters
hook_idstringrequired
Código do webhook.
Response
application/json
Response
application/json
200
idstring
Example:hook_98kmOL1sMfnZqoPL
urlstring
Example:https://70cfee17.ngrok.io/notifications/payment
accountobject
Show Child Parameters
eventstring
Example:order.paid
statusstring
Example:failed
attemptsstring
Example:3/3
last_attemptstring
Example:2017-03-24T21:32:07Z
created_atstring
Example:2017-03-24T21:21:59Z
response_statusinteger
Default:0
Example:404
response_rawstring
Example:Tunnel 70cfee17.ngrok.io not found
dataobject
Show Child Parameters
get/hooks/{hook_id}
Authentication
Path Parameters
application/json
Listar webhooks
get
https://api.stone.com.br/core/v5/hooks
Query Parameters
statusstring
Status do webhook (‘pending’, ‘sent’ or ‘failed’)
webhook_eventstring
Nome do evento do webhook
created_sincestring(date)
Data de início do período de criação a ser listado.
created_untilstring(date)
Data final do período de criação a ser listado.
pageinteger(int32)
Número da página.
Default:1
sizeinteger(int32)
Quantidade de itens por página.
Default:10
Response
application/json
Response
application/json
200
dataarray[object]
Show Child Parameters
pagingobject
Show Child Parameters
get/hooks
Authentication
Query Parameters
application/json
Criação de pedido MF
post
https://api.stone.com.br/core/v5/odersMF
Body
application/json
Body
application/json
amountstring
Allowed values:
Response
application/json
Response
application/json
200
object
post/odersMF
Authentication
Body
{
"items": [
{
"amount": 1000,
"description": "Chaveiro do Tesseract",
"quantity": 1,
"code": "123"
}
],
"closed": "false",
"poi_payment_settings": {
"visible": true,
"display_name": "Teste NF",
"print_order_receipt": true,
"devices_serial_number": [
"6M489133"
],
"payment_setup": {
"type": "credit",
"installments": 1,
"installment_type": "merchant"
}
},
"customer": {
"name": "Tony Stark",
"email": "testes@gmail.com",
"Document": "13621248773",
"type": "individual",
"phones": {
"home_phone": {
"country_code": "55",
"area_code": "21",
"number": "000000000"
},
"mobile_phone": {
"country_code": "55",
"area_code": "21",
"number": "000000000"
}
}
}
}
application/json