Create partner
POST/v1/partners/child
Create partner
Request
- application/json
Body
required
Details of the partner
name string
Possible values: >= 4 characters
and <= 200 characters
The name of the partner
currency string
Possible values: [USD
, EUR
, GBP
, NGN
]
Fetch currency codes
email email
Unique email address of the partner
phone string
Possible values: >= 10 characters
logo_url binary
commission_rate number
Possible values: <= 5
Commission of the partner
payment_option string
Possible values: [card
, web_link
, wallet
]
buys_insurance boolean
sells_insurance_credits boolean
password string
Possible values: >= 8 characters
Login password of the partner
Responses
- 201
- 403
- 422
Created
- application/json
- Schema
- Example (from schema)
Schema
id number
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 number
currency string
accepted_toc string
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
{
"id": 0,
"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": 0,
"currency": "string",
"accepted_toc": "string",
"toc_date": "2024-03-21T13:08:41.711Z",
"is_broker": true,
"created_at": "2024-03-21T13:08:41.711Z",
"updated_at": "2024-03-21T13:08:41.711Z",
"is_travel_agent": true,
"commission_share": 0,
"payment_option": "string"
}
Unauthorized
Unprocessable Request
Loading...