online-billing-service.com
<span class="translation_missing" title="translation missing: en.layouts.public_website.page_header_obs.slogan">Slogan</span>
try now hide testing interface

GRAPHQL API Documentation

API (Application Programming Interface)
makes available resources of

You will find everything you need to integrate with your software.

(legacy) REST API documentation click here

1. Resources and URLs

The new API online-billing-service.com is a GraphQL API, traverses and returns application data based on the schema definitions, independent of how the data is stored. The schema defines an API's type system and all object relationships.
GraphQL official documentation.

For the examples in the Ruby language, we used the gem "graphql", "~> 1.10". With version 2 or newer, various errors may occur.


2. Sandbox system for API testing

To test the functions of the online-billing-service.com API we have developed a sandbox system.
It is available at: https://sandbox.online-billing-service.com

The API key for testing is: 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829

The login data for the user corresponding to the above API key:


3. Authentication

API key is defined per user and it can be (re)generated from your account online-billing-service.com , under “My account” -> “API Key” Two authentication methods are available: HTTP Authentication (the API key will be used as a username, the password being ignored) Api_key parameter added to each request.


4. Results and errors

The result of a request signals via the returned HTTP status:
200 Success (after a GET, PUT, or DELETE successful request )
201 Created (after a POST successful request)
400 Resource Invalid (wrong formatted request)
401 Unauthorized
404 Resource Not Found
405 Method Not Allowed (The HTTP verb used is not supported for this resource)
422 Unprocessable Entity (The request was syntactically correct, but the requested changes are not valid)
429 Too Many Requests (the subscription's API request limit was exceeded — hourly, daily and monthly quotas depend on your plan; over-limit requests are rejected until the corresponding window has passed)
500 Application Error (System error)
For syntactically correct requests, but that do not meet the validation criteria of the system, errors will be returned to the body of the response.

4.1. Request limits and the response headers

The number of API requests included per hour, per day and per calendar month depends on the subscription — the current limits are listed in the terms and conditions. They are shared by every access channel: the GraphQL API, the v1 (REST) API and the AI / MCP connector.

So you can pace your calls instead of discovering the limit through a rejection, every response tells you where you stand. Each limited window comes with three headers:

  • X-RateLimit-Limit-Hour (also -Day and -Month ) — the requests included in that window
  • X-RateLimit-Remaining-Hour — how many requests you have left in that window
  • X-RateLimit-Reset-Hour — when the window frees its next request, as a Unix timestamp (seconds, UTC)

  X-RateLimit-Limit-Hour: 250
X-RateLimit-Remaining-Hour: 243
X-RateLimit-Reset-Hour: 1756111013
X-RateLimit-Limit-Day: 1000
X-RateLimit-Remaining-Day: 812
X-RateLimit-Reset-Day: 1756158613
X-RateLimit-Limit-Month: 5000
X-RateLimit-Remaining-Month: 3140
X-RateLimit-Reset-Month: 1756674000

The hourly and daily windows are sliding — they count the requests of the last 60 minutes and of the last 24 hours — so quota is released gradually as old requests fall out of the window. The Reset header is the moment the first request is freed, not the moment the whole quota is back. The monthly window is the calendar month and resets in full at 00:00 on the first day of the next month.

If your subscription has no limit for a given window, that window's headers are simply absent from the response. The figures are advisory — under parallel traffic they may lag slightly — so use them for pacing rather than as exact accounting.

Once a limit is exceeded, the GraphQL API answers with HTTP 200 and reports the error in the response body, at errors[0].extensions.code = API_RATE_LIMIT_EXCEEDED (the v1 REST API answers 429 Too Many Requests). Either way the response also carries a Retry-After header with the number of seconds after which you can resume.

Independently of the subscription limits, a per-IP protection against abuse is also in place; a normal integration pace never reaches that threshold.


5. Fields and data types

The fields and data types can be seen in the Documentation Explorer on the right side of the GraphQL editor. Click here for an example.


6. Queries examples


6.1. Account (Model Account)

Account details

For a detailed list of fields, relations and imbricated objects of your account, please check the interactive documentation.


6.2. Client (Model Client)

Client details

    {
  clients(id: "1064116552") {
    id
    uid
    address
    city
    zip
    excludeUidInDocument
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of clients, please check the interactive documentation.


Listing clients

    {
  clients(limit: 1, offset: 1) {
    id
    name
    excludeUidInDocument
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of clients, please check the interactive documentation.


Searching clients

    {
  clients(id: "1064115995", name: "client name", email: "[email protected]") {
    id
    name
    email
    uid
    address
    city
    zip
    state
    telephone
    zip
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of searching clients, please check the interactive documentation.


Filtering clients

    {
  clients(where: "{\"_eq\": {\"name\": \"client name\", \"email\": \"[email protected]\"}}") {
    id
    name
    email
    uid
    address
    city
    zip
    state
    telephone
    zip
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of filtering clients, please check the interactive documentation.


Descending order clients

    {
  clients(orderBy: "{\"email\": \"desc\"}") {
    id
    name
    email
    uid
    address
    city
    zip
    state
    telephone
    zip
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of ordering clients, please check the interactive documentation.


Ascending order clients

    {
  clients(orderBy: "{\"email\": \"asc\"}") {
    id
    name
    email
    uid
    address
    city
    zip
    state
    telephone
    zip
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of ordering clients, please check the interactive documentation.


Add client

    mutation {
  createClient(
    uid: "12345678",
    name: "client name",
    address: "client address",
    city: "City name",
    excludeUidInDocument: true
    country: "DE"
    ) {
      id
      uid
      name
      address
      excludeUidInDocument
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of adding a client, please check the interactive documentation.


Modify client

    mutation {
  updateClient(
    id: "1064116552",
    name: "new name",
    country: "DE",
    uid: "3987985",
    excludeUidInDocument: false
    ) {
      id
      uid
      name
      excludeUidInDocument
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of modifying a client, please check the interactive documentation.


Delete client

    mutation {
  deleteClient(id: "1064116552") {
    id
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of deleting a client, please check the interactive documentation.


6.3. Invoice numbering schemes (Model Invoice Series)

Invoice numbering scheme details

    {
  invoiceSeries(id: "1061105243") {
    id
    createdAt
    counterStart
    prefix
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of invoice numbering schemes, please check the interactive documentation.


Listing invoice numbering scheme

    {
  invoiceSeries(limit: 1, offset: 1) {
    id
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of invoice numbering schemes, please check the interactive documentation.


Searching invoice numbering scheme

    {
  invoiceSeries(year: "2021", counterStart: "1000") {
    id
    createdAt
    counterStart
    counterCurrent
    prefix
    year
    sepparator
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of searching invoice numbering schemes, please check the interactive documentation.


Filtering invoice numbering scheme

    {
  invoiceSeries(where: "{\"_lte\": {\"year\": \"2036\"}}") {
    id
    createdAt
    counterStart
    counterCurrent
    prefix
    year
    sepparator
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of filtering invoice numbering schemes, please check the interactive documentation.


Delete invoice numbering scheme

    mutation {
  deleteInvoiceSeries(id: "1061105243") {
    id
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of deleting an invoice numbering scheme, please check the interactive documentation.


Add invoice numbering scheme

    mutation {
  createInvoiceSeries(
    counterStart: "1",
    counterCurrent: "422",
    year: "2026",
    prefix: "qwerty"
    ) {
      id
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of adding an invoice numbering scheme, please check the interactive documentation.


Modify invoice numbering scheme

    mutation {
  updateInvoiceSeries(
      id: "1061105243",
      prefix: "SER"
    ) {
      id
      prefix
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of modifying an invoice numbering scheme, please check the interactive documentation.


6.4. Invoice (Model Invoice)

Invoice details

    {
  invoices(id: "1065257287") {
    id
    createdAt
    type
    lowerAnnotation
    upperAnnotation
    documentPositions {
      id
    }
    receipts {
      id
    }
    inputCurrency
    totalNoVat
    vat
    payments {
      id
    }
    actionEvents {
      id
    }
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of invoices, please check the interactive documentation.


Listing invoices

    {
  invoices(limit: 1, offset: 1) {
    id
    lowerAnnotation
    upperAnnotation
    documentState
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of invoices, please check the interactive documentation.


Searching invoices

    {
  invoices(documentSeriesId: "1061105254") {
    id
    lowerAnnotation
    upperAnnotation
    documentState
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of searching invoices, please check the interactive documentation.


Filtering invoices

    {
  invoices(where: "{\"_eq\": {\"cachedTotal\": \"145.2\", \"vatType\": \"1\"}}") {
    id
    lowerAnnotation
    upperAnnotation
    documentState
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of filtering invoices, please check the interactive documentation.


Descending order invoices

    {
  invoices(orderBy: "{\"createdAt\": \"desc\"}") {
    id
    lowerAnnotation
    upperAnnotation
    documentState
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of ordering invoices, please check the interactive documentation.


Ascending order invoices

    {
  invoices(orderBy: "{\"createdAt\": \"asc\"}") {
    id
    lowerAnnotation
    upperAnnotation
    documentState
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of ordering invoices, please check the interactive documentation.


Delete invoices

    mutation {
  deleteInvoice(id: "1065257287") {
    id
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of deleting an invoice, please check the interactive documentation.


Add invoices

    mutation {
  createInvoice(
    currency: "EUR",
    clientId: "1064116552",
    documentSeriesId: "1061105254",
    documentDate: "2026-07-10",
    exchangeRate: "4.55",
    lowerAnnotation: "lower annotation example",
    upperAnnotation: "upper annotation example",
    documentSeriesCounter: "466",
    vatType: "1",
    delegateId: "525664520",
    displayTransportData: "1",
    documentPositions: [{
      description: "BASIC SUBSCRIPTION",
      unit: "months",
      unitCount: "12",
      price: "12",
      productCode: "66XXH663496H",
      vat: "19"
    }]) {
    id
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of adding an invoice, please check the interactive documentation.


Modify invoices

    mutation {
  updateInvoice(
    id: "1065257287",
    exchangeRate: "4.5",
    currency: "EUR",
    documentPositions: [{
      description: "product",
      unit: "-",
      unitCount: "1",
      total: "0.0",
      productCode: "none",
      vat: "20.0",
      position: "0"
    }]) {
    id
    currency
    exchangeRate
   }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of modifying an invoice, please check the interactive documentation.


Modifying invoices by specifying policy documentPositionsUpdatePolicy: replace – when processing the request, all existing positions in the invoice are removed and completely replaced with the list of positions sent in the API call.

    mutation {
  updateInvoice(
    id: "1065257287",
    exchangeRate: "4.5",
    currency: "EUR",
    documentPositionsUpdatePolicy: "replace",
    documentPositions: [{
       description: "product",
       unit: "-",
       unitCount: "1",
       total: "0.0",
       productCode: "none",
       vat: "20.0",
       position: "0"
     }]) {
    id
    currency
    exchangeRate
    documentPositions {
      id
      price
      position
      total
      type
    }
   }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects for modifying invoices, please check the interactive documentation.


Send invoice through e-mail

    mutation {
  sendDocument(to: "random_email@random_service.domain", documentId: "1065257287", body: "your invoice", bcc: "random_email2@random_service.domain") {
    id
    description
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects for sending invoices through e-mail, please check the interactive documentation.


Convert invoice in PDF format encoded as Base64 (it works for all types of documents)

    {
  invoices(id: "1065257287") {
    id
    pdfContent
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects convert invoices in PDF format, please check the interactive documentation.


Send invoice through e-mail

    mutation {
  sendDocument(to: "random_email@random_service.domain", documentId: "1065257287" body: "your invoice") {
    id
    description
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects for invoices sending, please check the interactive documentation.


6.5. Receipt numbering scheme (Receipt Numbering Scheme)

Receipt numbering scheme details

    {
  receiptSeries(id: "1061105264") {
    id
    createdAt
    counterStart
    prefix
   }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of receipt numbering schemes, please check the interactive documentation.


Delete receipt numbering scheme

    mutation {
   deleteReceiptSeries(id: "1061105264") {
     id
   }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of deleting a receipt numbering scheme, please check the interactive documentation.


Add receipt numbering scheme

    mutation {
  createReceiptSeries(counterStart: "1",
    counterCurrent: "422",
    year: "2026",
    prefix: "qwerty"
  ) {
    id
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of adding a receipt numbering scheme, please check the interactive documentation.


Modify receipt numbering scheme

    mutation {
   updateReceiptSeries(id: "1061105264", prefix: "SER") {
     id
     prefix
   }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of modifying a receipt numbering scheme, please check the interactive documentation.


6.6. Receipt (Model Receipt)

Receipt

    {
  receipts(id: "1065257291") {
    id
    createdAt
    type
    invoiceDate
    userFirstName
    actionEvents {
      id
    }
   }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of receipts, please check the interactive documentation.


Delete receipt

    mutation {
   deleteReceipt(id: "1065257291") {
     id
   }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of deleting a receipt, please check the interactive documentation.


Add receipt

    mutation {
  createReceipt(
    currency: "EUR",
    clientId: "1064116552",
    documentSeriesId: "1061105264",
    documentDate: "2027-08-01",
    documentSeriesCounter: "21123333",
    receiptAmount: "23",
    invoiceId: "1065257287",
    vatType: "1",
    delegateId: "525664520",
    displayTransportData: "false",
    invoiceDate: "2025-07-19"
  ) {
    id
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of adding a receipt, please check the interactive documentation.


Modify receipt

    mutation {
  updateReceipt(id: "1065257291",
    exchangeRate: "4.5",
    currency: "EUR"
  ) {
    id
    currency
    exchangeRate
   }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of modifying a receipt, please check the interactive documentation.


6.7. Order numbering schemes (Model Order Series)

Order numbering scheme details

    {
  orderSeries(id: "1061105247") {
    id
    createdAt
    counterStart
    prefix
   }
 }
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of order numbering schemes, please check the interactive documentation.


Add order numbering scheme

    mutation {
  createOrderSeries(
    counterStart: "1",
    counterCurrent: "422",
    year: "2026",
    prefix: "qwerty"
  ) {
    id
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of adding a order numbering scheme, please check the interactive documentation.


Modify order numbering scheme

    mutation {
  updateOrderSeries(id: "1061105247", prefix: "SER") {
    id
    prefix
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of modifying a order numbering scheme, please check the interactive documentation.


Delete order numbering scheme

    mutation {
   deleteOrderSeries(id: "1061105247") {
     id
   }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of deleting a order numbering scheme, please check the interactive documentation.


6.8. Order (Model Order)

Order details

    {
  orders(id: "1065257304") {
    id
    createdAt
    type
    documentPositions {
      id
    }
    inputCurrency
    totalNoVat
    vat
    payments {
      id
    }
    actionEvents {
      id
    }
   }
 }
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of orders, please check the interactive documentation.


Delete order

    mutation {
   deleteOrder(id: "1065257304") {
     id
   }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of deleting a order, please check the interactive documentation.


Add Order

    mutation {
  createOrder(
    currency: "EUR",
    clientId: "1064116552",
    documentSeriesId: "1061105247",
    documentDate: "0000-07-06",
    exchangeRate: "4.55",
    documentSeriesCounter: "423",
    vatType: "1",
    delegateId: "525664520",
    displayTransportData: "1",
    documentPositions: [{
      description: "BASIC SUBSCRIPTION",
      unit: "months",
      unitCount: "12",
      price: "12",
      productCode: "66XXH663496H",
      vat: "19"
    }]) {
    id
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of adding a order, please check the interactive documentation.


Modify order

    mutation {
   updateOrder(id: "1065257304", exchangeRate: "4.5", currency: "EUR") {
     id
     currency
     exchangeRate
   }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of modifying a order, please check the interactive documentation.


6.9. Proforma invoice numbering schemes (Model Proforma Invoice Series)

Proforma invoice numbering scheme details

    {
  proformaInvoiceSeries(id: "1061105256") {
    id
    createdAt
    counterStart
    prefix
   }
 }
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of proforma invoice numbering schemes, please check the interactive documentation.


Add proforma invoice numbering scheme

    mutation {
  createProformaInvoiceSeries(
    counterStart: "1",
    counterCurrent: "422",
    year: "2026",
    prefix: "qwerty"
  ) {
    id
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of adding a proforma invoice numbering scheme, please check the interactive documentation.


Modify proforma invoice numbering scheme

    mutation {
  updateProformaInvoiceSeries(id: "1061105256", prefix: "SER") {
    id
    prefix
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of modifying a proforma invoice numbering scheme, please check the interactive documentation.


Delete proforma invoice numbering scheme

    mutation {
   deleteProformaInvoiceSeries(id: "1061105256") {
     id
   }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of deleting a proforma invoice numbering scheme, please check the interactive documentation.


6.10. Proforma invoice (Model Proforma Invoice)

Proforma invoice details

    {
  proformaInvoices(id: "1065257295") {
    id
    createdAt
    type
    documentPositions {
      id
    }
    inputCurrency
    totalNoVat
    vat
    payments {
      id
    }
    actionEvents {
      id
    }
   }
 }
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of proforma invoices, please check the interactive documentation.


Delete proforma invoice

    mutation {
   deleteProformaInvoice(id: "1065257295") {
     id
   }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of deleting a proforma invoice, please check the interactive documentation.


Add proforma invoice

    mutation {
  createProformaInvoice(
    currency: "EUR",
    clientId: "1064116552",
    documentSeriesId: "1061105256",
    documentDate: "2026-10-07",
    exchangeRate: "4.55",
    documentSeriesCounter: "423",
    vatType: "1",
    delegateId: "525664520",
    displayTransportData: "1",
    documentPositions: [{
      description: "BASIC SUBSCRIPTION",
      unit: "months",
      unitCount: "12",
      price: "12",
      productCode: "66XXH663496H",
      vat: "19"
    }]) {
    id
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of adding a proforma invoice, please check the interactive documentation.


Modify proforma invoice

    mutation {
   updateProformaInvoice(id: "1065257295", exchangeRate: "4.5", currency: "EUR") {
     id
     currency
     exchangeRate
   }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of modifying a proforma invoice, please check the interactive documentation.


6.11. Notice numbering schemes (Model Notice Series)

Notice numbering scheme details

    {
  noticeSeries(id: "1061105257") {
    id
    createdAt
    counterStart
    prefix
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of notice numbering schemes, please check the interactive documentation.


Delete notice numbering scheme

    mutation {
  deleteNoticeSeries(id: "1061105257") {
    id
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of deleting a notice numbering scheme, please check the interactive documentation.


Add notice numbering scheme

    mutation {
  createNoticeSeries(counterStart: "1",
  counterCurrent: "422",
  year: "2026",
  prefix: "qwerty") {
    id
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of creating a notice numbering scheme, please check the interactive documentation.


Modify notice numbering scheme

    mutation {
  updateNoticeSeries(id: "1061105257", prefix: "SER") {
    id
    prefix
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of modifying a notice numbering scheme, please check the interactive documentation.


6.12. Notices (Model Notice)

Notice details

    {
  notices(id: "1065257300") {
    id
    createdAt
    type
    documentPositions {
      id
    }
    inputCurrency
    actionEvents {
      id
    }
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of notices, please check the interactive documentation.


Delete notice

    mutation {
  deleteNotice(id: "1065257300") {
    id
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of deleting a notice, please check the interactive documentation.


Add notice

    mutation {
  createNotice(
    currency: "EUR",
    clientId: "1064116552",
    documentSeriesId: "1061105257",
    documentDate: "2026-06-06",
    exchangeRate: "4.55",
    documentSeriesCounter: "423",
    vatType: "1",
    delegateId: "525664520",
    displayTransportData: "1",
    documentPositions: [{
      description: "BASIC SUBSCRIPTION",
      unit: "months",
      unitCount: "12",
      price: "12",
      productCode: "66XXH663496H",
      vat: "19"
    }]) {
    id
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of creating a notice, please check the interactive documentation.


Modify notice

    mutation {
  updateNotice(id: "1065257300",
  exchangeRate: "4.5",
  currency: "EUR") {
    id
    currency
    exchangeRate
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of modifying a notice, please check the interactive documentation.


6.13. Payments (Model Payment)

Payment details

    {
  payments(id: "969664162") {
    id
    createdAt
    description
    currency
  }
 }
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of payments, please check the interactive documentation.


Add payment

    mutation {
  createPayment(description: "payment description",
    currency: "EUR",
    paymentDate: "2026-08-22",
    proformaInvoiceId: "1065257295"
    invoiceId: "1065257287",
    amount: "200"
   ) {
      id
      description
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of adding a payment, please check the interactive documentation.


Modify payment

    mutation {
  updatePayment(id: "969664162",
    description: "new description",
    currency: "EUR"
    ) {
      id
      description
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of modifying a payment, please check the interactive documentation.


Delete payment

    mutation {
  deletePayment(id: "969664162") {
    id
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of deleting a payment, please check the interactive documentation.


6.14. Products (Model Product)

Product details

    {
  products(id: "16") {
    id
    createdAt
    description
    currency
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of products, please check the interactive documentation.


Add products

    mutation {
  createProduct(description: "product description",
    currency: "EUR"
    ) {
      id
      description
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of adding a product, please check the interactive documentation.


Modify products

    mutation {
   updateProduct(id: "16",
   description: "new description",
   currency: "EUR") {
     id
     description
   }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of modifying a product, please check the interactive documentation.


Delete products

    mutation {
   deleteProduct(id: "16") {
     id
   }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of deleting a product, please check the interactive documentation.


6.15. Users (Model User)

Details about users account

    {
  users(id: "525664520") {
     id
     firstName
     lastName
   }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of users, please check the interactive documentation.


6.16. Supplier (Model Supplier)

Supplier details

    {
  suppliers(id: "12") {
    id
    uid
    address
    city
    zip
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of suppliers, please check the interactive documentation.


Listing suppliers

    {
  suppliers(limit: 1, offset: 1) {
    id
    name
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of suppliers, please check the interactive documentation.


Searching suppliers

    {
  suppliers(id: "1064115995", name: "supplier name", email: "[email protected]") {
    id
    name
    email
    uid
    address
    city
    zip
    state
    telephone
    zip
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of searching suppliers, please check the interactive documentation.


Filtering suppliers

    {
  suppliers(where: "{\"_eq\": {\"name\": \"supplier name\", \"email\": \"[email protected]\"}}") {
    id
    name
    email
    uid
    address
    city
    zip
    state
    telephone
    zip
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of filtering suppliers, please check the interactive documentation.


Descending order suppliers

    {
  suppliers(orderBy: "{\"email\": \"desc\"}") {
    id
    name
    email
    uid
    address
    city
    zip
    state
    telephone
    zip
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of ordering suppliers, please check the interactive documentation.


Ascending order suppliers

    {
  suppliers(orderBy: "{\"email\": \"asc\"}") {
    id
    name
    email
    uid
    address
    city
    zip
    state
    telephone
    zip
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of ordering suppliers, please check the interactive documentation.


Add supplier

    mutation {
  createSupplier(
    uid: "12345678",
    name: "supplier name",
    address: "supplier address",
    city: "City name",
    country: "DE"
    ) {
      id
      uid
      name
      address
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of adding a supplier, please check the interactive documentation.


Modify supplier

    mutation {
  updateSupplier(
    id: "12",
    name: "new name",
    country: "DE",
    uid: "3987985"
    ) {
      id
      uid
      name
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of modifying a supplier, please check the interactive documentation.


Delete supplier

    mutation {
  deleteSupplier(id: "12") {
    id
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of deleting a supplier, please check the interactive documentation.


6.17. Supplier Invoices (Model SupplierInvoice)

Supplier invoices details

    {
    supplierInvoices(id: "21") {
      id
      createdAt
      type
      lowerAnnotation
      upperAnnotation
      accountCompanyPaysVatOnPayment
      totalNoVat
      vat
      supplierDocumentPositions {
        id
      }
      payments {
        id
      }
      actionEvents {
        id
      }
    }
  }
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of supplier invoices, please check the interactive documentation.


Listing supplier invoices

    {
  supplierInvoices(limit: 1, offset: 1) {
    id
    lowerAnnotation
    upperAnnotation
    documentState
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of supplier invoices, please check the interactive documentation.


Searching supplier invoices

    {
  supplierInvoices(documentSeriesLabel: "TEST-123") {
    id
    lowerAnnotation
    upperAnnotation
    documentState
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of searching supplier invoices, please check the interactive documentation.


Filtering supplier invoices

    {
  supplierInvoices(where: "{\"_eq\": {\"cachedTotal\": \"145.2\", \"vatType\": \"1\"}}") {
    id
    lowerAnnotation
    upperAnnotation
    documentState
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of filtering supplier invoices, please check the interactive documentation.


Descending order supplier invoices

    {
  supplierInvoices(orderBy: "{\"createdAt\": \"desc\"}") {
    id
    lowerAnnotation
    upperAnnotation
    documentState
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of ordering supplier invoices, please check the interactive documentation.


Ascending order supplier invoices

    {
  supplierInvoices(orderBy: "{\"createdAt\": \"asc\"}") {
    id
    lowerAnnotation
    upperAnnotation
    documentState
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of ordering supplier invoices, please check the interactive documentation.


Delete supplier invoices

    mutation {
  deleteSupplierInvoice(id: "21") {
    id
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of deleting a supplier invoice, please check the interactive documentation.


Add supplier invoices

    mutation {
  createSupplierInvoice(
    currency: "EUR",
    clientId: "",
    documentSeriesLabel: "TEST-123",
    documentDate: "2026-08-22",
    exchangeRate: "4.55",
    lowerAnnotation: "lower annotation example",
    upperAnnotation: "upper annotation example",
    accountCompanyPaysVatOnPayment: null,
    documentPositions: [{
      description: "BASIC SUBSCRIPTION",
      unit: "months",
      unitCount: "12",
      price: "12",
      productCode: "66XXH663496H",
      vat: "19"
    }]) {
    id
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of adding a supplier invoice, please check the interactive documentation.


Modify supplier invoices

    mutation {
  updateSupplierInvoice(
    id: "21",
    exchangeRate: "4.5",
    currency: "EUR",
    documentPositions: [{
      description: "product",
      unit: "-",
      unitCount: "1",
      total: "0.0",
      productCode: "none",
      vat: "20.0",
      position: "0"
    }]) {
    id
    currency
    exchangeRate
   }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of modifying a supplier invoice, please check the interactive documentation.


6.18. Supplier Fiscal Receipts (Model SupplierFiscalReceipt)

Supplier fiscal receipts details

    {
    supplierFiscalReceipts(id: "24") {
      id
      createdAt
      type
      lowerAnnotation
      upperAnnotation
      accountCompanyPaysVatOnPayment
      totalNoVat
      vat
      supplierDocumentPositions {
        id
      }
      payments {
        id
      }
      actionEvents {
        id
      }
    }
  }
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of supplier fiscal receipts, please check the interactive documentation.


Listing supplier fiscal receipts

    {
  supplierFiscalReceipts(limit: 1, offset: 1) {
    id
    lowerAnnotation
    upperAnnotation
    documentState
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of supplier fiscal receipts, please check the interactive documentation.


Searching supplier fiscal receipts

    {
  supplierFiscalReceipts(documentSeriesLabel: "TEST-123") {
    id
    lowerAnnotation
    upperAnnotation
    documentState
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of searching supplier fiscal receipts, please check the interactive documentation.


Filtering supplier fiscal receipts

    {
  supplierFiscalReceipts(where: "{\"_eq\": {\"cachedTotal\": \"145.2\", \"vatType\": \"1\"}}") {
    id
    lowerAnnotation
    upperAnnotation
    documentState
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of filtering supplier fiscal receipts, please check the interactive documentation.


Descending order supplier fiscal receipts

    {
  supplierFiscalReceipts(orderBy: "{\"createdAt\": \"desc\"}") {
    id
    lowerAnnotation
    upperAnnotation
    documentState
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of ordering supplier fiscal receipts, please check the interactive documentation.


Ascending order supplier fiscal receipts

    {
  supplierFiscalReceipts(orderBy: "{\"createdAt\": \"asc\"}") {
    id
    lowerAnnotation
    upperAnnotation
    documentState
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of ordering supplier fiscal receipts, please check the interactive documentation.


Delete supplier fiscal receipts

    mutation {
  deleteSupplierFiscalReceipt(id: "24") {
    id
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of deleting a supplier fiscal receipt, please check the interactive documentation.


Add supplier fiscal receipts

    mutation {
  createSupplierFiscalReceipt(
    currency: "EUR",
    clientId: "",
    documentSeriesLabel: "TEST-123",
    documentDate: "2026-08-22",
    exchangeRate: "4.55",
    lowerAnnotation: "lower annotation example",
    upperAnnotation: "upper annotation example",
    accountCompanyPaysVatOnPayment: null,
    documentPositions: [{
      description: "BASIC SUBSCRIPTION",
      unit: "months",
      unitCount: "12",
      price: "12",
      productCode: "66XXH663496H",
      vat: "19"
    }]) {
    id
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of adding a supplier fiscal receipt, please check the interactive documentation.


Modify supplier fiscal receipts

    mutation {
  updateSupplierFiscalReceipt(
    id: "24",
    exchangeRate: "4.5",
    currency: "EUR",
    documentPositions: [{
      description: "product",
      unit: "-",
      unitCount: "1",
      total: "0.0",
      productCode: "none",
      vat: "20.0",
      position: "0"
    }]) {
    id
    currency
    exchangeRate
   }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of modifying a supplier fiscal receipt, please check the interactive documentation.


6.19. Simplified Supplier Invoices (Model SimplifiedSupplierInvoice)

Simplified supplier invoices details

    {
    simplifiedSupplierInvoices(id: "25") {
      id
      createdAt
      type
      lowerAnnotation
      upperAnnotation
      accountCompanyPaysVatOnPayment
      totalNoVat
      vat
      supplierDocumentPositions {
        id
      }
      payments {
        id
      }
      actionEvents {
        id
      }
    }
  }
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of simplified supplier invoices, please check the interactive documentation.


Listing simplified supplier invoices

    {
  simplifiedSupplierInvoices(limit: 1, offset: 1) {
    id
    lowerAnnotation
    upperAnnotation
    documentState
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of simplified supplier invoices, please check the interactive documentation.


Searching simplified supplier invoices

    {
  simplifiedSupplierInvoices(documentSeriesLabel: "TEST-123") {
    id
    lowerAnnotation
    upperAnnotation
    documentState
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of searching simplified supplier invoices, please check the interactive documentation.


Filtering simplified supplier invoices

    {
  simplifiedSupplierInvoices(where: "{\"_eq\": {\"cachedTotal\": \"145.2\", \"vatType\": \"1\"}}") {
    id
    lowerAnnotation
    upperAnnotation
    documentState
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of filtering simplified supplier invoices, please check the interactive documentation.


Descending order simplified supplier invoices

    {
  simplifiedSupplierInvoices(orderBy: "{\"createdAt\": \"desc\"}") {
    id
    lowerAnnotation
    upperAnnotation
    documentState
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of ordering simplified supplier invoices, please check the interactive documentation.


Ascending order simplified supplier invoices

    {
  simplifiedSupplierInvoices(orderBy: "{\"createdAt\": \"asc\"}") {
    id
    lowerAnnotation
    upperAnnotation
    documentState
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of ordering simplified supplier invoices, please check the interactive documentation.


Delete simplified supplier invoices

    mutation {
  deleteSimplifiedSupplierInvoice(id: "25") {
    id
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of deleting a simplified supplier invoice, please check the interactive documentation.


Add simplified supplier invoices

    mutation {
  createSimplifiedSupplierInvoice(
    currency: "EUR",
    clientId: "",
    documentSeriesLabel: "TEST-123",
    documentDate: "2026-08-22",
    exchangeRate: "4.55",
    lowerAnnotation: "lower annotation example",
    upperAnnotation: "upper annotation example",
    accountCompanyPaysVatOnPayment: null,
    documentPositions: [{
      description: "BASIC SUBSCRIPTION",
      unit: "months",
      unitCount: "12",
      price: "12",
      productCode: "66XXH663496H",
      vat: "19"
    }]) {
    id
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of adding a simplified supplier invoice, please check the interactive documentation.


Modify simplified supplier invoices

    mutation {
  updateSimplifiedSupplierInvoice(
    id: "25",
    exchangeRate: "4.5",
    currency: "EUR",
    documentPositions: [{
      description: "product",
      unit: "-",
      unitCount: "1",
      total: "0.0",
      productCode: "none",
      vat: "20.0",
      position: "0"
    }]) {
    id
    currency
    exchangeRate
   }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of modifying a simplified supplier invoice, please check the interactive documentation.


6.20. Supplier Proforma Invoices (Model SupplierProformaInvoice)

Supplier proforma invoices details

    {
    supplierProformaInvoices(id: "22") {
      id
      createdAt
      type
      lowerAnnotation
      upperAnnotation
      accountCompanyPaysVatOnPayment
      totalNoVat
      vat
      supplierDocumentPositions {
        id
      }
      payments {
        id
      }
      actionEvents {
        id
      }
    }
  }
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of supplier proforma invoices, please check the interactive documentation.


Listing supplier proforma invoices

    {
  supplierProformaInvoices(limit: 1, offset: 1) {
    id
    lowerAnnotation
    upperAnnotation
    documentState
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of supplier proforma invoices, please check the interactive documentation.


Searching supplier proforma invoices

    {
  supplierProformaInvoices(documentSeriesLabel: "TEST-123") {
    id
    lowerAnnotation
    upperAnnotation
    documentState
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of searching supplier proforma invoices, please check the interactive documentation.


Filtering supplier proforma invoices

    {
  supplierProformaInvoices(where: "{\"_eq\": {\"cachedTotal\": \"145.2\", \"vatType\": \"1\"}}") {
    id
    lowerAnnotation
    upperAnnotation
    documentState
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of filtering supplier proforma invoices, please check the interactive documentation.


Descending order supplier proforma invoices

    {
  supplierProformaInvoices(orderBy: "{\"createdAt\": \"desc\"}") {
    id
    lowerAnnotation
    upperAnnotation
    documentState
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of ordering supplier proforma invoices, please check the interactive documentation.


Ascending order supplier proforma invoices

    {
  supplierProformaInvoices(orderBy: "{\"createdAt\": \"asc\"}") {
    id
    lowerAnnotation
    upperAnnotation
    documentState
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of ordering supplier proforma invoices, please check the interactive documentation.


Delete supplier proforma invoices

    mutation {
  deleteSupplierProformaInvoice(id: "22") {
    id
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of deleting a supplier proforma invoice, please check the interactive documentation.


Add supplier proforma invoices

    mutation {
  createSupplierProformaInvoice(
    currency: "EUR",
    clientId: "",
    documentSeriesLabel: "TEST-123",
    documentDate: "2026-08-22",
    exchangeRate: "4.55",
    lowerAnnotation: "lower annotation example",
    upperAnnotation: "upper annotation example",
    accountCompanyPaysVatOnPayment: null,
    documentPositions: [{
      description: "BASIC SUBSCRIPTION",
      unit: "months",
      unitCount: "12",
      price: "12",
      productCode: "66XXH663496H",
      vat: "19"
    }]) {
    id
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of adding a supplier proforma invoice, please check the interactive documentation.


Modify supplier proforma invoices

    mutation {
  updateSupplierProformaInvoice(
    id: "22",
    exchangeRate: "4.5",
    currency: "EUR",
    documentPositions: [{
      description: "product",
      unit: "-",
      unitCount: "1",
      total: "0.0",
      productCode: "none",
      vat: "20.0",
      position: "0"
    }]) {
    id
    currency
    exchangeRate
   }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of modifying a supplier proforma invoice, please check the interactive documentation.


6.21. Supplier Orders (Model SupplierOrder)

Supplier orders details

    {
    supplierOrders(id: "23") {
      id
      createdAt
      type
      lowerAnnotation
      upperAnnotation
      accountCompanyPaysVatOnPayment
      totalNoVat
      vat
      supplierDocumentPositions {
        id
      }
      payments {
        id
      }
      actionEvents {
        id
      }
    }
  }
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of supplier orders, please check the interactive documentation.


Listing supplier orders

    {
  supplierOrders(limit: 1, offset: 1) {
    id
    lowerAnnotation
    upperAnnotation
    documentState
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of supplier orders, please check the interactive documentation.


Searching supplier orders

    {
  supplierOrders(documentSeriesLabel: "TEST-123") {
    id
    lowerAnnotation
    upperAnnotation
    documentState
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of searching supplier orders, please check the interactive documentation.


Filtering supplier orders

    {
  supplierOrders(where: "{\"_eq\": {\"cachedTotal\": \"145.2\", \"vatType\": \"1\"}}") {
    id
    lowerAnnotation
    upperAnnotation
    documentState
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of filtering supplier orders, please check the interactive documentation.


Descending order supplier orders

    {
  supplierOrders(orderBy: "{\"createdAt\": \"desc\"}") {
    id
    lowerAnnotation
    upperAnnotation
    documentState
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of ordering supplier orders, please check the interactive documentation.


Ascending order supplier orders

    {
  supplierOrders(orderBy: "{\"createdAt\": \"asc\"}") {
    id
    lowerAnnotation
    upperAnnotation
    documentState
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of ordering supplier orders, please check the interactive documentation.


Delete supplier orders

    mutation {
  deleteSupplierOrder(id: "23") {
    id
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of deleting a supplier order, please check the interactive documentation.


Add supplier orders

    mutation {
  createSupplierOrder(
    currency: "EUR",
    clientId: "",
    documentSeriesLabel: "TEST-123",
    documentDate: "2026-08-22",
    exchangeRate: "4.55",
    lowerAnnotation: "lower annotation example",
    upperAnnotation: "upper annotation example",
    accountCompanyPaysVatOnPayment: null,
    documentPositions: [{
      description: "BASIC SUBSCRIPTION",
      unit: "months",
      unitCount: "12",
      price: "12",
      productCode: "66XXH663496H",
      vat: "19"
    }]) {
    id
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of adding a supplier order, please check the interactive documentation.


Modify supplier orders

    mutation {
  updateSupplierOrder(
    id: "23",
    exchangeRate: "4.5",
    currency: "EUR",
    documentPositions: [{
      description: "product",
      unit: "-",
      unitCount: "1",
      total: "0.0",
      productCode: "none",
      vat: "20.0",
      position: "0"
    }]) {
    id
    currency
    exchangeRate
   }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of modifying a supplier order, please check the interactive documentation.


6.23. Bank connections Smart Accounts (Model SmartFinTechAccountsApp)

Smart Accounts bank connections

    {
  smartFinTechAccountsApps {
    id
    bankCode
    bankName
    bankLogo
    bankBic
    markedForDeletion
    awaitingAuthorization
    hasActiveAuthorisation
    consentValidUntil
    daysUntilConsentExpiry
    eligibleBankAccountIbans
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of SmartFinTech bank connections, please check the interactive documentation.


Filtering Smart Accounts bank connections by bank code

    {
  smartFinTechAccountsApps(bankCode: "BT") {
    id
    bankCode
    bankName
    markedForDeletion
    hasActiveAuthorisation
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of filtering SmartFinTech bank connections, please check the interactive documentation.


6.24. Bank transactions Smart Accounts (Model SmartFinTechPaymentTransactionMapping)

Smart Accounts bank transaction

    {
  smartFinTechPaymentTransactionMappings {
    id
    externalIdentifier
    externalDate
    bankAccountIdentifier
    amount
    currencyIso
    confirmedAt
    creditorName
    debtorName
    partnerName
    canDistributePayments
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of SmartFinTech bank transaction, please check the interactive documentation.


Filtering Smart Accounts bank transactions by external identifier

    {
  smartFinTechPaymentTransactionMappings(externalIdentifier: "TX12345") {
    id
    externalIdentifier
    externalDate
    amount
    currencyIso
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of filtering SmartFinTech bank transaction, please check the interactive documentation.


Retrieving associated documents from Smart Accounts bank transactions

    {
  smartFinTechPaymentTransactionMappings(id: "1") {
    id
    externalIdentifier
    amount
    currencyIso
    invoices {
      id
      documentDate
      total
      totalNoVat
      vat
    }
    proformaInvoices {
      id
      documentDate
      total
      totalNoVat
      vat
    }
    orders {
      id
      documentDate
      total
      totalNoVat
      vat
    }
    supplierInvoices {
      id
      documentDate
      total
      totalNoVat
      vat
    }
  }
}
  
      
curl -i -H 'Content-Type: application/json' -u 91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829:x -X POST -d '{"query": "{{code_example}}"}' https://sandbox.online-billing-service.com/graphql
      
    
      
<?php

require_once('graphql-settings.php');

define('BASE_URL', 'https://sandbox.online-billing-service.com/graphql'); define('API_KEY', '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829');
$ch = curl_init(); require_once('graphql-functions.php');
$url = BASE_URL; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, API_KEY . ":x"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json') );
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"query": "{{code_example}}"}'); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); echo($httpCode . "\n" . $result . "\n"); curl_close($ch);
      
#!/usr/bin/env ruby
# graphql gem version needed:  "graphql", "~> 1.10"
 
require "base64"
require 'graphlient'
base_url = 'https://sandbox.online-billing-service.com/graphql'
api_key = '91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829'
encoded_credentials =  ::Base64.strict_encode64("#{api_key}:")
headers = { Authorization: "Basic #{encoded_credentials}" }
graphql_client = Graphlient::Client.new(base_url, { headers: headers })
query_string = <<~GRAPHQL
  {{code_example}}
GRAPHQL
response = graphql_client.query query_string
puts response.data.to_h
      
    
      
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using System.Text;
namespace c_
{
  class Program
  {
    static void Main(string[] args)
    {
      var query = "{{code_example}}";
      var baseUri = "https://sandbox.online-billing-service.com/graphql";
      var apiKey = "91b4e03e6d4a07c088921a07ab8e844c7508092cf1645b32657d6c4b5829";
      var queryParams = new FormUrlEncodedContent(new[]
        {
           new KeyValuePair<string, string>("query", query)
        });

      var client = new HttpClient();
      var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes(apiKey + ":"));

      client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authHeader);

      var response = client.PostAsync(baseUri, queryParams).Result;
      var responseString = response.Content.ReadAsStringAsync();
      if (response.IsSuccessStatusCode)
      {
        System.Console.WriteLine(response);
        System.Console.WriteLine(responseString.ToString());


        foreach (var character in responseString.Result)
          System.Console.Write(character);
        System.Console.WriteLine();
      }
    }
  }
}
      
    
      
import java.net.*;
import java.io.*;
import java.util.*;
import java.nio.charset.StandardCharsets;

public class Graph {
  public static void main(String[] args) throws MalformedURLException  {

    String query = "{\"query\":\"{{code_example}} \" }";
    byte[] postData = query.getBytes(StandardCharsets.UTF_8);
    String apiKey = "743b27b9e2ba33269bca4506f858637739fca1f60562132c5b5463e40e4a"; 
    URL serverUrl = new URL("https://sandbox.online-billing-service.com/graphql");
    String basicAuthPayload = "Basic " + Base64.getEncoder().encodeToString((apiKey + ":").getBytes());

    BufferedReader httpResponseReader = null;
      try {
        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        urlConnection.setDoOutput(true);
        urlConnection.setRequestMethod("POST");
        urlConnection.setRequestProperty("Content-Type", "application/json");
        urlConnection.addRequestProperty("Authorization", basicAuthPayload);

        try (DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream())) {
          wr.write(postData);
          wr.flush();
          wr.close();
        }

          httpResponseReader =
            new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          String lineRead;
          while((lineRead = httpResponseReader.readLine()) != null) {
            System.out.println(lineRead);
          }

        } catch (IOException ioe) {
          ioe.printStackTrace();
        } finally {

          if (httpResponseReader != null) {
            try {
              httpResponseReader.close();
            } catch (IOException ioe) {
                    // Close quietly
            }
          }
        }
  }
}
      
    

For a detailed list of fields, relations and imbricated objects of retrieving documents from SmartFinTech bank transaction mappings, please check the interactive documentation.