POST
/
v1
/
subcontractors
curl --request POST \
  --url https://api.opx.co/partners/v1/subcontractors \
  --header 'Content-Type: application/json' \
  --data '{
  "company_name": "<string>",
  "siret": "<string>",
  "firstname": "<string>",
  "lastname": "<string>",
  "address": "<string>",
  "city": "<string>",
  "zipcode": "<string>",
  "country": "<string>",
  "phone": "<string>",
  "email": "jsmith@example.com"
}'
{
  "data": {
    "id": 123,
    "company_name": "<string>",
    "siren": "<string>",
    "siret": "<string>",
    "address": "<string>",
    "city": "<string>",
    "zipcode": "<string>",
    "country": "<string>",
    "firstname": "<string>",
    "lastname": "<string>",
    "phone": "<string>",
    "email": "<string>"
  }
}

Body

application/json
company_name
string
required
Maximum length: 255
siret
string
required
address
string
required
Maximum length: 255
city
string
required
Maximum length: 255
zipcode
string
required
email
string
required
Maximum length: 255
firstname
string
Maximum length: 255
lastname
string
Maximum length: 255
country
string | null
Maximum length: 32
phone
string | null

Response

200
application/json
`SubcontractorResource`
data
object
required