Create partner request
POST/v1/partners/child/request
If there is already existing partner you would like to be parent partner with. The partner will give you their key to make request to this endpoint. After approval, the partner will now be listed as your child partner.
Request
- application/json
Body
Request body
child_id string
Provide the key of the partner
Responses
- 201
- 403
- 422
Created
- application/json
- Schema
- Example (from schema)
Schema
data object
id number
status string
child object
id number
status string
name string
email string
phone string
logo uri
key string
sells_insurance_credits boolean
buys_insurance boolean
insurance_credits_markup_rate number
insurance_credits_markup_cap string
currency string
accepted_toc boolean
toc_date date-time
is_broker boolean
created_at date-time
updated_at date-time
is_travel_agent boolean
commission_share number
payment_option string
{
"data": {
"id": 0,
"status": "string",
"child": {
"id": 0,
"status": "string",
"name": "string",
"email": "string",
"phone": "string",
"logo": "string",
"key": "string",
"sells_insurance_credits": true,
"buys_insurance": true,
"insurance_credits_markup_rate": 0,
"insurance_credits_markup_cap": "string",
"currency": "string",
"accepted_toc": true,
"toc_date": "2024-03-21T13:08:41.712Z",
"is_broker": true,
"created_at": "2024-03-21T13:08:41.712Z",
"updated_at": "2024-03-21T13:08:41.712Z",
"is_travel_agent": true,
"commission_share": 0,
"payment_option": "string"
}
}
}
Unauthorized
Unprocessable Request
- application/json
- Schema
- invalid_request
- invalid_child_id
Schema
- any
{
"message": "There is a pending request. Please wait...",
"errors": {
"pending_request": [
"There is a pending request. Please wait..."
]
}
}
{
"message": "The selected child id is invalid.",
"errors": {
"child_id": [
"The selected child id is invalid."
]
}
}
Loading...