Business Profiles Endpoint

Business profiles, or companies, are the master unit of Pymlo to store accounting data.

To understand the object structure, see:

get
Get Current Business Profile

https://api.pymlo.com/v1/businesses/current
Get the business profile which owns the currently logged-in client.
Request
Response
Headers
Authentication
required
string
Authentication token
200: OK
Business profile successfully retrieved.
{
"date_created": 1551030876371,
"date_updated": 1562059139955,
"name": "Losoftce Studio Inc.",
"phone": null,
"fax": null,
"website": null,
"email": null,
"business_id": null,
"tax_registered": true,
"tax_registration_no": "123456789",
"head_quarter": true,
"branch_number": null,
"company_address": {
"line1": "test rad",
"line2": "",
"city": "tt",
"province": "aa",
"country_code": "TH",
"postal_code": "12345"
},
"org_type": "CORPORATION",
"business_type": "GNL_SERVICE",
"financial_setting": {
"fiscal_year_end_month": "DECEMBER",
"fiscal_year_end_day_of_month": 31,
"date_format": "DDMonYYYY",
"currency_code": "THB",
"rounding_digits": 2,
"rounding_mode": "HALF_UP",
"start_date": "2019-03-60"
},
"_id": "4f320c75-8674-48a0-8339-7573f89daa66",
"_links": {
"self": {
"href": "https://api.pymlo.com/v1/businesses/4f320c75-8674-48a0-8339-7573f89daa66"
},
"accounts": {
"href": "https://api.pymlo.com/v1/businesses/4f320c75-8674-48a0-8339-7573f89daa66/setting/accounts"
},
"products": {
"href": "https://api.pymlo.com/v1/businesses/4f320c75-8674-48a0-8339-7573f89daa66/setting/products"
},
"partners": {
"href": "https://api.pymlo.com/v1/businesses/4f320c75-8674-48a0-8339-7573f89daa66/setting/partners"
},
"taxes": {
"href": "https://api.pymlo.com/v1/businesses/4f320c75-8674-48a0-8339-7573f89daa66/setting/taxes"
},
"invoices": {
"href": "https://api.pymlo.com/v1/businesses/4f320c75-8674-48a0-8339-7573f89daa66/income/invoices"
},
"receipts": {
"href": "https://api.pymlo.com/v1/businesses/4f320c75-8674-48a0-8339-7573f89daa66/income/receipts"
},
"payments": {
"href": "https://api.pymlo.com/v1/businesses/4f320c75-8674-48a0-8339-7573f89daa66/income/payments"
}
}
}

‚Äč