-
Notifications
You must be signed in to change notification settings - Fork 0
Ejemplos Postman Peru #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Ejemplos Postman Peru #8
Conversation
WalkthroughPostman collection metadata was updated; numerous Peru-specific request entries were added and renamed, with payload adjustments and pe_* sections. Mexico gained a protocolProfileBehavior flag on one entry. Many requests now specify JSON body language options. All changes occur within the single Postman collection file. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. ✨ Finishing Touches🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
koywe-billing.postman_collection.json (1)
2540-2576: Critical fix: receiver_country_id must be Peru, not MexicoIn the
Create new documents – Credit note (Nota de crédito emitida para boleta)request (koywe-billing.postman_collection.json, lines 2540–2576), the payload incorrectly uses Mexico’s country ID:--- a/koywe-billing.postman_collection.json +++ a/koywe-billing.postman_collection.json @@ 2540,2576 - "receiver_country_id": "80", + "receiver_country_id": "83",• “80” corresponds to Mexico, but the receiver is in Peru (use “83”)
• Please also verify thatdocument_type_id: "155"correctly maps to “Nota de crédito emitida para boleta” in both sandbox and production environments to prevent future mismatches.
🧹 Nitpick comments (2)
koywe-billing.postman_collection.json (2)
3-8: Collection ID/link changed — confirm downstream impact and update referencesThe
_postman_idand_collection_linknow point to a new collection. If you have monitors, CI steps, or shared documentation pointing to the previous public link, they’ll break. Please:
- Update README/Confluence and any onboarding docs with the new share link.
- Verify team/monitors still target the intended collection.
2540-2576: Optional: reduce copy-paste errors using variablesThe new Peru examples repeat
account_id, country codes, and tax IDs. Consider Postman variables (e.g.,{{pe_country_id}} = 83) to prevent future mismatches like the ones above.If useful, I can push a variant of this collection that parameterizes common Perú fields.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
💡 Knowledge Base configuration:
- MCP integration is disabled by default for public repositories
- Jira integration is disabled by default for public repositories
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (1)
koywe-billing.postman_collection.json(3 hunks)
🔇 Additional comments (3)
koywe-billing.postman_collection.json (3)
2500-2500: Rename improves clarity“Credit note (Nota de crédito emitida para factura)” is clearer than the prior generic label. Good change.
2517-2522: Good: explicit JSON language optionExplicit
options.raw.language = "json"avoids Postman body editor misformatting. Keep this pattern.
2523-2535: Endpoint OKURL and method are consistent with the rest of the collection for documents creation.
| "body": { | ||
| "mode": "raw", | ||
| "raw": "{\r\n \"header\": {\r\n \"account_id\": 16268,\r\n \"document_type_id\": \"98\",\r\n \"received_issued_flag\": 0,\r\n \"issue_date\": \"2025-01-27\",\r\n \"issuer_tax_id_code\": \"20610383727\",\r\n \"issuer_tax_id_type\": \"PE-RUC\",\r\n \"issuer_legal_name\": \"<string>\",\r\n \"issuer_address\": \"<string>\",\r\n \"issuer_district\": \"<string>\",\r\n \"issuer_city\": \"<string>\",\r\n\t \"issuer_department\":\"<string>\",\r\n \"issuer_country_id\": \"80\",\r\n \"issuer_phone\": \"<string>\",\r\n \"issuer_activity\": \"<string>\",\r\n\t \"issuer_postalcode\":\"12345456\",\r\n \"receiver_tax_id_code\": \"20473731828\",\r\n \"receiver_tax_id_type\": \"PE-RUC\",\r\n \"receiver_legal_name\": \"ESCUELA KEMPER URGATES\",\r\n \"receiver_address\": \"<string>\",\r\n \"receiver_district\": \"<string>\",\r\n \"receiver_city\": \"<string>\",\r\n\t \"receiver_department\":\"<string>\",\r\n \"receiver_country_id\": \"80\",\r\n \"receiver_phone\": \"<string>\",\r\n \"receiver_activity\": \"<string>\",\r\n\t \"receiver_postalcode\":\"12343456\",\r\n \"payment_conditions\": \"0\",\r\n \"currency_id\": 7,\r\n\t \"additional\":{\r\n \"pe_header\":{\r\n \"signature_id\":\"ASDFG\",\r\n \"operation_type\":\"0101\"\r\n }\r\n }\r\n },\r\n \"details\": [\r\n {\r\n \"quantity\": 1,\r\n \"line_description\": \"Prueba Koywe\",\r\n \"unit_measure\": \"NIU\",\r\n \"unit_price\": 1000,\r\n \"long_description\": \"Test descripcion\",\r\n \"modifier_amount\": 0,\r\n \"total_taxes\": 180,\r\n \"modifier_percentage\": 0,\r\n \"total_amount_line\": 1180,\r\n \"sku\": \"3245\",\r\n \"taxes\": [\r\n {\r\n \"tax_type_id\": \"413\",\r\n \"tax_percentage\": 18,\r\n \"tax_amount\": 180\r\n }\r\n ]\r\n }\r\n ],\r\n \"references\": [\r\n\t {\r\n\t\t \"document_type_id\": \"96\",\r\n\t\t \"reference_number\": \"F001-00000087\",\r\n\t\t \"reference_code\": \"01\",\r\n\t\t \"description\": \"Anulacion solicitada por el emisor\",\r\n\t\t \"reference_date\": \"2025-01-27\"\r\n\t }\r\n ],\r\n \"totals\": {\r\n \"net_amount\": 1000,\r\n \"taxes_amount\": 180,\r\n \"total_amount\": 1180\r\n }\r\n}\r\n", | ||
| "raw": "{\r\n \"header\": {\r\n \"account_id\": 16268,\r\n \"document_type_id\": \"98\",\r\n \"received_issued_flag\": 0,\r\n \"issue_date\": \"2025-01-27\",\r\n \"issuer_tax_id_code\": \"20610383727\",\r\n \"issuer_tax_id_type\": \"PE-RUC\",\r\n \"issuer_legal_name\": \"<string>\",\r\n \"issuer_address\": \"<string>\",\r\n \"issuer_district\": \"<string>\",\r\n \"issuer_city\": \"<string>\",\r\n\t \"issuer_department\":\"<string>\",\r\n \"issuer_country_id\": \"80\",\r\n \"issuer_phone\": \"<string>\",\r\n \"issuer_activity\": \"<string>\",\r\n\t \"issuer_postalcode\":\"12345456\",\r\n \"receiver_tax_id_code\": \"20473731828\",\r\n \"receiver_tax_id_type\": \"PE-RUC\",\r\n \"receiver_legal_name\": \"ESCUELA KEMPER URGATES\",\r\n \"receiver_address\": \"<string>\",\r\n \"receiver_district\": \"<string>\",\r\n \"receiver_city\": \"<string>\",\r\n\t \"receiver_department\":\"<string>\",\r\n \"receiver_country_id\": \"83\",\r\n \"receiver_phone\": \"<string>\",\r\n \"receiver_activity\": \"<string>\",\r\n\t \"receiver_postalcode\":\"12343456\",\r\n \"payment_conditions\": \"0\",\r\n \"currency_id\": 7,\r\n\t \"additional\":{\r\n \"pe_header\":{\r\n \"signature_id\":\"ASDFG\",\r\n \"operation_type\":\"0101\"\r\n }\r\n }\r\n },\r\n \"details\": [\r\n {\r\n \"quantity\": 1,\r\n \"line_description\": \"Prueba Koywe\",\r\n \"unit_measure\": \"NIU\",\r\n \"unit_price\": 1000,\r\n \"long_description\": \"Test descripcion\",\r\n \"modifier_amount\": 0,\r\n \"total_taxes\": 180,\r\n \"modifier_percentage\": 0,\r\n \"total_amount_line\": 1180,\r\n \"sku\": \"3245\",\r\n \"taxes\": [\r\n {\r\n \"tax_type_id\": \"413\",\r\n \"tax_percentage\": 18,\r\n \"tax_amount\": 180\r\n }\r\n ]\r\n }\r\n ],\r\n \"references\": [\r\n\t {\r\n\t\t \"document_type_id\": \"96\",\r\n\t\t \"reference_number\": \"F001-00000087\",\r\n\t\t \"reference_code\": \"01\",\r\n\t\t \"description\": \"Anulacion solicitada por el emisor\",\r\n\t\t \"reference_date\": \"2025-01-27\"\r\n\t }\r\n ],\r\n \"totals\": {\r\n \"net_amount\": 1000,\r\n \"taxes_amount\": 180,\r\n \"total_amount\": 1180\r\n }\r\n}\r\n\r\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Peru credit note for invoice: wrong issuer_country_id (should be 83 for Peru)
This example is under Perú but sets "issuer_country_id": "80" (Mexico). Suggest fixing to "83".
Apply this targeted diff inside the raw JSON payload string:
- "issuer_country_id": "80",
+ "issuer_country_id": "83",📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| "raw": "{\r\n \"header\": {\r\n \"account_id\": 16268,\r\n \"document_type_id\": \"98\",\r\n \"received_issued_flag\": 0,\r\n \"issue_date\": \"2025-01-27\",\r\n \"issuer_tax_id_code\": \"20610383727\",\r\n \"issuer_tax_id_type\": \"PE-RUC\",\r\n \"issuer_legal_name\": \"<string>\",\r\n \"issuer_address\": \"<string>\",\r\n \"issuer_district\": \"<string>\",\r\n \"issuer_city\": \"<string>\",\r\n\t \"issuer_department\":\"<string>\",\r\n \"issuer_country_id\": \"80\",\r\n \"issuer_phone\": \"<string>\",\r\n \"issuer_activity\": \"<string>\",\r\n\t \"issuer_postalcode\":\"12345456\",\r\n \"receiver_tax_id_code\": \"20473731828\",\r\n \"receiver_tax_id_type\": \"PE-RUC\",\r\n \"receiver_legal_name\": \"ESCUELA KEMPER URGATES\",\r\n \"receiver_address\": \"<string>\",\r\n \"receiver_district\": \"<string>\",\r\n \"receiver_city\": \"<string>\",\r\n\t \"receiver_department\":\"<string>\",\r\n \"receiver_country_id\": \"83\",\r\n \"receiver_phone\": \"<string>\",\r\n \"receiver_activity\": \"<string>\",\r\n\t \"receiver_postalcode\":\"12343456\",\r\n \"payment_conditions\": \"0\",\r\n \"currency_id\": 7,\r\n\t \"additional\":{\r\n \"pe_header\":{\r\n \"signature_id\":\"ASDFG\",\r\n \"operation_type\":\"0101\"\r\n }\r\n }\r\n },\r\n \"details\": [\r\n {\r\n \"quantity\": 1,\r\n \"line_description\": \"Prueba Koywe\",\r\n \"unit_measure\": \"NIU\",\r\n \"unit_price\": 1000,\r\n \"long_description\": \"Test descripcion\",\r\n \"modifier_amount\": 0,\r\n \"total_taxes\": 180,\r\n \"modifier_percentage\": 0,\r\n \"total_amount_line\": 1180,\r\n \"sku\": \"3245\",\r\n \"taxes\": [\r\n {\r\n \"tax_type_id\": \"413\",\r\n \"tax_percentage\": 18,\r\n \"tax_amount\": 180\r\n }\r\n ]\r\n }\r\n ],\r\n \"references\": [\r\n\t {\r\n\t\t \"document_type_id\": \"96\",\r\n\t\t \"reference_number\": \"F001-00000087\",\r\n\t\t \"reference_code\": \"01\",\r\n\t\t \"description\": \"Anulacion solicitada por el emisor\",\r\n\t\t \"reference_date\": \"2025-01-27\"\r\n\t }\r\n ],\r\n \"totals\": {\r\n \"net_amount\": 1000,\r\n \"taxes_amount\": 180,\r\n \"total_amount\": 1180\r\n }\r\n}\r\n\r\n", | |
| \t \"issuer_department\":\"<string>\", | |
| \"issuer_country_id\": \"83\", | |
| \"issuer_phone\": \"<string>\", |
🤖 Prompt for AI Agents
In koywe-billing.postman_collection.json around line 2516, the raw JSON payload
sets issuer_country_id to "80" (Mexico) while the request is for Perú; change
the issuer_country_id value to "83" to correctly indicate Peru within the raw
JSON string (ensure you only modify that field value inside the raw string and
preserve the surrounding JSON formatting and escaping).
Summary by CodeRabbit
New Features
Documentation
Tests