Contalink Conciliación API

Realiza la conciliación por medio del UUID de la factura proporcionada.

Operations 1

POST /conciliation/create/ Crea una conciliación de una factura

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/contalink-conciliaci-n-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

contalink-conciliaci-n-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: '# Introducción

    Documentación del API de Contalink


    # Autenticación


    El método de autenticación para el api de contalink es mediante un api key el cual está relacionado forzosamente a un usuario dentro del sistema, por lo cual, todas las peticiones utilizando ese api key quedarán registradas como peticiones del usuario relacionado.


    <SecurityDefinitions />

    '
  title: Contalink Balanza de comprobación Conciliación API
  version: 1.0.4
  x-logo:
    altText: Contalink
    url: http://apidocs.contalink.com/logocontalinknew.svg
servers:
- description: prod
  url: https://794lol2h95.execute-api.us-east-1.amazonaws.com/prod
tags:
- description: Realiza la conciliación por medio del UUID de la factura proporcionada.
  name: Conciliación
paths:
  /conciliation/create/:
    post:
      description: Endpoint para crear la conciliación de una factura.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConciliationPolicy'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConciliationPolicyResponse'
          description: 0 indica error, 1 indica éxito
      security:
      - APIKey: []
      summary: Crea una conciliación de una factura
      tags:
      - Conciliación
      x-codeSamples:
      - lang: C
        source: "CURL *curl;\nCURLcode res;\ncurl = curl_easy_init();\nif(curl) {\n   curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, \"POST\");\n   curl_easy_setopt(curl, CURLOPT_URL, \"%7B%7BbaseUrl%7D%7D/conciliation/create/\");\n   curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);\n   curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, \"https\");\n   struct curl_slist *headers = NULL;\n   headers = curl_slist_append(headers, \"Content-Type: application/json\");\n   headers = curl_slist_append(headers, \"Accept: application/json\");\n   headers = curl_slist_append(headers, \"Content-Length: \");\n   curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);\n   const char *data = \"{\\n  \\\"invoice_id\\\": \\\"<string>\\\",\\n  \\\"payment_form\\\": \\\"<string>\\\",\\n  \\\"payment_date\\\": \\\"<datetime>\\\",\\n  \\\"amount\\\": \\\"<number>\\\",\\n  \\\"bank_account\\\": \\\"<string>\\\"\\n}\";\n   curl_easy_setopt(curl, CURLOPT_POSTFIELDS, data);\n   res = curl_easy_perform(curl);\n}\ncurl_easy_cleanup(curl);\n"
      - lang: C#
        source: 'var client = new RestClient("{{baseUrl}}/conciliation/create/");

          client.Timeout = -1;

          var request = new RestRequest(Method.POST);

          request.AddHeader("Content-Type", "application/json");

          request.AddHeader("Accept", "application/json");

          var body = @"{" + "\n" +

          @"  ""invoice_id"": ""<string>""," + "\n" +

          @"  ""payment_form"": ""<string>""," + "\n" +

          @"  ""payment_date"": ""<datetime>""," + "\n" +

          @"  ""amount"": ""<number>""," + "\n" +

          @"  ""bank_account"": ""<string>""" + "\n" +

          @"}";

          request.AddParameter("application/json", body,  ParameterType.RequestBody);

          IRestResponse response = client.Execute(request);

          Console.WriteLine(response.Content);'
      - lang: Curl
        source: "curl --location -g --request POST '{{baseUrl}}/conciliation/create/' \\\n--header 'Content-Type: application/json' \\\n--header 'Accept: application/json' \\\n--data-raw '{\n  \"invoice_id\": \"<string>\",\n  \"payment_form\": \"<string>\",\n  \"payment_date\": \"<datetime>\",\n  \"amount\": \"<number>\",\n  \"bank_account\": \"<string>\"\n}'"
      - lang: Dart
        source: "var headers = {\n   'Content-Type': 'application/json',\n   'Accept': 'application/json'\n};\nvar request = http.Request('POST', Uri.parse('{{baseUrl}}/conciliation/create/'));\nrequest.body = json.encode({\n   \"invoice_id\": \"<string>\",\n   \"payment_form\": \"<string>\",\n   \"payment_date\": \"<datetime>\",\n   \"amount\": \"<number>\",\n   \"bank_account\": \"<string>\"\n});\nrequest.headers.addAll(headers);\n\nhttp.StreamedResponse response = await request.send();\n\nif (response.statusCode == 200) {\n   print(await response.stream.bytesToString());\n}\nelse {\n   print(response.reasonPhrase);\n}\n"
      - lang: Go
        source: "package main\n\nimport (\n   \"fmt\"\n   \"strings\"\n   \"net/http\"\n   \"io/ioutil\"\n)\n\nfunc main() {\n\n   url := \"%7B%7BbaseUrl%7D%7D/conciliation/create/\"\n   method := \"POST\"\n\n   payload := strings.NewReader(`{\n  \"invoice_id\": \"<string>\",\n  \"payment_form\": \"<string>\",\n  \"payment_date\": \"<datetime>\",\n  \"amount\": \"<number>\",\n  \"bank_account\": \"<string>\"\n}`)\n\n   client := &http.Client {\n   }\n   req, err := http.NewRequest(method, url, payload)\n\n   if err != nil {\n      fmt.Println(err)\n      return\n   }\n   req.Header.Add(\"Content-Type\", \"application/json\")\n   req.Header.Add(\"Accept\", \"application/json\")\n\n   res, err := client.Do(req)\n   if err != nil {\n      fmt.Println(err)\n      return\n   }\n   defer res.Body.Close()\n\n   body, err := ioutil.ReadAll(res.Body)\n   if err != nil {\n      fmt.Println(err)\n      return\n   }\n   fmt.Println(string(body))\n}"
      - lang: Http
        source: "POST /conciliation/create/ HTTP/1.1\nHost: {{baseUrl}}\nContent-Type: application/json\nAccept: application/json\nContent-Length: 146\n\n{\n  \"invoice_id\": \"<string>\",\n  \"payment_form\": \"<string>\",\n  \"payment_date\": \"<datetime>\",\n  \"amount\": \"<number>\",\n  \"bank_account\": \"<string>\"\n}"
      - lang: Java
        source: "OkHttpClient client = new OkHttpClient().newBuilder()\n   .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\n  \\\"invoice_id\\\": \\\"<string>\\\",\\n  \\\"payment_form\\\": \\\"<string>\\\",\\n  \\\"payment_date\\\": \\\"<datetime>\\\",\\n  \\\"amount\\\": \\\"<number>\\\",\\n  \\\"bank_account\\\": \\\"<string>\\\"\\n}\");\nRequest request = new Request.Builder()\n   .url(\"{{baseUrl}}/conciliation/create/\")\n   .method(\"POST\", body)\n   .addHeader(\"Content-Type\", \"application/json\")\n   .addHeader(\"Accept\", \"application/json\")\n   .addHeader(\"Content-Length\", \"\")\n   .build();\nResponse response = client.newCall(request).execute();"
      - lang: Java
        source: "Unirest.setTimeouts(0, 0);\nHttpResponse<String> response = Unirest.post(\"{{baseUrl}}/conciliation/create/\")\n   .header(\"Content-Type\", \"application/json\")\n   .header(\"Accept\", \"application/json\")\n   .header(\"Content-Length\", \"\")\n   .body(\"{\\n  \\\"invoice_id\\\": \\\"<string>\\\",\\n  \\\"payment_form\\\": \\\"<string>\\\",\\n  \\\"payment_date\\\": \\\"<datetime>\\\",\\n  \\\"amount\\\": \\\"<number>\\\",\\n  \\\"bank_account\\\": \\\"<string>\\\"\\n}\")\n   .asString();\n"
      - lang: JavaScript
        source: "var myHeaders = new Headers();\nmyHeaders.append(\"Content-Type\", \"application/json\");\nmyHeaders.append(\"Accept\", \"application/json\");\nmyHeaders.append(\"Content-Length\", \"\");\n\nvar raw = JSON.stringify({\n   \"invoice_id\": \"<string>\",\n   \"payment_form\": \"<string>\",\n   \"payment_date\": \"<datetime>\",\n   \"amount\": \"<number>\",\n   \"bank_account\": \"<string>\"\n});\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"{{baseUrl}}/conciliation/create/\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
      - lang: JavaScript
        source: "var data = JSON.stringify({\n   \"invoice_id\": \"<string>\",\n   \"payment_form\": \"<string>\",\n   \"payment_date\": \"<datetime>\",\n   \"amount\": \"<number>\",\n   \"bank_account\": \"<string>\"\n});\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function() {\n   if(this.readyState === 4) {\n      console.log(this.responseText);\n   }\n});\n\nxhr.open(\"POST\", \"%7B%7BbaseUrl%7D%7D/conciliation/create/\");\nxhr.setRequestHeader(\"Content-Type\", \"application/json\");\nxhr.setRequestHeader(\"Accept\", \"application/json\");\nxhr.setRequestHeader(\"Content-Length\", \"\");\n\nxhr.send(data);"
      - lang: JavaScript
        source: "var settings = {\n   \"url\": \"{{baseUrl}}/conciliation/create/\",\n   \"method\": \"POST\",\n   \"timeout\": 0,\n   \"headers\": {\n      \"Content-Type\": \"application/json\",\n      \"Accept\": \"application/json\",\n      \"Content-Length\": \"\"\n   },\n   \"data\": JSON.stringify({\n      \"invoice_id\": \"<string>\",\n      \"payment_form\": \"<string>\",\n      \"payment_date\": \"<datetime>\",\n      \"amount\": \"<number>\",\n      \"bank_account\": \"<string>\"\n   }),\n};\n\n$.ajax(settings).done(function (response) {\n   console.log(response);\n});"
      - lang: NodeJS
        source: "var axios = require('axios');\nvar data = JSON.stringify({\n   \"invoice_id\": \"<string>\",\n   \"payment_form\": \"<string>\",\n   \"payment_date\": \"<datetime>\",\n   \"amount\": \"<number>\",\n   \"bank_account\": \"<string>\"\n});\n\nvar config = {\n   method: 'post',\n   url: '{{baseUrl}}/conciliation/create/',\n   headers: { \n      'Content-Type': 'application/json', \n      'Accept': 'application/json', \n      'Content-Length': ''\n   },\n   data : data\n};\n\naxios(config)\n.then(function (response) {\n   console.log(JSON.stringify(response.data));\n})\n.catch(function (error) {\n   console.log(error);\n});\n"
      - lang: NodeJS
        source: "var https = require('follow-redirects').https;\nvar fs = require('fs');\n\nvar options = {\n   'method': 'POST',\n   'hostname': '{{baseUrl}}',\n   'path': '/conciliation/create/',\n   'headers': {\n      'Content-Type': 'application/json',\n      'Accept': 'application/json',\n      'Content-Length': ''\n   },\n   'maxRedirects': 20\n};\n\nvar req = https.request(options, function (res) {\n   var chunks = [];\n\n   res.on(\"data\", function (chunk) {\n      chunks.push(chunk);\n   });\n\n   res.on(\"end\", function (chunk) {\n      var body = Buffer.concat(chunks);\n      console.log(body.toString());\n   });\n\n   res.on(\"error\", function (error) {\n      console.error(error);\n   });\n});\n\nvar postData = JSON.stringify({\n   \"invoice_id\": \"<string>\",\n   \"payment_form\": \"<string>\",\n   \"payment_date\": \"<datetime>\",\n   \"amount\": \"<number>\",\n   \"bank_account\": \"<string>\"\n});\n\nreq.write(postData);\n\nreq.end();"
      - lang: NodeJS
        source: "var request = require('request');\nvar options = {\n   'method': 'POST',\n   'url': '{{baseUrl}}/conciliation/create/',\n   'headers': {\n      'Content-Type': 'application/json',\n      'Accept': 'application/json',\n      'Content-Length': ''\n   },\n   body: JSON.stringify({\n      \"invoice_id\": \"<string>\",\n      \"payment_form\": \"<string>\",\n      \"payment_date\": \"<datetime>\",\n      \"amount\": \"<number>\",\n      \"bank_account\": \"<string>\"\n   })\n\n};\nrequest(options, function (error, response) {\n   if (error) throw new Error(error);\n   console.log(response.body);\n});\n"
      - lang: NodeJS
        source: "var unirest = require('unirest');\nvar req = unirest('POST', '{{baseUrl}}/conciliation/create/')\n   .headers({\n      'Content-Type': 'application/json',\n      'Accept': 'application/json',\n      'Content-Length': ''\n   })\n   .send(JSON.stringify({\n      \"invoice_id\": \"<string>\",\n      \"payment_form\": \"<string>\",\n      \"payment_date\": \"<datetime>\",\n      \"amount\": \"<number>\",\n      \"bank_account\": \"<string>\"\n   }))\n   .end(function (res) { \n      if (res.error) throw new Error(res.error); \n      console.log(res.raw_body);\n   });\n"
      - lang: Objective-C
        source: "#import <Foundation/Foundation.h>\n\ndispatch_semaphore_t sema = dispatch_semaphore_create(0);\n\nNSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@\"%7B%7BbaseUrl%7D%7D/conciliation/create/\"]\n   cachePolicy:NSURLRequestUseProtocolCachePolicy\n   timeoutInterval:10.0];\nNSDictionary *headers = @{\n   @\"Content-Type\": @\"application/json\",\n   @\"Accept\": @\"application/json\",\n   @\"Content-Length\": @\"\"\n};\n\n[request setAllHTTPHeaderFields:headers];\nNSData *postData = [[NSData alloc] initWithData:[@\"{\\n  \\\"invoice_id\\\": \\\"<string>\\\",\\n  \\\"payment_form\\\": \\\"<string>\\\",\\n  \\\"payment_date\\\": \\\"<datetime>\\\",\\n  \\\"amount\\\": \\\"<number>\\\",\\n  \\\"bank_account\\\": \\\"<string>\\\"\\n}\" dataUsingEncoding:NSUTF8StringEncoding]];\n[request setHTTPBody:postData];\n\n[request setHTTPMethod:@\"POST\"];\n\nNSURLSession *session = [NSURLSession sharedSession];\nNSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request\ncompletionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {\n   if (error) {\n      NSLog(@\"%@\", error);\n      dispatch_semaphore_signal(sema);\n   } else {\n      NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;\n      NSError *parseError = nil;\n      NSDictionary *responseDictionary = [NSJSONSerialization JSONObjectWithData:data options:0 error:&parseError];\n      NSLog(@\"%@\",responseDictionary);\n      dispatch_semaphore_signal(sema);\n   }\n}];\n[dataTask resume];\ndispatch_semaphore_wait(sema, DISPATCH_TIME_FOREVER);"
      - lang: OcaML
        source: "open Lwt\nopen Cohttp\nopen Cohttp_lwt_unix\n\nlet postData = ref \"{\\n  \\\"invoice_id\\\": \\\"<string>\\\",\\n  \\\"payment_form\\\": \\\"<string>\\\",\\n  \\\"payment_date\\\": \\\"<datetime>\\\",\\n  \\\"amount\\\": \\\"<number>\\\",\\n  \\\"bank_account\\\": \\\"<string>\\\"\\n}\";;\n\nlet reqBody = \n   let uri = Uri.of_string \"%7B%7BbaseUrl%7D%7D/conciliation/create/\" in\n   let headers = Header.init ()\n      |> fun h -> Header.add h \"Content-Type\" \"application/json\"\n      |> fun h -> Header.add h \"Accept\" \"application/json\"\n      |> fun h -> Header.add h \"Content-Length\" \"\"\n   in\n   let body = Cohttp_lwt.Body.of_string !postData in\n\n   Client.call ~headers ~body `POST uri >>= fun (_resp, body) ->\n   body |> Cohttp_lwt.Body.to_string >|= fun body -> body\n\nlet () =\n   let respBody = Lwt_main.run reqBody in\n   print_endline (respBody)"
      - lang: PHP
        source: "<?php\nrequire_once 'HTTP/Request2.php';\n$request = new HTTP_Request2();\n$request->setUrl('{{baseUrl}}/conciliation/create/');\n$request->setMethod(HTTP_Request2::METHOD_POST);\n$request->setConfig(array(\n   'follow_redirects' => TRUE\n));\n$request->setHeader(array(\n   'Content-Type' => 'application/json',\n   'Accept' => 'application/json',\n   'Content-Length' => ''\n));\n$request->setBody('{\\n  \"invoice_id\": \"<string>\",\\n  \"payment_form\": \"<string>\",\\n  \"payment_date\": \"<datetime>\",\\n  \"amount\": \"<number>\",\\n  \"bank_account\": \"<string>\"\\n}');\ntry {\n   $response = $request->send();\n   if ($response->getStatus() == 200) {\n      echo $response->getBody();\n   }\n   else {\n      echo 'Unexpected HTTP status: ' . $response->getStatus() . ' ' .\n      $response->getReasonPhrase();\n   }\n}\ncatch(HTTP_Request2_Exception $e) {\n   echo 'Error: ' . $e->getMessage();\n}"
      - lang: PHP
        source: "<?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n   CURLOPT_URL => '%7B%7BbaseUrl%7D%7D/conciliation/create/',\n   CURLOPT_RETURNTRANSFER => true,\n   CURLOPT_ENCODING => '',\n   CURLOPT_MAXREDIRS => 10,\n   CURLOPT_TIMEOUT => 0,\n   CURLOPT_FOLLOWLOCATION => true,\n   CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n   CURLOPT_CUSTOMREQUEST => 'POST',\n   CURLOPT_POSTFIELDS =>'{\n  \"invoice_id\": \"<string>\",\n  \"payment_form\": \"<string>\",\n  \"payment_date\": \"<datetime>\",\n  \"amount\": \"<number>\",\n  \"bank_account\": \"<string>\"\n}',\n   CURLOPT_HTTPHEADER => array(\n      'Content-Type: application/json',\n      'Accept: application/json',\n      'Content-Length: '\n   ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n"
      - lang: PHP
        source: "<?php\n$client = new http\\Client;\n$request = new http\\Client\\Request;\n$request->setRequestUrl('{{baseUrl}}/conciliation/create/');\n$request->setRequestMethod('POST');\n$body = new http\\Message\\Body;\n$body->append('{\n  \"invoice_id\": \"<string>\",\n  \"payment_form\": \"<string>\",\n  \"payment_date\": \"<datetime>\",\n  \"amount\": \"<number>\",\n  \"bank_account\": \"<string>\"\n}');\n$request->setBody($body);\n$request->setOptions(array());\n$request->setHeaders(array(\n   'Content-Type' => 'application/json',\n   'Accept' => 'application/json',\n   'Content-Length' => ''\n));\n$client->enqueue($request)->send();\n$response = $client->getResponse();\necho $response->getBody();\n"
      - lang: PowerShell
        source: '$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"

          $headers.Add("Content-Type", "application/json")

          $headers.Add("Accept", "application/json")

          $headers.Add("Content-Length", "")


          $body = "{`n  `"invoice_id`": `"<string>`",`n  `"payment_form`": `"<string>`",`n  `"payment_date`": `"<datetime>`",`n  `"amount`": `"<number>`",`n  `"bank_account`": `"<string>`"`n}"


          $response = Invoke-RestMethod ''{{baseUrl}}/conciliation/create/'' -Method ''POST'' -Headers $headers -Body $body

          $response | ConvertTo-Json'
      - lang: Python
        source: "import requests\nimport json\n\nurl = \"{{baseUrl}}/conciliation/create/\"\n\npayload = json.dumps({\n   \"invoice_id\": \"<string>\",\n   \"payment_form\": \"<string>\",\n   \"payment_date\": \"<datetime>\",\n   \"amount\": \"<number>\",\n   \"bank_account\": \"<string>\"\n})\nheaders = {\n   'Content-Type': 'application/json',\n   'Accept': 'application/json',\n   'Content-Length': ''\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
      - lang: Python
        source: "import http.client\nimport json\n\nconn = http.client.HTTPSConnection(\"{{baseUrl}}\")\npayload = json.dumps({\n   \"invoice_id\": \"<string>\",\n   \"payment_form\": \"<string>\",\n   \"payment_date\": \"<datetime>\",\n   \"amount\": \"<number>\",\n   \"bank_account\": \"<string>\"\n})\nheaders = {\n   'Content-Type': 'application/json',\n   'Accept': 'application/json',\n   'Content-Length': ''\n}\nconn.request(\"POST\", \"/conciliation/create/\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))"
      - lang: Ruby
        source: "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"{{baseUrl}}/conciliation/create/\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Content-Type\"] = \"application/json\"\nrequest[\"Accept\"] = \"application/json\"\nrequest[\"Content-Length\"] = \"\"\nrequest.body = JSON.dump({\n   \"invoice_id\": \"<string>\",\n   \"payment_form\": \"<string>\",\n   \"payment_date\": \"<datetime>\",\n   \"amount\": \"<number>\",\n   \"bank_account\": \"<string>\"\n})\n\nresponse = http.request(request)\nputs response.read_body\n"
      - lang: Shell
        source: "printf '{\n  \"invoice_id\": \"<string>\",\n  \"payment_form\": \"<string>\",\n  \"payment_date\": \"<datetime>\",\n  \"amount\": \"<number>\",\n  \"bank_account\": \"<string>\"\n}'| http  --follow --timeout 3600 POST '{{baseUrl}}/conciliation/create/' \\\n Content-Type:'application/json' \\\n Accept:'application/json' \\\n Content-Length:"
      - lang: Shell
        source: "wget --no-check-certificate --quiet \\\n   --method POST \\\n   --timeout=0 \\\n   --header 'Content-Type: application/json' \\\n   --header 'Accept: application/json' \\\n   --header 'Content-Length: ' \\\n   --body-data '{\n  \"invoice_id\": \"<string>\",\n  \"payment_form\": \"<string>\",\n  \"payment_date\": \"<datetime>\",\n  \"amount\": \"<number>\",\n  \"bank_account\": \"<string>\"\n}' \\\n    '{{baseUrl}}/conciliation/create/'"
      - lang: Swift
        source: "import Foundation\n#if canImport(FoundationNetworking)\nimport FoundationNetworking\n#endif\n\nvar semaphore = DispatchSemaphore (value: 0)\n\nlet parameters = \"{\\n  \\\"invoice_id\\\": \\\"<string>\\\",\\n  \\\"payment_form\\\": \\\"<string>\\\",\\n  \\\"payment_date\\\": \\\"<datetime>\\\",\\n  \\\"amount\\\": \\\"<number>\\\",\\n  \\\"bank_account\\\": \\\"<string>\\\"\\n}\"\nlet postData = parameters.data(using: .utf8)\n\nvar request = URLRequest(url: URL(string: \"{{baseUrl}}/conciliation/create/\")!,timeoutInterval: Double.infinity)\nrequest.addValue(\"application/json\", forHTTPHeaderField: \"Content-Type\")\nrequest.addValue(\"application/json\", forHTTPHeaderField: \"Accept\")\nrequest.addValue(\"\", forHTTPHeaderField: \"Content-Length\")\n\nrequest.httpMethod = \"POST\"\nrequest.httpBody = postData\n\nlet task = URLSession.shared.dataTask(with: request) { data, response, error in \n   guard let data = data else {\n      print(String(describing: error))\n      semaphore.signal()\n      return\n   }\n   print(String(data: data, encoding: .utf8)!)\n   semaphore.signal()\n}\n\ntask.resume()\nsemaphore.wait()\n"
components:
  schemas:
    ConciliationPolicy:
      properties:
        amount:
          description: Monto del pago
          type: number
        bank_account:
          description: Nombre de la cuenta por la cual se realizó el pago
          type: string
        invoice_id:
          description: UUID de la factura a conciliar
          type: string
        payment_date:
          description: Fecha en la que se realizó el pago en formato  ISO 8601 (YYYY-MM-DDTHH:MM:SS)
          format: datetime
          type: string
        payment_form:
          description: Clave de la forma de pago permitida por el SAT, por ejemplo '03'
          type: string
      required:
      - invoice_id
      - payment_form
      - payment_date
      - amount
      - bank_account
      type: object
    ConciliationPolicyResponse:
      properties:
        message:
          description: Mensaje de éxito o de error que acompaña al status
          type: string
        status:
          description: Indica el status de la llamada, 1.- Éxito, 0.- Error
          type: number
      type: object
  securitySchemes:
    APIKey:
      description: Llave de API relacionada al usuario que hace la petición.
      in: header
      name: Authorization
      type: apiKey
x-tagGroups:
- name: Conciliación
  tags:
  - Conciliación
- name: Tesorería
  tags:
  - Movimientos bancarios
- name: Documentos fiscales
  tags:
  - Listado de documentos fiscales
  - Cargar un documento fiscal
  - Status de documentos fiscales
- name: Contabilidad
  tags:
  - Balanza de comprobación
  - Pólizas manuales
  - Saldo de una cuenta