Accounting Export Reports that can be consumed by 3rd Party accounting systems
For differences between versions, see Changelog.
curl -i -X POST \
https://developer.yellowdogsoftware.com/_mock/fetch/api/api/v3/invoices/ocr \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: multipart/form-data' \
-F file=string
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "creationKey": "string" }
The request body containing the staged invoice line data.
curl -i -X POST \
'https://developer.yellowdogsoftware.com/_mock/fetch/api/api/v3/invoices/staged/{stagedInvoiceId}/lines' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json-patch+json' \
-d '{
"lines": [
{
"lineType": "string",
"lineNumber": 0,
"lineIdentifier": "string",
"vendorPNMatch": "string",
"reference": "string",
"description": "string",
"quantity": 0,
"sizeMatch": "string",
"beanAccountMatch": "string",
"vendorPrice": 0,
"expenseAmount": 0,
"upc": "string",
"packSize": "string"
}
]
}'
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "creationKey": "string" }
curl -i -X GET \
'https://developer.yellowdogsoftware.com/_mock/fetch/api/api/v3/invoices/staged/{stagedInvoiceId}/original-document' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
{ "attachedLinkID": "97dca3aa-e4ac-4486-a9f4-9ded7745e652", "ownerID": "4d1ec274-d781-4778-8ffc-812e9ab43c0c", "url": "string" }
This endpoint requires the user to be authenticated and have the Api.Helpers.YdPolicyName.atLeast377 policy. The updated staged invoice is returned in the response body if the operation is successful. If the staged invoice was not modified, a 304 Not Modified status code is returned. If a validation error occurs, a 422 Unprocessable Entity status code is returned. If the database schema version is not version 377 or greater, a 403 Forbidden status code is returned.
The updated staged invoice data.
Sets the status of the invoice. The status can be one of the following values:
Initialized
New
InProcess
ConvertedOpen
– ConvertedCommitted
Removed
Unknown
Failed
Sets the store match of the invoice. (what will be used to match to match to a yellow dog store)
Sets the vendor match of the invoice. (what will be used to match to match to a yellow dog vendor)
curl -i -X PUT \
'https://developer.yellowdogsoftware.com/_mock/fetch/api/api/v3/invoices/staged/{stagedInvoiceId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json-patch+json' \
-d '{
"status": "string",
"storeMatch": "string",
"vendorMatch": "string",
"code": "string",
"description": "string",
"reference": "string",
"instructions": "string",
"notes": "string",
"receivedAt": "2019-08-24T14:15:22Z",
"invoicedAt": "2019-08-24T14:15:22Z",
"dueAt": "2019-08-24T14:15:22Z",
"totalAmount": 0.1,
"customerNumber": "string",
"currencyCode": "string",
"purchaseOrderNumber": "string"
}'
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "creationKey": "string" }
The updated staged invoice data.
Sets the status of the invoice. The status can be one of the following values:
Initialized
New
InProcess
ConvertedOpen
– ConvertedCommitted
Removed
Unknown
Failed
Sets the store match of the invoice. (what will be used to match to match to a yellow dog store)
Sets the vendor match of the invoice. (what will be used to match to match to a yellow dog vendor)
curl -i -X PATCH \
'https://developer.yellowdogsoftware.com/_mock/fetch/api/api/v3/invoices/staged/{stagedInvoiceId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json-patch+json' \
-d '{
"status": "string",
"storeMatch": "string",
"vendorMatch": "string",
"code": "string",
"description": "string",
"reference": "string",
"instructions": "string",
"notes": "string",
"receivedAt": "2019-08-24T14:15:22Z",
"invoicedAt": "2019-08-24T14:15:22Z",
"dueAt": "2019-08-24T14:15:22Z",
"totalAmount": 0.1,
"customerNumber": "string",
"currencyCode": "string",
"purchaseOrderNumber": "string"
}'
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "creationKey": "string" }