Get the next page of listed objects.
Params
Tipo | Descripción | |
---|---|---|
previous | string as specific value | Last id on the page. the Id's depend on what is being paged |
Pagination, Practical examples
Clientes: https://api.conekta.io/customers?limit={{limit_value}}&previous={{customer_id}}
Ordenes: https://api.conekta.io/orders?limit={{limit_value}}&previous={{order_id}}
curl -H "Accept: application/vnd.conekta-v2.1.0+json" \
-H "Content-type: application/json" \
-u key_eYvWV7gSDkNYXsmr: \
-X GET https://api.conekta.io/orders?limit=5&previous=ord_2hyyAMFUjroKwPR7L
//order examples
{
"next_page_url": "https://api.conekta.io/orders?limit=20&next=ord_2hyyAMFUjroKwPR7L",
"previous_page_url": "https://api.conekta.io/orders?limit=20&previous=ord_2j9NfCf4xs5qzpUrf",
"has_more": true,
"object": "list",
"data": [
{
"livemode": false,
"amount": 4480,
"currency": "USD",
"payment_status": "pre_authorized",
"amount_refunded": 0,
"customer_info": {
"email": "[email protected]",
"phone": "55 1234 5678",
"name": "test conekta",
"corporate": false,
"object": "customer_info"
},
"shipping_contact": {
"address": {
"street1": "dfsdfsdf",
"city": "sfda",
"state": "MEX",
"country": "mx",
"residential": true,
"object": "shipping_address",
"postal_code": "01000"
},
"id": "ship_cont_2j9NgPyuUXHixVdUZ",
"object": "shipping_contact",
"created_at": 0
},
"fiscal_entity": {
"address": {
"street1": "dfsdfsdf",
"city": "sfda",
"state": "MEX",
"country": "mx",
"object": "fiscal_entity_address",
"postal_code": "01000"
},
"id": "fis_ent_2j9NgPyuUXHixVdUX",
"object": "fiscal_entity",
"created_at": 0
},
"object": "order",
"id": "ord_2j9NfCf4xs5qzpUrf",
"metadata": {},
"created_at": 1535064813,
"updated_at": 1535064902,
"charges": {
"object": "list",
"has_more": false,
"data": [
{
"id": "5b7f3aededbb6e730ff16cf4",
"livemode": false,
"created_at": 1535064813,
"currency": "MXN",
"device_fingerprint": "eUBNjNE3KJCgGtmjZUaZZGFxP5EkcnQ6",
"payment_method": {
"name": "info gen",
"exp_month": "12",
"exp_year": "23",
"auth_code": "081783",
"address": {
"street1": "dfsdfsdf",
"city": "sfda",
"state": "MEX",
"zip": "01000",
"country": "MX",
"object": "address"
},
"object": "card_payment",
"type": "credit",
"last4": "4242",
"brand": "visa",
"issuer": "",
"account_type": "",
"country": "US",
"fraud_score": 24.0,
"fraud_indicators": []
},
"object": "charge",
"reference_id": "c5113069764702.3",
"status": "pre_authorized",
"amount": 82966,
"fee": 3081,
"customer_id": "",
"order_id": "ord_2j9NfCf4xs5qzpUrf"
}
]
}
}
//client examples
{
"next_page_url": "https://api.conekta.io/customers?limit=20&next=cus_2ifFjz9PLKeQfYgXa",
"previous_page_url": "https://api.conekta.io/customers?limit=20&previous=cus_2oMFXdevspFZW7t3x",
"has_more": true,
"object": "list",
"data": [
{
"livemode": false,
"name": "Fulanito Pérez",
"email": "[email protected]",
"phone": "+52181818181",
"id": "cus_2oMFXdevspFZW7t3x",
"object": "customer",
"created_at": 1599517814,
"corporate": false,
"metadata": {
"reference": "12987324097",
"random_key": "random value"
},
"custom_reference": ""
}