Zopping

Set up Petpooja Invoice

Connect the Petpooja Invoice (Retail POS) platform to push Zopping customers, products and orders. On customer signup the customer is created as a Petpooja Party; products are bridged as basic non-taxable items on first sync; and on order create a Sales Order is created and immediately converted to a posted Invoice. This is a built-in connector.

Prerequisite: the ThirdPartyIntegration extension must be enabled for the organization.

1. Configure credentials

Add your Petpooja Invoice details to the organization's integration config under the PETPOOJA_INVOICE key:

{
  "partnerIntegration": {
    "partnerCredentials": {
      "PETPOOJA_INVOICE": {
        "baseURL": "business-api.petpooja.com/api/v1",
        "email": "user@example.com",
        "password": "<password>",
        "salesOrderTemplateId": "<sales-order-template-id>",
        "invoiceTemplateId": "<invoice-template-id>",
        "integrationUserId": "<zopping-user-id>",
        "defaultUnit": "PCS"
      }
    }
  }
}
FieldRequiredNotes
baseURLyesPetpooja Invoice partner API host without scheme. Zopping prepends https://.
email / passwordyesCredentials of the Petpooja user for the organization; Zopping logs in per request to obtain a bearer token.
salesOrderTemplateIdyesVoucher template id from GET /voucher-init?voucher_type=salesOrder.
invoiceTemplateIdyesVoucher template id from GET /voucher-init?voucher_type=invoice.
integrationUserIdyesZopping user id used for catalogue write-backs.
defaultUnitnoUnit code assigned to auto-created items (defaults to PCS).
accessTokennoMachine-managed — refreshed by the petpooja-invoice-token-generator cron.

2. Supported events

Direction: PUSH = Zopping → Petpooja Invoice.

DirectionEvents
PUSHCUSTOMER_CREATE, CUSTOMER_BASIC_EDIT, PRODUCT_CREATE, PRODUCT_UPDATE, ORDER_CREATE

Enable delivery per event via event integrations.

Mapping notes

  • The returned Petpooja party / item / sales-order ids are stored on the Zopping customer, product and order clientId respectively to prevent duplicates on retry.
  • Items are created as non-taxable and stock-trackable.

Going further