Increases the company credit with an Allocate
Increases the company credit with an Allocate, Update, Refund, Revert, or Reimburse transaction. This transaction decreases company's outstanding balance and increases company's available credit.
POST /V1/companyCredits/{creditId}/increaseBalance
curl \
-X POST https://magento2.winkelstraat.mac/rest/all/V1/companyCredits/{creditId}/increaseBalance \
-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"
}