Purchase Orders

Create a purchase order

POST
Create a purchase order for an integration.

Request

This endpoint expects an object.
integration_id
stringRequired
vendor_id
stringOptional
The Propexo unique identifier for the vendor
description
stringOptional
Description of the purchase order
number
stringOptional
The number of the purchase order
total_amount_in_cents
doubleOptional
The amount of the purchase order, in cents
order_date
unionOptional
The order date for the purchase order
expense_type
stringOptional
The expense type of the purchase order. You'll have to request this data from your customer
display_type
stringOptional
The display type of the purchase order. You'll have to request this data from your customer
is_closed
booleanOptional
Whether the purchase order is closed or not
shipping_address_1
stringOptional
The first address line associated with the shipping address for the purchase order
shipping_address_2
stringOptional
The second address line associated with the shipping address for the purchase order
shipping_city
stringOptional
The city associated with the shipping address for the purchase order
shipping_state
stringOptional
The state associated with the shipping address for the purchase order
shipping_zip
stringOptional
The zip code associated with the shipping address for the purchase order
shipping_country
stringOptional
The country associated with the shipping address for the purchase order
billing_address_1
stringOptional
The first address line associated with the billing address for the purchase order
billing_address_2
stringOptional
The second address line associated with the billing address for the purchase order
billing_city
stringOptional
The city associated with the billing address for the purchase order
billing_state
stringOptional
The state associated with the billing address for the purchase order
billing_zip
stringOptional
The zip code associated with the billing address for the purchase order
billing_country
stringOptional
The country associated with the billing address for the purchase order
purchase_order_items
list of objectsOptional
A list of the items associated with the purchase orders

Response

This endpoint returns an object
job_id
string
The ID of the job created to handle this operation
data
object
Returned data from the operation. This is dependent on the vendor specific endpoint's returned data.
POST
$curl -X POST https://api.propexo.com/v1/purchase-orders \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json" \
> -d '{
> "integration_id": "integration_id"
>}'
Response
1{
2 "job_id": "job_id",
3 "data": {}
4}