Create Reversal

This endpoint is deprecated.
POST/api/RPC.common.Api.So.createCredit?token=<TOKEN>

Key So.createCredit · API version 2.0.0

Parameters

18 body parameters inside data[]
FieldTypeDescription
numrequiredStringSales Order ID
store_codeStringWarehouse ID
account_codeStringAccount ID
pay_nowBooleanAutomatically refund payment
quantity_creditBooleanReversal of goods quantity
invoice_offsetBooleanOffsetting the payment amount from the financial document
invoice_nowBooleanIssue the financial document immediately (by default: 1)
store_typeStringGoods receipt: direct (immediately) | wait (deferred)
for_dateStringReversal date
descriptionStringDescription
rowsrequiredObjectRows object.
rows.skurequiredStringItem ID (SKU)
rows.skurequiredStringService ID (SKU)
rows.labelStringBatch
rows.quantityStringQuantity
rows.all_quantityBooleanTotal quantity
rows.priceStringPrice
rows.all_priceBooleanTotal amount

Request example

Create So Reversal Quantity:
{
   "data" : [
      {
         "quantity_credit" : 1,
         "num" : "CO10002311",
         "rows" : [
            {
               "quantity" : "1.00",
               "sku" : 10014
            }
         ]
      }
   ]
}
Create So Reversal Price:
{
   "data" : [
      {
         "num" : "CO10002311",
         "rows" : [
            {
               "price" : "17.91000000000000000000",
               "sku" : 10014
            }
         ]
      }
   ]
}
Create So Reversal Deferred (no financial document, deferred goods reception):
{
   "data" : [
      {
         "num" : "CO10002311",
         "rows" : [
            {
               "quantity" : "1.00",
               "sku" : 10014
            }
         ],
         "quantity_credit" : 1,
         "invoice_now" : 0,
         "store_type" : "wait"
      }
   ]
}

cURL

Create So Reversal Quantity:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{   "data" : [      {         "quantity_credit" : 1,         "num" : "CO10002311",         "rows" : [            {               "quantity" : "1.00",               "sku" : 10014            }         ]      }   ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.So.createCredit?token=<TOKEN>"
Create So Reversal Price:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{   "data" : [      {         "num" : "CO10002311",         "rows" : [            {               "price" : "17.91000000000000000000",               "sku" : 10014            }         ]      }   ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.So.createCredit?token=<TOKEN>"
Create So Reversal Deferred (no financial document, deferred goods reception):
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{   "data" : [      {         "num" : "CO10002311",         "rows" : [            {               "quantity" : "1.00",               "sku" : 10014            }         ],         "quantity_credit" : 1,         "invoice_now" : 0,         "store_type" : "wait"      }   ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.So.createCredit?token=<TOKEN>"

Response example