Knowledge Base

WebPlanex GST – Credit Note APIs

By Krupali
Updated on December 01, 2026

The WebPlanex-GST Invoice India App provides APIs that allow you to integrate with WebPlanex and retrieve the Credit Note PDF and Credit Note data in JSON format for your orders.

You can use the WebPlanex GST APIs to fetch generated Credit Note PDFs/JSON and integrate them with your own system or workflow

Note:

  • The GST APIs for downloading Credit Note PDFs and retrieving Credit Note data in JSON format are available only on the Advanced plan.
  • After connecting the API, its status will be Pending by default.
  • Please contact the WebPlanex Support Team to activate the API.

Authentication:

To access the API, you must include your API key in the request headers.

Headers:

  • Authorization: Bearer YOUR_API_KEY
  • Accept: application/json

Replace YOUR_API_KEY with the API key generated for your store.

How to Generate a WebPlanex GST API Key

  1. Go to the WebPlanex GST Invoice India App.
  2. Navigate to Integrations > WebPlanex GST APIs.
  3. Click the Get API Key button to generate an API key for your store.

Base URL

All API endpoints are accessible via the following base URL:

https://gst.webplanex.biz/


1. Retrieve the Credit Note PDF URL for a Specific Shopify Order

Endpoint: Get Credit Note

Endpoint URL:

/api/get-credit-note?shop={{shopify_store_url}}&order_id={{shopify_order_id}}

Request Method: GET

Description: This endpoint allows you to retrieve the Credit Note PDF URL for a specific Shopify order.

Response:

A 200 OK status indicates that the API request was successfully processed and the Credit Note URL was retrieved.

{
    "status": 200,
    "message": "Credit note URL fetched successfully",
    "credit_note_url": "https://gst.webplanex.biz/credit-note-download"
}

Note: The Credit Note endpoint supports order_number as an optional alternative to order_id.

  • Credit Note data can be retrieved using either order_id or order_number.
  • If order_number is provided, order_id is not required.
  • At least one of these two fields must be provided to retrieve the Credit Note.
  • order_number must be provided without any prefix or suffix. For example, if the order number is #1001, pass 1001 as the order_number without the # symbol.

2. Retrieve Credit Note Data in JSON Format for a Specific Shopify Order

Endpoint: Get Credit Note JSON Data

Endpoint URL:

/api/get-credit-note-order?shop={{shopify_store_url}}&order_id={{shopify_order_id}}

Request Method: GET

Description: This endpoint allows you to retrieve the complete Credit Note data in JSON format for a specific Shopify order.

Response:

A 200 OK status indicates that the API request was successfully processed and the Credit Note order data was retrieved.

{
    "status": 200,
    "message": "Credit note fetched successfully",
    "creditNote": {
        "id": "15234567890",
        "orderName": "#12345",
        "orderNumber": 12345,
        "paymentStatus": "~partially_refunded",
        "deliveryStatus": null,
        "invoiceNumber": "INV/2026-27/1234",
        "invoiceIssuedOn": "27-11-2026",
        "placedOn": "27 Nov 2026",
        "placedOnDate": "27-11-2026",
        "creditNoteNumber": "CRN/2026-27/1234",
        "creditNoteSeriesPrefix": "CRN/2026-27",
        "creditNoteSequence": "1234",
        "creditNoteIssuedOn": "27-11-2026",
        "creditNoteIssuedOnRaw": "2026-11-27",
        "sellerGstin": "24AABCW5269P1ZP",
        "sellerState": "Gujarat",
        "sellerStateCode": "GJ",
        "sellerStateCodeNum": "24",
        "supplyPlace": "-",
        "buyerEmail": "johndoe@gmail.com",
        "buyerName": "John Doe",
        "buyerId": "987654321012",
        "customerGstin": "",
        "customerCompanyName": "",
        "billingName": "John Doe",
        "billingStreet": "Stree 5, Victoria Road",
        "billingGstin": "",
        "billingPhone": "-",
        "billingCity": "Sample City",
        "billingPostalCode": "987654",
        "billingState": "Maharashtra",
        "billingCountry": "India",
        "billingStateCode": "MH",
        "billingStateCodeNum": "27",
        "paymentMethod": "UPI",
        "customerNote": "",
        "paymentTerms": "Sample Terms and Conditions",
        "amountInWords": "Five Thousand Five Hundred Rupees Only",
        "taxableValue": "5,000.00",
        "taxAmount": "500.00",
        "discountAmount": "0",
        "couponDiscount": "0",
        "couponDiscountPercent": 0,
        "totalDiscount": "0.00",
        "couponCode": "-",
        "couponValue": "0",
        "couponKind": "",
        "lineItemsAmount": "5099.50",
        "amountAfterTax": "5,500.00",
        "shippingCharge": "0",
        "shippingChargeExcludingTax": "0.00",
        "shippingTaxRate": "0",
        "shippingTaxAmount": "0",
        "shippingCessRate": "0",
        "shippingCessAmount": "0",
        "shippingPriceIncludesGst": "1",
        "productPriceIncludesGst": "1",
        "roundingAdjustment": "",
        "grandTotal": "5,500.00",
        "refundedAmount": "5500",
        "store": {
            "brandName": "",
            "legalName": "Company Name",
            "address": "150 Feet Ring Road",
            "city": "Rajkot",
            "postalCode": "360004",
            "state": "Gujarat",
            "stateCode": "GJ",
            "country": "India",
            "email": "store@domain.com",
            "phone": "9876543210",
            "contactPerson": "Contact",
            "website": "mydomain.myshopify.com",
            "gstin": "24ASDDBCW5269P1ZP",
            "iecCode": "DFGD46546565",
            "cinNumber": "AD270426123456Z",
            "panNumber": "E334DGD5",
            "fssaiLicenseNumber": "45654654654",
            "shippingSacCode": "459810",
            "showGstOnShipping": "1",
            "shippingPriceIncludesGst": "1",
            "logoUrl": "https://gst.webplanex.biz/images/logo_1790751254.png",
            "signatureUrl": "https://gst.webplanex.biz/images/signature_1774932161581.png"
        },
        "lineItems": [
            {
                "order_number": "42459",
                "gstRate": "5",
                "minimumItemAmount": "",
                "minimumItemGst": "",
                "cessRate": "5",
                "itemName": "Refunded Amount",
                "itemId": "",
                "itemSku": "",
                "quantity": 1,
                "unitPrice": "5500.00",
                "lineDiscount": "0",
                "lineCouponDiscount": "0",
                "lineCouponPercent": "0",
                "lineCouponValue": "0",
                "lineCouponKind": "",
                "taxableValue": "5,000.00",
                "hsnCode": "123456",
                "stateGst": "",
                "centralGst": "",
                "integratedGst": "250.00",
                "cessAmount": "250.00",
                "lineTotal": "5,500.00",
                "lineDiscountTotal": "0.00"
            }
        ]
    }
}

Note: The Credit Note JSON endpoint supports order_number as an optional alternative to order_id.

  • Credit Note data can be retrieved using either order_id or order_number.
  • If order_number is provided, order_id is not required.
  • At least one of these two fields must be provided to retrieve the Credit Note data.
  • order_number must be provided without any prefix or suffix. For example, if the order number is #1001, pass 1001 as the order_number without the # symbol.