post: tags: - Conversions security: - ApiKeyAuth: [] summary: Get conversions description: Returns conversions requestBody: description: Conversions required: true content: application/json: schema: $ref: ../schemas/ConversionRequest.yaml responses: '200': description: Conversions content: application/json: schema: $ref: ../schemas/Report.yaml '400': $ref: ../responses/BadRequest.yaml '401': $ref: ../responses/Unauthorized.yaml '402': $ref: ../responses/PaymentRequired.yaml '406': $ref: ../responses/NotAcceptable.yaml '500': $ref: ../responses/InternalError.yaml x-code-samples: - lang: PHP source: >- $ch = curl_init(); $params = [ 'columns' => ['postback_datetime', 'click_datetime', 'sub_id'], 'filters' => [ ['name' => 'status', 'operator' => 'EQUALS', 'expression' => 'lead'] ], 'order' => [['postback_datetime', 'DESC']], 'range' => [ 'from' => '2017-01-01', 'to' => '2018-04-01' ] ]; curl_setopt($ch, CURLOPT_URL, 'http://example.com/admin_api/v1/conversions/log'); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Api-Key: your-api-key')); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($params)); echo curl_exec($ch);