Fetch API (v3.0: 3.25.0.4)
For differences between versions, see Changelog.
https://fetch.yellowdogsoftware.com/api/v3/
- Production server
https://fetch.yellowdogsoftware.com/api/v3/invoices/ocr
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://fetch.yellowdogsoftware.com/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" }
- application/json-patch+json
- application/json
- text/json
- application/*+json
The request body containing the staged invoice line data.
- Production server
https://fetch.yellowdogsoftware.com/api/v3/invoices/staged/{stagedInvoiceId}/lines
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://fetch.yellowdogsoftware.com/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" }
- Production server
https://fetch.yellowdogsoftware.com/api/v3/invoices/staged/{stagedInvoiceId}/original-document
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://fetch.yellowdogsoftware.com/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" }
Request
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.
- application/json-patch+json
- application/json
- text/json
- application/*+json
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)
- Production server
https://fetch.yellowdogsoftware.com/api/v3/invoices/staged/{stagedInvoiceId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://fetch.yellowdogsoftware.com/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" }
- application/json-patch+json
- application/json
- text/json
- application/*+json
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)
- Production server
https://fetch.yellowdogsoftware.com/api/v3/invoices/staged/{stagedInvoiceId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
'https://fetch.yellowdogsoftware.com/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" }