API Change Log: March 2022 Release

Check the API updates for this release.

  <th style={{ textAlign: "left" }}>
    Scenario
  </th>

  <th style={{ textAlign: "left" }}>
    Earlier Behavior
  </th>

  <th style={{ textAlign: "left" }}>
    New Behavior
  </th>

  <th style={{ textAlign: "left" }}>
    API Documentation Link
  </th>
</tr>
  <td style={{ textAlign: "left" }}>
    A new parameter ‘expand’ is added in the request that will send add-ons details of the service when requested
  </td>

  <td style={{ textAlign: "left" }}>
    Earlier, even if the service contained add-ons, the parameter returned as “Null”.
  </td>

  <td style={{ textAlign: "left" }}>
    Now, if a service has add-ons, the parameter will contain the add-on details in the response.
  </td>

  <td style={{ textAlign: "left" }}>
    NA
  </td>
</tr>

<tr>
  <td style={{ textAlign: "left" }}>
    [www.apiurl.](http://www.apiurl.) \{center\_id}/services/\{service\_id}
  </td>

  <td style={{ textAlign: "left" }}>
    New parameter “is\_mandatory\_add\_on in add\_ons\_info” is added to the response object
  </td>

  <td style={{ textAlign: "left" }}>
    Earlier, mandatory add-on object details were not appearing.
  </td>

  <td style={{ textAlign: "left" }}>
    Now, if a service has an add-on that is mandatory, the response object will return the details.
  </td>

  <td style={{ textAlign: "left" }}>
    [Retrieve a service of a center](https://zenotiapi.readme.io/reference/retrieve-a-service-of-a-center)
  </td>
</tr>

<tr>
  <td style={{ textAlign: "left" }}>
    v1/organizations/settings/\{section}

    Org setting (OrganizationSettingsViewModel -> PackagesSettingsViewModel -> enable\_nfcp\_refund\_on\_open\_invoice\_scheduled\_packages)

    api/Centers/CustomPaymentData

    custom payment list (Internal custom payment should not populate)

    api/v2.0/Invoices/\{InvoiceId}

    refunded package bit for invoice item level

    Custom payment Type for blocking refund - in the payment transactions

    InvoiceModel -> InvoiceSeriesPackageBuyModel->AppointmentSeriesPackageModel->PackageModel -> custom\_payment\_added

    InvoiceModel -> PaymentModel -> can\_change

    api/Invoices/ApplyDiscount

    error code for campaign apply
  </td>

  <td style={{ textAlign: "left" }}>
    Add the following three variables in response:

    > Can\_change

    > Custom\_payment\_added

      Show\_package\_refunded\_text
  </td>

  <td style={{ textAlign: "left" }}>
    The three variables were not present in the earlier object response.
  </td>

  <td style={{ textAlign: "left" }}>
    Now, we have added these three variables, and they will appear in the response object
  </td>

  <td style={{ textAlign: "left" }}>
    NA
  </td>
</tr>
API End Points
\{apirurl}./api/Services/search