FacturaPlus - Sales

Get sales_invoices

Get all the resources of type 'SalesInvoice', optionally paged, ordered and filtered.

Try it

Request URL

Request parameters

(optional)
integer

Format - int32. startIndex indicates an absolute “offset” in the complete list of the requested resources. The default value is 1. In case of missing this parameter, then the default value will be 1 which refers to the first object.

(optional)
integer

Format - int32. itemsPerPage enables you to limit the maximum number of objects returned in a request. The default value and the maximum value allowed is 50. In case of specify a value greater than 50, then only 50 objects will be returned.

(optional)
string

orderby enables you to return the result in ascending or descending order. The order is based on the field name you specify and the key words asc for ascending and desc for descending. If you want to sort by more than one data filed, then they will be separated by comma (,).

(optional)
string

where enables you to filter the objects that are returned using expressions which includes the following operators: eq (equals), nq (distinct), lt (less than), le (less or equal than), gt (greater than), ge (greater or equal than), in (inside of), like (similarity pattern). Currently only is possible to apply filtering using one of the data fields that has been marked with the flag “where”.

(optional)
boolean

compact enables you to include all the child objects that are linked to the parent object within your results. The default value is true.

Request headers

string

Tenant unique identifier.

string

Company unique identifier.

string

Sage ID Access Token prefixed with the word 'Bearer'.

string

Subscription key which provides access to this API.

string
Subscription key which provides access to this API. Found in your Profile.

Request body

Response 200

OK.

