01 Listado de liquidaciones

Route
GET /api/1/settlements
Headers
Authorization: Bearer SECRET_KEY


Examples

Request

cURL
curl "https://api.pagantis.com/api/1/settlements?page=1" -X GET \
	-H "Authorization: Bearer 5aae2e44a0a4fa664e3d2946e576f0e2a7171c654c47105ebbf2ed368596781a"

Response

Status
        200 OK
        Content type: application/json; charset=utf-8
Body
{
   "response":[
      {
         "id":"set_e926d1648eb6f96807eed324763cdb7b",
         "amount":6108,
         "created_at":"2016-03-16T04:10:52.000+01:00",
         "commission":62,
         "discount":0,
         "charges":[
            {
               "id":"cha_7ba912ba8426a162602b717fded6c6b5",
               "order_id":"7",
               "amount":6958,
               "commission":70,
               "discount":0,
               "amount_to_settle":6888,
               "created_at":"2016-02-18T13:27:40.000+01:00"
            },
            {
               "id":"cha_3bea1cc1f9ad6fc9d77e99a3fc459f1b",
               "order_id":"7",
               "amount":6958,
               "commission":70,
               "discount":0,
               "amount_to_settle":6888,
               "created_at":"2016-03-02T16:33:31.000+01:00"
            },
            {
               "id":"cha_4e674f28857996c31f5b602aef09ec4c",
               "order_id":"9",
               "amount":1998,
               "commission":20,
               "discount":0,
               "amount_to_settle":1978,
               "created_at":"2016-03-09T15:37:11.000+01:00"
            },
            {
               "id":"cha_54210a1b6a6ea365d669e3900d33ca5f",
               "order_id":"11",
               "amount":6170,
               "commission":62,
               "discount":0,
               "amount_to_settle":6108,
               "created_at":"2016-03-15T15:42:27.000+01:00"
            }
         ],
         "refunds":[
            {
               "id":"ref_8f47e4ad06386111e6adde298199e5fa",
               "order_id":"7",
               "amount":6958,
               "commission":-70,
               "discount":0,
               "amount_to_settle":-6888,
               "created_at":"2016-02-18T15:13:06.000+01:00"
            },
            {
               "id":"ref_4731f3feac97041d71f6d4f1a4306ac0",
               "order_id":"7",
               "amount":6958,
               "commission":-70,
               "discount":0,
               "amount_to_settle":-6888,
               "created_at":"2016-03-02T16:49:41.000+01:00"
            },
            {
               "id":"ref_1c9a8545c74d4f2b094ba84b29731daa",
               "order_id":"9",
               "amount":1998,
               "commission":-20,
               "discount":0,
               "amount_to_settle":-1978,
               "created_at":"2016-03-09T16:15:06.000+01:00"
            }
         ]
      }
   ],
   "count":1,
   "pagination":{
      "current":1,
      "previous":null,
      "next":null,
      "per_page":25,
      "pages":1,
      "count":1
   }
}