Versions Compared

Key

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

Available from CRM.COM R13.1.0

Excerpt

This method previews the bill for an Accounts Receivable

...

Name

Type

Description

token

String

The token retrieved from the login method

accounts_receivable_identifier

(mandatory)

Account Receivable Identifier

The identifier of the account receivable. The allowed account receivable identifier fields are the following:

Include Page
V4:accounts_receivable_identifier_post
V4:accounts_receivable_identifier_post

fields_set

(optional)

List of Strings, comma separatedA list of fields that should be included in the results. If not specified then all the available fields will be returned

...

Expand
titleExample 1

HTTP Method: GET

 

Request

Response

Code Block
themeConfluence
languagejavascript
linenumberstrue
{
    "data": {
        "bill_preview": {
            "total_vat_amount": 8.95,
            "from_date": "2017-08-01T00:00:00",
            "to_date": "2017-09-01T00:00:00",
            "total_tax_amount": 0,
            "currency": {
                "suffix_symbol": "N/A",
                "prefix_symbol": "€",
                "decimal_part_name": "cents",
                "code": "EUR",
                "integer_part_name": "euro",
                "id": "2"
            },
            "total_billed_amount": 40.3,
            "total_amount_to_be_paid": 0,
            "product_set": [
                {
                    "product": {
                        "code": "Movies 1Silver",
                        "product_type": {
                            "service_type": "TERMED",
                            "used_for_provisioning": true,
                            "alternative_code": "ASMain Packages",
                            "composition_method": "FLAT",
                            "name": "AdditionalMain ServicesPackages",
                            "description": null,
                            "id": "C8321F0BCA8A4051857BC35CEEE41555E186E293AAAB49EE86A729540A4287FE",
                            "classification": "SERVICES",
                            "physical_good_type": null
                        },
                        "alternative_code": "M1SLV",
                        "description": "Movies 1SILVER",
                        "id": "571C10876AF840088372A94A14D0A02CAF390B58BCE646D485EAC39D44C2C81C"
                    },
                    "from_date": "2017-08-01T00:00:00",
                    "to_date": "2017-09-01T00:00:00",
                    "total_amount": 319.3,
                    "applied_additive_discounts_set": []
                },
                {
                    "product": {
                        "code": "SilverMovies 1",
                        "product_type": {
                            "service_type": "TERMED",
                            "used_for_provisioning": true,
                            "alternative_code": "Main PackagesAS",
                            "composition_method": "FLAT",
                            "name": "MainAdditional PackagesServices",
                            "description": null,
                            "id": "E186E293AAAB49EE86A729540A4287FEC8321F0BCA8A4051857BC35CEEE41555",
                            "classification": "SERVICES",
                            "physical_good_type": null
                        },
                        "alternative_code": "SLVM1",
                        "description": "SILVERMovies 1",
                        "id": "AF390B58BCE646D485EAC39D44C2C81C571C10876AF840088372A94A14D0A02C"
                    },
                    "from_date": "2017-08-01T00:00:00",
                    "to_date": "2017-09-01T00:00:00",
                    "total_amount": 9.331,
                    "applied_additive_discounts_set": []
                }
            ]
        }
    },
    "status": {
        "code": "OK",
        "description": "",
        "message": ""
    }
}