Enerpize API
  1. Purchase Refunds
Enerpize API
  • Welcome
  • Getting Started
  • Authorization
  • All Endpoints
    • Invoices
      • GET All Invoices
      • GET Single Invoice
      • Edit Invoices
      • Delete Invoices
      • Add New Invoice
    • Estimates
      • GET All Estimates
      • GET Single Estimate
      • Edit Estimates
      • Delete Estimates
      • Add New Estimate
    • Credit Notes
      • GET All Credit Notes
      • GET Single Credit Note
      • Edit Credit Notes
      • Delete Credit Notes
      • Add New Credit Note
    • Refund Receipts
      • GET All Refund Receipts
      • GET Single Refund Receipt
      • Edit Refund Receipts
      • Delete Refund Receipts
      • Add New Refund Receipt
    • Clients
      • GET All Clients
      • GET Single Client
      • Edit Clients
      • Delete Clients
      • Add New Client
    • Suppliers
      • GET All Suppliers
      • GET Single Supplier
      • Edit Suppliers
      • Delete Suppliers
      • Add New Supplier
    • Invoice Payments
      • GET All Invoice Payments
      • GET Single Invoice Payment
      • Edit Invoice Payments
      • Delete Invoice Payments
      • Add New Invoice Payment
    • Client Payments
      • GET All Client Payments
      • GET Single Client Payment
      • Edit Client Payments
      • Delete Client Payments
      • Add New Client Payment
    • Products
      • GET All Products
      • GET Single Product
      • Edit Products
      • Delete Products
      • Add New Product
    • Time Tracking
      • GET All Time Tracking
      • GET Single Time Tracking
      • Edit Time Tracking
      • Delete Time Tracking
      • Add New Time Tracking
    • Notes
      • GET All Notes
      • GET Single Note
      • Edit Notes
      • Delete Notes
      • Add New Note
    • Work Order Appointments
      • GET All Work Order Appointments
      • GET Single Work Order Appointment
      • Edit Work Order Appointments
      • Delete Work Order Appointments
      • Add New Work Order Appointment
    • Estimate Appointments
      • GET All Estimate Appointments
      • GET Single Estimate Appointment
      • Edit Estimate Appointments
      • Delete Estimate Appointments
      • Add New Estimate Appointment
    • Invoice Appointments
      • GET All Invoice Appointments
      • GET Single Invoice Appointment
      • Edit Invoice Appointments
      • Delete Invoice Appointments
      • Add New Invoice Appointment
    • Client Appointments
      • GET All Client Appointments
      • GET Single Client Appointment
      • Edit Client Appointments
      • Delete Client Appointments
      • Add New Client Appointment
    • Product Categories
      • GET All Product Categories
      • GET Single Product Category
    • Work Orders
      • GET Single Work Order
      • Edit Work Orders
      • Delete Work Orders
      • GET All Work Orders
      • Add New Work Order
    • Incomes
      • GET All Incomes
      • GET Single Income
      • Edit Incomes
      • Delete Incomes
      • Add New Income
    • Expenses
      • GET All Expenses
      • GET Single Expens
      • Edit Expenses
      • Delete Expenses
      • Add New Expens
    • Journals
      • GET All Journals
      • GET Single Journal
      • Edit Journals
      • Delete Journals
      • Add New Journal
    • Journal Accounts
      • GET All Journal Accounts
      • GET Single Journal Account
      • Edit Journal Accounts
      • Delete Journal Accounts
      • Add New Journal Account
    • Journal Cats
      • GET All Journal Cats
      • GET Single Journal Cat
      • Edit Journal Cats
      • Delete Journal Cats
      • Add New Journal Cat
    • Purchase Refunds
      • GET All Purchase Refunds
        GET
      • GET Single Purchase Refund
        GET
      • Edit Purchase Refunds
        PUT
      • Delete Purchase Refunds
        DELETE
      • Add New Purchase Refund
        POST
    • Taxes
      • GET All Taxes
      • GET Single Taxe
      • Edit Taxes
      • Delete Taxes
      • Add New Taxe
    • Purchase Invoices
      • GET All Purchase Invoices
      • GET Single Purchase Invoice
      • Edit Purchase Invoices
      • Delete Purchase Invoices
      • Add New Purchase Invoice
    • Stock Transactions
      • GET All Stock Transactions
      • GET Single Stock Transaction
      • Edit Stock Transactions
      • Delete Stock Transactions
      • Add New Stock Transaction
    • Stores
      • GET All Stores
      • GET Single Store
      • Edit Stores
      • Delete Stores
      • Add New Store
    • Treasuries
      • GET All Treasuries
      • GET Single Treasury
      • Edit Treasuries
      • Delete Treasuries
      • Add New Treasury
    • Site
      • GET Site Info
    • Staff
      • GET All Staff
      • GET Single Staff
    • General Listing
      • GET General Listing
    • Follow Up Statuses
      • GET All Follow Up Statuses
      • GET Single Follow Up Status
      • Delete Follow Up Status
    • Client-attendance-log
      • Add New Client-attendance-log
    • Follow Up Actions
      • GET All Follow Up Actions
      • GET Single Follow Up Action
      • Delete Follow Up Action
  1. Purchase Refunds

