Created ConfirmLEIDataQuality (markdown)
parent
3af37e7b88
commit
41af028a71
|
@ -0,0 +1,49 @@
|
|||
|
||||
|
||||
URL: /lei/confirm/{{order_id}}?auth_key={{access_token}}
|
||||
|
||||
Content-Type: application/x-www-form-urlencode
|
||||
|
||||
Request type: POST
|
||||
|
||||
### OVERVIEW
|
||||
Confirm LEI Data Quality. This API call is used to confirm the LE-RD data quality status before an LEI can be issued. Set the correct 'order_id' in the URL before making an API call.
|
||||
|
||||
### REQUEST PARAMETERS
|
||||
* confirm - Required. Enum: 0 (no) or 1 (yes).
|
||||
|
||||
### RESPONSE
|
||||
|
||||
* order_status - Required. Enum: "rejected" or "processing"
|
||||
* success - Boolean.
|
||||
|
||||
|
||||
#### Example code
|
||||
|
||||
|
||||
```
|
||||
<?php
|
||||
|
||||
$curl = curl_init();
|
||||
|
||||
curl_setopt_array($curl, array(
|
||||
CURLOPT_URL => "{{$V1_URL_PREFIX}}/lei/confirm/{{$order_id}}?auth_key={{$API_TOKEN}}",
|
||||
CURLOPT_RETURNTRANSFER => true,
|
||||
CURLOPT_ENCODING => "",
|
||||
CURLOPT_MAXREDIRS => 10,
|
||||
CURLOPT_TIMEOUT => 0,
|
||||
CURLOPT_FOLLOWLOCATION => false,
|
||||
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
|
||||
CURLOPT_CUSTOMREQUEST => "POST",
|
||||
CURLOPT_POSTFIELDS => "confirm=0",
|
||||
CURLOPT_HTTPHEADER => array(
|
||||
"Content-Type: application/x-www-form-urlencoded"
|
||||
),
|
||||
));
|
||||
|
||||
$response = curl_exec($curl);
|
||||
$err = curl_error($curl);
|
||||
|
||||
curl_close($curl);
|
||||
|
||||
```
|
Loading…
Reference in New Issue