Insert a Receipt
POST /receipts/
— Use this method to create a new receipt.
Parameters
Path parameters
None
Query string parameter
Path parameter |
Required / Optional |
Description |
Type |
---|---|---|---|
|
Optional |
A comma-separated list of attributes available for expansion. The comma-separated list may include spaces (or
Note:
The |
string |
|
Optional |
A comma-separated list of attributes to include in the response. If not specified, the response includes all attributes for the receipt returned. |
string |
|
Optional |
The internal ID of the filter set to be applied.
|
integer |
|
Optional |
If set to any value other than |
Boolean |
Request body
The Receipt
object to be created. The object must include valid key-value pairs for all required attributes and cannot include key-value pairs for read-only attributes. For information about the Receipt
object model, see Receipt object properties.
Response definitions
A successful request returns a JSON object with the following properties:
Property |
Description |
---|---|
|
An array containing one of the following:
See Returned Data. |
|
An array of expanded objects, if the |
|
An object containing information about objects referenced by internal ID in the |
|
A string containing a brief message about the status of your request — for example, |
A failed request returns a JSON object with the following properties:
Property |
Description |
---|---|
|
A string containing a brief message about the status of your request. |
Sample request
POST /rest/v1/receipts/ HTTP/1.1
Host: company-id.app.netsuitesuiteprojectspro.com
Content-Type: application/json
Authorization: Bearer <OAuth2_access_token>
{
"foreignCurrencySymbol": "",
"expenseReportId": 237,
"date": "2019-10-01",
"costPerUnit": 580,
"total": 580,
"description": "Miscellaneous",
"itemId": 7,
"customerId": 50,
"isForeignCurrencyExchangeIntolerance": false,
"isNonBillable": true,
"currency": "USD",
"projectId": 54,
"isTaxIncludedInCost": false,
"quantity": 1,
"isReimbursable": true,
"totalNoTax": 580
"trackingNumber": 2
}
In the example, <OAuth2_access_token>
is the OAuth 2.0 access token obtained for the client application connecting to SuiteProjects Pro. See Authentication.
Sample response
{
"data": [
{
"id": 2674
}
],
"message": "success"
}