# Straddle/ACHQ Onboarding Webhooks
## Status
The status webhook is part of the onboarding service, designed to communicate updates about the onboarding process. This webhook notifies relevant systems or stakeholders about the latest status of an onboarding request.
### JSON Sample
```json
{
"notification_id": "bb391921-f330-4930-9b4a-d440d8059149",
"merchant_name": "Acme",
"current_status": "Accepted",
"onboarding_id": "18388299",
"external_id": "717f79a1",
"updated_at": "2024-01-22T21:37:21.213468"
}
```
### Details
- **`notification_id`**: A unique UUID identifier for the notification. It's used to track and reference individual notifications.
Example: `"bb391921-f330-4930-9b4a-d440d8059149"`.
- **`merchant_name`**: The name of the merchant or entity involved in the onboarding process.
Example: `"Acme"`.
- **`current_status`**: The current status of the onboarding process. Possible values include:
- `new`: Newly created onboarding request.
- `review`: Onboarding request under review.
- `pending`: Onboarding request pending further action.
- `stuck`: Onboarding process facing issues.
- `rejected`: Onboarding request has been rejected.
- `accepted`: Onboarding request has been accepted and production credentials issued.
- **`onboarding_id`**: A unique identifier for the onboarding process, generated by the ACHQ system.
Example: `"18388299"`.
- **`external_id`**: An identifier generated by the user for external traceability between their application and the ACHQ system.
Example: `"717f79a1"`.
- **`updated_at`**: A timestamp indicating when the status update occurred. This is dynamically filled with the current date and time when the notification is generated.
Placeholder Example: `2024-01-22T21:37:21.213468`.
## Credentials
The credentials webhook will fire once `status` = `accepted` and will contain api credentials, enabled services, and limits for a given lender
### JSON Sample
```json
{
"Onboarding_id": "18388299",
"externalId": "717f79a1",
"Account_Profile": {
"Merchant_Name": "Acme",
"MID": "7991",
"Gate_id": "EGI-85548472",
"Gate_key": "6o3y2d74",
"Debits": true,
"Debit_max": "100000",
"Debit_daily_max": "1000000",
"Debit_hold_days": "3",
"Credits": true,
"Credit_max": "1000000",
"Credit_daily_max": "20000000",
"Credit_hold_days": "3",
"PPD": false,
"CCD": true,
"WEB": false,
"TEL": false
}
```
### Details
- **`Onboarding_id`**: This is a unique identifier generated by the ACHQ system for the onboarding process. It is a string value (e.g., "18388299"). This ID is crucial for internal tracking and management of the onboarding process within the ACHQ system.
- **`externalId`**: This identifier is generated by the user and is used for traceability between their application and the ACHQ system.
- **`Account_Profile`**: This nested JSON object contains various details about the merchant's account profile:
- **`Merchant_Name`**: The name of the merchant (e.g., "Acme").
- **`MID`**: Merchant Identification Number, a unique number for the merchant (e.g., "7991").
- **`Gate_id`**: Identifier for the payment gateway used (e.g., "EGI-85548472").
- **`Gate_key`**: A key for the gateway, used for authentication (e.g., "6o3y2d74").
- **`Debits`**: Indicates if debit transactions are allowed (true/false).
- **`Debit_max`**: Maximum amount for a single debit transaction (e.g., "100000").
- **`Debit_daily_max`**: Maximum total amount for debit transactions per day (e.g., "100000").
- **`Debit_hold_days`**: Hold days for debit transactions (e.g., "1").
- **`Credits`**: Indicates if credit transactions are allowed (true/false).
- **`Credit_max`**: Maximum amount for a single credit transaction (e.g., "0").
- **`Credit_daily_max`**: Maximum total amount for credit transactions per day (e.g., "0").
- **`Credit_hold_days`**: Hold days for credit transactions (e.g., "1").
- **`PPD`**: Availability of Prearranged Payment and Deposit Entries (true/false).
- **`CCD`**: Availability of Corporate Credit or Debit Entries (true/false).
- **`WEB`**: Availability of WEB-based debit entries (true/false).
- **`TEL`**: Availability of telephone-initiated entries (true/false).