{
  "$totalResults": 0,
  "$startIndex": 0,
  "$itemsPerPage": 0,
  "$resources": [
    {
      "id": "string",
      "company_id": "string",
      "type": "1",
      "period": "string",
      "serial": "string",
      "number": 0,
      "date": "string",
      "customer_id": "string",
      "customer_name": "string",
      "customer_identity_type": "1",
      "customer_identity": "string",
      "currency": "string",
      "currency_change_rate": 0.0,
      "tax_type": "1",
      "included_vat": true,
      "payment_method_id": "string",
      "sales_person_id": "string",
      "commission_percent": 0.0,
      "discount_percent": 0.0,
      "discount_payment_method_percent": 0.0,
      "discount_amount_rappel_percent": 0.0,
      "income_tax_rate_id": "string",
      "income_tax_rate": 0.0,
      "your_sales_invoice_number": "string",
      "printed": true,
      "sent": true,
      "signed": true,
      "paid_amount": 0.0,
      "price_type_id": "string",
      "charges_total": 0.0,
      "commission_amount": 0.0,
      "discount_amount": 0.0,
      "discount_payment_method_amount": 0.0,
      "discount_amount_rappel_amount": 0.0,
      "income_tax_amount": 0.0,
      "net_total": 0.0,
      "tax_total": 0.0,
      "total": 0.0,
      "notes": "string",
      "sales_invoice_corrective_details": {
        "corrected_invoices": [
          "string"
        ],
        "reason_code": "1",
        "reason_description": "string",
        "correction_method": "1",
        "correction_method_description": "string"
      },
      "sales_invoice_fiscal_details": {
        "customer_email": "string",
        "customer_telephone": "string",
        "customer_mobile": "string",
        "customer_fax": "string",
        "customer_name_of_legal_representative": "string",
        "customer_identity_of_legal_representative": "string",
        "type_street": "0",
        "street": "string",
        "number": "string",
        "stair": "string",
        "floor": "string",
        "door": "string",
        "letter": "string",
        "full_address": "string",
        "locality_name": "string",
        "region_name": "string",
        "postal_code": "string",
        "country_name": "string"
      },
      "cost_centers": [
        "string"
      ],
      "extended_properties": [
        {
          "name": "string",
          "value": "string"
        }
      ],
      "sales_invoice_lines": [
        {
          "id": "string",
          "sales_delivery_line_id": "string",
          "order": 0,
          "item_set_id": "string",
          "item_id": "string",
          "item_barcode": "string",
          "item_description": "string",
          "item_long_description": "string",
          "properties": [
            {
              "item_property_id": "string",
              "value": "string",
              "group": "string"
            }
          ],
          "vat_tax_rate": 0.0,
          "surcharge_tax_rate": 0.0,
          "quantity": 0.0,
          "price": 0.0,
          "item_discount_percent": 0.0,
          "commission_percent": 0.0,
          "line_included_vat": true,
          "location_id": "string",
          "item_discount_amount": 0.0,
          "net_total": 0.0,
          "vat_tax_amount": 0.0,
          "surcharge_tax_amount": 0.0,
          "total": 0.0,
          "cost_centers": [
            "string"
          ],
          "extended_properties": [
            {
              "name": "string",
              "value": "string"
            }
          ]
        }
      ],
      "sales_invoice_taxes": [
        {
          "id": "string",
          "vat_tax_rate_id": "string",
          "base": 0.0,
          "vat_tax_rate": 0.0,
          "vat_tax_amount": 0.0,
          "surcharge_tax_rate": 0.0,
          "surcharge_tax_amount": 0.0,
          "total_tax_amount": 0.0
        }
      ],
      "receipts": [
        {
          "id": "string",
          "company_id": "string",
          "invoice_id": "string",
          "order": 0.0,
          "date": "string",
          "due_date": "string",
          "customer_id": "string",
          "status": "1",
          "iban": "string",
          "total": 0.0,
          "description": "string",
          "extended_properties": [
            {
              "name": "string",
              "value": "string"
            }
          ]
        }
      ],
      "timestamp": "string",
      "customer_commercial_name": "string"
    }
  ]
}
{
  "type": "object",
  "properties": {
    "$totalResults": {
      "type": "integer",
      "format": "int32",
      "description": "Indicates the number of objects returned in a request",
      "readOnly": false
    },
    "$startIndex": {
      "type": "integer",
      "format": "int32",
      "description": "startIndex indicates an absolute “offset” in the complete list of the requested resources. The default value is 1.\r\nIn case of missing this parameter, then the default value will be 1 which refers to the first object.",
      "readOnly": false
    },
    "$itemsPerPage": {
      "type": "integer",
      "format": "int32",
      "description": "itemsPerPage enables you to limit the maximum number of objects returned in a request. The default value and the maximum value allowed is 50. In case of specify a value greater than 50, then only 50 objects will be returned.",
      "readOnly": false
    },
    "$resources": {
      "type": "array",
      "items": {
        "type": "object",
        "description": "List of sales invoices of the company. <br /><br /><span style=\"font-style:italic\">This entity supports change control</span>",
        "x-sage-menusection": "Invoices",
        "x-sage-relatedopeations": [
          "companies",
          "customers",
          "contacts",
          "item_type_prices",
          "payment_methods",
          "zones",
          "sales_persons",
          "cost_centers",
          "customer_groups",
          "income_tax_rates",
          "sales_receipts",
          "sales_invoices"
        ],
        "required": [
          "company_id",
          "customer_id"
        ],
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 10,
            "description": "ID of sales Invoice",
            "readOnly": false
          },
          "company_id": {
            "type": "string",
            "maxLength": 2,
            "description": "Company ID of sales Invoice",
            "x-sage-entitylink": "companies",
            "readOnly": false,
            "x-sage-queryable": false,
            "x-sage-orderable": false
          },
          "type": {
            "type": "string",
            "description": "Type sales invoice. See <a href=\"/docs#/spain/facturaplus/sales/v1/invoicetype\">invoicetype</a>",
            "readOnly": false,
            "x-sage-enumlink": "invoicetype",
            "enum": [
              "1",
              "2",
              "3",
              "4"
            ]
          },
          "period": {
            "type": "string",
            "maxLength": 4,
            "description": "Period of sales Invoice",
            "readOnly": false
          },
          "serial": {
            "type": "string",
            "maxLength": 1,
            "description": "Serial of sales Invoice",
            "readOnly": false
          },
          "number": {
            "type": "integer",
            "format": "int64",
            "description": "Number of sales Invoice",
            "readOnly": false
          },
          "date": {
            "type": "string",
            "format": "date-time",
            "description": "Date of sales Invoice",
            "readOnly": false
          },
          "customer_id": {
            "type": "string",
            "maxLength": 6,
            "description": "Id Customer of sales Invoice",
            "x-sage-entitylink": "customers",
            "readOnly": false,
            "x-sage-queryable": true,
            "x-sage-orderable": true
          },
          "customer_name": {
            "type": "string",
            "maxLength": 100,
            "description": "Name of the Customer",
            "readOnly": false
          },
          "customer_identity_type": {
            "type": "string",
            "description": "Tye of tax document of the Customer. See <a href=\"/docs#/spain/facturaplus/sales/v1/identitytype\">identitytype</a>",
            "readOnly": false,
            "x-sage-enumlink": "identitytype",
            "enum": [
              "1",
              "2",
              "3",
              "4",
              "5",
              "6"
            ]
          },
          "customer_identity": {
            "type": "string",
            "maxLength": 15,
            "description": "VAT number / Tax ID Number of the Customer",
            "readOnly": false
          },
          "currency": {
            "type": "string",
            "maxLength": 3,
            "description": "Sales order Currency of sales Invoice",
            "readOnly": false
          },
          "currency_change_rate": {
            "type": "number",
            "format": "integer 9 decimal 6 dp",
            "description": "Currency Change Rate of the Invoice",
            "readOnly": false
          },
          "tax_type": {
            "type": "string",
            "description": "Tax reference of sales Invoice. See <a href=\"/docs#/spain/facturaplus/sales/v1/taxtype\">taxtype</a>",
            "readOnly": false,
            "x-sage-enumlink": "taxtype",
            "enum": [
              "1",
              "2",
              "3",
              "4",
              "5"
            ]
          },
          "included_vat": {
            "type": "boolean",
            "description": "Included VAT of sales Invoice",
            "readOnly": false
          },
          "payment_method_id": {
            "type": "string",
            "maxLength": 2,
            "description": "Id paymentmethod of sales Invoice",
            "x-sage-entitylink": "payment_methods",
            "readOnly": false,
            "x-sage-queryable": false,
            "x-sage-orderable": false
          },
          "sales_person_id": {
            "type": "string",
            "maxLength": 3,
            "description": "Id Sale persons of sales Invoice",
            "x-sage-entitylink": "sales_persons",
            "readOnly": false,
            "x-sage-queryable": true,
            "x-sage-orderable": true
          },
          "commission_percent": {
            "type": "number",
            "format": "integer 4 decimal 2 dp",
            "description": "Percentege Commission of sales Invoice",
            "readOnly": false
          },
          "discount_percent": {
            "type": "number",
            "format": "integer 3 decimal 2 dp",
            "description": "Percent discount of sales Invoice",
            "readOnly": false
          },
          "discount_payment_method_percent": {
            "type": "number",
            "format": "integer 3 decimal 2 dp",
            "description": "Percent discount of sales Invoice",
            "readOnly": false
          },
          "discount_amount_rappel_percent": {
            "type": "number",
            "description": "Percent Discount Amount Rappel of sales Invoice",
            "readOnly": false
          },
          "income_tax_rate_id": {
            "type": "string",
            "description": "Income tax id",
            "x-sage-entitylink": "income_tax_rates",
            "readOnly": false,
            "x-sage-queryable": false,
            "x-sage-orderable": false
          },
          "income_tax_rate": {
            "type": "number",
            "format": "integer 2 decimal 2 dp",
            "description": "Percent INCOME_TAX of sales Invoice",
            "readOnly": false
          },
          "your_sales_invoice_number": {
            "type": "string",
            "maxLength": 100,
            "description": "Your order of sales Invoice",
            "readOnly": false
          },
          "printed": {
            "type": "boolean",
            "description": "Status printed of sales invoice",
            "readOnly": false
          },
          "sent": {
            "type": "boolean",
            "description": "Status sent of sales invoice",
            "readOnly": false
          },
          "signed": {
            "type": "boolean",
            "description": "Status signed of sales invoice",
            "readOnly": false
          },
          "paid_amount": {
            "type": "number",
            "format": "integer 10 decimal 6 dp",
            "description": "Amount Paid of sales Invoice",
            "readOnly": false
          },
          "price_type_id": {
            "type": "string",
            "description": "Prices type",
            "x-sage-entitylink": "item_type_prices",
            "readOnly": false,
            "x-sage-queryable": false,
            "x-sage-orderable": false
          },
          "charges_total": {
            "type": "number",
            "format": "integer 10 decimal 6 dp",
            "description": "Amount Charges of sales Invoice",
            "readOnly": false
          },
          "commission_amount": {
            "type": "number",
            "description": "Amount Commission of sales Invoice",
            "readOnly": false
          },
          "discount_amount": {
            "type": "number",
            "format": "integer 10 decimal 6 dp",
            "description": "Amount discount of sales Invoice",
            "readOnly": false
          },
          "discount_payment_method_amount": {
            "type": "number",
            "format": "integer 10 decimal 6 dp",
            "description": "Amount discount payment method of sales Invoice",
            "readOnly": false
          },
          "discount_amount_rappel_amount": {
            "type": "number",
            "description": "Discount Rappel Amount of sales Invoice",
            "readOnly": false
          },
          "income_tax_amount": {
            "type": "number",
            "format": "integer 10 decimal 6 dp",
            "description": "Tax INCOME_TAX of sales Invoice",
            "readOnly": false
          },
          "net_total": {
            "type": "number",
            "format": "integer 10 decimal 6 dp",
            "description": "Net Total of of sales Invoice",
            "readOnly": false
          },
          "tax_total": {
            "type": "number",
            "format": "integer 10 decimal 6 dp",
            "description": "Total Tax of of sales Invoice",
            "readOnly": false
          },
          "total": {
            "type": "number",
            "format": "integer 10 decimal 6 dp",
            "description": "Total of sales Invoice",
            "readOnly": false
          },
          "notes": {
            "type": "string",
            "description": "Notes",
            "readOnly": false
          },
          "sales_invoice_corrective_details": {
            "type": "object",
            "description": "corrective details",
            "readOnly": false,
            "properties": {
              "corrected_invoices": {
                "type": "array",
                "description": "list of invoice id's",
                "items": {
                  "type": "string"
                }
              },
              "reason_code": {
                "type": "string",
                "description": "Numerical code of the reason for correction. '01' to '16'\r\nerrors according to regulation RD 1496/2003; '80' to '85'\r\nerrors according to Art. 80 Law 37/92 on the VAT.. See <a href=\"/docs#/spain/facturaplus/sales/v1/refundreasoncodetype\">refundreasoncodetype</a>",
                "readOnly": false,
                "x-sage-enumlink": "refundreasoncodetype",
                "enum": [
                  "1",
                  "2",
                  "3",
                  "4",
                  "5",
                  "6",
                  "7",
                  "8",
                  "9",
                  "10",
                  "11",
                  "12",
                  "13",
                  "14",
                  "15",
                  "16",
                  "80",
                  "81",
                  "82",
                  "83",
                  "84",
                  "85"
                ]
              },
              "reason_description": {
                "type": "string",
                "maxLength": 100,
                "description": "Description of the reason for correction according to each\r\ncode. See table of codes and descriptions.",
                "readOnly": false
              },
              "correction_method": {
                "type": "string",
                "description": "Numerical code to identify the method applied to correct an\r\ninvoice. “01” – all items to be corrected in the original. See <a href=\"/docs#/spain/facturaplus/sales/v1/correctionmethod\">correctionmethod</a>",
                "readOnly": false,
                "x-sage-enumlink": "correctionmethod",
                "enum": [
                  "1",
                  "2"
                ]
              },
              "correction_method_description": {
                "type": "string",
                "description": "Description of the correction method",
                "readOnly": false
              }
            }
          },
          "sales_invoice_fiscal_details": {
            "type": "object",
            "description": "fiscal details",
            "readOnly": false,
            "properties": {
              "customer_email": {
                "type": "string",
                "maxLength": 255,
                "description": "customer_email",
                "readOnly": false
              },
              "customer_telephone": {
                "type": "string",
                "maxLength": 17,
                "description": "",
                "readOnly": false
              },
              "customer_mobile": {
                "type": "string",
                "maxLength": 17,
                "description": "customer_mobile",
                "readOnly": false
              },
              "customer_fax": {
                "type": "string",
                "maxLength": 17,
                "description": "customer_fax",
                "readOnly": false
              },
              "customer_name_of_legal_representative": {
                "type": "string",
                "maxLength": 100,
                "description": "",
                "readOnly": false
              },
              "customer_identity_of_legal_representative": {
                "type": "string",
                "maxLength": 15,
                "description": "customer_identity_of_legal_representative",
                "readOnly": false
              },
              "type_street": {
                "type": "string",
                "description": ". See <a href=\"/docs#/spain/facturaplus/sales/v1/streettype\">streettype</a>",
                "readOnly": false,
                "x-sage-enumlink": "streettype",
                "enum": [
                  "0",
                  "1",
                  "2",
                  "3",
                  "4",
                  "5",
                  "6",
                  "7",
                  "8",
                  "9",
                  "10",
                  "11",
                  "12",
                  "13",
                  "14",
                  "15",
                  "16",
                  "17",
                  "18",
                  "19",
                  "20",
                  "21",
                  "22",
                  "23",
                  "24",
                  "25",
                  "26",
                  "27",
                  "28",
                  "29",
                  "30"
                ]
              },
              "street": {
                "type": "string",
                "description": "",
                "readOnly": false
              },
              "number": {
                "type": "string",
                "description": "",
                "readOnly": false
              },
              "stair": {
                "type": "string",
                "description": "",
                "readOnly": false
              },
              "floor": {
                "type": "string",
                "description": "",
                "readOnly": false
              },
              "door": {
                "type": "string",
                "description": "",
                "readOnly": false
              },
              "letter": {
                "type": "string",
                "description": "",
                "readOnly": false
              },
              "full_address": {
                "type": "string",
                "maxLength": 100,
                "description": "",
                "readOnly": false
              },
              "locality_name": {
                "type": "string",
                "maxLength": 100,
                "description": "",
                "readOnly": false
              },
              "region_name": {
                "type": "string",
                "maxLength": 30,
                "description": "",
                "readOnly": false
              },
              "postal_code": {
                "type": "string",
                "maxLength": 10,
                "description": "",
                "readOnly": false
              },
              "country_name": {
                "type": "string",
                "maxLength": 35,
                "description": "country_name",
                "readOnly": false
              }
            }
          },
          "cost_centers": {
            "type": "array",
            "description": "associated cost centers",
            "items": {
              "type": "string"
            }
          },
          "extended_properties": {
            "type": "array",
            "description": "List of free properties",
            "readOnly": false,
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "name of the free property",
                  "readOnly": false
                },
                "value": {
                  "type": "string",
                  "description": "value of the free property",
                  "readOnly": false
                }
              }
            }
          },
          "sales_invoice_lines": {
            "type": "array",
            "description": "List of sales invoice lines",
            "readOnly": false,
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "maxLength": 17,
                  "description": "ID of the sales Invoice lines",
                  "readOnly": false
                },
                "sales_delivery_line_id": {
                  "type": "string",
                  "description": "Sales delivery lines ID relation delivery",
                  "x-sage-entitylink": "sales_delivery_lines",
                  "readOnly": false
                },
                "order": {
                  "type": "integer",
                  "format": "int32",
                  "description": "Presentation order",
                  "readOnly": false
                },
                "item_set_id": {
                  "type": "string",
                  "description": "Set id",
                  "x-sage-entitylink": "item_sets",
                  "readOnly": false,
                  "x-sage-queryable": false,
                  "x-sage-orderable": false
                },
                "item_id": {
                  "type": "string",
                  "maxLength": 18,
                  "description": "ID Items of sales Invoice lines",
                  "x-sage-entitylink": "items",
                  "readOnly": false,
                  "x-sage-queryable": false,
                  "x-sage-orderable": false
                },
                "item_barcode": {
                  "type": "string",
                  "maxLength": 43,
                  "description": "Items Barcode of sales Invoice lines",
                  "readOnly": false
                },
                "item_description": {
                  "type": "string",
                  "maxLength": 100,
                  "description": "Items Description of sales Invoice lines",
                  "readOnly": false
                },
                "item_long_description": {
                  "type": "string",
                  "maxLength": 100,
                  "description": "Items Description Long of sales Invoice lines",
                  "readOnly": false
                },
                "properties": {
                  "type": "array",
                  "description": "Property value list of sales Invoice lines",
                  "readOnly": false,
                  "items": {
                    "type": "object",
                    "properties": {
                      "item_property_id": {
                        "type": "string",
                        "maxLength": 5,
                        "description": "Property id",
                        "x-sage-entitylink": "item_properties",
                        "readOnly": false,
                        "x-sage-queryable": false,
                        "x-sage-orderable": false
                      },
                      "value": {
                        "type": "string",
                        "maxLength": 20,
                        "description": "Value",
                        "readOnly": false
                      },
                      "group": {
                        "type": "string",
                        "description": "Group of the Property",
                        "readOnly": false
                      }
                    }
                  }
                },
                "vat_tax_rate": {
                  "type": "number",
                  "format": "integer 2 decimal 1 dp",
                  "description": "Percent tax of sales Invoice lines",
                  "readOnly": false
                },
                "surcharge_tax_rate": {
                  "type": "number",
                  "format": "integer 2 decimal 1 dp",
                  "description": "Tax Surcharge of Tax table",
                  "readOnly": false
                },
                "quantity": {
                  "type": "number",
                  "format": "integer 10 decimal 6 dp",
                  "description": "Quantity of sales Invoice lines",
                  "readOnly": false
                },
                "price": {
                  "type": "number",
                  "format": "integer 10 decimal 6 dp",
                  "description": "Sales price of sales Invoice lines",
                  "readOnly": false
                },
                "item_discount_percent": {
                  "type": "number",
                  "format": "integer 3 decimal 2 dp",
                  "description": "Percent discount of sales Invoice lines",
                  "readOnly": false
                },
                "commission_percent": {
                  "type": "number",
                  "format": "integer 3 decimal 2 dp",
                  "description": "Percent Commission of sales Invoice lines",
                  "readOnly": false
                },
                "line_included_vat": {
                  "type": "boolean",
                  "description": "Lines Included VAT of sales Invoice lines",
                  "readOnly": false
                },
                "location_id": {
                  "type": "string",
                  "maxLength": 3,
                  "description": "ID Location of sales",
                  "x-sage-entitylink": "locations",
                  "readOnly": false,
                  "x-sage-queryable": false,
                  "x-sage-orderable": false
                },
                "item_discount_amount": {
                  "type": "number",
                  "format": "integer 10 decimal 6 dp",
                  "description": "Discount line of sales Invoice lines",
                  "readOnly": false
                },
                "net_total": {
                  "type": "number",
                  "format": "integer 10 decimal 6 dp",
                  "description": "Total net of the line",
                  "readOnly": false
                },
                "vat_tax_amount": {
                  "type": "number",
                  "format": "integer 10 decimal 6 dp",
                  "description": "Tax amount of sales Invoice lines",
                  "readOnly": false
                },
                "surcharge_tax_amount": {
                  "type": "number",
                  "format": "integer 10 decimal 6 dp",
                  "description": "Tax Amount VAT_surcharge of Tax table",
                  "readOnly": false
                },
                "total": {
                  "type": "number",
                  "format": "integer 10 decimal 6 dp",
                  "description": "Linea amount of sales Invoice lines",
                  "readOnly": false
                },
                "cost_centers": {
                  "type": "array",
                  "description": "associated cost centers",
                  "items": {
                    "type": "string"
                  }
                },
                "extended_properties": {
                  "type": "array",
                  "description": "List of free properties",
                  "readOnly": false,
                  "items": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "description": "name of the free property",
                        "readOnly": false
                      },
                      "value": {
                        "type": "string",
                        "description": "value of the free property",
                        "readOnly": false
                      }
                    }
                  }
                }
              }
            }
          },
          "sales_invoice_taxes": {
            "type": "array",
            "description": "List of sales invoice taxes",
            "readOnly": false,
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "maxLength": 21,
                  "description": "ID of sales invoice taxes",
                  "readOnly": false
                },
                "vat_tax_rate_id": {
                  "type": "string",
                  "maxLength": 1,
                  "description": "Tax rate id",
                  "x-sage-entitylink": "vat_tax_rates",
                  "readOnly": false,
                  "x-sage-queryable": false,
                  "x-sage-orderable": false
                },
                "base": {
                  "type": "number",
                  "format": "integer 10 decimal 6 dp",
                  "description": "Taxable base of sales invoice taxes",
                  "readOnly": false
                },
                "vat_tax_rate": {
                  "type": "number",
                  "format": "integer 2 decimal 2 dp",
                  "description": "Tax VAT of sales invoice taxes",
                  "readOnly": false
                },
                "vat_tax_amount": {
                  "type": "number",
                  "format": "integer 10 decimal 6 dp",
                  "description": "Tax Amount VAT of sales invoice taxes",
                  "readOnly": false
                },
                "surcharge_tax_rate": {
                  "type": "number",
                  "format": "integer 2 decimal 2 dp",
                  "description": "Tax VAT_surcharge of sales invoice taxes",
                  "readOnly": false
                },
                "surcharge_tax_amount": {
                  "type": "number",
                  "format": "integer 10 decimal 6 dp",
                  "description": "Tax Amount VAT_surcharge of sales invoice taxes",
                  "readOnly": false
                },
                "total_tax_amount": {
                  "type": "number",
                  "format": "integer 10 decimal 6 dp",
                  "description": "Total taxes",
                  "readOnly": false
                }
              }
            }
          },
          "receipts": {
            "type": "array",
            "description": "List of Receipt of sales Invoice",
            "items": {
              "type": "object",
              "description": "List of Receipt of the company. <br /><br /><span style=\"font-style:italic\">This entity supports change control</span>",
              "x-sage-menusection": "Payments",
              "x-sage-relatedopeations": [
                "companies",
                "sales_invoices",
                "customers",
                "contacts",
                "item_type_prices",
                "payment_methods",
                "zones",
                "sales_persons",
                "cost_centers",
                "customer_groups",
                "income_tax_rates",
                "sales_receipts"
              ],
              "required": [
                "company_id"
              ],
              "properties": {
                "id": {
                  "type": "string",
                  "maxLength": 12,
                  "description": "ID of sales receipt",
                  "readOnly": false
                },
                "company_id": {
                  "type": "string",
                  "maxLength": 2,
                  "description": "Company ID of sales receipt",
                  "x-sage-entitylink": "companies",
                  "readOnly": false,
                  "x-sage-queryable": false,
                  "x-sage-orderable": false
                },
                "invoice_id": {
                  "type": "string",
                  "maxLength": 10,
                  "description": "ID invoice of sales receipt",
                  "x-sage-entitylink": "sales_invoices",
                  "readOnly": false,
                  "x-sage-queryable": true,
                  "x-sage-orderable": true
                },
                "order": {
                  "type": "number",
                  "format": "integer 2",
                  "description": "Counter of sales receipt",
                  "readOnly": false
                },
                "date": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Date of sales receipt",
                  "readOnly": false
                },
                "due_date": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Due Date of sales receipt",
                  "readOnly": false
                },
                "customer_id": {
                  "type": "string",
                  "maxLength": 6,
                  "description": "Id Customer of sales receipt",
                  "x-sage-entitylink": "customers",
                  "readOnly": false,
                  "x-sage-queryable": true,
                  "x-sage-orderable": true
                },
                "status": {
                  "type": "string",
                  "description": "State of sales receipt. See <a href=\"/docs#/spain/facturaplus/sales/v1/receiptstatustype\">receiptstatustype</a>",
                  "readOnly": false,
                  "x-sage-enumlink": "receiptstatustype",
                  "enum": [
                    "1",
                    "2",
                    "3"
                  ]
                },
                "iban": {
                  "type": "string",
                  "maxLength": 34,
                  "description": "IBAN of sales receipt",
                  "readOnly": false
                },
                "total": {
                  "type": "number",
                  "format": "integer 12 decimal 3 dp",
                  "description": "Total of sales receipt",
                  "readOnly": false
                },
                "description": {
                  "type": "string",
                  "description": "Coments on the receipt",
                  "readOnly": false
                },
                "extended_properties": {
                  "type": "array",
                  "description": "List of free properties",
                  "readOnly": false,
                  "items": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "description": "name of the free property",
                        "readOnly": false
                      },
                      "value": {
                        "type": "string",
                        "description": "value of the free property",
                        "readOnly": false
                      }
                    }
                  }
                }
              }
            }
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of the sales invoice",
            "readOnly": false
          },
          "customer_commercial_name": {
            "type": "string",
            "description": "Commercial name of the Customer",
            "readOnly": false
          }
        }
      }
    }
  }
}

