Skip to content

GET Payments by Recipient

Ksenyia edited this page Nov 7, 2016 · 4 revisions

Getting list of the payments by recipient limited by 2 parameters "limit" and "skip". To get the whole list, please set limit=0 and skip=0 (Resource URI: 'transfersGov/0/0')

Resource URI

transfersGov/{limit}/{skip}

Resource Properties

Parameter Description
limit It limit the search. Default is 50. Eg. transfersGov/50/0
skip Offset of next page result. Default is 0. Eg. transfersGov/50/0

Response Attribute

{
   count: Integer,
   data: [
      {
          _id: String,
          company: {
              _id: Integer,
              company_name: String
          },
          country: {
              iso2: String,
              name: String
          },
          project_site: {
              _id: String,
              name: String,
              type: String
          },
          source: {
              _id: Integer,
              source_date: Date,
              source_name: String,
              source_type_id: Integer,
              source_url: String
          },          
          transfer_type: String,
          transfer_unit: String,
          transfer_value: Integer,
          transfer_year: Integer,
          transfer_level: String,
          transfer_gov_entity: String
     }
   ]
}

HTTP GET

Default Request

curl -GET http://end-point-uri/transfersGov/50/0

Response

HTTP Status Code 200

{
   count: Integer,
   data: [
      {
          _id: "581c4b0acab60b000f20d1bc",
          company: {
              _id: "581c4b08cab60b000f20d104",
              company_name: "Total"
          },
          country: {
              iso2: "AR",
              name: "Argentina"
          },
          project_site: {
              _id: "ar-tier-w26tdv",
              name: "Tierra del Fuego",
              type: "project"
          },
          source: {
              _id: "581c4b08cab60b000f20d101",
              source_date: "2016-04-04T00:00:00.000Z",
              source_name: "2015 Total mandatory disclosure",
              source_type_id: "5810c99cafce1a000e1adf7d",
              source_url: "https://www.sec.gov/Archives/edgar/data/879764/000119312516506029/d83747d20f.htm"
          },          
          transfer_type: "License fees, rental fees, entry fees, and other considerations for licenses and/or
                         concessions",
          transfer_unit: "USD",
          transfer_value: 5964000,
          transfer_year: 2015
          transfer_level: "country",
          transfer_gov_entity: "AFIP DIRECCIÓN GENERAL IMPOSITIVA"
     }, 
     ...
   ]
}
Clone this wiki locally