Decreases the company credit with an Update
Decreases the company credit with an Update, Reimburse, or Purchase transaction. This transaction increases company's outstanding balance and decreases company's available credit.
POST /V1/companyCredits/{creditId}/decreaseBalance
curl \
-X POST https://magento2.winkelstraat.mac/rest/all/V1/companyCredits/{creditId}/decreaseBalance \
-d '{"value":42.0,"currency":"string","operationType":42,"comment":"string","options":{"purchase_order":"string","custom_reference_number":"string","order_increment":"string","currency_display":"string","currency_base":"string"}}'
Request examples
{
"value": 42.0,
"currency": "string",
"operationType": 42,
"comment": "string",
"options": {
"purchase_order": "string",
"custom_reference_number": "string",
"order_increment": "string",
"currency_display": "string",
"currency_base": "string"
}
}
Response examples (200)
true
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 (default)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}