Skip to content

Instantly share code, notes, and snippets.

@angusbreno
Created September 8, 2020 18:34
Show Gist options
  • Save angusbreno/13506740735248701232a9d7072cb28b to your computer and use it in GitHub Desktop.
Save angusbreno/13506740735248701232a9d7072cb28b to your computer and use it in GitHub Desktop.
NFE_CTE/NFSE Integration
{
"swagger": "2.0",
"info": {
"version": "v1",
"title": "HBLOG Kernel API"
},
"paths": {
"/api/EventRealized/AttachProductEletronicInvoice": {
"get": {
"tags": [
"EventRealized"
],
"operationId": "AttachProductEletronicInvoice",
"consumes": [],
"produces": [
"text/plain",
"application/json",
"text/json"
],
"parameters": [
{
"name": "eventRealizedId",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "eletronicInvoiceId",
"in": "query",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/TripPlanningAssetGroupSubgroupEventRealized"
}
}
}
}
},
"/api/EventRealized/DisattachProductEletronicInvoice": {
"get": {
"tags": [
"EventRealized"
],
"operationId": "DisattachProductEletronicInvoice",
"consumes": [],
"produces": [
"text/plain",
"application/json",
"text/json"
],
"parameters": [
{
"name": "eventRealizedId",
"in": "query",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/TripPlanningAssetGroupSubgroupEventRealized"
}
}
}
}
},
"/api/EventRealized/RequestTransportEletronicInvoice": {
"get": {
"tags": [
"EventRealized"
],
"operationId": "RequestTransportEletronicInvoice",
"consumes": [],
"produces": [
"text/plain",
"application/json",
"text/json"
],
"parameters": [
{
"name": "eventRealizedId",
"in": "query",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/TripPlanningAssetGroupSubgroupEventRealized"
}
}
}
}
},
"/api/ECCIntegration/ConsultaStatusNFSECTE": {
"post": {
"tags": [
"ECCIntegration"
],
"operationId": "ConsultaStatusNFSECTE",
"consumes": [
"application/json-patch+json",
"application/json",
"text/json",
"application/*+json"
],
"produces": [
"text/plain",
"application/json",
"text/json"
],
"parameters": [
{
"name": "obj",
"in": "body",
"required": false,
"schema": {
"$ref": "#/definitions/ECC_Status_NFSE_CTE_In"
}
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/ECCIntegrationResultBase"
}
}
}
}
}
},
"securityDefinitions": {
"Basic": {
"name": "Authorization",
"in": "header",
"type": "apiKey",
"description": "Please insert Basic authorization 64 based into field"
},
"ApiKey": {
"name": "x-api-key",
"in": "header",
"type": "apiKey",
"description": "Please insert APIKEY into field"
}
},
"security": [
{
"Basic": [],
"ApiKey": []
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment