Overview
HTTP Method: POST
Endpoint URL: https://coreapi.impexdocs.com/api/v1/purchaseorder
Authentication: Required
Response Format: JSON
Description
This API allows you to programmatically manage and create purchase orders within our platform. To use the Purchase Order creation endpoint, authentication is required. Ensure that your application is authenticated using the provided API key or access token.
Request
To create a Purchase Order, provide the following mandatory inputs in the request JSON:
-
Order Number (
order_no
): The order number is the primary key used to uniquely identify each Purchase Order in our system. It is essential for updating and retrieving data. -
Order Status (
order_status
): This field defines the status of a Purchase Order. When creating a purchase order, pass the default value "Created."
Response
The API will respond with a JSON object containing the following:
- Response Code
- Message
- Purchase Order ID
Example Response JSON
{
"response_code": 200,
"message": "Purchase Order created successfully",
"purchase_order_id": "your_purchase_order_id"
}
Note
- Ensure proper authentication before making the request.
- Use the Purchase Order ID obtained from the response for further operations.
- Provide the necessary inputs in the request JSON, including the Order Number and Order Status.