Create financial documents
This endpoint is deprecated.
POST
/api/RPC.common.Api.So.createFinDoc?token=<TOKEN>Parameters
| Field | Type | Description |
|---|---|---|
numrequired | String | Sales Order ID |
pay_now | Boolean | Pay |
currency | String | Currency code |
account_code | String | Account ID |
account_name | String | Account name |
description | String | Description |
Request example
Create FinDoc From So:
{
"data" : [
{
"description" : "Create FinDoc From So CO10003291",
"num" : "CO10003291"
}
]
}
Create FinDoc From So With Payment:
{
"data" : [
{
"description" : "Create FinDoc From So CO10003291",
"pay_now" : 1,
"num" : "CO10003291"
}
]
}cURL
Create FinDoc From So:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{ "data" : [ { "description" : "Create FinDoc From So CO10003291", "num" : "CO10003291" } ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.So.createFinDoc?token=<TOKEN>"
Create FinDoc From So With Payment:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{ "data" : [ { "description" : "Create FinDoc From So CO10003291", "pay_now" : 1, "num" : "CO10003291" } ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.So.createFinDoc?token=<TOKEN>"Response example