Retrieve the collection of LegalEntity resources.
LegalEntity collection
Bad Request
Unauthorized
Resource not Found
[- {
- "uuid": "string",
- "status": "pending",
- "name": "string",
- "nip": "string",
- "email": "string",
- "url": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "postcode": "string",
- "province": "string",
- "city": "string",
- "countryIso2": "string",
- "createdAt": "string",
- "updatedAt": "string",
- "authFlowUUID": "string",
- "authFlowStatus": "new",
- "authFlowIsValid": true,
- "authFlowUrl": "string",
- "authFlowDeadline": "string",
- "authFlowCreatedAt": "string",
- "authFlowUpdatedAt": "string",
- "isAuthCyclerRunning": true,
- "isInvoiceSenderRunning": true,
- "isInvoiceReceiverRunning": true,
- "isInvoiceSyncRunning": true,
- "customer": {
- "customerName": "string",
- "addressLine": "string",
- "city": "string",
- "countryCode": "string",
- "nip": 0
}
}
]Create a LegalEntity resource.
The new LegalEntity resource
LegalEntity resource created
Invalid input
Unprocessable entity
{- "name": "Company name",
- "nip": "0000000000",
- "email": "user@example.com",
- "url": "company.url",
- "addressLine1": "ul. Street",
- "addressLine2": "10/1",
- "postcode": "00-000",
- "province": "Province",
- "city": "City",
- "countryIso2": "PL"
}{- "uuid": "string",
- "status": "pending",
- "name": "string",
- "nip": "string",
- "email": "string",
- "url": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "postcode": "string",
- "province": "string",
- "city": "string",
- "countryIso2": "string",
- "createdAt": "string",
- "updatedAt": "string",
- "authFlowUUID": "string",
- "authFlowStatus": "new",
- "authFlowIsValid": true,
- "authFlowUrl": "string",
- "authFlowDeadline": "string",
- "authFlowCreatedAt": "string",
- "authFlowUpdatedAt": "string",
- "isAuthCyclerRunning": true,
- "isInvoiceSenderRunning": true,
- "isInvoiceReceiverRunning": true,
- "isInvoiceSyncRunning": true,
- "customer": {
- "customerName": "string",
- "addressLine": "string",
- "city": "string",
- "countryCode": "string",
- "nip": 0
}
}Changing status legal entity to block
LegalEntity resource created
Invalid input
Unprocessable entity
null{- "uuid": "string",
- "status": "pending",
- "name": "string",
- "nip": "string",
- "email": "string",
- "url": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "postcode": "string",
- "province": "string",
- "city": "string",
- "countryIso2": "string",
- "createdAt": "string",
- "updatedAt": "string",
- "authFlowUUID": "string",
- "authFlowStatus": "new",
- "authFlowIsValid": true,
- "authFlowUrl": "string",
- "authFlowDeadline": "string",
- "authFlowCreatedAt": "string",
- "authFlowUpdatedAt": "string",
- "isAuthCyclerRunning": true,
- "isInvoiceSenderRunning": true,
- "isInvoiceReceiverRunning": true,
- "isInvoiceSyncRunning": true,
- "customer": {
- "customerName": "string",
- "addressLine": "string",
- "city": "string",
- "countryCode": "string",
- "nip": 0
}
}Retrieve the collection of LegalEntity resources.
LegalEntity resource
Resource not found
{- "uuid": "string",
- "status": "pending",
- "name": "string",
- "nip": "string",
- "email": "string",
- "url": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "postcode": "string",
- "province": "string",
- "city": "string",
- "countryIso2": "string",
- "createdAt": "string",
- "updatedAt": "string",
- "authFlowUUID": "string",
- "authFlowStatus": "new",
- "authFlowIsValid": true,
- "authFlowUrl": "string",
- "authFlowDeadline": "string",
- "authFlowCreatedAt": "string",
- "authFlowUpdatedAt": "string",
- "isAuthCyclerRunning": true,
- "isInvoiceSenderRunning": true,
- "isInvoiceReceiverRunning": true,
- "isInvoiceSyncRunning": true,
- "customer": {
- "customerName": "string",
- "addressLine": "string",
- "city": "string",
- "countryCode": "string",
- "nip": 0
}
}Replace the LegalEntity resource.
The updated LegalEntity resource
LegalEntity resource updated
Invalid input
Resource not found
Unprocessable entity
{- "name": "Company name",
- "nip": "0000000000",
- "email": "user@example.com",
- "url": "company.url",
- "addressLine1": "ul. Street",
- "addressLine2": "10/1",
- "postcode": "00-000",
- "province": "Province",
- "city": "City",
- "countryIso2": "PL"
}{- "uuid": "string",
- "status": "pending",
- "name": "string",
- "nip": "string",
- "email": "string",
- "url": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "postcode": "string",
- "province": "string",
- "city": "string",
- "countryIso2": "string",
- "createdAt": "string",
- "updatedAt": "string",
- "authFlowUUID": "string",
- "authFlowStatus": "new",
- "authFlowIsValid": true,
- "authFlowUrl": "string",
- "authFlowDeadline": "string",
- "authFlowCreatedAt": "string",
- "authFlowUpdatedAt": "string",
- "isAuthCyclerRunning": true,
- "isInvoiceSenderRunning": true,
- "isInvoiceReceiverRunning": true,
- "isInvoiceSyncRunning": true,
- "customer": {
- "customerName": "string",
- "addressLine": "string",
- "city": "string",
- "countryCode": "string",
- "nip": 0
}
}Validate nips.
LegalEntity resource created
Bad Request
Forbidden
Unprocessable entity
{- "nips": [
- "string"
]
}{- "nips": [
- {
- "nip": "string",
- "isValid": true
}
]
}