---
agentTools:
  projectIndex: https://staging-fyn-gateway.readme.io/llms.txt
---

# GSTR1 - Get CDNUR Invoices

This API will call CDNUR for getting all Credit/Debit notes for Unregistered Users.

# Important Links

[<img src="https://run.pstmn.io/button.svg" alt="Run in Postman" align="" caption="" height="auto" title="" width="auto">](https://elements.getpostman.com/redirect?entityId=18106964-063a5faf-de79-4f92-bf84-0577aaad166a\&entityType=collection)

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "GST API",
    "description": "Fyn-Gateway APIs allows developers to quickly review and integrate them to their development, thereby reducing Deployment time. The documentation is realtime and up-to-date with the option to test the APIs through the UI itself.<br><br>Get started and try them out yourself!<br><br>GSTN API Developer Portal: <a href=\"https://developer.gst.gov.in/apiportal/taxpayer/returns\" target=\"_blank\">https://developer.gst.gov.in/apiportal/taxpayer/returns</a>",
    "version": "3.0.3"
  },
  "servers": [
    {
      "url": "https://staging.fynamics.co.in/api",
      "description": "Sandbox server"
    }
  ],
  "paths": {
    "/gst/getcdnur/{gstin}/{ret_period}": {
      "get": {
        "tags": [
          "GST Returns APIs (Enhanced)"
        ],
        "summary": "GSTR1 - Get CDNUR Invoices",
        "description": "This API will call CDNUR for getting all Credit/Debit notes for Unregistered Users.",
        "parameters": [
          {
            "in": "path",
            "name": "gstin",
            "description": "GSTIN of the taxpayer",
            "example": "29HJKPS9689AA1Z",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "in": "path",
            "name": "ret_period",
            "description": "Return Period",
            "example": 72016,
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "in": "header",
            "name": "username",
            "description": "User name of tax payer or tax consultant registered with GSTN",
            "example": "MH_NT2.1645",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "in": "header",
            "name": "ip-usr",
            "example": "137.232.3.35",
            "description": "Public IP Address of end user who requested access to data will be passed by GSP application or application accessing Taxpayer services.",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "in": "header",
            "name": "state-cd",
            "example": 27,
            "description": "State code to which the Tax Payer belongs to",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "in": "header",
            "name": "auth-token",
            "example": "04888301857b4ddfa84a3fd41702da2d",
            "description": "Auth Token",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "in": "header",
            "name": "app_key",
            "example": "Xo8lBiPr3atUJ7c0LjG2kDHVAThCvMZE",
            "description": "This should be same as sent during otprequest call",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "in": "header",
            "name": "sek",
            "example": "rGUTQp2Nn5+dOs5WSZvFoR0ylWL5QeT21g962HUbM3zRiEQO6JQ/mLDzUsYByJDs",
            "description": "Encryption key (EK) is a 32 bit random secure key generated using AES 256 algorithm. E.g. base 64 representation of the key is :xZz32ygsaZ1jocD8USJxr6F8qcKWQRE87emHtPlhP/g=, app_key will be used as key to encrypt the Encryption key   using AES 256 (AES/ECB/PKCS5Padding) algorithm.",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Response Payload",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Get-cdnur-Response-Success"
                    },
                    {
                      "$ref": "#/components/schemas/Get-cdnur-Response-Error"
                    }
                  ]
                },
                "examples": {
                  "success": {
                    "summary": "Success response",
                    "value": {
                      "cdnur": [
                        {
                          "flag": "N",
                          "chksum": "BBUIBUIUIJKKBJKGUYFTFGUY",
                          "typ": "B2CL",
                          "ntty": "C",
                          "nt_num": 533515,
                          "nt_dt": "23-09-2016",
                          "p_gst": "N",
                          "inum": 915914,
                          "val": 123123,
                          "diff_percent": 0.65,
                          "pos": 3,
                          "idt": "23-09-2016",
                          "d_flag": "Y",
                          "srctyp": "EInvoice",
                          "irn": "897ADG56RTY78956HYUG90BNHHIJK453GFTD99845672FDHHHSHGFH4567FG56TR",
                          "irngendate": "24-12-2019",
                          "itms": [
                            {
                              "num": 1,
                              "itm_det": {
                                "rt": 15,
                                "txval": 5225.28,
                                "iamt": 845.22,
                                "csamt": 789.52
                              }
                            }
                          ]
                        }
                      ]
                    }
                  },
                  "error": {
                    "summary": "Error response",
                    "value": {
                      "status_cd": 0,
                      "error": {
                        "error_cd": "RET11403",
                        "message": "Invalid API Request"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "description": "Method not allowed"
          },
          "500": {
            "description": "Internal Server Error"
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "Get-cdnur-Response-Success": {
        "type": "object",
        "properties": {
          "cdnr": {
            "type": "array",
            "description": "CDNUR Invoices",
            "items": {
              "type": "object",
              "properties": {
                "chksum": {
                  "type": "string",
                  "description": "Invoice Check sum value",
                  "example": "AflJufPlFStqKBZ"
                },
                "flag": {
                  "type": "string",
                  "description": "Counter Party Flag",
                  "example": "A-Accepted ,R-Rejected, N-No action ,U-Uploaded, P-Pending, DF-Deferred"
                },
                "typ": {
                  "type": "string",
                  "description": "Type",
                  "example": "B2CL"
                },
                "ntty": {
                  "type": "string",
                  "description": "Credit/debit note type",
                  "example": "C/D"
                },
                "nt_num": {
                  "type": "string",
                  "description": "Credit note/debit note",
                  "example": "NT100001"
                },
                "nt_dt": {
                  "type": "string",
                  "description": "Credit Note/Debit Note",
                  "example": "02-03-2016"
                },
                "p_gst": {
                  "type": "string",
                  "description": "Pre GST Regime Dr./ Cr. Notes",
                  "example": "N"
                },
                "inum": {
                  "type": "string",
                  "description": "Supplier Invoice Number",
                  "example": "A004353"
                },
                "val": {
                  "type": "number",
                  "description": "Total Note Value",
                  "example": 10000
                },
                "diff_percent": {
                  "type": "string",
                  "description": "Original Period",
                  "example": 0.65
                },
                "pos": {
                  "type": "string",
                  "description": "Place of supply",
                  "example": 3
                },
                "rchrg": {
                  "type": "string",
                  "description": "Reverse Charge",
                  "example": "Y"
                },
                "inv_typ": {
                  "type": "string",
                  "description": "Invoice type",
                  "example": "R- Regular B2B Invoices,  DE – Deemed Exports, SEWP – SEZ Exports with payment,SEWOP – SEZ exports without payment,CBW -  Intra state supplies attracting igst"
                },
                "d_flag": {
                  "type": "string",
                  "description": "delink flag",
                  "example": "Y"
                },
                "srctyp": {
                  "type": "string",
                  "description": "Source Type of IRN",
                  "example": "EInvoice"
                },
                "irn": {
                  "type": "string",
                  "description": "IRN number",
                  "example": "897ADG56RTY78956HYUG90BNHHIJK453GFTD99845672FDHHHSHGFH4567FG56TR"
                },
                "irngendate": {
                  "type": "string",
                  "description": "IRN generation Date",
                  "example": "03-02-2016"
                },
                "itms": {
                  "type": "array",
                  "description": "Items Details",
                  "items": {
                    "type": "object",
                    "properties": {
                      "num": {
                        "type": "integer",
                        "description": "Serial no",
                        "example": 2
                      },
                      "itm_det": {
                        "type": "object",
                        "properties": {
                          "rt": {
                            "type": "number",
                            "description": "Rate",
                            "example": 10
                          },
                          "txval": {
                            "type": "number",
                            "description": "Taxable value of Goods or Service as per invoice",
                            "example": 10000
                          },
                          "iamt": {
                            "type": "number",
                            "description": "IGST Amount as per invoice",
                            "example": 325
                          },
                          "csamt": {
                            "type": "number",
                            "description": "cess Amount as per invoice",
                            "example": 10
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "Get-cdnur-Response-Error": {
        "type": "object",
        "properties": {
          "status_cd": {
            "type": "integer",
            "example": 0,
            "description": "Status of the sent request."
          },
          "error": {
            "type": "object",
            "properties": {
              "error_cd": {
                "type": "string",
                "example": "RET11403",
                "description": "Invalid API Request"
              }
            }
          }
        }
      }
    },
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 99,
      "1": 181,
      "2": 101,
      "3": 185,
      "4": 208,
      "5": 24,
      "6": 94,
      "7": 0,
      "8": 23,
      "9": 60,
      "10": 2,
      "11": 34
    }
  }
}
```