Code samples

@ECHO OFF

curl -v -X GET "https://api.columbus.sage.com/es/facturaplus/sales/v1/sales_invoices?startIndex={integer}&itemsPerPage={integer}&orderBy={string}&where={string}&compact={boolean}"
-H "X-Site: "
-H "X-Company: "
-H "Authorization: "
-H "Ocp-Apim-Subscription-Key: "
-H "Ocp-Apim-Subscription-Key: {subscription key}"

--data-ascii "{body}" 
using System;
using System.Net.Http.Headers;
using System.Text;
using System.Net.Http;
using System.Web;

namespace CSHttpClientSample
{
    static class Program
    {
        static void Main()
        {
            MakeRequest();
            Console.WriteLine("Hit ENTER to exit...");
            Console.ReadLine();
        }
        
        static async void MakeRequest()
        {
            var client = new HttpClient();
            var queryString = HttpUtility.ParseQueryString(string.Empty);

            // Request headers
            client.DefaultRequestHeaders.Add("X-Site", "");
            client.DefaultRequestHeaders.Add("X-Company", "");
            client.DefaultRequestHeaders.Add("Authorization", "");
            client.DefaultRequestHeaders.Add("Ocp-Apim-Subscription-Key", "");
            client.DefaultRequestHeaders.Add("Ocp-Apim-Subscription-Key", "{subscription key}");

            // Request parameters
            queryString["startIndex"] = "{integer}";
            queryString["itemsPerPage"] = "{integer}";
            queryString["orderBy"] = "{string}";
            queryString["where"] = "{string}";
            queryString["compact"] = "{boolean}";
            var uri = "https://api.columbus.sage.com/es/facturaplus/sales/v1/sales_invoices?" + queryString;

            var response = await client.GetAsync(uri);
        }
    }
}	
// // This sample uses the Apache HTTP client from HTTP Components (http://hc.apache.org/httpcomponents-client-ga/)
import java.net.URI;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.utils.URIBuilder;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;

