Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following table lists available REST API methods that a third party service can invoke.  URL's must start with https://po.raleyapps.com/ and end with the URL suffix as indicated in the table below


MethodURL suffixDescriptionExample Response
GET
api/v1/external/get-suppliers
Returns list of suppliers configured for given installation of Raley PO. Archived suppliers are not returned

[
{
"id": 291,
"name": "Test supplier",
"phone": "555 5555",
"email": "contact@supplier.com",
"address": "Address of supplier",
"notes": "",
"paymentDetails": "DE72392732643627",
"taxNo": "DE8473273",
"contact": "",
"terms": "NET30",
"archived": false
}
]

GET
api/v1/external/get-taxes
Returns list of taxes configured for given installation of Raley PO. Archived taxes are not returned

[
{
"id": 120,
"name": "Default tax",
"value": "20.0",
"isDefault": true,
"archived": false,
"companyId": 217
}
]

GET
api/v1/external/find-productproducts-by-sku?sku=SKU_VALUE

Finds and returns

a

list of product that match by given SKU identifier SKU_VALUE. Both, active and archived products can be returned.

If more than one product is found with the same SKU, returns the first one.

This methods returns HTTP 404 if no products are found. 

[
 {
   "id": 1413,
   "sku": "abc",
   "description": "Mazutka",
   "unitPrice": 5323.0,
   "supplierId": 291,
   "taxRate": {
   "id": 120,
   "name": "Default tax",
   "value": "20.0",
   "isDefault": true,
   "archived": false,
   "companyId": 217
 },
 "active": true,
 "approved": true,
 "productApprovalType": null
}
]

POST
api/v1/external/create-product


PUT
api/v1/external/update-product