cURL
curl --request POST \ --url https://api.opx.co/partners/v1/worksites \ --header 'Content-Type: application/json' \ --data ' { "convention_id": 123, "beneficiary_id": 123, "external_reference": "<string>", "incentive_type": "direct", "precarity_type": "very-low", "address": "<string>", "city": "<string>", "zipcode": "<string>", "country": "<string>", "additional_address": "<string>", "indivision": true, "cadastral_parcel": "<string>", "fiscal_informations": [ { "firstname": "<string>", "lastname": "<string>", "fiscal_number": "<string>", "fiscal_reference": "<string>" } ] } '
{ "data": { "id": 123, "reference": "<string>", "external_reference": "<string>", "convention_id": 123, "beneficiary_id": 123, "installer_name": "<string>", "zipcode": "<string>", "address": "<string>", "city": "<string>", "status": "<string>", "created_at": "<string>", "precarity_type": "<string>", "fiscal_informations": [ { "firstname": "<string>", "lastname": "<string>", "fiscal_number": "<string>", "fiscal_reference": "<string>" } ], "indivision": true } }
direct
indirect
type de précarité, par défaut "classic". Seul "classic" est accepté pour les chantiers b2b
very-low
low
mid
classic
référence cadastrale de la parcelle (préfixe-section-numéro) : "O11-AD-250"
Show child attributes
WorksiteResource