Listar links de pagamento

Como listar os links de pagamento da sua conta

GET https://sandbox.codetech.one/v2/api/payment_links/{account_id}/orders

PATH PARAMS

account_id* string Identificador da conta.

{
    "authorization": "Bearer Token"
}

Response

{
	"data": [{
			"amount": 3000,
			"closed": false,
			"code": "8N5YAPFG2O",
			"created_at": "2023-11-08T16:54:31Z",
			"currency": "BRL",
			"customer": {
				"created_at": "2023-11-08T16:54:31Z",
				"delinquent": false,
				"id": "cus_GvMY2zgS7c9xYOXD",
				"name": "Cliente 1",
				"phones": {},
				"updated_at": "2023-11-08T16:54:31Z"
			},
			"id": "or_ALbmn7RhjAfyzdW7",
			"items": [{
				"amount": 3000,
				"created_at": "2023-11-08T16:54:31Z",
				"description": "Teste de Link de pagamento.",
				"id": "oi_x05Y7aPBipcLobae",
				"quantity": 1,
				"status": "active",
				"type": "product",
				"updated_at": "2023-11-08T16:54:31Z"
			}],
			"session_id": "c14e3273-866e-419e-9d8e-ca1801dca662",
			"status": "pending",
			"updated_at": "2021-06-08T16:54:31Z"
		},
		{
			"amount": 2000,
			"closed": false,
			"code": "49VNH3GSRK",
			"created_at": "2022-06-07T17:11:20Z",
			"currency": "BRL",
			"customer": {
				"created_at": "2022-06-07T17:11:20Z",
				"delinquent": false,
				"id": "cus_wQPZzrPT2Buj4ZXl",
				"name": "Cliente 2",
				"phones": {},
				"updated_at": "2021-06-07T17:11:20Z"
			},
			"id": "or_yPZVYnoibGFE2zmR",
			"items": [{
				"amount": 2000,
				"created_at": "2022-06-07T17:11:20Z",
				"description": "Link para pagamento de parcela do teste",
				"id": "oi_gkvlrJ1TQHkDlR8P",
				"quantity": 1,
				"status": "active",
				"type": "product",
				"updated_at": "2022-06-07T17:11:20Z"
			}],
			"session_id": "73bf173b-5730-4f2d-8c94-3a274d3fd6a1",
			"status": "pending",
			"updated_at": "2022-06-07T17:11:21Z"
		}
	],
	"paging": {
		"total": 2
	}
}

Last updated