Listar Pix

Como consultar pagamentos com Pix enviados

GET https://sandbox-api.openbank.stone.com.br/api/v1/pix/{{account_id}}/pix_payments

Este é um endpoint que unifica pagamentos e devoluções realizadas/recebidas para Participantes Indiretos. Nele é possível buscar por `chave`, `end_to_end_id` ou `transaction_id` da operação. Os tipos das operações podem ser:
  • refund_for_outbound_pix_payment(devolução recebida)
  • refund_for_inbound_pix_payment (devolução enviada)
  • inbound_pix_payment (pagamento recebido)
  • outbound_pix_payment (pagamento enviado)

PATH PARAMS


account_id string

Identificador da conta.


QUERY PARAMS


end_to_end_ids string
Identificadores da transação de ponta a ponta.

transaction_ids string
Identificadores das cobranças (QR Code).

keys string
Identificadores das chaves Pix.

limit int32
Limite do cursor.

before string
Traz a página anterior ao cursor.

after string
Traz a página posterior ao cursor.


#### **HEADERS** ---

authorization* string
Bearer token de autenticação


Exemplo:

{
  "authorization": "Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI4d3NUd3BhYTRJWUZIYWV5ZFRubnRoRC1UaVlCaU9kanNmOGx6RUlMR1hVIn0.eyJqdGkiOiJiODQ0NDc4OS01ODE5LTQ4MTUtYjc1NC04MDU5NmMyYTg4MGYiLCJleHAiOjE2MTY2OTk5MjQsIm5iZiI6MCwiaWF0IjoxNjE2Njk5MDI0LCJpc3MiOiJodHRwczovL3NhbmRib3gtYWNjb3VudHMub3BlbmJhbmsuc3RvbmUuY29tLmJyL2F1dGgvcmVhbG1zL3N0b25lX2JhbmsiLCJzdWIiOiJhYzE5MGRmYy00YTBjLTQ5ODUtYmQwNi03NWE5Zjc3NjU0MTMiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiIwNjVlY2IwOC0yNDM5LTQwYzAtOGUxMy0yYjQzYzIxNzQzZTMiLCJhdXRoX3RpbWUiOjAsInNlc3Npb25fc3RhdGUiOiIwMjhlMjY3ZS0zMjYwLTQzNDMtODQ2ZS1hOTRkNzlmZTFjYWEiLCJhY3IiOiIxIiwic2N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JowYbLu4ANUITXU01Jf5hxMYq1oSobOL3-RuGWJLoPOXkJyAbOm5hS15QgSuwp_qOU8VAEa3Yg",
  "x-stone-idempotency-key": "24b53d84-a79d-11eb-bcbc-0242ac130002"
}

Responses

200 OK

Body:


{
	"cursor": {
		"after": null,
		"before": null,
		"limit": 25
	},
	"data": [{
			"account_id": "d8963f15-20ca-48e9-b033-c12ef88bc0ea",
			"amount": 28309,
			"approved_at": "2021-06-25T17:46:56Z",
			"approved_by": "user:8c8a97a5-18f3-46fe-94ae-6341d718da8f",
			"confirmed_at": "2021-06-25T17:46:56Z",
			"confirmed_by": "user:65b30ef8-fb55-4ebb-b48a-b01199792b08",
			"created_at": "2021-06-25T17:46:56Z",
			"created_by": "user:8c8a97a5-18f3-46fe-94ae-6341d718da8f",
			"description": "description",
			"end_to_end_id": "E165015552021062517465eeb40dd2f6",
			"failed_at": null,
			"failure_reason_code": null,
			"failure_reason_description": null,
			"fee": 0,
			"id": "e59c23d8-eb3a-4a67-8687-ebfe163211a8",
			"key": "ba19c2t8-1aba-47c6-1752-efb2b683213a",
			"money_reserved_at": "2021-06-25T17:46:56Z",
			"refunded_amount": 869707,
			"request_id": "aafa7eed-4349-46c2-91ae-7ab4337935cc",
			"settled_at": "2021-06-25T17:46:56Z",
			"source": {
				"account": {
					"account_code": "598461372",
					"account_type": "PG",
					"branch_code": "0001"
				},
				"entity": {
					"document": "92648457550",
					"document_type": "cpf",
					"name": "my name"
				},
				"institution": {
					"ispb": "16501555",
					"name": "Stone Pagamentos S.A."
				}
			},
			"status": "SETTLED",
			"target": {
				"entity": {
					"document": "***257844**",
					"document_type": "cpf",
					"name": "my name"
				},
				"institution": {
					"ispb": "34697281",
					"name": "Outro Banco S.A."
				}
			},
			"transaction_id": null,
			"type": "outbound_pix_payment"
		},
		{
			"account_id": "d8963f15-20ca-48e9-b033-c12ef88bc0ea",
			"amount": 39511,
			"created_at": "2022-06-29T12:27:27Z",
			"created_by": "user:6ead2edf-82f1-4e28-a5f3-f6456508fb02",
			"failed_at": null,
			"failure_reason_code": null,
			"failure_reason_description": null,
			"id": "aa44243f-c8e5-4719-9a6c-9e3d4080bc1d",
			"money_reserved_at": null,
			"reason": "beneficiary_request",
			"request_id": "d306c427-9eae-9425-bf09-5bdb151d217d",
			"return_id": "D1650155520220629122786649111556",
			"reversal_reason": null,
			"reversed_at": null,
			"settled_at": null,
			"source_ispb": "16501555",
			"status": "SETTLED",
			"target_ispb": "16501555",
			"type": "refund_for_inbound_pix_payment"

		},
		{
			"account_id": "d8963f15-20ca-48e9-b033-c12ef88bc0ea",
			"amount": 1010,
			"id": "aa44243f-c8e5-4719-9a6c-9e3d4080bc1d",
			"return_id": "D1650155520210628122786649122226",
			"refund_reason": "beneficiary_request",
			"rejected_at": null,
			"rejection_reason": null,
			"request_id": "d306c427-9eae-9425-bf09-5bdb151d217d",
			"settled_at": "2022-06-29T12:27:27Z",
			"status": "SETTLED",
			"created_at": "2022-06-29T12:27:23Z",
			"outbound_pix_payment_id": "e59c23d8-eb3a-4a67-8687-ebfe163211a8",
			"refund_reason_code": "2",
			"refund_reason_description": "A pessoa que recebeu seu Pix devolveu o valor",
			"type": "refund_for_outbound_pix_payment"
		}
	]
}

400 Bad Request
403 Forbidden
422 Unprocessable Entity

Body

{
  "type": "srn:error:not_indirect_participant"
}

Acontece quando a API não é requisitada por um Participante Indireto.


Última modificação: 25.06.2021