Accounting (only available for accounting add-on users)
Create owner charges by listing
Changed onCreate an owner charge for the provided listing. This will apply to all owners unless you include a given ownerId.
post/business-models-api/transactions/owner-charges-by-listing
Request
- Base URLhttps://open-api.guesty.com/v1
- URLhttps://open-api.guesty.com/v1/business-models-api/transactions/owner-charges-by-listing
- AuthAPI key in header authorization
Request body
Example request
{
"name": "Furniture repairment",
"categoryId": "123e4567-e89b-12d3-a456-426614174000",
"description": "Furniture repair",
"amount": 100,
"recognitionDate": "2023-10-27",
"ownerId": "67166b458d730bb789c969e1",
"listingId": "67166b51607b95e9450d9c30",
"revenueShare": {
"shareSplit": 0.5,
"vendorId": "67166b458d730bb789c969e1"
},
"vatOCConfig": {
"name": "VAT",
"description": "VAT",
"percent": 0.01,
"categoryCode": "vat",
"categoryId": "789e3210-1234-5678-90ab-cdef12345678",
"categoryName": "VAT"
},
"referenceId": "REF-12345",
"attachments": [
{
"url": "https://cdn.filepicker.io/api/file/bBnKEk8TlmJAUHcLApRx",
"urlThumbnail": "https://cdn.filepicker.io/api/file/bBnKEk8TlmJAUHcLApRx",
"extension": "png",
"fileName": "Invoice copy"
}
]
}Response
Owner charges by listing created
Changes
- info
added the new optional request property
// - info
added the non-success response with the status
- info