Advanced Coupons API
  • REST API
  • coupons/v1
    • Virtual Coupons (Premium)
      • Query a list of virtual coupons
      • Fetch virtual coupon stats
      • Create a virtual coupon
      • Retrieve a virtual coupon
      • Update a virtual coupon
      • Delete a virtual coupon
      • Bulk create virtual coupons
      • Bulk delete virtual coupons
    • Search Customers (Premium)
    • Settings
  • loyalty-program/v1
    • Dashboard
    • Customers
    • Settings
    • My Points
  • wc-loyalty-program/v1
    • Dashboard
    • Customers
    • Settings
  • wc-store-credits/v1
    • Entries
      • Query a list of store credit entries
      • Create a store credit entry
      • Fetch a single store credit entry
      • Update store credit entry
      • Delete store credit entry
    • Customers
      • Get dashboard statistics data
      • Query list of customers with store credits balance
      • Get single customer statistics and sources
Powered by GitBook
On this page

Was this helpful?

  1. wc-store-credits/v1
  2. Entries

Delete store credit entry

DELETE: /wp-json/wc-store-credits/v1/entries‌/{entry_id}

Requirements:

  • Logged-in user

  • user role with manage_woocommerce user capability

Method

Endpoint

DELETE

/wp-json/wc-store-credits/v1/entries‌/{entry_id}

Query Parameters

Required

Type

Default

Description

​date_format

​no

​string

F j, Y g:i a

Date format of virtual coupon response date values.

Delete store credit entry with id 36

DELETE: http://example.com/wp-json/wc-store-credits/v1/entries/‌36

Status: 200 OK

Delete store credit entry with id 36

{
  "message": "Successfully deleted store credit entry.",
  "data": {
    "key": "36",
    "id": 36,
    "amount_raw": 30.25,
    "amount": "$30.25",
    "type": "increase",
    "activity": "Admin adjustment (increase)",
    "user_id": 1,
    "date": "2021-11-17 11:31:26",
    "rel_link": "",
    "rel_label": "-",
    "note": ""
  },
  "balance_raw": 270,
  "balance": "$270.00"
}

Status: 403 Forbidden

{
    "code": "rest_forbidden_context",
    "message": "Sorry, you are not allowed access to this endpoint.",
    "data": {
        "status": 401
    }
}

PreviousUpdate store credit entryNextCustomers

Last updated 3 years ago

Was this helpful?