Submit a request

API Searching and Filtering

Follow

Feature Request

Need an integration or feature that doesn't exist?

Our experienced development team is always looking to add new capabilities to the platform. Let us know what you are looking for!


Enterprise Support

Is your company in need of full time 24/7 AmeriCommerce support?

Our Enterprise support plan is the perfect fit for large operations needing the commitment of our team outside of standard operating hours.

Comments

3 comments

  • Avatar
    Kathy Sechrist

    Is there a list of fields/fieldnames that this works with? Will it work with custom fields?

    I tried the following, but it just returned every order after the specified date, and only included id, customer_id, and grand_total :

    /api/v1/orders?ordered_at=gt:2019-05-03T06:00:00.0Z&SignatureRequiredForDelivery=Yes&fields=id,customer_id,grand_total,ServiceName

    0
    Comment actions Permalink
  • Avatar
    Will

    Hi Kathy,

    I think for custom fields you can just include "custom_fields" in your list of fields to retrieve. 
    i.e. ...&fields=id,customer_id,grand_total,custom_fields

    Then in the response, there will be a new array with the custom_fields and their values

    For a list I would check their github:
    https://github.com/AmeriCommerce/rest-api/blob/master/resources/orders.md

    0
    Comment actions Permalink
  • Avatar
    Nate Horsfall

    So a GET request to /api/v1/cart_items?item_number=widget123 works, but if I change the request to /api/v1/cart_items?item_number=widget123&price=lte:298.00, I get:

    {

    "status_code": 500
    "message": "Internal Server Error"
    "details": "Object reference not set to an instance of an object."

    }

    Does this mean I can't also filter by price for cart_items?

    0
    Comment actions Permalink

Please sign in to leave a comment.

We're Here To Help


Standard Support Hours: Monday-Friday 8AM-6PM CST
Looking for Premium Support? Just ask!

Speak to a live person
1 (800) 936-9006
Submit A Support Ticket
Submit Your Ticket Here