title: How to create Sales order attachment in Zoho Books with using Sales Order attachment API?
body: <p>I am trying to create Sales Order attachment in Zoho Books using Sales Order attachment API but it gives me error like "[code] => 33003 [message] => Receipt not attached".</p>
  
  <p>If I try API with postman it works.</p>
  
  <p>Below is my API call copied from postman.</p>
  
  <pre><code>&lt;?php
  
  $curl = curl_init();
  
  curl_setopt_array($curl, array(
  CURLOPT_URL =&gt; 
  "https://books.zoho.com/api/v3/salesorders/**********/attachment?
   organization_id=********",
   CURLOPT_RETURNTRANSFER =&gt; true,
   CURLOPT_ENCODING =&gt; "",
   CURLOPT_MAXREDIRS =&gt; 10,
   CURLOPT_TIMEOUT =&gt; 30,
   CURLOPT_HTTP_VERSION =&gt; CURL_HTTP_VERSION_1_1,
   CURLOPT_CUSTOMREQUEST =&gt; "POST",
   CURLOPT_POSTFIELDS =&gt; "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-
   Disposition: form-data; name=\"attachment\"; 
   filename=\"D:\\wamp\\www\\*****\\01-30-18 E01301811384413.pdf\"\r\nContent-
   Type: application/pdf\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--
   ",
   CURLOPT_HTTPHEADER =&gt; array(
   "Authorization: *********************",
    "Cache-Control: no-cache",
    "Content-Type: application/json",
   "Postman-Token: e1141774-32e0-09f1-059b-6d2ee0c44095",
   "content-type: multipart/form-data; boundary=----
   WebKitFormBoundary7MA4YWxkTrZu0gW"
   ),
   ));
  
   $response = curl_exec($curl);
   $err = curl_error($curl);
  
   curl_close($curl);
  
   if ($err) {
   echo "cURL Error #:" . $err;
   } else {
     echo $response;
   }
  
   ?&gt;
  </code></pre>
  
  <p>Any help is appreciated.</p>