Create Invoice from API

Discussion in 'Integration' started by agussakti, Sep 27, 2021.

  1. agussakti

    agussakti New Member

    Joined:
    Mar 9, 2016
    Messages:
    3
    Hi,

    I'm tryin to create invoice + (1 invoice item) from API using this documentation section "Add Invoice, Payment, Access": https://docs.amember.com/docs/REST_API_examples

    The problem is:
    - Invoice is created, but the invoice item created more than one, pic below...

    Any resolution for this issue???

    Thanks.

    Attached Files:

    Last edited: Sep 27, 2021
  2. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
    Hello,

    I recommend to enable Debug Mode:
    aMember CP -> Configuration -> Setup/Configuration -> REST API

    then check actual data that module receive in log:
    aMember CP -> Utilities -> Logs

    Do you have these additional items in log?
  3. agussakti

    agussakti New Member

    Joined:
    Mar 9, 2016
    Messages:
    3
    I've enabled 'Debug Mode' and i just created new invoice from API. But i don't see any logs regarding my newly created invoice in aMember CP -> Utilities -> Logs

    -- pics attached

    Thanks for the replay btw

    Attached Files:

  4. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
    Log entry (with serialized request) should be on "Errors" tab.
  5. agussakti

    agussakti New Member

    Joined:
    Mar 9, 2016
    Messages:
    3
    Yes, I've checked on the ”Errors” tab, no records as well

    Attached Files:

  6. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
    agussakti likes this.

Share This Page