Useme API docs
  1. Contractors
Useme API docs
  • Guides
    • Introduction
    • Getting Started
    • Creating Contractors
    • Creating Deals
  • Reference
    • Categories
      • List categories
    • Contractors
      • Create a new contractor
        POST
    • Deals
      • Create a new deal
      • Retrieve a specific deal
      • Upload a file for a deal
  1. Contractors

Create a new contractor

POST
https://sandbox.useme.com/api/1.0/contractor/
Registers a new contractor with the given details. If the contractor already exists, it returns a conflict error.

Request

Header Params

Body Params application/json

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 Code 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

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
Previous
List categories
Next
Create a new deal
Built with