The organization this key belongs to
GET
/organization
const url = 'https://api.usepayloom.com/api/v1/organization';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.usepayloom.com/api/v1/organization \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
Media typeapplication/json
object
id
string format: uuid
object
string
name
string
country_code
string
default_currency
string
status
string
kyc_status
Payroll cannot be calculated until this is verified.
string
created_at
string format: date-time
Example
{ "object": "organization", "status": "active"}Missing, invalid, revoked or expired key.
Media typeapplication/json
object
error
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "missing_token" }}Too many requests. Honour Retry-After.
Media typeapplication/json
object
error
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "missing_token" }}Headers
Section titled “Headers”Retry-After
integer
Seconds to wait.