Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

URLGETPOSTPUTPATCHDELETEStatus
/Customersretrieve all customerscreate a new customer   (tick)
/Customers/:CustomerNumberretrieve one customer udpate existing customer (minus)  (tick)
/Customers/:CustomerId/Contractsget all contracts for a customer    (tick)
/Contractsget all contractscreate a new contract   (minus)

(tick)

/Contracts/:ContractId/Transactionsget all transactions for a given contractcreate a new transaction for a contract   (minus)
/Contracts/:ContractId/Subscriptionget the subscription for a contractcreate a new subscription for a contract   (minus)
/Invoicesretrieve all invoices    (minus)
/Projectsretrieve all projects    (tick)

...

Code Block
{
        "salutation": "MR",
        "firstName": "John",
        "lastName": "Doe",
        "companyName": "MegaCorp",
        "locale": "de_DE",
        "websiteUri": "",
        "phone1": "+49 89 224433",
        "phone2": "",
        "telefax": "",
        "mobile": "",
        "email": "info@megacorp.com",
        "birthdate": "1980-11-02",
        "euTaxId": "",
        "taxNumber": "",
        "noteText": null,
        "postalAddress": null,
        "billingAddress": {
            "addressLine1": "Arlington Road 1",
            "addressLine2": "",
            "addressLine3": "",
            "zipCode": "80333",
            "cityName": "Example Town",
            "state": "",
            "country": "DE"
        },
        "paymentMethod": null,
        "emailInvoice": "",
        "taxRegion": "NATIONAL",
        "duePeriod": "0",
        "dueUnit": "DAY"
    }

 

POST /Contracts

Create a new contract for a customer. Adding a subscription is optional.

Example request with subscription:

Code Block
{
        "accountNumber": 2,
        "customerNumber": "CUST1001",
        "projectName": "Projekt1",
        "subscription": {
            "termPeriod": 1,
            "termUnit": "MONTH",
            "noticePeriod": 4,
            "noticeUnit": "WEEK",
            "continuePeriod": 1,
            "continueUnit": "MONTH",
            "billedInAdvance": true,
            "subscriptionItems": [{
                    "quantity": 1,
                    "extraDescription": "",
                    "itemNumber": "item001"
                }
            ]
            
        },
        
        "issueDate": "2016-11-14",
        "recur": 6,
        "recurUnit": "MONTH",
        "duePeriod": null,
        "dueUnit": null,
        "paymentMethod": null
    }