public class JavaSample 
{
    public static void main(String[] args) 
    {
        HttpClient httpclient = HttpClients.createDefault();

        try
        {
            URIBuilder builder = new URIBuilder("https://api.columbus.sage.com/es/facturaplus/sales/v1/sales_invoices");

            builder.setParameter("startIndex", "{integer}");
            builder.setParameter("itemsPerPage", "{integer}");
            builder.setParameter("orderBy", "{string}");
            builder.setParameter("where", "{string}");
            builder.setParameter("compact", "{boolean}");

            URI uri = builder.build();
            HttpGet request = new HttpGet(uri);
            request.setHeader("X-Site", "");
            request.setHeader("X-Company", "");
            request.setHeader("Authorization", "");
            request.setHeader("Ocp-Apim-Subscription-Key", "");
            request.setHeader("Ocp-Apim-Subscription-Key", "{subscription key}");


            // Request body
            StringEntity reqEntity = new StringEntity("{body}");
            request.setEntity(reqEntity);

            HttpResponse response = httpclient.execute(request);
            HttpEntity entity = response.getEntity();

            if (entity != null) 
            {
                System.out.println(EntityUtils.toString(entity));
            }
        }
        catch (Exception e)
        {
            System.out.println(e.getMessage());
        }
    }
}

<!DOCTYPE html>
<html>
<head>
    <title>JSSample</title>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
