POST fxo/Finance/APInvoice

Request Information

URI Parameters

None.

Body Parameters

CreateAPinvoice
NameDescriptionTypeAdditional information
apinvoice

Apinvoice

None.

apinvoice_expense

Collection of APInvoice_Expense

None.

Request Formats

application/json, text/json

Sample:
{
  "apinvoice": {
    "invoice_no": "sample string 1",
    "entity": {
      "value": "sample string 1",
      "id": 2
    },
    "ap_inv_date": "sample string 2",
    "currency_id": {
      "value": "sample string 1",
      "id": 2
    },
    "ap_inv_pay_term": {
      "value": "sample string 1",
      "id": 2
    },
    "ap_inv_currency_rate": 3.1,
    "ap_rec_date": "sample string 4"
  },
  "apinvoice_expense": [
    {
      "act_name": "sample string 1",
      "seg_id": "sample string 2",
      "act_code": "sample string 3",
      "amount": 4.0,
      "notes": "sample string 5"
    },
    {
      "act_name": "sample string 1",
      "seg_id": "sample string 2",
      "act_code": "sample string 3",
      "amount": 4.0,
      "notes": "sample string 5"
    }
  ]
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CreateAPinvoice'.

application/xml

Sample:

An exception has occurred while using the formatter 'CustomXmlFormatter' to generate sample for media type 'application/xml'. Exception message: Cannot access a closed Stream.

text/xml

Sample:

An exception has occurred while using the formatter 'CustomXmlFormatter' to generate sample for media type 'text/xml'. Exception message: Cannot access a closed Stream.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.