Allows users to create a schedule, and the invoices that make up the schedule.
The following Authorization keys need to be added to any API call header.
Auth-FactorID: an ID provided by FactorCloud to the Factor who owns the instance of FactorCloud.
Auth-SystemKey: A Key to Identify the specific system.
Auth-APIKey: An API password.
The body is a JSON Object with the following paramaters:
Expected Output: An echo JSON object with the in-system information, this may be different then the information in the API call; and reflects the formatting applied to it when entered into the database. The DocBase64 field will return the length of the String.
Request:
<<<<<<< HEAD
curl -H 'Auth-FactorId: FACTORID' -H 'Auth-SystemKey: SYSTEMKEY' -H 'Auth-ApiKey: APIKEY' --data '{"ClientKey":"EXAMPLE_CLIENT","Amount":"100","InvoiceArray":[{"DebtorKey":"EXAMPLE_DEBTOR","InvoiceDate":"2020-01-01","InvoiceNumber":"Example_1","RefNum":"ExampleA","DueDate":"2020-01-30","InvoiceAr":"100","InvoiceIntegrationId":"ExampleInvoice1"},{"DebtorKey":"EXAMPLE_DEBTOR","InvoiceNumber":"Example_2","InvoiceAr":"250","InvoiceIntegrationId":"ExampleInvoice2"},{"DebtorKey":"EXAMPLE_DEBTOR2","InvoiceNumber":"Example_3","InvoiceAr":"375","InvoiceIntegrationId":"ExampleInvoice3"}],"Label":"Example Label","Notes":"Example Notes","PaymentMethod":"W","IntegrationBatchId":"Example1"}' https://wstest.factorcloud.com/api_factor/create-sched/
=======
{
curl --location --request POST 'https://EXAMPLE.factorcloud.comapi_factor/create-sched/' \
--header 'Auth-Factorid: EXAMPLE' \
--header 'Auth-Apikey: EXAMPLE' \
--header 'Auth-SystemKey: 1' \
--header 'Content-Type: text/plain' \
--data-raw '{"ClientKey": "EXAMPLE_CLIENT","Amount": "100","InvoiceArray":[{"DebtorKey": "EXAMPLE_DEBTOR","InvoiceDate": "2020-01-01","InvoiceNumber": "Example_1","RefNum": "ExampleA","DueDate": "2020-01-30","InvoiceAr": "100","InvoiceIntegrationId": "ExampleInvoice1"},{"DebtorKey": "EXAMPLE_DEBTOR","InvoiceNumber": "Example_2","InvoiceAr": "250","InvoiceIntegrationId": "ExampleInvoice2"},{"DebtorKey": "EXAMPLE_DEBTOR2","InvoiceNumber": "Example_3","InvoiceAr": "375","InvoiceIntegrationId": "ExampleInvoice3"}],"Label": "Example Label","Notes": "Example Notes","PaymentMethod": "W","IntegrationBatchId": "Example1"}'
}
>>>>>>> 2newcalls