GolfManager Logo V3 API
Version 2025-07-21

Create or update a sale

Allows to create a new sale or update an existing one

POST https://eu.golfmanager.com/api/billing/saveSale

status can be 0 for draft or 2 for pending, default is 2.

Example request:

{
    "description": "",
    "discountRate": 0,
    "price": 3,
    "product": 1100,
    "taxRate": 10,
    "taxes":  [
        {
            "name": "IVA 10%",
            "rate": 10,
            "tax": 2
        }
    ],
    "total": 3,
    "units": 1,
    "customer": null,
    "pos": null,
    "issueDate": null,
    "useDate": null,
    "timeout": null,
    "parent": null,
}

Response

{
    "allowPaymentPending": false,
    "bankAccount": null,
    "bankAccountLastDigits": null,
    "beneficiary": null,
    "beneficiaryName": null,
    "businessName": null,
    "cancelationOf": null,
    "canceled": 0,
    "code": "05.02",
    "comments": null,
    "company": 2,
    "companyName": "TEST COMPANY",
    "compensation": false,
    "createUser": 43,
    "createUserName": "admin",
    "created": "2025-02-21T09:07:41-05:00",
    "currency": null,
    "currencyName": null,
    "currencyRate": null,
    "customer": null,
    "customerName": null,
    "customerTaxNumber": null,
    "data": null,
    "deleted": false,
    "description": "TEST PRODUCT",
    "directDebit": false,
    "discountRate": 0,
    "discountReasons": null,
    "discountReasonsReason": null,
    "doNotInvoice": false,
    "dueDate": "2025-02-21T09:07:41-05:00",
    "dynamicPrice": null,
    "dynamicPriceName": null,
    "familyName": "Restaurant",
    "fkId": null,
    "fkModel": null,
    "id": 10958,
    "invoice": null,
    "invoiceDate": null,
    "invoiceNumber": null,
    "invoiced": 0,
    "isAgency": null,
    "issueDate": null,
    "link": null,
    "minutes": 0,
    "name": null,
    "onCredit": false,
    "online": false,
    "paidFor": null,
    "paidForName": null,
    "parent": null,
    "parentFkId": null,
    "parentFkModel": null,
    "pos": null,
    "posName": null,
    "price": 3,
    "product": 1100,
    "productImage": null,
    "productName": "TEST PRODUCT",
    "proforma": null,
    "proformaNumber": null,
    "promotion": null,
    "promotionName": null,
    "publicComments": null,
    "q19": null,
    "q19Description": null,
    "requiresInvoice": null,
    "restaurantGroup": null,
    "secondaryCurrency": 1,
    "secondaryCurrencyName": null,
    "secondaryCurrencyRate": 1,
    "sentToPrinter": false,
    "status": 2,
    "statusColor": "#8f3b00",
    "subfamily": 12,
    "subfamilyName": "TEST SUBFAMILY",
    "supply": false,
    "taxExempt": false,
    "taxRate": 10,
    "taxes": [
        {
            "id": 10646,
            "name": "IVA 10%",
            "rate": 10,
            "tax": 2
        }
    ],
    "ticketNote": null,
    "timeout": null,
    "total": 3,
    "totalBeforeTaxes": 2.727273,
    "units": 1,
    "updateUser": null,
    "updateUserName": null,
    "updated": null,
    "useDate": "2025-02-21T09:07:41-05:00",
    "voucherType": null
}