diff --git a/README.md b/README.md index a30bb5c..a7c5a24 100644 --- a/README.md +++ b/README.md @@ -282,7 +282,7 @@ $resultJson = $subscriptions->addCustomer(['display_name'=> 'Sudipto Choudhury', `addInvoiceComments(array)`
\[POST\] /invoices/{invoice_id}/comments | `invoice_id`
`description` | *Add comments to an invoice*
**Placeholders to replace** :
`invoice_id` | `enableInvoicePaymentReminder(array)`
\[POST\] /invoices/{invoice_id}/paymentreminder/enable | `invoice_id` | *Enabling payment reminder for a particular invoice*
**Placeholders to replace** :
`invoice_id` | `setInvoiceAsSent(array)`
\[POST\] /invoices/{invoice_id}/sent | `invoice_id` | *Making a draft invoice as Sent*
**Placeholders to replace** :
`invoice_id` | -`openInvoice(array)`
[ \[POST\] /invoices/{invoice_id}/convertoopen ](https://www.zoho.com/subscriptions/api/v1/#Invoices_Convert_to_open) | `invoice_id` | *Change the status of an invoice to open*
**Placeholders to replace** :
`invoice_id`
[API DOC](https://www.zoho.com/subscriptions/api/v1/#Invoices_Convert_to_open) | +`openInvoice(array)`
[ \[POST\] /invoices/{invoice_id}/converttoopen ](https://www.zoho.com/subscriptions/api/v1/#Invoices_Convert_to_open) | `invoice_id` | *Change the status of an invoice to open*
**Placeholders to replace** :
`invoice_id`
[API DOC](https://www.zoho.com/subscriptions/api/v1/#Invoices_Convert_to_open) | `getInvoiceRecentActivities(array)`
\[GET\] /invoices/{invoice_id}/recentactivities | `invoice_id` | *Retrieving recent activities of a particular invoice*
**Placeholders to replace** :
`invoice_id` | `emailInvoice(array)`
\[POST\] /invoices/{invoice_id}/email | `invoice_id`
`to_mail_ids`
`cc_mail_ids`
`subject`
`body` | *Email a particular invoice*
**Placeholders to replace** :
`invoice_id` | `deleteInvoiceComment(array)`
\[DELETE\] /invoices/{invoice_id}/comments/{comment_id} | `invoice_id`
`comment_id` | *Deleting a particular comment of an invoice*
**Placeholders to replace** :
`invoice_id`
`comment_id` | diff --git a/src/Zoho/Subscriptions/Api.php b/src/Zoho/Subscriptions/Api.php index cbf4931..b51c0dd 100644 --- a/src/Zoho/Subscriptions/Api.php +++ b/src/Zoho/Subscriptions/Api.php @@ -200,7 +200,7 @@ class Api extends ApiForge 'zohoOrgId' => '', 'tld' => 'com', // eu, in, com.au 'client' => [ - 'base_uri' => 'https://subscriptions.zoho.{{tld}}/api/v1/', + 'base_uri' => 'https://www.zohoapis.{{tld}}/billing/v1/', 'verify' => false, 'headers' => [ 'Authorization' => 'Zoho-oauthtoken {{oauthtoken}}', diff --git a/src/Zoho/Subscriptions/Import.php b/src/Zoho/Subscriptions/Import.php index d540eff..3e96db0 100644 --- a/src/Zoho/Subscriptions/Import.php +++ b/src/Zoho/Subscriptions/Import.php @@ -204,7 +204,7 @@ public function filterFinalName($value, $helperData = []) "addinvoicessent" => "setInvoicesAsSent", "addinvoicepaymentreminderenable" => "enableInvoicePaymentReminder", "addinvoicesent" => "setInvoiceAsSent", - "addinvoiceconvertoopen" => "openInvoice", + "addinvoiceconverttoopen" => "openInvoice", "emailaninvoice" => "emailInvoice", "addinvoicepaymentreminderdisable" => "disableInvoicePaymentReminder", "getbankaccountpendinginvoices" => "getBankAccountPendingInvoices", diff --git a/src/Zoho/Subscriptions/config/postman.json b/src/Zoho/Subscriptions/config/postman.json index b9df1b1..5439115 100644 --- a/src/Zoho/Subscriptions/config/postman.json +++ b/src/Zoho/Subscriptions/config/postman.json @@ -6040,7 +6040,7 @@ "raw": "" }, "url": { - "raw": "https://{{domain-url}}/api/v1/invoices/{invoice_id}/convertoopen", + "raw": "https://{{domain-url}}/api/v1/invoices/{invoice_id}/converttoopen", "protocol": "https", "host": [ "{{domain-url}}" @@ -6050,7 +6050,7 @@ "v1", "invoices", "{invoice_id}", - "convertoopen" + "converttoopen" ] }, "description": "*Change the status of an invoice to open*\n\n**Placeholders to replace** : \n\n\t`invoice_id`\n\n[API DOC](https://www.zoho.com/subscriptions/api/v1/#Invoices_Convert_to_open)\n\n[HELP DOC]()" diff --git a/src/Zoho/Subscriptions/config/subscriptions.json b/src/Zoho/Subscriptions/config/subscriptions.json index 5476f1f..903800a 100644 --- a/src/Zoho/Subscriptions/config/subscriptions.json +++ b/src/Zoho/Subscriptions/config/subscriptions.json @@ -2817,7 +2817,7 @@ }, "openInvoice": { "httpMethod": "POST", - "uri": "invoices/{invoice_id}/convertoopen", + "uri": "invoices/{invoice_id}/converttoopen", "responseModel": "getResponse", "parameters": { "invoice_id": { diff --git a/subscriptions.md b/subscriptions.md index db7e389..2c43398 100644 --- a/subscriptions.md +++ b/subscriptions.md @@ -156,7 +156,7 @@ `addInvoiceComments(array)`
\[POST\] /invoices/{invoice_id}/comments | `invoice_id`
`description` | *Add comments to an invoice*
**Placeholders to replace** :
`invoice_id` | `enableInvoicePaymentReminder(array)`
\[POST\] /invoices/{invoice_id}/paymentreminder/enable | `invoice_id` | *Enabling payment reminder for a particular invoice*
**Placeholders to replace** :
`invoice_id` | `setInvoiceAsSent(array)`
\[POST\] /invoices/{invoice_id}/sent | `invoice_id` | *Making a draft invoice as Sent*
**Placeholders to replace** :
`invoice_id` | -`openInvoice(array)`
[ \[POST\] /invoices/{invoice_id}/convertoopen ](https://www.zoho.com/subscriptions/api/v1/#Invoices_Convert_to_open) | `invoice_id` | *Change the status of an invoice to open*
**Placeholders to replace** :
`invoice_id`
[API DOC](https://www.zoho.com/subscriptions/api/v1/#Invoices_Convert_to_open) | +`openInvoice(array)`
[ \[POST\] /invoices/{invoice_id}/converttoopen ](https://www.zoho.com/subscriptions/api/v1/#Invoices_Convert_to_open) | `invoice_id` | *Change the status of an invoice to open*
**Placeholders to replace** :
`invoice_id`
[API DOC](https://www.zoho.com/subscriptions/api/v1/#Invoices_Convert_to_open) | `getInvoiceRecentActivities(array)`
\[GET\] /invoices/{invoice_id}/recentactivities | `invoice_id` | *Retrieving recent activities of a particular invoice*
**Placeholders to replace** :
`invoice_id` | `emailInvoice(array)`
\[POST\] /invoices/{invoice_id}/email | `invoice_id`
`to_mail_ids`
`cc_mail_ids`
`subject`
`body` | *Email a particular invoice*
**Placeholders to replace** :
`invoice_id` | `deleteInvoiceComment(array)`
\[DELETE\] /invoices/{invoice_id}/comments/{comment_id} | `invoice_id`
`comment_id` | *Deleting a particular comment of an invoice*
**Placeholders to replace** :
`invoice_id`
`comment_id` |