Purchase Order Information Not Available in API
CompletedWe use purchase orders for clients that are on net 30 days terms. They enter the PO number and sometimes the buyer's information in the purchase order field on the checkout page. Unfortunately, none of this information is available via the API call and we have trouble getting our invoices paid because of this one missing piece of information.
Can you please make the purchase order information available via the API call when we get the order details.
Thank you so much,
Ira Saunders.
-
Hi Ira - thanks for the feedback. It looks like this is just a documentation issue.
This endpoint will get you PO info
https://developers.cart.com/docs/rest-api/d069ec4a2c979-get-payment-methods
To get all the info you need for custom payment methods, you'll need to include "expand=fields" in the query for this call. Ex: '/api/v1/order_payments?expand=fields'
https://developers.cart.com/docs/rest-api/cbeeef8ce20a1-get-order-payments
0 -
For us, the only way to add a Purchase Order field to an order is by using Custom Fields.
In our case we can just hit /api/v1/orders/{ORDERID}?expand=custom_fields
The endpoint exposes that nested field - see image. Of if you need all available data for an order just use the following which will also expose it:
/api/v1/orders/{ORDERID}/filled
0
Please sign in to leave a comment.
Comments
2 comments