</head>
<body>

<script type="text/javascript">
    $(function() {
        var params = {
            // Request parameters
            "startIndex": "{integer}",
            "itemsPerPage": "{integer}",
            "orderBy": "{string}",
            "where": "{string}",
            "compact": "{boolean}",
        };
      
        $.ajax({
            url: "https://api.columbus.sage.com/es/facturaplus/sales/v1/sales_invoices?" + $.param(params),
            beforeSend: function(xhrObj){
                // Request headers
                xhrObj.setRequestHeader("X-Site","");
                xhrObj.setRequestHeader("X-Company","");
                xhrObj.setRequestHeader("Authorization","");
                xhrObj.setRequestHeader("Ocp-Apim-Subscription-Key","");
                xhrObj.setRequestHeader("Ocp-Apim-Subscription-Key","{subscription key}");
            },
            type: "GET",
            // Request body
            data: "{body}",
        })
        .done(function(data) {
            alert("success");
        })
        .fail(function() {
            alert("error");
        });
    });
</script>
</body>
</html>
#import <Foundation/Foundation.h>

int main(int argc, const char * argv[])
{
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    
    NSString* path = @"https://api.columbus.sage.com/es/facturaplus/sales/v1/sales_invoices";
    NSArray* array = @[
                         // Request parameters
                         @"entities=true",
                         @"startIndex={integer}",
                         @"itemsPerPage={integer}",
                         @"orderBy={string}",
                         @"where={string}",
                         @"compact={boolean}",
                      ];
    
    NSString* string = [array componentsJoinedByString:@"&"];
    path = [path stringByAppendingFormat:@"?%@", string];

    NSLog(@"%@", path);

    NSMutableURLRequest* _request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:path]];
    [_request setHTTPMethod:@"GET"];
    // Request headers
    [_request setValue:@"" forHTTPHeaderField:@"X-Site"];
    [_request setValue:@"" forHTTPHeaderField:@"X-Company"];
    [_request setValue:@"" forHTTPHeaderField:@"Authorization"];
    [_request setValue:@"" forHTTPHeaderField:@"Ocp-Apim-Subscription-Key"];
    [_request setValue:@"{subscription key}" forHTTPHeaderField:@"Ocp-Apim-Subscription-Key"];
    // Request body
    [_request setHTTPBody:[@"{body}" dataUsingEncoding:NSUTF8StringEncoding]];
    
    NSURLResponse *response = nil;
    NSError *error = nil;
    NSData* _connectionData = [NSURLConnection sendSynchronousRequest:_request returningResponse:&response error:&error];

    if (nil != error)
    {
        NSLog(@"Error: %@", error);
    }
    else
    {
        NSError* error = nil;
        NSMutableDictionary* json = nil;
        NSString* dataString = [[NSString alloc] initWithData:_connectionData encoding:NSUTF8StringEncoding];
        NSLog(@"%@", dataString);
        
        if (nil != _connectionData)
        {
            json = [NSJSONSerialization JSONObjectWithData:_connectionData options:NSJSONReadingMutableContainers error:&error];
        }
        
        if (error || !json)
        {
            NSLog(@"Could not parse loaded json with error:%@", error);
        }
        
        NSLog(@"%@", json);
        _connectionData = nil;
    }
    
    [pool drain];

    return 0;
}
<?php
// This sample uses the Apache HTTP client from HTTP Components (http://hc.apache.org/httpcomponents-client-ga/)
require_once 'HTTP/Request2.php';

