POST
/
integrations
/
netsuite
/
sync-invoices
curl --request POST \
  --url https://connect.withvayu.com/integrations/netsuite/sync-invoices \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "integrationType": "upsertInvoice",
  "uid": "<string>",
  "data": {
    "startDate": "2023-11-07T05:31:56Z",
    "endDate": "2023-11-07T05:31:56Z",
    "tranDate": "2023-11-07T05:31:56Z",
    "memo": "<string>",
    "externalId": "<string>",
    "entity": {
      "id": "<string>"
    },
    "account": {
      "id": "<string>"
    },
    "item": {
      "items": [
        {
          "item": {
            "id": "<string>"
          },
          "quantity": 123,
          "amount": 123,
          "description": "<string>",
          "memo": "<string>"
        }
      ]
    },
    "discountItem": {
      "id": "<string>"
    },
    "discountRate": 123
  }
}'
{
  "recordId": "<string>",
  "tranId": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
integrationType
enum<string>
required
Available options:
upsertInvoice
uid
string
required
data
object
required

Response

200
application/json
RequestSuccess
recordId
string
required
tranId
string
required