Update the following company credit attributes: credit currency
Update the following company credit attributes: credit currency, credit limit and setting to exceed credit.
Body
-
Credit Limit data transfer object interface.
PUT /V1/companyCredits/{id}
curl \
-X PUT https://magento2.winkelstraat.mac/rest/all/V1/companyCredits/{id} \
-d '{"creditLimit":{"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":{}}}'
Request examples
{
"creditLimit": {
"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 (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 (500)
{
"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"
}