Add New Purchase Refund

Production
https://{{subdomain}}.enerpize.com/api2
Production
https://{{subdomain}}.enerpize.com/api2
POST
/purchase_refunds{format}

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params

Header Params

Body Params application/json

Examples

Responses

🟢202Accepted
application/json
Created
Body

🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🟠404Record Not Found
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://.enerpize.com/api2/purchase_refunds' \
--header 'Accept: application/json' \
--header 'apikey: ' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "PurchaseRefund": {
        "id": 98,
        "staff_id": 0,
        "no": "987",
        "supplier_id": 0,
        "is_offline": true,
        "currency_code": "USD",
        "supplier_business_name": "string",
        "supplier_first_name": "string",
        "supplier_last_name": "string",
        "supplier_email": "user@example.com",
        "supplier_address1": "string",
        "supplier_address2": "string",
        "supplier_postal_code": "string",
        "supplier_city": "string",
        "supplier_state": "string",
        "supplier_country_code": "str",
        "date": "2019-08-24",
        "draft": true,
        "Supplier_active_secondary_address": true,
        "Supplier_secondary_country_code": "string",
        "Supplier_secondary_name": "string",
        "Supplier_secondary_address1": "string",
        "Supplier_secondary_address2": "string",
        "Supplier_secondary_city": "string",
        "Supplier_secondary_state": "string",
        "Supplier_secondary_postal_code": "string",
        "is_received": true,
        "received_date": "2019-10-30 12:59:30"
    },
    "type": "string",
    "properties": {
        "PurchaseOrderItem": {
            "type": "string",
            "items": {
                "type": "string",
                "properties": {
                    "id": {
                        "type": "string",
                        "description": "string",
                        "readOnly": true
                    },
                    "product_id": {
                        "type": "string",
                        "format": "string",
                        "description": "string"
                    },
                    "org_name": {
                        "type": "string",
                        "format": "string",
                        "description": "string"
                    },
                    "description": {
                        "type": "string",
                        "format": "string",
                        "description": "string"
                    },
                    "unit_price": {
                        "type": "string",
                        "format": "string",
                        "description": "string"
                    },
                    "quantity": {
                        "type": "string",
                        "format": "string",
                        "description": "string"
                    },
                    "tax1": {
                        "type": "string",
                        "format": "string",
                        "description": "string"
                    },
                    "tax2": {
                        "type": "string",
                        "format": "string",
                        "description": "string"
                    },
                    "purchase_order_id": {
                        "type": "string",
                        "description": "string"
                    },
                    "item": {
                        "type": "string",
                        "description": "string"
                    },
                    "summary_tax1": {
                        "type": "string",
                        "format": "string",
                        "description": "string",
                        "readOnly": true
                    },
                    "summary_tax2": {
                        "type": "string",
                        "format": "string",
                        "description": "string",
                        "readOnly": true
                    },
                    "subtotal": {
                        "type": "string",
                        "format": "string",
                        "description": "string",
                        "readOnly": true
                    },
                    "col_3": {
                        "type": [
                            "string"
                        ],
                        "description": "string",
                        "default": null
                    },
                    "col_4": {
                        "type": [
                            "string"
                        ],
                        "description": "string",
                        "default": null
                    },
                    "col_5": {
                        "type": [
                            "string"
                        ],
                        "description": "string",
                        "default": null
                    },
                    "discount": {
                        "type": "string",
                        "format": "string",
                        "description": "string"
                    },
                    "discount_type": {
                        "type": "string",
                        "description": "string",
                        "enum": [
                            "string"
                        ]
                    },
                    "store_id": {
                        "type": "string",
                        "format": "string",
                        "description": "string",
                        "default": "string",
                        "examples": [
                            0
                        ]
                    },
                    "calculated_discount": {
                        "type": "string",
                        "format": "string",
                        "description": "string",
                        "readOnly": true
                    },
                    "created": {
                        "type": "string",
                        "format": "string",
                        "description": "string",
                        "readOnly": true,
                        "examples": [
                            "string"
                        ]
                    },
                    "modified": {
                        "type": "string",
                        "format": "string",
                        "description": "string",
                        "readOnly": true,
                        "examples": [
                            "string"
                        ]
                    }
                },
                "x-apidog-orders": [
                    "string"
                ]
            }
        }
    },
    "x-apidog-orders": [
        "string"
    ],
    "PurchaseOrderItem": [
        {
            "product_id": 0,
            "org_name": "string",
            "description": "string",
            "unit_price": 0,
            "quantity": 0,
            "tax1": 0,
            "tax2": 0,
            "purchase_order_id": 0,
            "item": "string",
            "col_3": null,
            "col_4": null,
            "col_5": null,
            "discount": 0,
            "discount_type": "1 => Percentage",
            "store_id": "The Purchase Order store id"
        }
    ]
}'
Response Response Example
202 - Example 1
{
    "code": 202,
    "result": "successful",
    "id": "2415"
}
Modified at 2025-05-22 16:13:31
Previous
Delete Purchase Refunds
Next
GET All Taxes
Built with