02 Detalle de una liquidación

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


Examples

Request

cURL
curl "https://api.pagantis.com/api/1/settlements/set_1234567890" -X GET \
	-H "Authorization: Bearer 04edb7fd3d5369c685f1417243deffcd5fc0f1c4435a7c3d91a3cdf4b13efe5f"

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,
            "created_at":"2016-02-18T13:27:40.000+01:00",
            "discount_applied":false
         },
         {
            "id":"cha_3bea1cc1f9ad6fc9d77e99a3fc459f1b",
            "order_id":"7",
            "amount":6958,
            "commission":70,
            "discount":0,
            "created_at":"2016-03-02T16:33:31.000+01:00",
            "discount_applied":false
         },
         {
            "id":"cha_4e674f28857996c31f5b602aef09ec4c",
            "order_id":"9",
            "amount":1998,
            "commission":20,
            "discount":0,
            "created_at":"2016-03-09T15:37:11.000+01:00",
            "discount_applied":false
         },
         {
            "id":"cha_54210a1b6a6ea365d669e3900d33ca5f",
            "order_id":"11",
            "amount":6170,
            "commission":62,
            "discount":0,
            "created_at":"2016-03-15T15:42:27.000+01:00",
            "discount_applied":false
         }
      ],
      "refunds":[
         {
            "id":"ref_8f47e4ad06386111e6adde298199e5fa",
            "amount":6958,
            "created_at":"2016-02-18T15:13:06.000+01:00",
            "charge":{
               "id":"cha_7ba912ba8426a162602b717fded6c6b5",
               "created_at":"2016-02-18T13:27:40.000+01:00",
               "amount":6958
            },
            "amount_to_settle":-6888,
            "commission":-70,
            "discount":0,
            "discount_applied":false
         },
         {
            "id":"ref_4731f3feac97041d71f6d4f1a4306ac0",
            "amount":6958,
            "created_at":"2016-03-02T16:49:41.000+01:00",
            "charge":{
               "id":"cha_3bea1cc1f9ad6fc9d77e99a3fc459f1b",
               "created_at":"2016-03-02T16:33:31.000+01:00",
               "amount":6958
            },
            "amount_to_settle":-6888,
            "commission":-70,
            "discount":0,
            "discount_applied":false
         },
         {
            "id":"ref_1c9a8545c74d4f2b094ba84b29731daa",
            "amount":1998,
            "created_at":"2016-03-09T16:15:06.000+01:00",
            "charge":{
               "id":"cha_4e674f28857996c31f5b602aef09ec4c",
               "created_at":"2016-03-09T15:37:11.000+01:00",
               "amount":1998
            },
            "amount_to_settle":-1978,
            "commission":-20,
            "discount":0,
            "discount_applied":false
         }
      ]
   }
}