Search for a purchase order number using the API which includes a forward slash
We are creating purchase orders in Xero which have a purchase order in the format of: 'ABCDE/123'. These are coming from DataBuild. When using the PurchaseOrders API endpoint, we are unable to search for purchase orders due to the forward slash character. Have tried using various escape characters in the API call, but it does not work. The Xero API Explorer also fails when running the same call against the PurchaseOrders endpoint, yet the purchase order exists in Xero. We would like to be able to search for purchase orders using escape characters.
-
jhonson_grace
commented
When handling purchase order numbers that include a forward slash, proper URL encoding and routing rules make a big difference in API searches. It’s helpful to validate how the endpoint parses special characters to avoid false negatives or routing errors. I’ve seen similar lookup patterns work smoothly when reference data is well organized, like the resources around https://madisoncountycourts.org in the middle of a request flow. Clear documentation and consistent formatting usually save a lot of debugging time.