GET /api-v1/contact/{id}/supplier

Headers

  • WEAL-TOKEN string Required

    API token (can be retrieved from account settings)

  • TARGET-ORGANIZATION-ID integer

    ID of organization, for which the operation must be performed

Path parameters

  • id integer Required

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • id integer
    • businessUnitId integer
    • paymentAccountId integer
    • balanceSheetAccountId integer
    • currencyId integer
    • paymentTerms string
    • feeSplitType string

      Values are CHARGED_TO_THE_BENEFICIARY, FIFTY_FIFTY_SPLIT, or CHARGED_TO_THE_ORDERER.

    • contactId integer
    • vatNumber string
    • vatType string

      Values are NO_VAT, NATIVE, or IMPORT_OF_SERVICE.

    • vatTypeCodeId integer
    • vatRateId integer
    • businessUnitName string
    • paymentAccountName object
      Hide paymentAccountName attributes Show paymentAccountName attributes object
      • en string
      • fr string
      • de string
      • it string
    • PLAccountName object
      Hide PLAccountName attributes Show PLAccountName attributes object
      • en string
      • fr string
      • de string
      • it string
    • balanceSheetAccountName object
      Hide balanceSheetAccountName attributes Show balanceSheetAccountName attributes object
      • en string
      • fr string
      • de string
      • it string
    • officeId integer
    • countryId integer
    • banks array[object]
      Hide banks attributes Show banks attributes object
      • id integer
      • name string Required
      • accountNumber string
      • qrIban string
      • isrCustomerNumber string
      • bankCustomerNumber string

        Format should match the following pattern: ^([1-9][0-9]*)*$.

      • swiftBic string
      • bankName string
      • remark string
      • position integer(int32)
      • useForReconciliation boolean
      • chartOfAccounts integer Required
      • accountHolderAddress object
        Hide accountHolderAddress attributes Show accountHolderAddress attributes object
        • id integer
        • name string Required
        • line1 string
        • line2 string
        • city string
        • region object
          Hide region attributes Show region attributes object
          • id integer
          • name string
          • code string
          • taxMode string

            Values are ANNUALLY or MONTHLY.

        • countryCode2 string
        • postCode string
        • toTheAttentionOf string
        • position integer(int32)
        • houseNumber string
        • countryId integer Required
        • service string
        • readOnly boolean
      • customHolder boolean
    • placcountName object
      Hide placcountName attributes Show placcountName attributes object
      • en string
      • fr string
      • de string
      • it string
    • placcountId integer
  • 400

    400 Bad Request

  • 401

    401 Unauthorized

  • 403

    403 Access Denied

  • 404

    404 Not Found

  • 500

    500 Internal Server Error

GET /api-v1/contact/{id}/supplier
curl \
 --request GET 'https://wyzio.app/api-v1/contact/{id}/supplier' \
 --header "WEAL-TOKEN: string" \
 --header "TARGET-ORGANIZATION-ID: 42"
Response examples (200)
{
  "id": 42,
  "businessUnitId": 42,
  "paymentAccountId": 42,
  "balanceSheetAccountId": 42,
  "currencyId": 42,
  "paymentTerms": "string",
  "feeSplitType": "CHARGED_TO_THE_BENEFICIARY",
  "contactId": 42,
  "vatNumber": "string",
  "vatType": "NO_VAT",
  "vatTypeCodeId": 42,
  "vatRateId": 42,
  "businessUnitName": "string",
  "paymentAccountName": {
    "en": "string",
    "fr": "string",
    "de": "string",
    "it": "string"
  },
  "PLAccountName": {
    "en": "string",
    "fr": "string",
    "de": "string",
    "it": "string"
  },
  "balanceSheetAccountName": {
    "en": "string",
    "fr": "string",
    "de": "string",
    "it": "string"
  },
  "officeId": 42,
  "countryId": 42,
  "banks": [
    {
      "id": 42,
      "name": "string",
      "accountNumber": "string",
      "qrIban": "string",
      "isrCustomerNumber": "string",
      "bankCustomerNumber": "string",
      "swiftBic": "string",
      "bankName": "string",
      "remark": "string",
      "position": 42,
      "useForReconciliation": true,
      "chartOfAccounts": 42,
      "accountHolderAddress": {
        "id": 42,
        "name": "string",
        "line1": "string",
        "line2": "string",
        "city": "string",
        "region": {
          "id": 42,
          "name": "string",
          "code": "string",
          "taxMode": "ANNUALLY"
        },
        "countryCode2": "string",
        "postCode": "string",
        "toTheAttentionOf": "string",
        "position": 42,
        "houseNumber": "string",
        "countryId": 42,
        "service": "string",
        "readOnly": true
      },
      "customHolder": true
    }
  ],
  "placcountName": {
    "en": "string",
    "fr": "string",
    "de": "string",
    "it": "string"
  },
  "placcountId": 42
}