Create Reversal
This endpoint is deprecated.
POST
/api/RPC.common.Api.So.createCredit?token=<TOKEN>Parameters
| Field | Type | Description |
|---|---|---|
numrequired | String | Sales Order ID |
store_code | String | Warehouse ID |
account_code | String | Account ID |
pay_now | Boolean | Automatically refund payment |
quantity_credit | Boolean | Reversal of goods quantity |
invoice_offset | Boolean | Offsetting the payment amount from the financial document |
invoice_now | Boolean | Issue the financial document immediately (by default: 1) |
store_type | String | Goods receipt: direct (immediately) | wait (deferred) |
for_date | String | Reversal date |
description | String | Description |
rowsrequired | Object | Rows object. |
rows.skurequired | String | Item ID (SKU) |
rows.skurequired | String | Service ID (SKU) |
rows.label | String | Batch |
rows.quantity | String | Quantity |
rows.all_quantity | Boolean | Total quantity |
rows.price | String | Price |
rows.all_price | Boolean | Total 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