Returns data on the credit limit for a specified credit limit ID

GET /V1/companyCredits/{creditId}

Returns data on the credit limit for a specified credit limit ID.

Query parameters

Responses

GET /V1/companyCredits/{creditId}
curl \
 -X GET https://magento2.winkelstraat.mac/rest/all/V1/companyCredits/{creditId}
Response examples (200)
{
  "id": 42,
  "company_id": 42,
  "credit_limit": 42.0,
  "balance": 42.0,
  "currency_code": "string",
  "exceed_limit": true,
  "available_limit": 42.0,
  "credit_comment": "string",
  "extension_attributes": {}
}
Response examples (401)
{
  "message": "string",
  "errors": [
    {
      "message": "string",
      "parameters": [
        {
          "resources": "string",
          "fieldName": "string",
          "fieldValue": "string"
        }
      ]
    }
  ],
  "code": 42,
  "parameters": [
    {
      "resources": "string",
      "fieldName": "string",
      "fieldValue": "string"
    }
  ],
  "trace": "string"
}
Response examples (400)
{
  "message": "string",
  "errors": [
    {
      "message": "string",
      "parameters": [
        {
          "resources": "string",
          "fieldName": "string",
          "fieldValue": "string"
        }
      ]
    }
  ],
  "code": 42,
  "parameters": [
    {
      "resources": "string",
      "fieldName": "string",
      "fieldValue": "string"
    }
  ],
  "trace": "string"
}
Response examples (default)
{
  "message": "string",
  "errors": [
    {
      "message": "string",
      "parameters": [
        {
          "resources": "string",
          "fieldName": "string",
          "fieldValue": "string"
        }
      ]
    }
  ],
  "code": 42,
  "parameters": [
    {
      "resources": "string",
      "fieldName": "string",
      "fieldValue": "string"
    }
  ],
  "trace": "string"
}