$request = new Http_Request2('https://api.columbus.sage.com/es/facturaplus/sales/v1/sales_invoices');
$url = $request->getUrl();

$headers = array(
    // Request headers
    'X-Site' => '',
    'X-Company' => '',
    'Authorization' => '',
    'Ocp-Apim-Subscription-Key' => '',
    'Ocp-Apim-Subscription-Key' => '{subscription key}',
);

$request->setHeader($headers);

$parameters = array(
    // Request parameters
    'startIndex' => '{integer}',
    'itemsPerPage' => '{integer}',
    'orderBy' => '{string}',
    'where' => '{string}',
    'compact' => '{boolean}',
);

$url->setQueryVariables($parameters);

$request->setMethod(HTTP_Request2::METHOD_GET);

// Request body
$request->setBody("{body}");

try
{
    $response = $request->send();
    echo $response->getBody();
}
catch (HttpException $ex)
{
    echo $ex;
}

?>
########### Python 2.7 #############
import httplib, urllib, base64

headers = {
    # Request headers
    'X-Site': '',
    'X-Company': '',
    'Authorization': '',
    'Ocp-Apim-Subscription-Key': '',
    'Ocp-Apim-Subscription-Key': '{subscription key}',
}

params = urllib.urlencode({
    # Request parameters
    'startIndex': '{integer}',
    'itemsPerPage': '{integer}',
    'orderBy': '{string}',
    'where': '{string}',
    'compact': '{boolean}',
})

