Create a new contractor
POST
https://sandbox.useme.com/api/1.0/contractor/
Contractors
Request
Header Params
Authorization
string
required
Default:
Token <here-paste-your-token>
Body Params application/json
email
string <email>
E-mail
>= 1 characters
name
string
required
>= 1 characters
surname
string
required
>= 1 characters
country_code
enum<string>
Country
AD
- AndorraAE
- United Arab EmiratesAF
- AfghanistanAG
- Antigua and BarbudaAI
- AnguillaAL
- AlbaniaAM
- ArmeniaAO
- AngolaAQ
- AntarcticaAR
- ArgentinaAS
- American SamoaAT
- AustriaAU
- AustraliaAW
- ArubaAX
- Åland IslandsAZ
- AzerbaijanBA
- Bosnia and HerzegovinaBB
- BarbadosBD
- BangladeshBE
- BelgiumBF
- Burkina FasoBG
- BulgariaBH
- BahrainBI
- BurundiBJ
- BeninBL
- Saint BarthélemyBM
- BermudaBN
- BruneiBO
- BoliviaBQ
- Bonaire, Sint Eustatius and SabaBR
- BrazilBS
- BahamasBT
- BhutanBV
- Bouvet IslandBW
- BotswanaBY
- BelarusBZ
- BelizeCA
- CanadaCC
- Cocos (Keeling) IslandsCD
- Congo (the Democratic Republic of the)CF
- Central African RepublicCG
- CongoCH
- SwitzerlandCI
- Côte d'IvoireCK
- Cook IslandsCL
- ChileCM
- CameroonCN
- ChinaCO
- ColombiaCR
- Costa RicaCU
- CubaCV
- Cabo VerdeCW
- CuraçaoCX
- Christmas IslandCY
- CyprusCZ
- CzechiaDE
- GermanyDJ
- DjiboutiDK
- DenmarkDM
- DominicaDO
- Dominican RepublicDZ
- AlgeriaEC
- EcuadorEE
- EstoniaEG
- EgyptEH
- Western SaharaER
- EritreaES
- SpainET
- EthiopiaFI
- FinlandFJ
- FijiFK
- Falkland Islands (Malvinas)FM
- Micronesia (Federated States of)FO
- Faroe IslandsFR
- FranceGA
- GabonGB
- United KingdomGD
- GrenadaGE
- GeorgiaGF
- French GuianaGG
- GuernseyGH
- GhanaGI
- GibraltarGL
- GreenlandGM
- GambiaGN
- GuineaGP
- GuadeloupeGQ
- Equatorial GuineaGR
- GreeceGS
- South Georgia and the South Sandwich IslandsGT
- GuatemalaGU
- GuamGW
- Guinea-BissauGY
- GuyanaHK
- Hong KongHM
- Heard Island and McDonald IslandsHN
- HondurasHR
- CroatiaHT
- HaitiHU
- HungaryID
- IndonesiaIE
- IrelandIL
- IsraelIM
- Isle of ManIN
- IndiaIO
- British Indian Ocean TerritoryIQ
- IraqIR
- IranIS
- IcelandIT
- ItalyJE
- JerseyJM
- JamaicaJO
- JordanJP
- JapanKE
- KenyaKG
- KyrgyzstanKH
- CambodiaKI
- KiribatiKM
- ComorosKN
- Saint Kitts and NevisKP
- North KoreaKR
- South KoreaKW
- KuwaitKY
- Cayman IslandsKZ
- KazakhstanLA
- LaosLB
- LebanonLC
- Saint LuciaLI
- LiechtensteinLK
- Sri LankaLR
- LiberiaLS
- LesothoLT
- LithuaniaLU
- LuxembourgLV
- LatviaLY
- LibyaMA
- MoroccoMC
- MonacoMD
- MoldovaME
- MontenegroMF
- Saint Martin (French part)MG
- MadagascarMH
- Marshall IslandsMK
- North MacedoniaML
- MaliMM
- MyanmarMN
- MongoliaMO
- MacaoMP
- Northern Mariana IslandsMQ
- MartiniqueMR
- MauritaniaMS
- MontserratMT
- MaltaMU
- MauritiusMV
- MaldivesMW
- MalawiMX
- MexicoMY
- MalaysiaMZ
- MozambiqueNA
- NamibiaNC
- New CaledoniaNE
- NigerNF
- Norfolk IslandNG
- NigeriaNI
- NicaraguaNL
- NetherlandsNO
- NorwayNP
- NepalNR
- NauruNU
- NiueNZ
- New ZealandOM
- OmanPA
- PanamaPE
- PeruPF
- French PolynesiaPG
- Papua New GuineaPH
- PhilippinesPK
- PakistanPL
- PolandPM
- Saint Pierre and MiquelonPN
- PitcairnPR
- Puerto RicoPS
- Palestine, State ofPT
- PortugalPW
- PalauPY
- ParaguayQA
- QatarRE
- RéunionRO
- RomaniaRS
- SerbiaRU
- RussiaRW
- RwandaSA
- Saudi ArabiaSB
- Solomon IslandsSC
- SeychellesSD
- SudanSE
- SwedenSG
- SingaporeSH
- Saint Helena, Ascension and Tristan da CunhaSI
- SloveniaSJ
- Svalbard and Jan MayenSK
- SlovakiaSL
- Sierra LeoneSM
- San MarinoSN
- SenegalSO
- SomaliaSR
- SurinameSS
- South SudanST
- Sao Tome and PrincipeSV
- El SalvadorSX
- Sint Maarten (Dutch part)SY
- SyriaSZ
- EswatiniTC
- Turks and Caicos IslandsTD
- ChadTF
- French Southern TerritoriesTG
- TogoTH
- ThailandTJ
- TajikistanTK
- TokelauTL
- Timor-LesteTM
- TurkmenistanTN
- TunisiaTO
- TongaTR
- TürkiyeTT
- Trinidad and TobagoTV
- TuvaluTW
- TaiwanTZ
- TanzaniaUA
- UkraineUG
- UgandaUM
- United States Minor Outlying IslandsUS
- United States of AmericaUY
- UruguayUZ
- UzbekistanVA
- Holy SeeVC
- Saint Vincent and the GrenadinesVE
- VenezuelaVG
- Virgin Islands (British)VI
- Virgin Islands (U.S.)VN
- VietnamVU
- VanuatuWF
- Wallis and FutunaWS
- SamoaXK
- Republic of KosovoYE
- YemenYT
- MayotteZA
- South AfricaZM
- ZambiaZW
- ZimbabweAllowed values:
ADAEAFAGAIALAMAOAQARASATAUAWAXAZBABBBDBEBFBGBHBIBJBLBMBNBOBQBRBSBTBVBWBYBZCACCCDCFCGCHCICKCLCMCNCOCRCUCVCWCXCYCZDEDJDKDMDODZECEEEGEHERESETFIFJFKFMFOFRGAGBGDGEGFGGGHGIGLGMGNGPGQGRGSGTGUGWGYHKHMHNHRHTHUIDIEILIMINIOIQIRISITJEJMJOJPKEKGKHKIKMKNKPKRKWKYKZLALBLCLILKLRLSLTLULVLYMAMCMDMEMFMGMHMKMLMMMNMOMPMQMRMSMTMUMVMWMXMYMZNANCNENFNGNINLNONPNRNUNZOMPAPEPFPGPHPKPLPMPNPRPSPTPWPYQARERORSRURWSASBSCSDSESGSHSISJSKSLSMSNSOSRSSSTSVSXSYSZTCTDTFTGTHTJTKTLTMTNTOTRTTTVTWTZUAUGUMUSUYUZVAVCVEVGVIVNVUWFWSXKYEYTZAZMZW
street
string
required
>= 1 characters
house_no
string
House number
>= 1 characters
apartment_no
string
Apartment number
>= 1 characters
postal_code
string
required
>= 1 characters<= 6 characters
city
string
required
>= 1 characters
language
string
required
>= 2 characters<= 2 characters
bank_account_currency
string
required
>= 3 characters<= 3 characters
bank_account_iban
string
IBAN
>= 15 characters<= 34 characters
bank_account_bic
string
BIC
>= 1 characters<= 11 characters
pesel
string
optional
>= 1 characters<= 11 characters
nip
string
optional
>= 1 characters
tax_id
string
optional
>= 1 characters<= 30 characters
Example
{
"email": "user@example.com",
"name": "Name",
"surname": "Surname",
"country_code": "AT",
"street": "Street",
"house_no": "50",
"apartment_no": "5",
"postal_code": "5020",
"city": "City",
"language": "en",
"bank_account_currency": "EUR",
"bank_account_iban": "AT611904300234573201",
"bank_account_bic": "SANTATWWXXX",
"tax_id": "22-345/6781"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://sandbox.useme.com/api/1.0/contractor/' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "user@example.com",
"name": "Name",
"surname": "Surname",
"country_code": "AT",
"street": "Street",
"house_no": "50",
"apartment_no": "5",
"postal_code": "5020",
"city": "City",
"language": "en",
"bank_account_currency": "EUR",
"bank_account_iban": "AT611904300234573201",
"bank_account_bic": "SANTATWWXXX",
"tax_id": "22-345/6781"
}'
Responses
🟢201Returns the newly created contractor's email.
application/json
Body
success
boolean
optional
Default:
true
data
object (ContractorData)
required
contractor_email
string <email>
required
Example
{
"success": true,
"data": {
"contractor_email": "user@example.com"
}
}
🟠400Invalid input parameters or validation errors returned by the serializer.
🟠409Indicates that the contractor already exists.
Modified at 2024-05-07 08:34:28