try:
    conn = httplib.HTTPSConnection('api.columbus.sage.com')
    conn.request("GET", "/es/facturaplus/sales/v1/sales_invoices?%s" % params, "{body}", headers)
    response = conn.getresponse()
    data = response.read()
    print(data)
    conn.close()
except Exception as e:
    print("[Errno {0}] {1}".format(e.errno, e.strerror))

####################################

########### Python 3.2 #############
import http.client, urllib.request, urllib.parse, urllib.error, base64

headers = {
    # Request headers
    'X-Site': '',
    'X-Company': '',
    'Authorization': '',
    'Ocp-Apim-Subscription-Key': '',
    'Ocp-Apim-Subscription-Key': '{subscription key}',
}

params = urllib.parse.urlencode({
    # Request parameters
    'startIndex': '{integer}',
    'itemsPerPage': '{integer}',
    'orderBy': '{string}',
    'where': '{string}',
    'compact': '{boolean}',
})

try:
    conn = http.client.HTTPSConnection('api.columbus.sage.com')
    conn.request("GET", "/es/facturaplus/sales/v1/sales_invoices?%s" % params, "{body}", headers)
    response = conn.getresponse()
    data = response.read()
    print(data)
    conn.close()
except Exception as e:
    print("[Errno {0}] {1}".format(e.errno, e.strerror))

####################################
require 'net/http'

uri = URI('https://api.columbus.sage.com/es/facturaplus/sales/v1/sales_invoices')

query = URI.encode_www_form({
    # Request parameters
    'startIndex' => '{integer}',
    'itemsPerPage' => '{integer}',
    'orderBy' => '{string}',
    'where' => '{string}',
    'compact' => '{boolean}'
})

if uri.query && uri.query.length > 0
    uri.query += '&' + query
else
    uri.query = query
end

request = Net::HTTP::Get.new(uri.request_uri)
# Request headers
request['X-Site'] = ''
# Request headers
request['X-Company'] = ''
# Request headers
request['Authorization'] = ''
# Request headers
request['Ocp-Apim-Subscription-Key'] = ''
# Request headers
request['Ocp-Apim-Subscription-Key'] = '{subscription key}'
# Request body
request.body = "{body}"

response = Net::HTTP.start(uri.host, uri.port, :use_ssl => uri.scheme == 'https') do |http|
    http.request(request)
end

puts response.body